struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adam pinder <apin...@hotmail.co.uk>
Subject RE: Accessing User input in execute ( ) method
Date Tue, 28 Sep 2010 08:04:24 GMT

 

if you're new to struts why don't you use struts2 its far better and less intrusive code wise.

 


 
> Date: Tue, 28 Sep 2010 09:03:51 +0530
> Subject: Re: Accessing User input in execute ( ) method
> From: hareendras@gmail.com
> To: user@struts.apache.org
> 
> Guys,
> 
> Thnks for all replies. I'm using struts 1.2.9. I could use
> request.getParameter() to get the user input. :)
> 
> Can you plc advice me on what should be done and what should not be done in
> execute() method. According to my understanding <struts-config> is like a
> router to route the requests. (Plc correct if I'm wrong) For each action the
> execute() method is acting like a controller. Am I correct? If not can u
> guys plc explain the Model View and the Controller in struts.
> Thanks
> 
> PS: I'm new to struts and hope u guys don't mind me asking basic things :)
> 
> 
> 
> On Mon, Sep 27, 2010 at 6:27 PM, Kushan Jayathilake <kushanxp@gmail.com>wrote:
> 
> > yeah lol...
> >
> > --
> > Regards
> > Kushan Jayathilake
> >
> >
> > On Mon, Sep 27, 2010 at 6:21 PM, Dave Newton <davelnewton@gmail.com>
> > wrote:
> >
> > > We're all making an assumption the OP is talking about Struts 2; I made
> > an
> > > assumption the opposite way.
> > >
> > > Let's just ask--Hareendra, what version of Struts are you asking about?
> > >
> > > Dave
> > >
> > > On Mon, Sep 27, 2010 at 8:45 AM, Li Ying <liying.cn.2010@gmail.com>
> > wrote:
> > >
> > > > Hi hareendra :
> > > >
> > > > You don't need an ActionForm to capture the variables sent by client
> > > > request.
> > > >
> > > > What you used to defined in ActionForm class, is now should be defined
> > in
> > > > Action class.
> > > >
> > > > You can read more detail information in
> > > > http://struts.apache.org/2.2.1/docs/comparing-struts-1-and-2.html
> > > > (section [Harvesting Input])
> > > > about this issue.
> > > >
> > > > Hope this help you.
> > > >
> > > >
> > > > 2010/9/27 hareendra seneviratne <hareendras@gmail.com>
> > > >
> > > > > Hi all,
> > > > >
> > > > >
> > > > >
> > > > > I’m new to struts and getting to know it.
> > > > >
> > > > >
> > > > >
> > > > > Is it mandatory to have an ActionForm? Can we access the variables
> > > > defined
> > > > > in *view* from *execute()* method without using an ActionForm?
> > > > >
> > > > >
> > > > >
> > > > > Thnks for ur replies J
> > > > >
> > > >
> > >
> >
 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message