David Shetland wrote:
> Corey -
> It comes down to the age-old question of identity. Where is the HTML
> mandate for a "PageID" when you need it? As far as I know, there is no such
> mandated handle, so you are "stuck with"/"empowered for" the job of creating
> your own. Each application probably has some unique need, anyway.
> -Dave Shetland
>
In JSP there is a feature pretty similar to <servlet> called <jsp:include>,
which can include the output from a servlet (or another JSP page) into the
current response. If you use <jsp:include>, the original request is passed on
to the included servlet, so you can see what it's request URI, servlet path, and
so on were set to.
JSP also has the advantage of being a specified portable standard, instead of
just a feature of some servers. It will be supported on pretty much any servlet
container that supports version 2.2 or later of the servlet API.
>
> > When I call a servlet via the <SERVLET> tag in a server-parsed html page,
> is
> > there any way for the servlet to know what page it was called from? I'd
> > like my servlet to provide context-sensitive results based on what page
> the
> > user is on. I know I could pass a parameter to the servlet telling it the
> > name of the page, but if that information is being passed automatically,
> > that would be much better.
> >
> > Thanks,
> >
> > --Corey Nash.
> >
> >
Craig McClanahan
___________________________________________________________________________
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