• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to pass multiple values through hyperlink to a jsp page ?

 
sanat meher
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

i want to pass values through diffrent hyperlink.The scenario is like this.
I have a tabular data with checkbox corresponding to each row.When i ll select the checkboxes,then those values shouldbe displayed on the same page and the corresponding hyperlink is also there through the same value.I have used iterator to pass multiple values,but the selected checkbox values are not being displayed because iterator.next is not working multiple times.
can anybody guide me how to display multiple values and also pass values through that hyperlink..

The code for the same is here :


thanks,
Sanat

[ November 17, 2008: Message edited by: sanat meher ]
[ November 18, 2008: Message edited by: sanat meher ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35728
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sanat,
This sounds like a question more about links than JDBC so I'll move your thread to our JSP forum.
 
Ravi Kotha
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sanat,

I dont understand what do you mean by "iterator.next() is not working multiple times"?? Did you make sure that the selected checkbox values are coming back to the server?

-Ravi
 
sanat meher
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iterator.next() is not working multiple times means that i m not able to use this method more than once in the same while loop.
Anyway the problem is solved now.
I made this change as follows:



By storing the iterator.next() value in a string,we can use and pass that value any number of time.


Regards,
Sanat kumar Meher
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!