Unfortunately, this is one of the problems with the
"use-JSP-tags-in-velocity" deal: in order to _really_ get it to work,
you essentially have to write half a JSP container. Since supporting any
arbitrary tag isn't the goal of WebWork (it's a nice side effect, but
it's not a high priority at all), I think you'd be better off in terms
of functionality and performance if you just added velocity hooks in to
your favorite JSP tags like DisplayTag.

-Pat

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Fred Lamuette
Sent: Wednesday, December 10, 2003 1:50 AM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] JSP tags in velocity

The new beta2 displaytag library is released, and I've understood the
value
property is not supported, so the existing integration example in WW2
can no
more work :

#bodytag( Table "name=list" )
  #tag( Column "property=key" )
  #tag( Column "property=value" )
  #tag( Column "title=static value" "value=static" )
#end

So if the value property is no more supported with beta2, I'd have to do
like this in jsp :

<display:table name="list">
  <display:column property="key" />
  <display:column property="value" />
  <display:column title="static value">static</display:column>
</display:table>

But how can I do with Velocity ? The following code doesnt seem to work
:

#bodytag( Table "name=list" )
  #tag( Column "property=key" )
  #tag( Column "property=value" )
  #bodytag( Column "title=static value")  static #end
#end

Any idea ?

Richard.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to