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:@[EMAIL PROTECTED]] > Sent: Tuesday, June 18, 2002 10:55 AM > To: [EMAIL PROTECTED] > Subject: Same Action, different Views > > > Subject: Same Action, different Views > From: "C. Allen Sher" <[EMAIL PROTECTED]> > === > 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:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>