You can also rewrite the URL. For instance: /foo.jsp
Is your page. Instead of putting a form in it you can write it as: /foo.jsp?page=1 And achieve the safe effect as a hidden form parameter. You could also deploy the servlet to multiple URLs, for instance: /foo.jsp /foo2.jsp /foo3.jsp Then use HttpServletRequest getRequestURI() to figure out which page is being requested. Cheers, Jayson Falkner [EMAIL PROTECTED] Milt Epstein wrote: > On Sat, 3 Aug 2002, Jim wrote: > > >>Hello, >> >>My servlet needs a way to know which page to generate next. Is there >>some way for it to determine the identity of the current page even when >>there is no form on the current page? > > > Well, you could always put a dummy/empty form on it, and use a hidden > parameter. Or you could check the Referer header > (e.g. req.getHeader("Referer") -- I'm not sure of the exact > spelling/capitalization for "Referer", so you might have to try a few > different values to see what works, or look it up somewhere). > > Milt Epstein > Research Programmer > Systems and Technology Services (STS) > Campus Information Technologies and Educational Services (CITES) > University of Illinois at Urbana-Champaign (UIUC) > [EMAIL PROTECTED] > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html