Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to provide a hyper link in a table built using c:forEach tag  RSS feed

 
ramanuja varun
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir i have a problem.Let me explain the scenario first.there is a jsp page which displays a table with few rows and columns i need to have hyper link in each row which should carry a parameter preferably one of the column members and pass it on to a servlet.How do i handle this.Can you please explain how to do this with a suitable example.I would be greatful to anybody who explains this to me.
[ September 26, 2008: Message edited by: ramanuja varun ]
 
Jair Rillo Junior
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly is your doubt?

Probably you used a iterator (c:foreach maybe?) to build the table. You can use the same structure to put the hyperlink and call the Servlet. Into that hyperlink, send a parameter (maybe an ID) to servlet distinguish which row the user has selected.

Try to post some code to people help you.
 
ramanuja varun
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
an example would help me understand better sir
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramanuja,
Jair is asking you what code you have so far. Nobody here is going to write all your code for you. Show a starting point first.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66143
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Using a title of "please help with jsps" in a forum completely dedicated to questions on JSP isn't very helpful.

Please go back and change your post to add a more meaningful subject by clicking the .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!