tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reynshteyn, Leonid" <leonid.reynsht...@gs.com>
Subject RE: New user question...
Date Tue, 14 Nov 2000 15:13:08 GMT
The directive is a custom tag that Tomcat does not recognize, I think.

tag_test.jsp is a JSP file I mentioned below. It's not in C:, but in
C:/jakarta-tomcat/webapps/Root

I assume that I am not configuring it right and it can't recognize the
custom tags and gives me this error.

Here are the contents of the JSP file:
-----------------
<%@ raglib uri="/test.tld" prefix="leo" %>
<html>
<head>
<title>Example JSP with TAG Libs</title>
</head>

<p><b> Let's see if this works. </b>

<leo:mytag></leo:mytag>


<p><b> End </b>
-----------------

Thanks a lot in adavance.

-Lenny


-----Original Message-----
From: Pierre Delisle [mailto:pierre.delisle@sun.com]
Sent: Monday, November 13, 2000 7:25 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: New user question...


The error is in the first line of your JSP file 'tag_test.jsp'.

       org.apache.jasper.compiler.ParseException: C:\tag_test.jsp(0,4)
Invalid directive at...

The error message says it is a directive, but without the details, it is
hard to tell exactly what is wrong.

If you tell us what's there, we can help you one step further.

	-- Pierre

"Reynshteyn, Leonid" wrote:
> 
> I just installed Tomcat for the first time and am trying to run a simple
JSP
> that uses a very simple custom tag. When I run the JSP, I am getting the
> following Jasper compiler exception:
> 
> org.apache.jasper.compiler.ParseException: C:\tag_test.jsp(0,4) Invalid
> directive at
> org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:186) at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1073)
> 
> Here's what I did:
> ------------------------
> 1) I put the JSP file in "install_dir/webapps/Root" (simple JSPs that
don't
> use custom tags work fine from here)
> 2) I put the JSP Tag handler class in
> "install_dir/webapps/Root/Web-inf/classes"
> 3) I put the TLD file in "install_dir/webapps/Root"
> 
> Any ideas?
> 
> Thanks.
> 
> -Lenny

Mime
View raw message