954,184 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

grid in jsp

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
Newbie Poster
12 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 

You 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 like

x[1] = '<c:out value="${blub}"/>';
x[2] = '<c:out value="${blah}"/>';
jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

HI!
i am also trying to use Grid.But i don't have a source for Grid.i am doing project in java struts.so i need to display the value inside the Gird.so give me a source if you have any option....
thank you,
kaleeswaran

kaleeswaranm
Newbie Poster
3 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

kaleeswaranm please read the rules.. We don't do other people's homework!!

Acidburn
Posting Pro
511 posts since Dec 2004
Reputation Points: 12
Solved Threads: 5
 

kaleeswaranm, Must read the rule first. only the similar help that can be provide. No home work.

I think AcidBurn told you this.

ukbasak
Newbie Poster
8 posts since Nov 2008
Reputation Points: 10
Solved Threads: 0
 

@ukbasak - you just made my day, barking on thread that is one year old and forgotten

peter_budo
Code tags enforcer
Moderator
15,433 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
 
@ukbasak - you just made my day, barking on thread that is one year old and forgotten

especially since he's just pointing out what the last post said.

stultuske
Posting Sensei
3,110 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 432
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You