This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem sending a bean as a parameter from a link in a table column

 
Federico Flores
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello, i am new in jsp, i need to create a table to show several columns and have a special column for displaying additional information, i have achieved that with a <c:foreach>, and printing the list, but i dont figure out how to send the bean that correspond to the selected row as a parameter, which is what i need.
i think i could achive this sending the properties of the bean as individual parameters, but it feels wrong.

here is the source code for render the table



with this code the jsp sets only the first bean read from the list.

thanks in advance.

[ March 22, 2006: Message edited by: Federico Flores ]
[ March 22, 2006: Message edited by: Federico Flores ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please isolate the issue that you are having? It's not clear from your description.
 
Federico Flores
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, the problem i have with the jsp code of above is that the "mostrarSoluciones.do" servlet gets every time the first bean of the "errInterpretados" list, no matter which row i click on.

my question is how can i identify which row was selected and depending of that how can i set the corresponding bean as a parameter.

thank you again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic