Bug 40902

Summary: how to do for preventing the EL parse the "." as Operators?
Product: Taglibs Reporter: tom liu <tom_lt>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 1.1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description tom liu 2006-11-05 22:42:47 UTC
i use Struts and JSTL tags. When Struts Action throws exception, the error jsp 
page would be opened as to catch and display the exception. You know, Struts 
set exception infos to request attribute Global.EXCEPTION_KEY
("org.apache.struts.action.EXCEPTION"). So, if use struts logic & bean tag, it 
looks like this:
<logic:present name="org.apache.struts.action.EXCEPTION">
	<h4>Stack</h4>
	<pre>
    <%
    		Exception e = (Exception) request
    		.getAttribute("org.apache.struts.action.EXCEPTION");
    		e.printStackTrace(new PrintWriter(out));
    %>
  </pre>
</logic:present>
If changed to jstl, it would like this:
<c:if test="${org.apache.struts.action.EXCEPTION != null}">
	<p />
	<h4>Stack</h4>
	<pre>
    <%
    		Exception e = (Exception) request
    		.getAttribute("org.apache.struts.action.EXCEPTION");
    		e.printStackTrace(new PrintWriter(out));
    %>
  </pre>
</c:if>
But the EL parse class explains the expression as org object,and apache 
attribute...
So, how to do if using the JSTL?
Comment 1 Henri Yandell 2006-11-06 09:05:19 UTC

*** This bug has been marked as a duplicate of 40903 ***