Hi All.,
I'm dynamically including a jsp file as shown in the
following code :
<%
out.println("Hello there ");
String f = "freeword1";
String str = "/tmp/" + f + ".html";
try {
%>
<jsp:include page = "<%=str%>" flush = "true"/>
<%
}
catch(Exception e)
{
%>
<%=f%>
<%
}
out.println("This is the end of the session");
%>
But my problem is that if the file does'nt exist in the tmp folder its
showing 404 File Not Found Error., even though i have given the try
catch block..If there is not file present i dont want to show any errors
just blank...how can i do this ?? Any help is appreciated.
regards
G. Arun Prakash
Senior Software Engineer
BTl��ksmart(tm)
Level 7, 241 Commonwealth Street
Surry Hills
Sydney NSW 2010
Australia
office: +61(0)2 9282 0200
office: +61(0)2 9282 0246 (direct)
fax: +61(0)2 9282 0222
email: [EMAIL PROTECTED]
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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