Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Request.getAttribute

Request.getAttribute

2007-11-01       - By Peters, John

 Back
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:mgainty@(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" <John.Peters@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
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: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.