Bill O'Keefe wrote:

> [snip]

>
>
> >..If you really want
> >the browser URL to change, you can do a sendRedirect() instead, but then
> >you're paying the performance penalty of an extra round trip across the
> >network.  Users of dynamic web applications (as opposed to your typical web
> >site) need to understand that the URLs that are displayed are basically
> >irrelevant, because you can't just bookmark into the middle and proceed from
> >there.  In most cases, I run these kinds of apps in frames (where the visible
> >URL does not change anyway), or in a new browser window that doesn't even
> show
> >the URL, to emphasize the fact that navigation controls on the page are the
> >only way to move around.
>
> I'm not too concerned with the URL that is displayed.  I just want
> the JSP writer to be able to place their JSP anywhere on the same
> web site, and be able to use relative URIs to reference images and
> stuff as they would expect.
>

As long as everything is in the same servlet context, the URLs should work
correctly.  Again, configuration details are servlet engine specific.

>
> >For your image references, the servlet engine will normally let you define a
> >"default" servlet for the application that is executed when no servlet path
> >can be found in a URL.  If this servlet is a file-serving servlet, then it is
> >easy to use paths for images (such as "/images/xxx.gif" in a way that is
> local
> >to your application.  You just need to worry about configuring the associated
> >servlet context to tell it what the document root directory is.  This is, in
> >fact, how the 2.1 JSDK servlet engine serves static resources, and most other
> >2.1 engines will have something similar.
>
> I think this is what I need to do, but I don't quite understand how.
> Can you be a bit more specific?  Thanks very much for your help.
> I really appreciate it.
>
> BTW, I'm using JWS 2.0 for now, so if you know details on how
> to configure JWS to do the above in that environment, please let me know.
> Thanks again.
>     -- Bill
>

I'm afraid I don't know anything about configuring JWS 2.0, but others can
probably help.  You might also try the [EMAIL PROTECTED] mailing list,
which is JWS-specific.

Craig

___________________________________________________________________________
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

Reply via email to