Solved

Passing a value from struts action class to javascript function

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
The viewer will learn how to implement Singleton Design Pattern in Java.

948 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now