| Author |
How to get back attributes of jsp form if it has been inserted once into database
|
viki Bhardwaj
Ranch Hand
Joined: Nov 07, 2011
Posts: 66
|
|
:confused: :confused:
|
 |
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
|
|
|
you need to set the value back to html tag :-)
|
 |
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
|
|
and Welcome to JavaRanch Vivek Bhardwaj
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56554
|
|
Retrieve the information in the page controller and send it to the JSP in scoped variables. On the page, use the EL to insert the values into the value attributes of the form controls.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
viki Bhardwaj
Ranch Hand
Joined: Nov 07, 2011
Posts: 66
|
|
i have tried to retrieve the form attribute from database in the same form field back for edit but still unable to get the attribute. i m using..
1-jsp form(made two jsp one for data submission another for edit)
2- class MaintainData(bean class)
3-class MaintainRequest(containing code for getting and setting parameter in a method return type MaintainData)
4-class MaintainAction ( action class )
i dont want to hard code so m using sql-map-config.xml(contains jdbc connectivity code nd link for xml file which contains sql query for the MaintainData) and screen_definitions.xml and mapping.xml file
everything is ok.. no exception ..no error when i deploy the application but when i click on edit button for updating to attribute then only date is retrieve from the database and two text field is still not retrieving back... so i m in little bit in trouble please help me...!
if need the code then i can send the code..please reply me as soon as possible .!!
thanks...
|
 |
 |
|
|
subject: How to get back attributes of jsp form if it has been inserted once into database
|
|
|