Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes passing hidden values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "passing hidden values" Watch "passing hidden values" New topic
Author

passing hidden values

Archana Annamaneni
Ranch Hand

Joined: Jan 29, 2003
Posts: 147
I have a basic question in HTML.

I have 10 rows of data with a radio button beside each one of it.When user selects one of those rows with radio button , in addition to the radio button value i have to pass two hidden values ,corresponding to that row.

right now when ever i select a radio button value , i am able to pull the radio button value fine , but it keep giving me the first row value for hidden value.

any idea?

Thanks
Tom Katz
Ranch Hand

Joined: Aug 19, 2002
Posts: 169
Do you have unique field names/IDs for those hidden values? Are they any chance named the same thing for each row?

Is this on a POST of a form?
Archana Annamaneni
Ranch Hand

Joined: Jan 29, 2003
Posts: 147
Thanks Tom , yes there were named same that was the problem , i changed it to have unique names it works fine now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing hidden values
 
Similar Threads
JSP- finding the table row selected
Selected radio button value to be send to action class
make array of hidden fields
help in radio button
Single radio button group for all rows in the rich:dataTable