You could use the referer header to create an action forward based on that value.
String referer = request.getHeader("Referer"); URL url = new URL(referer); String path = url.getPath(); String contextPath = request.getContextPath(); path = path.replaceFirst(contextPath,""); return new ActionForward(path,true); You may have to append any parameters to the path, but i'm sure you can work that out.. Mark On 2/14/06, Keith Sader <[EMAIL PROTECTED]> wrote: > Greetings, I need to have an action return to a previous page > depending upon which page originally requested the common page. Think > of it as a settings page that can be accessed from multiple places. > > Like this: > > Entry 1 ---> Common Page <----Entry 2 > > How can I tell the common page action to return to the correct requestor page? > > thanks, > -- > Keith Sader > [EMAIL PROTECTED] > http://www.saderfamily.org/roller/page/ksader > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]