Hans Bergsten wrote: > Since you had to rename the TLD elements, it means that the version of > Orion that you use only supports JSP 1.2 while JSTL requires JSP 1.2.
Oops. I meant "only supports JSP 1.1 while JSTL requires JSP 1.2." > I'm not sure if there's a later version of Orion that support the JSP 1.2 > specification, but I would be surprised if there wasn't. > > Trying to run JSTL in a JSP 1.1 container will likely lead to problems > since some of the JSTL actions rely on features introduced in JSP 1.2, > so it's not something I can recommend. The error you describe, however, > is most likely caused by an unrelated syntax error in the JSP page (e.g. > missing the end curly bracket in a scripting element). > > Hans > > BMS Robot Email wrote: > >> Thank you Hans for your suggestion. >> >> We took some time to get JSTL going with our J2EE application running >> with >> Orion. >> 1. We were able to do it only after we changed the two tags in c.tld, as >> shown below. >> <short-name> was changed to <shortname> >> and everywhere it referred to >> <tag-class> was changed to <tagclass> >> Have we done the right thing or was it a symptom of some other error? >> >> 2. After we did the above change, we tried your solution but it >> resulted in >> the following error >> >> Syntax error in source >> /view_1.jsp.java:531: 'catch' without 'try'. >> catch(Throwable t) >> ^ >> /view_1.jsp.java:543: 'try' without 'catch' or 'finally'. >> if(__tag0.doEndTag() == Tag.SKIP_PAGE) return; >> ^ >> /view_1.jsp.java:544: 'catch' without 'try'. >> catch(Throwable t) >> ^ >> /view_1.jsp.java:577: 'catch' without 'try'. >> catch(Throwable t) >> ^ >> /view_1.jsp.java:810: 'try' without 'catch' or 'finally'. >> } >> ^ >> /view_1.jsp.java:810: '}' expected. >> } >> ^ >> 6 errors, 1 warning >> >> Would you be able to give us some help? >> >> with regards >> Gamini de Alwis >> mailto:[EMAIL PROTECTED] >> Software Developer >> Business Manager Software >> Tel (03) 9813 3022. Fax (03) 9882 5887 >> website http://www.bmsoft.com.au >> Try our latest web orders demo by clicking >> http://jdemo.bmsoft.com.au/eorders1/ >> >> >> >> -----Original Message----- >> From: Hans Bergsten [mailto:[EMAIL PROTECTED]] >> Sent: Friday, 24 May 2002 1:26 PM >> To: [EMAIL PROTECTED] >> Subject: Re: <jsp:include> directive : How do you nicely handle the "404 >> Not F ound" ????? >> >> >> BMS Robot Email wrote: >> >>> Hello >>> >>> I want to #include a JSP page to present optional additional image files >> >> >> etc >> >>> for a stock catalog application. The #include filename & path are >>> constructed on the fly from stock/session information and the file >>> may not >>> exist at the time of generating the page, in which case I would like to >> >> >> use >> >>> a "default" JSP for the image path etc. >>> >>> Currently this works fine when the JSP exists, however when it does not >>> exist I am getting "404 Not Found" as part of the generated page - is >> >> >> there >> >>> anyway in which the "404 Not Found" can be suppressed / replaced ? >> >> >> >> Not with <jsp:include>, but the recently approved JSP Standard Tag >> Library (JSTL) includes <c:import> and <c:catch> actions that can be >> combined like this to do what you want: >> >> >> <c:catch var="error"> >> <c:import url="${someResource}" /> >> </c:catch> >> <c:if test="${error != null}"> >> <%-- An exception or 404 resulted from the import --%> >> <c:import url="default.jsp" /> >> </c:if> >> >> For more about JSTL and the Reference Implementation, currently >> in Beta, see: >> >> <http://java.sun.com/products/jsp/jstl/> >> >> Hans >> -- >> Hans Bergsten [EMAIL PROTECTED] >> Gefion Software http://www.gefionsoftware.com >> JavaServer Pages http://TheJSPBook.com >> >> =========================================================================== >> >> 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://archives.java.sun.com/jsp-interest.html >> http://java.sun.com/products/jsp/faq.html >> http://www.esperanto.org.nz/jsp/jspfaq.jsp >> http://www.jguru.com/faq/index.jsp >> http://www.jspinsider.com >> >> =========================================================================== >> >> 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://archives.java.sun.com/jsp-interest.html >> http://java.sun.com/products/jsp/faq.html >> http://www.esperanto.org.nz/jsp/jspfaq.jsp >> http://www.jguru.com/faq/index.jsp >> http://www.jspinsider.com >> > > > -- > Hans Bergsten [EMAIL PROTECTED] > Gefion Software http://www.gefionsoftware.com > JavaServer Pages http://TheJSPBook.com > > =========================================================================== > 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://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com JavaServer Pages http://TheJSPBook.com =========================================================================== 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
