hi buddies
 i have just started working on jsp but i am facing one problem. once my jsp
has run on the tomcat and if after that i am changing my same jsp  to add
some more features the tomcat is not reflecting the changes. every time i
make the changes i have to rename my file to some other name, then only i
get the changes. is ther any setting in the tomcat for overcoming such
problem.
bye
surender
----- Original Message -----
From: K.S.SREEDHAR KUMAR <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 11:21 AM
Subject: plz help me out ....


> hey buddies
>
> i'm a newbie to the JSP arena.... i've just come to custom tag
> development.... i'm getting mad in deploying a sample app.... btw i'm
using
> tomcat 3.2.1 server...
>
> is there any strict naming convention for the tld file if so plz specity
> it....
>
> i'm providing u source for web.xml, tld file ,tag handler(.java) and jsp
> file with this..
>
> the directory structure which i'm having now is as follows:
>
>
> sample web application context path is : /gen
>
> tld file is in : /gen/Meta-Inf/GenTag.tld
> web.xml file is in : /gen/Web-Inf/web.xml
> tag handler class file is in : /gen/Web-Inf/classes/GenTag.class
> jsp file is in : /gen/test.jsp
>
>
> btw context path adddr is : <server-root>/webapps/gen
>
> hte error which i'm getting is::
> org.apache.jasper.compiler.CompileException:
> C:\Jakarta\jakarta-tomcat-3.2.1\webapps\gen\test.jsp(0,0) Unable to open
> taglibrary FirstTag : C:\Jakarta\jakarta-tomcat-3.2.1\webapps\gen\FirstTag
> (The system cannot find the file specified)
>
>
> all i want is this sample app should work... what ever u say i'm ready to
> accept!!!!
>
>
> TEST.JSP::
>
> <%@ taglib uri="FirstTag" prefix="test" %>
> <html>
> <body>
>
> custom action result is
> <test:gen>
> false
> </test:gen>
> hahhaha
> </body></html>
>
>
> WEB.XML ::
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE web-app    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application
> 2.2//EN"    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
>
> <web-app>
> <taglib>
>
>      <taglib-uri>
>           FirstTag
>      </taglib-uri>
>
>      <taglib-location>
>           /Web-Inf/GenTag.tld
>      </taglib-location>
>
> </taglib>
> </web-app>
>
>
>
> GenTag.tld ::
>
> <?xml version = "1.0" encoding = "ISO-8859-1" ?>
> <!DOCTYPE taglib
>   PUBLIC "-//Sun Microsystems, Inc.//DTD JSP TagLibrary 1.1 file://EN"
>        "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";>
>  <taglib>
>       <tlibversion>1.0 </tlibversion>
>       <jspversion>1.1</jspversion>
>       <shortname>FirstTag</shortname>
>
>       <tag>
>           <name>FirstTag</name>
>           <tagclass>GenTag</tagclass>
>       </tag>
>  </taglib>
>
>
>
> GenTag.java:: (TAG HANDLER)
>
> import java.io.*;
> import javax.servlet.jsp.tagext.*;
> import javax.servlet.jsp.*;
>
> public class GenTag extends BodyTagSupport{
>
>      public int doStartTag() {
>           try {
>                JspWriter out = pageContext.getOut();
>                out.print("Custom tag example " +
>                               "(coreservlets.tags.ExampleTag)");
>           } catch(IOException ioe) {
>                System.out.println("Error in ExampleTag: " + ioe);
>           }
>           return(SKIP_BODY);
>      }
> }
>
> thanx in advance
>
> regards
> ks
>
>
===========================================================================
> 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

Reply via email to