jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40903] New: - how to do for preventing the EL parse the "." as Operators?
Date Mon, 06 Nov 2006 06:54:04 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40903>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40903

           Summary: how to do for preventing the EL parse the "." as
                    Operators?
           Product: Taglibs
           Version: 1.1.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Standard Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: tom_lt@hotmail.com


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?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message