IntelliJ Java IDE
The moose likes JSP and the fly likes 2 custom tags in 1 page:Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "2 custom tags in 1 page:Problem" Watch "2 custom tags in 1 page:Problem" New topic
Author

2 custom tags in 1 page:Problem

Sanjay Deshpande
Ranch Hand

Joined: May 22, 2001
Posts: 111
i have 2 tags in one page to use.However, only one is getting executed...
I get following error:
Error: URI=null Line=5: Root element type is "taglib", but was declared to be "web-app".
What could be the problem?
<%@ page errorPage="errorpage.jsp" %>
<%@ taglib uri="WEB-INF/jsp/mytaglib.tld" prefix="San"%>
<html>
<body>
<San:IsNumericTag num="2.0"/>
<%out.println("After the first");%>
<San:SQLTag/>
</body>
</html>
Ivan Matmati
Ranch Hand

Joined: Feb 26, 2003
Posts: 41
could you show us your tld, I think you could have done a mistake by indicating the doctype of web application instead of tag library.Let us see!


No Gates!<p>SCPJ 1.4<br />SCWCD 1.4
 
 
subject: 2 custom tags in 1 page:Problem
 
Threads others viewed
Not able to configure taglib
Problem with taglibs
why my application can't detect struts tld files ?
JSTL EL language not resolving
Starting when tld files don't need to register in web.xml?
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture