Hai, Anyone can help me?How can i store selected item in data base. if i select item from dropdown box to store database using jsp there is no items stored in database..if i use textfield it will stored.. how it is possible? [ December 27, 2008: Message edited by: pradeepa sakthi ]
Thank you.i think not necessary to put option values in it.but it works.i had put data values not into the form.Tht's why the action couldn't be performed.now it works well.
How can i store radio button value into database. My HTML code : <form action="reg.jsp">
It is much easier to spot this kind of basic errors by just viewing the code if you wrote Java code in a clean and well-indented way in a real Java class (a servlet or a DAO class) rather than in a lousy scriptlet in a JSP. Exactly as I suggested before. [ December 27, 2008: Message edited by: Bauke Scholtz ]
You may want to look into refactoring all this data access code to the backend (search for MVC) . Using a DAO would even be better. Also let a Servlet handle the processing of the request. Having it all as part of your JSP just makes it difficult to read.
PS. It does not help any that I am reading this from my smartphone. [ December 27, 2008: Message edited by: Bosun Bello ]
Bosun (SCJP, SCWCD).
So much trouble in the world -- Bob Marley
You can thank my dental hygienist for my untimely aliveness. So tiny:
Free, earth friendly heat - from the CodeRanch trailboss