Hi All,
I have run into a big problem whilst using VisualAge for java and the
WebSphere test environment the problem is that the <jsp:include page=""
.../> tag does not work. I Badly need to use the functionality of passing a
dynamic expression into this tag (as per the subject of this mail).
If anyone has found this problem before and knows how to fix it (eg download
a fixed JSPServlet) or knows a work around I'd be very grateful. Is it that
WebSphere doesn't really support JSP1.0 ?
I have already swapped the JSP Engine from the 0.92 version to the 1.0
version eg
swapped com.ibm.ivj.jsp.debugger.pagecompiler.IBMPageCompileServlet
for com.ibm.ivj.jsp.runtime.JspDebugServlet
below is my example JSP page showing what works and what doesn't.
Thanks in advance
Karl Roberts
~~~~example JSP follows with comments pointing out what worked/failed ~~~~
<%@ page import="my.package.MyBean" %>
<jsp:useBean
id="screenDef"
scope="request"
class="my.package.MyBean"
type="my.package.MyBean">
</jsp:useBean> <--- this works! -->
<HTML>
<HEAD><TITLE>This is a JSP test</TITLE></HEAD>
<BODY>
<H1> THIS is A TEST </H1>
<% out.println(screenDef.getPage2Include()); %> <HR> <--- this
works! -->
<%@ include file="topBanner1.jsp" %> <--- this works! -->
<jsp:include page="topBanner1.jsp" flush="true"/> <--- this FAILS
-->
<jsp:include page="<%= screenDef.getPage2Include() %>"
flush="true"/> <--- this FAILS -->
</BODY>
</HTML>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets