are you saying that you want to use a tag class in your jsp page? The structure of using tags in a jsp page are as follows.
1. Import the tag library into the page <%@ taglib uri="/WEB-INF/some-taglib.tld" prefix="js"%> The taglib will describe the tag handler class for this library and what attributes it takes. The only place you would be importing javax.servlet.jsp.tagext.*; would be in the tag class itself, not the jsp page. 2. place the some-taglib.tld in the WEB-INF folder under your application or context. 3. Place the jar file or expanded classes for the tag under the lib/sometag.jar or classes/com/somedomain/thetag.class or what ever the appropriate path is. 4. use the tag in your jsp page with the prefix. <js:thetag> ----- Original Message ----- From: "Edward King" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 27, 2003 12:56 AM Subject: JSP Tag question > I use JDK1.4.1,I want to use JSP Tag in my JSP,so I use > import javax.servlet.jsp.*; > import javax.servlet.jsp.tagext.*; > > But when I compile it,it raise errors: > JavaScriptExampleTag.java:3: package javax.servlet.jsp does not exist > import javax.servlet.jsp.*; > ^ > JavaScriptExampleTag.java:4: package javax.servlet.jsp.tagext does not exist > import javax.servlet.jsp.tagext.*; > > Clearly,Java didn't find javax.servlet.jsp.* and import javax.servlet.jsp.tagext.*; I want to know if I need another software to support it? If do,where can I get them? > > Thanks in advance. > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com > =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
