On Fri, Sep 10, 2004 at 12:58:30PM +0200, Bedrijven.nl wrote:
> I think you should use struts.
        How would that help?  Struts is completely useless for figuring out
which page a user came from.

> -----Oorspronkelijk bericht-----
> Van: Keith Hankin [mailto:[EMAIL PROTECTED]
> Verzonden: Friday, September 10, 2004 11:52 AM
> Aan: Tomcat Users List
> Onderwerp: Re: 'referer' header contains Servlet path, not referrer
> 
> 
> My code is in the Servlet, and I can't access Javascript within the Servlet.
>
> > Keith Hankin wrote:
> >
> > > Here's the scenario: I am getting input data from the user and have
> > > determined that the user has made an error. I want to redisplay the last
> > > page so they can fix the errors.

        well, your servlet could generate a small page that has the javascript
in it.  (although then it would be javascript:history.go(-2) instead of -1)
        If you have control over the input page (and feel like changing it)
you could always add a hidden form field that describes which page the user
is looking at.  You could even use a bit of javascript (hiddenfield.value =
location.href) to grab the url.  Probably not the best way to do this,
however.

eric

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to