Like others before me, I'm trying to create a JSP that "includes" a file, that filename being conditional.
Using JSP 0.92 (JRun 2.3.2, build 147):
<%
// set the path to the file, for arguments sake we'll make this "static"
String navBarPath = "/mynav.html";
%>
 
then I try to use the vinclude "tag"
<%@ vinclude="<%=navBarPath%>" %>
This DOES work, but a superfluous ' "%> ' shows up.
 
If I do this
<%@ vinclude="<%=navBarPath%>
then mynav.html is properly loaded and displayed, no superfuous characters.
 
Here is what appears in the servlet java generated from the jsp:
  {
   com.livesoftware.jrun.plugins.jsp.taglets.JSPDirectiveTag.include(1, (navBarPath), null, request, response);
  }
 
Finally, a question: isn't RequestDispatcher().include() supposed to work with .html files as well as .jsp?
I've had to change mynav.html to mynav.jsp to get it to work with RD.

Lance Lavandowska
Software Engineer
http://www.AgDomain.Com

Reply via email to