wood burning stoves 2.0*
The moose likes JSP and the fly likes problem sending a bean as a parameter from a link in a table column Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "problem sending a bean as a parameter from a link in a table column" Watch "problem sending a bean as a parameter from a link in a table column" New topic
Author

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

Federico Flores
Greenhorn

Joined: Feb 24, 2006
Posts: 4
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 ]

SCJP 1.4, SCWCD 1.4
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Could you please isolate the issue that you are having? It's not clear from your description.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Federico Flores
Greenhorn

Joined: Feb 24, 2006
Posts: 4
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem sending a bean as a parameter from a link in a table column
 
Similar Threads
Dynamic population of second list box based on selection of first
Accessing an ArrayList of objects in JSP
JSP column name hyperlink help
serve html
c:forEach and form parameters