Link to home
Create AccountLog in
Avatar of vijayprabakar
vijayprabakarFlag for India

asked on

Save and Logout

Hi Experts,

I am developing an application on Spring MVC with tiles. The top tile has a logout button. When I click on that button, I would like to save the data on the page and then logout.

Note: The logout button is common for all pages displaying on the main tile. Please help me with code samples and flow.
Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag of India image

Define like this
 in your tiles-layout.xml

<definition name="baseLayout" path="/jsp/layout.jsp">
            <put name="header" value="/jsp/header.jsp" /> //-----------> ur logout button and menu are put this jsp
            <put name="footer" value="/jsp/footer.jsp" />//--------? copyrights
      </definition>
then it will come to all ur page .
Avatar of vijayprabakar

ASKER

While clicking on logout button, it should display a popup and ask the user, whether to save the data. If yes, it has to save the complete/partial data to the database and logout.
ASKER CERTIFIED SOLUTION
Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
I will check and come back to you.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.