On 11/9/05, N G <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I asked a similar question yesterday, but I think I was misundertood as to
> what I was asking...
> Here is what I would like to know...
> If you use the following code in your JSP to avoid having to hard code the
> app name:
> <base href="<%= request.getContextPath() %>" />
> Is there a case where this wouldn't work?
> Thanks,
> NG


Yes, there is such a case ... if the browser insists on following the HTML
spec for the <base> element, which requires this URI to be absolute.

This is why Struts has a "base" tag ... to construct this sort of element.

Craig

Reply via email to