struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Billy Ng" <evebi...@hotmail.com>
Subject Re: Not using JSP as the view
Date Wed, 04 Sep 2002 21:56:50 GMT
ic, I thought the ActionForward had to be jsp file.  Thanks a lot!

Billy Ng

----- Original Message -----
From: "Ted Husted" <husted@apache.org>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Wednesday, September 04, 2002 2:25 PM
Subject: Re: Not using JSP as the view


> The Struts Action returns an ActoinForward object. The path property of
> determines which resource gets control. The resource can be anything,
> not just a JSP or Struts Action. So if you had a servlet that rendered
> XML, you could forward to that instead.
>
> The Expresso framework has a standard option for using XML/XLS with
> Struts. The Stxx extension also looks quite good.
>
> http://jakarta.apache.org/struts/resources/views.html
>
> Depending on what you need to do, another technique is to use the
> digester to convert XML to a JavaBean (if the XML is someplace where the
> Action can get it), and then pass that down to the JSP. There are also
> tags for doing XML/XLS conversions within the JSP.
>
> http://jakarta.apache.org/taglibs/doc/xsl-doc/intro.html
>
> -Ted.
>
>
> Billy Ng wrote:
>
> > Hi folks,
> >
> > I am thinking to repsonse the XML instead of HTML.  In Struts, how can I
response to the browser without displaying the JSP as the view?
> >
> > Thanks!
> >
> > Billy Ng
> >
> >
>
>
> --
> Ted Husted, Husted dot Com, Fairport NY US
> co-author, Java Web Development with Struts
> Order it today:
> <http://husted.com/struts/book.html>
>
>
> --
> 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