| | |
grid in jsp
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2006
Posts: 12
Reputation:
Solved Threads: 0
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...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.
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...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.
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
What you can do is generate a piece of Javascript as part of the JSP rendering that the Javascript can use.
Something like
Java Syntax (Toggle Plain Text)
x[1] = '<c:out value="${blub}"/>'; x[2] = '<c:out value="${blah}"/>';
Last edited by jwenting; Dec 15th, 2006 at 2:51 pm.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
@ukbasak - you just made my day, barking on thread that is one year old and forgotten
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- jsp and mysql (JSP)
- how to use jsp and tomcat (JSP)
- Can't run JSP in Browser (JSP)
- Wi-fi Network (Networking Hardware Configuration)
- Can't run JSP in Browser (Web Browsers)
- JSP and Oracle (JSP)
Other Threads in the Java Forum
- Previous Thread: java very basic input problem
- Next Thread: How to call a variable from other class
Views: 5397 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for Java
actionlistener android api apple applet application arguments array arrays automation binary bluetooth character chat class classes client code component consumer database desktop draw eclipse encode error event exception file fractal ftp game givemetehcodez graphics gui helpwithhomework html ide image input integer j2me java javac javaee javaprojects jmf jni jpanel julia linked linux list loop mac map method methods mobile netbeans newbie number object online oracle print printf problem program programming project properties recursion researchinmotion rotatetext rsa scanner score screen server set size sms socket sort sql string swing template test threads time title transfer tree tutorial-sample update windows working xstream






