This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Urgent...Need help on form submit  RSS feed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a form in a JSP. THe values are not being properly submitted to the server. THe Action class always gets PP for the selectedProcedureType.
ANy help please?
-----------------------------------------------------
THis is the related piece in View Source of the browser.




------------------HERE IS THE JSP SNIPPET--------------
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow, you sure have some wacky looking code there (btw it would be helpful if you disabled smilies and took out all the left indentation). I am not sure why you need the "hack" or the JavaScript at the bottom. What is the underlying type is procedureType? I would think your JSP code would look more like this (assuming that procedureType has a method getProcedureTypeId):


- Brent
 
neetu shri
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brent,
Thanks for your reply. Actually we got that piece working finally. I have another question.

We have three radio buttons on a page.
When initially displayed, the radio buttons are selected/not selected based on the current user state.
After the form is submitted with a radio button selected the user state is updated. SO far we are fine.
But after navigating thru other pages and changing the user state if I go back to that page, the last submitted value of the radio button is still selected- which was changed in other page and is not represented by any of the radio buttons. How can I uncheck all the radio buttons.
I tried the following option.It didn't work. And it still displays the last selected value as checked.
I want to display the radio buttons with none of them selected.
THANK YOU
 
I found a beautiful pie. And a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!