Francisco Hernandez wrote:

this is great, being able to use any jsp tag in velocity but could you make an example of using a Jsp tag library in velocity?

Sure. I added an example to the webwork-example that illustrates using the displaytag.org libraries to generate a table. To summarize what was required:


* add the required jars to WEB-INF/lib directory
* add the packages that contain the tags we want to use to the webwork.properties file. in this case it's org.displaytag.tags, so we would set the following in webwork.properties:


webwork.velocity.tag.path = some.other.tag.lib, org.displaytag.tags

* that's it. now use the tags.


Here's an example of using the TableTag ...


#set( $list = ["a", "b", "c"] )
$req.setAttribute("list", $list)

#tag( Table "name=list" )


For more information on the display tags, see http://www.displaytag.org/


Cheers!

M



-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to