On 10/17/06, Philip Luppens <[EMAIL PROTECTED]> wrote:

> 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.

Yes, but you should also take a look at the homepage (or rather, the
company's homepage, it seems [1]).


I'm still not impressed by a grand total of only 46 posts on JXP in almost 2
years.


> 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?

Perhaps there's a misunderstanding here - I meant, since it's only used to
render the WW tags, the lack of headers shouldn't be a problem.


Let's suppose that I have a JXP file that has no embedded code, just for
simplicity right now, and that I'm going to use that to render a WW tag. OK,
now, tell me how I should interpret the raw bytes in that JXP file. If the
first byte is 0x41, is that an 'A'? Or is it perhaps the first byte of a
UCS-2 character? A Big5 character? How could you possibly know?

--
Martin Cooper


Once again, this is not about the view layer/Results.
And the lack of expression language; I guess we could get over that by
doing a bit more work. Not good, but, like I said before, it might be worth
it if the performance boost is big enough.
Lots of people were afraid about the (similar) move to Freemarker from
Velocity, until they realized it didn't make any difference, since it was an
'internal' WebWork operation that in no way affected the Results (ok, cue
the performance jokes).

Note: I might be way off here, perhaps I totally misunderstood it .. in
that case, my apologies of course.

Cheers,

Phil

[1] http://www.onemindsoft.org/

>
> --
> 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=94227#94227


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


Reply via email to