Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get back attributes of jsp form if it has been inserted once into database

 
viki Bhardwaj
Ranch Hand
Posts: 74
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
:confused: :confused:
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you need to set the value back to html tag :-)
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and Welcome to JavaRanch Vivek Bhardwaj
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65226
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
viki Bhardwaj
Ranch Hand
Posts: 74
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic