This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Wanted to pass parameter to custom tag as below but the JSP crashed.
<msg:myCustomTag tagName="tagName1" dataType= "<%= ed.getDataType %>" />
Is that the correct syntax?
Thank in advance for the help
How have you defined your custom tag? With a simple .tag file or in java classes?
Check the log for an error message. That will tell you more.
It looks like you might be missing the parentheses () from the method call in your scriptlet expression?
Providing "ed" is a bean in an attribute scope, you should be able to also do the EL equivalent:
(ie if you created it with useBean, or set an appropriate attribute)