What are you compiling it against? Where did you get your JSP API classes?
If you are using a JSP 1.0 it wont include these classes. You can get them
from http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/
as part of the tomcat binary release.
--
dIon Gillard, Multitask Consulting
Work: http://www.multitask.com.au
NetRexx: http://www.multitask.com.au/NetRexx.nsf
Deepak Kumar <[EMAIL PROTECTED]>
Sent by: A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
06/01/2001 11:31 PM
Please respond to A mailing list about Java Server Pages specification and
reference
To: [EMAIL PROTECTED]
cc:
Subject: Error during compilation
Hi
When i am compiling a java file i am getting the
following error.
HelloWorldTag.java:4: package javax.servlet.jsp.tagext
does not exist
import javax.servlet.jsp.tagext.*;
my java file is
package com.acme.tag;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
/**
* A simple Tag that displays a Hello World message.
* @author Magnus Rydin
*/
public class HelloWorldTag implements Tag
{
private PageContext pageContext;
private Tag parent;
/**
* Constructor
*/
public HelloWorldTag()
{
super();
}
/**
* Method called at start of Tag
* @return either a EVAL_BODY_INCLUDE or a SKIP_BODY
*/
public int doStartTag() throws
javax.servlet.jsp.JspTagException
{
return SKIP_BODY;
}
/**
* Method Called at end of Tag
* @return either EVAL_PAGE or SKIP_PAGE
*/
public int doEndTag() throws
javax.servlet.jsp.JspTagException
{
try
{
pageContext.getOut().write("Hello World!");
}
catch(java.io.IOException e)
{
throw new JspTagException("IO Error: " +
e.getMessage());
}
return EVAL_PAGE;
}
/**
* Method called to releases all resources
*/
public void release() {}
/** Method used by the JSP container to set the
current PageContext
* @param pageContext, the current PageContext
*/
public void setPageContext(final
javax.servlet.jsp.PageContext pageContext)
{
this.pageContext=pageContext;
}
/** Method used by the JSP container to set the
parent of the Tag
* @param parent, the parent Tag
*/
public void setParent(final
javax.servlet.jsp.tagext.Tag parent)
{
this.parent=parent;
}
/** Method for retrieving the parent
* @return the parent
*/
public javax.servlet.jsp.tagext.Tag getParent() {
return parent;
}
}
>From where i can get javax.servlet.jsp.tagext class
thanks in advance.
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets