Since you have a well-formed (XML) jsp and well-formed XML metadata, you
could run an (pre-runtime) XSL transformation that combines the two
however you need. In other words, instead of combining known metadata at
runtime, pre-generate the JSPX in some prior stage. With JSP 2.0, EL and
the standard taglib it is really easy to work with JSP as XML so you can
get the benefits of many different ways to transform it (XSL, XQuery,
SAX filter, some DOMish manipulation, etc and you don't even need to use
java)

best,
-Rob


On Tue, 2008-07-29 at 15:48 +0200, Johnny Kewl wrote:
> ----- Original Message ----- 
> From: "Mikolaj Rydzewski" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Sent: Tuesday, July 29, 2008 2:50 PM
> Subject: Re: Embedding custom metadata in a jsp page; access generated Class 
> via reflection?
> 
> 
> > Johnny Kewl wrote:
> >> The JSP is well formed XML so
> > It's not true.
> >
> 
> True... its a choice, jsp or jspx, the user can choose if well formed or 
> not, the advantage being that if they do the can check the whole doc for 
> validity.... but doesnt really matter, within the tag or comment its XML.
> Dont know about other ide's but in NB you got that right click check XML 
> thing going... only reason I mentioned it.... also have choice of choosing 
> JSP or JSPX
> 
> I definitely dont think
> 
> <%
> @MyAnnotation Yada
> Some Java
> %>
> would work.... I dont think JSP compiler is there, maybe wrong....
> 
> > IMO it's worse to force users to model JSPs as well formed XML documents 
> > rather than using additional XML metadata files.
> 
> Maybe... but its what Simon wants, and I think that in the end he may just 
> end up making a tag lib...
> 
> Its fun stuff, and who knows maybe he makes a VWP tool that does work on a 
> large site ;)
> Another framework... yummy ;)
> Its nice to just see someone exploring an idea... instead of... I got a 
> problem... where the *** is Chuck ;)
> 
> 
> ---------------------------------------------------------------------------
> HARBOR : http://www.kewlstuff.co.za/index.htm
> The most powerful application server on earth.
> The only real POJO Application Server.
> See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
> ---------------------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to