File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
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
 
Don't get me started about those stupid light bulbs.
 
subject: To show refresh page after addition functionality
 
Similar Threads
Retaining selected value in combo box after refresh
auto increment a number
How to refresh page only once automatically when page is loaded
FOREIGN KEY
Hibernate Unique Key attribute