struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Taylor <robertandkarentay...@yahoo.com>
Subject RE: Same Action, different Views
Date Wed, 19 Jun 2002 18:19:38 GMT
You might want to take a look at Ted Husted's Artimus
package. I believe he uses business beans which can be
used in Actions or GUI environment. A business bean is
invoked for an action mapping to perform any business
logic (Command pattern) and the Action class becomes a
simple proxie to the business bean.  

robert
--- Joseph Barefoot <josephb@hereuare.com> wrote:
> hmmm...wouldn't you need to do something wildly
> different in your Action,
> i.e. write specific data to the HTTPServletResponse,
> when using the GUI
> client?  Unless you have it set up to follow HTTP
> forwards and parse the
> responses or something as a browser would....
> 
> 
> 
> > -----Original Message-----
> > From: Struts Newsgroup
> [mailto:@Basebeans.comstruts@basebeans.com]
> > Sent: Tuesday, June 18, 2002 10:55 AM
> > To: struts-user@jakarta.apache.org
> > Subject: Same Action, different Views
> >
> >
> > Subject: Same Action, different Views
> > From: "C. Allen Sher" <sher_a@bls.gov>
> >  ===
> > What is the preferred way to implement "Same
> Model+Action,
> > Different Views"
> > in struts?
> > I want to build an Action that answers to HTTP
> requests both from
> > a browser
> > and from a GUI.
> > The Action and the Bean are the same, the view for
> the GUI does not need
> > much of the HTML dress-up.
> >
> > I thought about have two Actions in
> struts-config.xml that uses the same
> > Action class.
> > Do we have anything more elegant than that?
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> >
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:struts-user-help@jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message