On 10/17/06, Philip Luppens <[EMAIL PROTECTED]> wrote:
> On 10/16/06, Patrick Lightbody > <[EMAIL PROTECTED]> wrote: > > > > Take a look at JXP: http://jxp.sourceforge.net/ > > > > This might be very close to the template language I > have been looking for > > that is JSP-like, but has the advantages that > FreeMarker and Velocity > > provide in that it can be loaded from the > classpath. I've wanted to select > > something like this as the template language used > by the UI tags (instead of > > FreeMarker). > > > > What do you guys think? > > > Calling it a "template language" seems a bit of a > stretch, to me. It's > basically untouched content with the ability to drop > pseudo-Java code into > it. So it has the attributes of JSP that people most > dislike about JSP. ;-) > There are no tags or expression language, no control > over headers or content > type, a potentially confusing syntax (being only > pseudo-Java), and it > appears to be tied to the Servlet API. Add to that > the LGPL license and that > it's a one-man project, and I can't say I'd be > enthusiastic about adding > support for it. > > -- > Martin Cooper I wouldn't go that far - the author (if it's indeed a one-man-show, couldn't find it) is quite persistent (it's been around for more than 2 years).
I don't think anything ever goes away on SourceForge. ;-) The project page is here: http://sourceforge.net/projects/jxp
From this, you can see that there is one developer, no mailing lists, no
forum activity, no bugs, no support requests, no patches, no feature requests - in fact, no indication that anyone other than the author has ever done anything at all with it in the 2+ years since it was created. That is not a good sign at all. It's not tied to the servlet api afaik (see the faq), OK. I took this from section 3.2 of the documentation, but I see now that this is only in a "web-scripts" environment (whatever that means). and the lack of headers/expression language is not thát important. I disagree here. How would I guarantee that my UTF-8 output would not be mangled if I have no way to specify content type? What if I wanted to use Big5 encoding in my template? -- Martin Cooper Patrick was only suggesting this for the WW tags, not as an additional
Result (but it would be trivial to add this). That's why I'm only really interested in the performance, since that's where it would matter. But like I said on the Jira; if you copy the templates to your webapp root, Freemarker can fully use its cache. Works like a charm, but it's too bad it's not an 'out of the box' solution. Cheers, Phil --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=46468&messageID=94142#94142 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]