DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22231>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22231

the <logic:present> and <bean:write> will not display all of the HttpServletRequest 
attributes.  

           Summary: the <logic:present> and <bean:write> will not display
                    all of the HttpServletRequest attributes.
           Product: Struts
           Version: 1.1RC2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


Greetings: 

I have an Action that contains the following code snippet:
 request.setAttribute("message","this is where the eNotify Message will display");
 request.setAttribute("invNum","this is the invoice num");

I forward the Action to a jsp page that contains the following code:
<%
Enumeration enum = request.getAttributeNames();
                for (; enum.hasMoreElements() ;) {
         out.println((String)enum.nextElement()+"<br />");
                }
                out.println(request.getAttribute("message")+"<br />");
                out.println(request.getAttribute("invNum")+"<br />");
     %>
        <logic:present parameter="message">
                <bean:write name="message" />
        </logic:present>
        <logic:present parameter="invNum">
                <bean:write name="invNum" />
        </logic:present>

The output in the web browser shows both the 'message' and 'invNum' on the list
of attribute names.  However, the 'invNum' value is the only string that gets
displayed on the browser screen.  The same behavior is true when setting a
'session' attribute. 

Thank you.
Bill Brown
colorfulsoftware.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to