how would you marshall it into a render parameter?

futhermore, i have been thinking and doing research:

i.e.
what if you have a portlet that read something a datasource in the action 
request.

if the connection to the datasource fails you would want to show it in the 
render (doView/doEdit/doHelp).  you may want to pass along the Exception class, 
which then would be forwarded to the error.jsp page inside the rendering...

if(request.getAttribute("errorException") != null)
{
    //pass the message to error.jsp
} 
else
{
    //do what you want to with the data from the datasource
}

read this from jsr 168:  it seems like using the request.(get|set)Attribute is 
valid???

------------------------------------------------------------
25 PLT.11.1.3 Request Attributes
Request attributes are objects associated with a portlet during a single 
portlet request.
Request attributes may be set by the portlet or the portlet container to 
express information
that otherwise could not be expressed via the API. Request attributes can be 
used to share
information with a servlet or JSP being included via the 
PortletRequestDispatcher.
30 Attributes are set, obtained and removed using the following methods of the
PortletRequest interface:
? getAttribute
? getAttributeNames
? setAttribute
35 ? removeAttribute
Only one attribute value may be associated with an attribute name.
Attribute names beginning with the ?javax.portlet.? prefix are reserved for 
definition
by this specification. It is suggested that all attributes placed into the 
attribute set be
named in accordance with the reverse domain name convention suggested by the 
Java
40 Programming Language Specification 1 for package naming.

------------------------------------------------------------------------

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914493#3914493

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914493


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to