Solved

Passing a value from struts action class to javascript function

Posted on 2008-10-18
5
2,355 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
fibonacci ten numbers 4 54
How do I remove an object from a 3 53
How to configure empty element in XML Document parser? 15 45
wild fly 8 startup error 2 43
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

726 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