Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Something about Tag.. required="true"

 
Abiodun Okusolubo
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following tags are placed in a header.tag file..
<%@ attribute name="subTitle" required ="true" rtexprvalue="true"%>

OR

<%@ attribute name="subTitle" required ="true" %>
<%@ tag body-content="tagdependent" %>

The problem is as long as "required" is set to "true", I keep getting the error message (According to the TLD or the tag file, attribute subTitle is mandatory for tag Header)

However, even when I have attribute sent to the tag, I still get this error message. To get the file to work correctly I'll have to set the required to "false".

Please can anyone tell me what I am doing wrongly

Thanks.
 
Jingh Yi
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try put this line on top of your tag file:

<%@tag isELIgnored="false" %>
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

May I know how you are calling the tag in JSP with attributes. Please place the actual line of code.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic