File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes custom tag handler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "custom tag handler" Watch "custom tag handler" New topic

custom tag handler

D kukreja
Ranch Hand

Joined: Jan 29, 2008
Posts: 39
I have written a custom tag handler in struts 2.0 web application.
I am adding following lines in the web.xml :

but I get the following error :
cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'. One of '{"http://" escription, "" isplay-name, "http://":icon, "" istributable, "http://":context-param, "":filter, "http://":filter-mapping, "":listener, "http://":servlet, "":servlet-mapping, "http://":session-config, "":mime-mapping,
"":welcome-file-list, "":error-page,
"":jsp-config, "":security-
constraint, "":login-config, "
j2ee":security-role, "":env-entry, "
j2ee":ejb-ref, "":ejb-local-ref, "
j2ee":service-ref, "":resource-ref, "
j2ee":resource-env-ref, "":message-destination-ref, "http://":message-destination, "":locale-
encoding-mapping-list}' is expected.

please help
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I'm not sure if this is your problem, but in a Servlet 1.4 Web Application, the <taglib> stanza must be inside a <jsp-config> stanza. Example:

Consultant, Sima Solutions
D kukreja
Ranch Hand

Joined: Jan 29, 2008
Posts: 39
this has helped
I agree. Here's the link:
subject: custom tag handler