RE: Request.getAttribute

2007-11-01 Thread Peters, John
Unfortunately struts 1.1...I know I'm behind the times but I just came
into this application
I'll try your suggestion below.
Thank you

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

--- "Peters, John" <[EMAIL PROTECTED]> wrote:
> Setting request.setAttribute("status") in my Action.java, is there a 
> tag to get it in the JSP page?

Which version of Struts?

If you're using a JSP 2.0 container ${status} should work, or you can
explicitly scope it if you prefer.

d.


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






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]



Re: Request.getAttribute

2007-11-01 Thread Dave Newton
--- "Peters, John" <[EMAIL PROTECTED]> wrote:
> Setting request.setAttribute("status") in my
> Action.java, is there a tag to get it in the JSP 
> page?

Which version of Struts?

If you're using a JSP 2.0 container ${status} should
work, or you can explicitly scope it if you prefer.

d.


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



RE: Request.getAttribute

2007-11-01 Thread Peters, John
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.




<% if(null!=request.getAttribute("cellStatus") &&
request.getAttribute("cellStatus")!="") { %>
<%
if(((String)request.getAttribute("cellStatus")).equalsIgnoreCase("SUCCES
SFUL")){ %>

<%}else{ %>


<%}%>
<%=request.getAttribute("cellStatus") %>
<%}else{%>The result was not found<%} %>
   

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" 
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]



Re: Request.getAttribute

2007-11-01 Thread Martin Gainty
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" 
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]



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