• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing jsp value to javascript

 
rodrigo bengoechea
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!!! Happy new year for everyone!!!
I'm developing a web application in which a user can create and join groups to share files and messages. In the welcome page of any user it's displayed the list of groups the user is member.
The problem I'm trying to solve is that, once the list is displayed, if the user clicks on the link of any group the application must redirect to the main page of that group. The javascript recieve the index of the list of groups. But I must be doing something wrong because the javascript is never excecuted...

Here I post the code when the list is diplayed in the jsp and the call to the javascript:



And here I post the javascript function code:


Thanks everyone in advance!!
Regards.

Rodrigo.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember that the JSP, along with the Struts tags, execute on the server in order to create the HTML page that is sent to the browser. So looking at the JSP source is rather unhelpful.

Rather, do a View Source in the browser to see what got sent. Is it what you expected? Is the HTML and JavaScript valid?
[ January 01, 2009: Message edited by: Bear Bibeault ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic