On 7/11/07, red phoenix <[EMAIL PROTECTED]> wrote:
I want to use <jsp:include to load my struts file,such as:
<jsp:include page="/a1.do" />
<jsp:include page="/a2.do" />
but when I run this jsp file,http://localhost:8080/a.jsp,it raise
error,it shows it can't find a1.do and a2.do,but when I write follows in IE,
http://localhost:8080/a1.do, it can show right result.
I am puzzled with it.I wan to know if I don't use <jsp:include page?
How to include struts in JSP?
I just checked with Tomcat 6 and it worked for me. Seems that your
Struts app is a root app for your servlet container, I just checked
it. Can't help you more, sorry.
Important: after you sort out the pathing/context issue, replace
<jsp:include> with <c:import>, otherwise you may have problems
including Struts-generated content -- usually a JSP page -- into
another JSP page.
Michael.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]