On Tue, 22 Jan 2002, Ted Husted wrote:

> Date: Tue, 22 Jan 2002 13:09:44 -0500
> From: Ted Husted <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: Struts Developers List <[EMAIL PROTECTED]>
> Subject: Re: Struts Next
>
> "Craig R. McClanahan" wrote:
> > I'd rather see us check in only the XML source files, and run the
> > generator on daedalus directly to create the HTML pages.
>
> This is totally off-topic, but should it be feasible to generate
> (uncompiled) JSP pages from XML source files, as we do to get our HTML
> pages?
>
> Gave it a quick try one day, and it didn't seem to work the first time
> (: but nothing ever does for me :), and haven't gotten back to it.
>
> Seems like this would be a good compromise for people want to XML
> stylesheets for formatting the HTML template data, but also want the
> performance of compiled JSPs. (Of course, the JSPs would need to be
> recompiled after being regenerated from the XML.)
>

You can create JSP pages from XML source, but you can't (in the same
webapp) pass them on to the container to be compiled in a reliably
portable manner.  You'd need to synthesize a new webapp and then use
container specific deployment mechanisms.

I'd suggest looking at turning the problem inside out -- manage the XSLT
transformations in a JSP page that you author by hand, perhaps using the
XML tags in JSTL (or the xtags package at jakarta-taglibs), and then use
the appropriate output tag to write directly to the response.

> -Ted.
>

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to