Access jsp from different context 2007-08-07 - By Victor Huang
Back I have 3 web app running on Tomcat -
1. web application - mywebapp.war 2. Component JSPs - mycomponent.war 3. Web site JSPs - mywebsite.war
I have deployed above 3 app into Tomcat without any error. However what I couldn't figure out is - how can I access JSPs from #2 app in #3 app above? The reason why I'm putting web application this way is that I have multiple web sites that all need to share JSPs reside in mycomponent.war. Even after I enable cross-context = true, the <jsp:include > still doesn't work for me.
For example -
I have login.jsp in mycomponent.war, index.jsp in mywebsite.war, In index.jsp I have some code looks like: <jsp:include page ="/mycomponent/login.jsp">. but it doesn't work.
I'm running on Tomcat 5.5/Apache2.2, JDK 1.5.
I appreciate any help in advance!
Thanks,
Victor
|
|