Solved

Passing a value from struts action class to javascript function

Posted on 2008-10-18
5
2,317 Views
Last Modified: 2013-11-24
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
Comment
Question by:Isotropes
5 Comments
 
LVL 20

Accepted Solution

by:
chaitu chaitu earned 250 total points
ID: 22748156
in another jsp's java script funtion write like this

function ex()
{
var price Category="<%=request.getParameter("pram_name1")%>"
}
0
 
LVL 8

Expert Comment

by:vsudip
ID: 22749098
0
 

Author Comment

by:Isotropes
ID: 22755332
Got it :) Thanks guyz...
0
 

Expert Comment

by:pradeep_brat
ID: 23001525
dont thank... give them scores who answered correctly.............
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question