user2597307
user2597307

Reputation:

According to TLD or attribute directive in tag file, attribute verb does not accept any expressions

I have the following index page:

<form action ="home.jsp">
  Insert any v1 form : <input type ="text" name="v1"/>
  <input type ="submit" value="click"/>
</form>

and also home.jsp:

<%@taglib uri="WEB-INF/mytag.tld" prefix="mak"%>
<mak:you verb="${param.v1}"></mak:you>

I am getting this error

According to TLD or attribute directive in tag file, attribute verb does not accept any expressions

can anyone help?

Upvotes: 7

Views: 9917

Answers (1)

Jk1
Jk1

Reputation: 11463

Go to verb attribute definition in mytag.tld and enable expression support:

 <attribute>
     <name>verb</name>
     <required>true</required>
     <rtexprvalue>true</rtexprvalue>
 </attribute>

Upvotes: 21

Related Questions