Re: equivalent of request.getParameter();

2009-08-04 Thread musomesa
From: Bhaarat Sharma To: Struts Users Mailing List Sent: Tue, Aug 4, 2009 2:25 pm Subject: Re: equivalent of request.getParameter(); thanks wes. so when that url will be clicked the setter will be set. ...maybe pushing the envelope but is it possible to not click any url but still

Re: equivalent of request.getParameter();

2009-08-04 Thread Greg Lindholm
@OP: You should listen to Wes, he knows what he's talking about. There is no reason to call a setter on your action after the action method has executed and the jsp result page is being rendered. (OK, maybe if the setter has some side effect, but this would be a really odd case and a bad design.)

Re: equivalent of request.getParameter();

2009-08-04 Thread Musachy Barroso
On Tue, Aug 4, 2009 at 12:57 PM, Wes Wannemacher wrote: > > If my memory is not failing "#top" doesn't work, it has to be "top". musachy -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mai

Re: equivalent of request.getParameter();

2009-08-04 Thread Wes Wannemacher
On Tue, Aug 4, 2009 at 2:25 PM, Bhaarat Sharma wrote: > thanks wes. so when that url will be clicked the setter will be set. > ...maybe pushing the envelope but is it possible to not click any url but > still set a setter. just like we call a getter. > > > > The paradigms are different... in you

Re: equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
thanks wes. so when that url will be clicked the setter will be set. ...maybe pushing the envelope but is it possible to not click any url but still set a setter. just like we call a getter. On Tue, Aug 4, 2009 at 2:22 PM, Bhaarat Sharma wrote: > wow ..just explaining the problem i figured ou

Re: equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
wow ..just explaining the problem i figured out I can just avoid doing what i was thinking and just check for request.getParamter() inside the action class. anyways...still curious if there is a way to set a setter w/out doing form submission.. On Tue, Aug 4, 2009 at 2:18 PM, Bhaarat Sharma wrote

Re: equivalent of request.getParameter();

2009-08-04 Thread Wes Wannemacher
No, it's not confusing, the thing about http / html is that it is still a submission... Just not using -Wes On Tue, Aug 4, 2009 at 2:18 PM, Bhaarat Sharma wrote: > I know its not the best case scenario.  If i can do this then I will not > have to change major piece of the code. > I'll try to exp

Re: equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
I know its not the best case scenario. If i can do this then I will not have to change major piece of the code. I'll try to explain the scenario: basically one jsp page is used to show results. this jsp page has pagination so each time 50 results are shown. But the page has a printer friendly vers

RE: equivalent of request.getParameter();

2009-08-04 Thread Kawczynski, David
Ajax call? ESP? > -Original Message- > From: Bhaarat Sharma [mailto:bhaara...@gmail.com] > Sent: Tuesday, August 04, 2009 2:10 PM > To: Struts Users Mailing List > Subject: Re: equivalent of request.getParameter(); > > Thanks. > I have another question, whi

Re: equivalent of request.getParameter();

2009-08-04 Thread Wes Wannemacher
On Tue, Aug 4, 2009 at 2:09 PM, Bhaarat Sharma wrote: > Thanks. > I have another question, which might be a little off topic. > > if I have a method like this in my Action class > >    public void setPrinter(String print) >    { >        this.printer = print; >    } > > how can I call this setter w

Re: equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
Sent: Tuesday, August 04, 2009 1:56 PM > > To: Struts Users Mailing List > > Subject: equivalent of request.getParameter(); > > > > In servlets we can do request.getParameter("someParm"); to > > gain access to > > parameters passed to the jsp.

Re: equivalent of request.getParameter();

2009-08-04 Thread Chris Pratt
gt; > > -Original Message- > > From: Bhaarat Sharma [mailto:bhaara...@gmail.com] > > Sent: Tuesday, August 04, 2009 1:56 PM > > To: Struts Users Mailing List > > Subject: equivalent of request.getParameter(); > > > > In servlets we can do request

RE: equivalent of request.getParameter();

2009-08-04 Thread Kawczynski, David
Sharma [mailto:bhaara...@gmail.com] > Sent: Tuesday, August 04, 2009 1:56 PM > To: Struts Users Mailing List > Subject: equivalent of request.getParameter(); > > In servlets we can do request.getParameter("someParm"); to > gain access to > parameters passed to the jsp

equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
In servlets we can do request.getParameter("someParm"); to gain access to parameters passed to the jsp. what is the equivalent of this in struts2? is there an html tag for this?