Currently I'm not using any tags for this JSP page

This is the snip of JSP-No problems doing it this way.
But I was wondering if there was a struts tag to do this.


<tr style="'color: #0090DD" class='footer2'>

<td><% if(null!=request.getAttribute("cellStatus") &&
request.getAttribute("cellStatus")!="") { %>
<%
if(((String)request.getAttribute("cellStatus")).equalsIgnoreCase("SUCCES
SFUL")){ %>
<FONT COLOR="green">
<%}else{ %>
<FONT COLOR="red">

<%}%>
<B><%=request.getAttribute("cellStatus") %></B></FONT>
<%}else{%>The result was not found<%} %></td>
</tr>   

This is my action.java which forwards to the above
        
        request.setAttribute("cellStatus", status);
        
        return mapping.findForward(Forwards.CELLPING);   

-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 01, 2007 9:04 AM
To: Struts Users Mailing List
Subject: Re: Request.getAttribute

which tag are you using?
please display full JSP code so we can further assist you

M--
----- Original Message -----
From: "Peters, John" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, November 01, 2007 7:37 AM
Subject: Request.getAttribute


I'm new to struts.
Setting request.setAttribute("status") in my Action.java, is there a tag
to get it in the JSP page?
To get around it I've been using <%= request.getAttribute("status") %>
Status is not a class so I don't think it should be implemented as a
bean.
I've googled without any success
Thanks in advance for any help or examples.



Blue Cross Blue Shield of Florida, Inc., and its subsidiary and affiliate 
companies are not responsible for errors or omissions in this e-mail message. 
Any personal comments made in this e-mail do not reflect the views of Blue 
Cross Blue Shield of Florida, Inc.  The information contained in this document 
may be confidential and intended solely for the use of the individual or entity 
to whom it is addressed.  This document may contain material that is privileged 
or protected from disclosure under applicable law.  If you are not the intended 
recipient or the individual responsible for delivering to the intended 
recipient, please (1) be advised that any use, dissemination, forwarding, or 
copying of this document IS STRICTLY PROHIBITED; and (2) notify sender 
immediately by telephone and destroy the document. THANK YOU.


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

Reply via email to