Wed, Mar 5, 2008 at 5:08 PM, temp temp <[EMAIL PROTECTED]> wrote:
>
> > I usally use scriptlet in jsp to set some object in request is there a
> way
> > tro do this using any tag library
> >
> > instead of this
> > <%request.setAttribute(
> >
In case this was not a Struts question, check out:
http://java.sun.com/products/jsp/tags/11/syntaxref11.fm14.html
Hope this helps!
Alberto
On Wed, Mar 5, 2008 at 5:08 PM, temp temp <[EMAIL PROTECTED]> wrote:
> I usally use scriptlet in jsp to set some object in request is there a way
che.org/1.3.8/struts-taglib/index.html
Struts 2: http://struts.apache.org/2.0.11.1/docs/tag-reference.html
Nils-H
On Wed, Mar 5, 2008 at 11:08 PM, temp temp <[EMAIL PROTECTED]> wrote:
> I usally use scriptlet in jsp to set some object in request is there a way
> tro do this using any
I usally use scriptlet in jsp to set some object in request is there a way tro
do this using any tag library
instead of this
<%request.setAttribute(CustomReviewFormflowAction.IReviewFormFlowProperties.ATTRIBUTE_REVIEW_FORM_SECTION,vReviewFormSectionHeader);
%>
can I use any exs
Sent: Thursday, March 31, 2005 1:21 PM
To: 'Struts Users Mailing List'
Subject: RE: passing object in request from jsp to action
the same... my bad I wrote request.getParameter() instead of
request.getAttribute().
:) Sorry!
-
You serialize the object sort of. At least for a hacky solution.
That is you add each attribute of it to the request. Lets say I have an
object user I wish to pass and user has firstname and lastname as
whatever.
Going to actionA:
Then in my action I can create a user object by getting all th
you.
Al
-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 1:22 PM
To: Struts Users Mailing List; Hubert Rabago
Subject: Re: passing object in request from jsp to action
By submitting a form to the action how can I pass some
object using
When a form is submitted, data is passed as parameters, not
attributes. You can access the data using request.getParameter(), as
Dhanashree illustrated.
> > Once the JSP has been rendered, processing for that request is done.
> > Anything placed in request attributes while the JSP
> > was process
.
I don't know of any other way...
> -Original Message-
> From: temp temp [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 31, 2005 2:22 PM
> To: Struts Users Mailing List; Hubert Rabago
> Subject: Re: passing object in request from jsp to action
>
>
> By submi
should work for you...
> -Original Message-
> From: temp temp [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 31, 2005 1:18 PM
> To: Struts Users Mailing List
> Subject: RE: passing object in request from jsp to
> action
>
> I want to use request.getAttribute(&
By submitting a form to the action how can I pass some
object using request.setAttribute ?could you guide me
with this.
thanks & regards
--- Hubert Rabago <[EMAIL PROTECTED]> wrote:
> Once the JSP has been rendered, processing for that
> request is done.
> Anything placed in request attributes
: passing object in request from jsp to action
I want to use request.getAttribute("string",object);
thanks & regards
--- "Apte, Dhanashree (Noblestar)"
<[EMAIL PROTECTED]> wrote:
> ... meaning in the Action you want to reference it by doing
> request.getParameter
; Is that correct? If so, on the jsp, in the link to
> your action, add that
> parameter as well. Instead of just
>
> use
>.
>
> Hope this helps,
> Dhanashree.
>
> -Original Message-
> From: temp temp [mailto:[EMAIL PROTECTED]
> Sent: Th
Once the JSP has been rendered, processing for that request is done.
Anything placed in request attributes while the JSP was processing are
gone. To pass data from the generated HTML to an action, you need to
submit a form or include request parameters in a link. Another option
is to store the o
From: temp temp [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 1:11 PM
To: user@struts.apache.org
Subject: passing object in request from jsp to action
I want pass an object from a jsp to an struts action in request attribute.
I have a jsp it got link to an action upon click the
I want pass an object from a jsp to an struts action
in request attribute.
I have a jsp it got link to an action upon click the
action is invoked. How can I pass object to this
action using request Attribute.
thanks & regards
__
Do you Yaho
the object is visible only for a request.
-Original Message-
From: Sab [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 12:57 PM
To: 'Struts Users Mailing List'
Subject: Object in request
MyCart mycart = new MyCart(...);
request.setAttribute("cart", mycar
MyCart mycart = new MyCart(...);
request.setAttribute("cart", mycart);
is immediately visible to a JSP page which this servlet forwards to,
using a standard action tag like this:
I have 2 layers
One.jsp uses this mycart object and gets this object.
This page links to another jsp say- two.js
18 matches
Mail list logo