Bill,

It appears that you are confusing request attributes with query
parameters. The latter are what is picked up by parameter="...". For
request attributes, my guess is you need <logic:present name="...">. I
am also guessing that the form triggering this action has a field named
invNum on it.

I am not a committer, just trying to help them save some time; if all my
guesses are true, please close the bug. If I am wrong, please accept my
apologies.

Have fun,
        Shai.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 00:42
To: [EMAIL PROTECTED]
Subject: DO NOT REPLY [Bug 22231] New: - the <logic:present> and
<bean:write> will not display all of the HttpServletRequest attributes. 


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]



---
Confidentiality Notice: This email transmission may contain confidential or legally 
privileged information that is intended only for the individual or entity named in the 
e-mail address. If you are not the intended recipient, you are hereby notified that 
any disclosure, copying, distribution, or reliance upon the contents of this e-mail is 
strictly prohibited. If you have received this e-mail transmission in error, please 
reply to the sender, so that arrangements can be made for proper delivery, and then 
please delete the message from your inbox.

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

Reply via email to