[Opensource] Tomcat contexts and Register.do
maxxam at inetfreemail.co.za
maxxam at inetfreemail.co.za
Sun Jan 11 01:20:42 PST 2004
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
More information about the Opensource
mailing list