This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
HI there first of all thank you for your help, I have already read a lot in your forums and learned a lot too! here my problem: i want a jsp page to pass attributes to a taglib dynamicaly my tld file looks like that: <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1.1.dtd"> <taglib> <tlibversion>1.0</tlibversion> <jspversion>1.1</jspversion> <shortname>mdu tags</shortname> <uri></uri> <info>Tag Library Marek</info> <tag> <name>treeview</name> <tagclass>com.mdu.projects.treeview.MduTreeView</tagclass> <bodycontent>empty</bodycontent> <attribute> <name>expandPath</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> </taglib> my jsp page looks like that: <%@ taglib uri="/WEB-INF/mdutags.tld" prefix="mdutags" %> <HTML stuff...> <%! Stringtest = "1,2,3,4"; %> <mdutags:treeview expandPath="<%= test %>" /> <.../HTML stuff...> The String expandPath in my "Treeview" is "<%= test %>" not "1,2,3,4" does anyone know what i am doing wrong?what have i to do pass jsp variables to taglibs? greetings, sorry for my clumsy english Marek
Welcome to the Ranch eballosa! You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it. Thanks! bear JSP Fourm Bartender
Joined: Sep 18, 2003
Thank you very much! now i understand this <rtxexprvalue> tag
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: How to pass values from JSP to TagLib attributes dynamicaly