T
TPM
Greetings:
Relative newcomer to Struts and JSTL. My question is about using
<cut>, pageContext, and request.
My experience has been doing to following in an appropriate action
class. Setting an object as an attribute of the request in the execute
method of the Action Class:
request.setAttribute("object1", Obj1);
Then in the corresponding JSP, pulling the object off the request and
casting it for use:
<% Obj1 local_Obj1 = (Obj1)request.getAttribute("object1");
Then being able to use dot notation to access methods of Obj1.
My question is that with JSTL <cut> the object needs to be on the
pageContext. Do I need to explicitly set this? If so where? How does
this tag work in this situation?
Any help on the matter is greatly appreciated.
Thank you,
Tim Morrissey
Relative newcomer to Struts and JSTL. My question is about using
<cut>, pageContext, and request.
My experience has been doing to following in an appropriate action
class. Setting an object as an attribute of the request in the execute
method of the Action Class:
request.setAttribute("object1", Obj1);
Then in the corresponding JSP, pulling the object off the request and
casting it for use:
<% Obj1 local_Obj1 = (Obj1)request.getAttribute("object1");
Then being able to use dot notation to access methods of Obj1.
My question is that with JSTL <cut> the object needs to be on the
pageContext. Do I need to explicitly set this? If so where? How does
this tag work in this situation?
Any help on the matter is greatly appreciated.
Thank you,
Tim Morrissey