[Opensource] Tomcat contexts and Register.do
Mike Traum
mtraum at jgroup.net
Mon Jan 12 10:21:41 PST 2004
Yes, you do need the context there. I'm looking at 5.3RC6 and see:
<%@ include file="errorRow.inc" %>
<form action="<%=contextPath%>/Register.do" method=POST>
<%@ include file="header.inc" %>
Does that not work properly?
thanks,
mike
On Sun, 2004-01-11 at 03:20, maxxam at inetfreemail.co.za wrote:
> Hi,
>
> I'm deploying my Expresso 5.3RC6 to a hosting server under a Tomcat
> context "wwb". So all url's are prefixed by wwb. The context is however
> not being prefixed to the Register.do submits in the standard Expresso
> jsp's. An example of this from register.jsp:
>
> <%@ include file="errorRow.inc" %>
> <form action="/Register.do" method=POST>
> <%@ include file="header.inc" %>
>
> Should this not be:
>
> <%@ include file="errorRow.inc" %>
> <form action="<expresso:Context/>/Register.do" method=POST>
> <%@ include file="header.inc" %>
>
> I do not fully understand these contexts yet. Is there a way to define a
> global context for jsp page url definitions? So wherever a action="..." or
> a href="..." is used the context will be automatically prepended?
>
> A further hassle I'm having with this is all images need to be prepended
> with <expresso:Context/>. This doesn't allow me to work in a design html
> editor like dreamweaver. I think the JSTL equivalent of
> <expresso:Context/> is <c:out value="${ConfigManager.contextPath}"/> but
> this also causes problems in dreamweaver in that I can't see the actual
> images. A global/page context setting would work for me.
>
> Thanks,
> Max
> _______________________________________________
> Opensource mailing list
> Opensource at jcorporate.com
> http://mail.jcorporate.com/mailman/listinfo/opensource
> Archives: http://mail.jcorporate.com/pipermail/opensource/
--
Mike Traum
--
JGroup Expert
Expresso Core Developer
Providing support and development services - Available Now!
More information about the Opensource
mailing list