On Mon, 14 May 2001 [EMAIL PROTECTED] wrote:

> 
> Would it be feasible to place struts-specific tags into an xslt (for
> example <bean:message key="foo"/>)?  In other words, is there any way to
> process the jsp code that the xslt returns?  I'm trying to do this from the
> context of a custom tag (so it's the custom tag that receives the jsp code
> from the xslt) but I'm not familiar if there is any kind of JspReader that
> processes the jsp code and returns a string.
> 
> Any advice is greatly appreciated, Thank you,
> 
> Dallas
> 
> 
> 

As tempting as a scenario like this sounds, it doesn't really fit the
model of how JSP pages work.

The problem is one of timing -- the custom tags that Struts (or any other
custom tag library, for that matter) uses are translated at *compile* time
into equivalent Java code, in a servlet.  What you're asking to be able to
do is dynamically create JSP code at *runtime* and then somehow interpret
it, which doesn't really work.

The new servlet 2.3 and JSP 1.2 specs will make it somewhat easier to do
these sorts of things, but most people cannot take advantage of those
facilities yet.

Craig McClanahan


Reply via email to