Hi, Ralph:
Thanks you. But i just change to code in my javascript
function:
out.println("document.location=\"CheckURL1myReferer=CheckURL1\";");
In my second servlet(CheckURL1). i still get null
through getHeader("Referer")
Beside, i am just wondering if it is possible to use
the resonse.encodeUrl in the JavaScript function.
Your help is appreciated.
Maria
--- Ralph Einfeldt <[EMAIL PROTECTED]>
wrote:
> If CheckURL1 is the url to your servlet
> you should use something like:
>
> out.println("document.location=\"");
>
out.println(response.encodeUrl("CheckURL1?myReferer=test"));
> // The call to encodeUrl ensures that the link will
> contain
> // the session id if the browser has cookies
> disabled.
> // The separator between the servlet and the first
> parameter
> // is ?. All further params are separated by &
> // e.g.: "CheckURL1?myReferer=test&age=18"
> out.println("\";");
>
> > -----Urspr�ngliche Nachricht-----
> > Von: Maria Tan [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 30. Juli 2002 16:55
> > An: Tomcat Users List
> > Betreff: RE: getHeader("Referer") and document
> location
> >
> > Would you mind tell me how to urlEncode the my
> second servlet
> > URL in the javascript.
> <snip/>
> > out.println("<SCRIPT LANGUAGE=\"JavaScript\">");
> > out.println("function
> loadcheckmodificationservlet()");
> > out.println("{");
> >
>
out.println("document.location=\"CheckURL1&myReferer=test\";");
> > out.println("}");
> > out.println("</script>");
> >
> <snip/>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>