Hi,
How can i pass an array from jsp to javascript function.i have to design a grid in jsp.For that i'm using javascript functions.
http://www.code-magazine.com/article.aspx?quickid=0303111&page=3 this is the link where i got the script.here i have to pass an array of values to display in that grid.can any one pls help me in this regard.
thank u inadvance.
amaravanich
0
Newbie Poster
Recommended Answers
Jump to PostYou can't, not directly.
What you can do is generate a piece of Javascript as part of the JSP rendering that the Javascript can use.
Something likex[1] = '<c:out value="${blub}"/>'; x[2] = '<c:out value="${blah}"/>';
Jump to Postkaleeswaranm please read the rules.. We don't do other people's homework!!
All 6 Replies
jwenting
1,889
duckman
Team Colleague
kaleeswaranm
0
Newbie Poster
Acidburn
0
Posting Pro
ukbasak
0
Newbie Poster
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
stultuske
1,116
Posting Maven
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.