• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2604
  • Last Modified:

Passing a value from struts action class to javascript function

Hi am having a string variable in my struts action class. Is that possible to use that String variable in my another jsp's javascript function ?
My action class :
String pricingCategory = request.getParameter("pram_name1");
 I want to use this variable in another jsp's javascript function to validate. How to do ? please respond
0
Isotropes
Asked:
Isotropes
1 Solution
 
chaitu chaituCommented:
in another jsp's java script funtion write like this

function ex()
{
var price Category="<%=request.getParameter("pram_name1")%>"
}
0
 
vsudipCommented:
0
 
IsotropesAuthor Commented:
Got it :) Thanks guyz...
0
 
pradeep_bratCommented:
dont thank... give them scores who answered correctly.............
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now