File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Something about Tag.. required= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Something about Tag.. required="true"" Watch "Something about Tag.. required="true"" New topic

Something about Tag.. required="true"

Abiodun Okusolubo
Ranch Hand

Joined: Apr 25, 2004
Posts: 72
The following tags are placed in a header.tag file..
<%@ attribute name="subTitle" required ="true" rtexprvalue="true"%>


<%@ 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


SCJP, SCWCD, SCJD : in the making.
Jingh Yi
Ranch Hand

Joined: Mar 23, 2005
Posts: 90
try put this line on top of your tag file:

<%@tag isELIgnored="false" %>
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 951

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


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
I agree. Here's the link:
subject: Something about Tag.. required="true"
It's not a secret anymore!