aspose file tools
The moose likes Struts and the fly likes To show refresh page after addition functionality Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "To show refresh page after addition functionality" Watch "To show refresh page after addition functionality" New topic
Author

To show refresh page after addition functionality

Simar Suvir
Greenhorn

Joined: Jul 29, 2011
Posts: 11

My jsp page has an ID field which gets auto incremented each time. There are 3 user functionalities "Add" , "Modify" and "Delete" . Now my issue is once I fill in the values and click on add, the datas gets added in the data base but the page remains the same without refreshed. I need that once the add is clicked, the page should get refreshed with empty fields and just the ID field auto incremented.

Kindly help me.
Nam Ha
Ranch Hand

Joined: Aug 05, 2011
Posts: 50

I think after Add, Modify, Delete you redirect user back to the jsp page with a variable holds new value for ID.

It would be helpful you post your code here.


Java Object Creation
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: To show refresh page after addition functionality
 
Similar Threads
FOREIGN KEY
How to refresh page only once automatically when page is loaded
Retaining selected value in combo box after refresh
auto increment a number
Hibernate Unique Key attribute