Title: Referer pages and structs

Hi, I'm wondering whether Structs can be used to solve the following problem elegantly.

I have a page, say contact.jsp that has two standard actions associated to it: EditContactAction, SaveContactAction.
This page can be linked from many other pages. What I'd like is to go back to the page that called contact.jsp.
For example, if page1 has a link to contact.jsp, after the user clicked the link, then press the save button on the
contact.jsp, I'd like the next page to be page1. Similarly for all other pages linking to contact.jsp. Is there a way to code

contact.jsp to automatically have this behavior?

Thanks.

Shunhui

Reply via email to