Solved

Passing a value from struts action class to javascript function

Posted on 2008-10-18
5
2,401 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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 learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to implement Singleton Design Pattern in Java.

719 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