This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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)