struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Barefoot" <jose...@hereuare.com>
Subject RE: Same Action, different Views
Date Wed, 19 Jun 2002 18:05:15 GMT
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>


Mime
View raw message