The referer header is actually an unreliable value... I don't recall the details off the top of my head (perhaps someone else can fill in the blanks), but I do remember that using it for just about anything is on the dangerous side because you can't count on it being present and/or accurate. Just an FYI.
-- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, September 7, 2005 12:35 pm, [EMAIL PROTECTED] said: > You can always get from where the request is coming from by getting the > Referer from the Request. > String referer = request.getHeader("REFERER"); > > I'm not sure that this is want you want. You must beware that the referrer > can be blank when typing in the URL in the browser, plus the consequences > of the ActionForm.validate() and errors. > > HTH, > Glenn > > > > > Tremal Naik <[EMAIL PROTECTED]> > 07/09/2005 12:22 PM > Please respond to > "Struts Users Mailing List" <user@struts.apache.org> > > > To > Struts Users Mailing List <user@struts.apache.org> > cc > > Subject > Re: Forwarding to the previous page > > > > > > > 2005/9/7, Duane Rosengartner <[EMAIL PROTECTED]>: >> This works very well for me. >> >> <a class="button" href="javascript:history.back()">Back</a> > > aehm,probabily I didn't explain well my problem: I don't have to get > back to the previous page from the actual. Look at this code: > > public class DisplayAboutAction extends Action > { > public ActionForward execute(ActionMapping actionMapping, > ActionForm actionForm, > HttpServletRequest httpServletRequest, HttpServletResponse > httpServletResponse) > { > // do stuff..... > ActionForward af = new ActionForward(); > af.setPath(previousPagePath); > return af; > } > } > > I need to get a value for 'previousPagePath'. > > I'm trying something like : > > <bean:page id="reqq" property="request" /> > <html:link action="next.do" paramId="old_page" paramName="reqq" > paramProperty="servletPath"> > > but I'm using Tiles, so what I have as 'old_page' parameter is not the > action 'previous.do' but '/jsplayout.jsp' instead > > thanks, > > TREMALNAIK > > --------------------------------------------------------------------- > 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]