I am new to struts. My problem is I got one JSP page where I have to take input from user. On click of save button data gets saved into database.
Now, after clicking save button I want to move on the same JSP. But with one extra line "Record inserted successfully" in the same JSP.
I am using struts 2 framework. I want to do it without using AJAX....
any suggestions for this?
Sachin Ramesh Patil
posted 6 years ago
You can put some flag in some scope(Request, Session) when database operation gets successfully completed.
Test the flag, if it is true, display your message.