File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access javascript variable of one file in another jsp file

 
sumit kushwaha
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 2 jsp files and both have some javascript code.
In one of the jsp file i have a javascript variable whose value i need to assign to another javascript variable in my other jsp file.

How can i do that??

Please let me know if its not clear!!!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP files, which reside and are interpreted on the server, have no relationship to one another as far as your client side (Javascript) code is concerned.

This article might help to clarify this for you.
http://www.javaranch.com/journal/200510/Journal200510.jsp#a1

If not, post back and let us know a little more about your JSP pages.
Is one included in the other? Are they in frames? How are loading both of them into the browser at the same time?
[ November 11, 2008: Message edited by: Ben Souther ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic