Is there a way to include dynamic include files.  I am using the following
code and am getting an error.

  <% String myFile = "./centers/" + my_state + ".html"; %>

  <%@ include file=myFile %>

When doing this the variable does not get parsed.  I would think that I
could read the contents of the file the hard way using the File and network
packages, but I do not want to do that if there is a better way to do it.

TIA,

Jeff Steiner

===========================================================================
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

Reply via email to