aspose file tools*
The moose likes JSP and the fly likes How to get back attributes of jsp form if it has been inserted once into database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to get back attributes of jsp form if it has been inserted once into database" Watch "How to get back attributes of jsp form if it has been inserted once into database" New topic
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: 74

: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: 61658
    
  67

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
viki Bhardwaj
Ranch Hand

Joined: Nov 07, 2011
Posts: 74

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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get back attributes of jsp form if it has been inserted once into database