Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!