Re: any tag library to set an object in request in jsp

2008-03-05 Thread Othon Reyes Sanchez
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( > >

Re: any tag library to set an object in request in jsp

2008-03-05 Thread Alberto A. Flores
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

Re: any tag library to set an object in request in jsp

2008-03-05 Thread Nils-Helge Garli Hegvik
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

any tag library to set an object in request in jsp

2008-03-05 Thread temp temp
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

RE: passing object in request from jsp to action

2005-03-31 Thread Fogleson, Allen
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! -

RE: passing object in request from jsp to action

2005-03-31 Thread Fogleson, Allen
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

RE: passing object in request from jsp to action

2005-03-31 Thread Fogleson, Allen
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

Re: passing object in request from jsp to action

2005-03-31 Thread Hubert Rabago
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

RE: passing object in request from jsp to action

2005-03-31 Thread Nidel, Mike
. 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

RE: passing object in request from jsp to action

2005-03-31 Thread temp temp
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(&

Re: passing object in request from jsp to action

2005-03-31 Thread temp temp
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

RE: passing object in request from jsp to action

2005-03-31 Thread Apte, Dhanashree (Noblestar)
: 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

RE: passing object in request from jsp to action

2005-03-31 Thread temp temp
; 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

Re: passing object in request from jsp to action

2005-03-31 Thread Hubert Rabago
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

RE: passing object in request from jsp to action

2005-03-31 Thread Apte, Dhanashree (Noblestar)
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

passing object in request from jsp to action

2005-03-31 Thread temp temp
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

RE: Object in request

2005-02-14 Thread Krishna Srinivasan, ISDC Chennai
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

Object in request

2005-02-13 Thread Sab
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