Paul Copeland <[EMAIL PROTECTED]> writes:

> In the Perl spirit that every easy problem should have a minimum of four
> equally valid solutions, he could also use the html BASE tag to set the
> relative URL for the rest of the document.

As you say, that only works on relative URLs. Michael's problem was
that he was using an incorrect absolute URL to refer to his servlet.

So the BASE fix won't work unless he also changes to using relative
URLs. And then he doesn't need BASE because his servlet is in the same
location as the referring page.

Or perhaps you mean that BASE is another alternative to writing the
content path into the HTML from a servlet. But that's not exactly true
either. The point about writing the context path from a servlet is
that it makes the webapp completly mapping neutral.

Of course, you could mean that you could write the context path into
the BASE element, in which case I have just gone on for 355 words
with no benefit. Such is the life of a consultant.



--
Nic Ferrier
http://www.tapsellferrier.co.uk

___________________________________________________________________________
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