Hi Chuck,
I'm able to call jsps out of Tomcat following the instruction given. Thanks!
However, I now have another problem - see I have set two Contexts in tomcat
called: Context1, Context2. I even setup crossContext to "true"
<Context path="/" docBase="C:/www/myapp" crossContext="true"/>
<Context path="/bs" docBase="C:/shared-jsp/component" crossContext="true"/>
Test1.jsp and Test3.jsp is under Context1
Test2.jsp is under Context2
Test2.jsp and Test3.jsp are included in Test1.jsp
Here is the snippet of test1.jsp:
<jsp:include page="/bs/components/test2.jsp">
<jsp:param name="successpage" value="sucess.jsp" />
<jsp:param name="errorpage" value="error.jsp" />
<jsp:param name="submitbutton" value="images/button_index_submit.gif" />
</jsp:include>
<tr>
<td align="center" valign="top">
<br />
<jsp:include page="inc/test3.jsp" flush="true" />
<br />
</td>
</tr>
For some reason, the jsp:include for test2.jsp doesn't work but test3.jsp
works. I suspect that it doesn't allow cross-context access so I set it to
"true" but still not working.
Any/all comments, help are appreciated!
Thanks in advance!
/Victor
-----Original Message-----
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 26, 2007 4:35 PM
To: Tomcat Users List
Subject: RE: Can Tomcat access JSP pages out of tomcat folder?
> From: Victor Huang [mailto:[EMAIL PROTECTED]
> Subject: RE: Can Tomcat access JSP pages out of tomcat folder?
>
> But I noticed that you were using $Tomcat_home directory as
> docBase.
No - that directory is completely outside of where Tomcat's installed,
which is C:\apache-tomcat-6.0.13. The test webapp is in
C:\apache-tomcat-webapps.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]