Liwen Chen wrote:

> I embed a servlet tag in a file with extension .shtml and it works fine for
> JRun 2.3.3 and IIS 4.0 combination. When I try to load it for Tomcat 3.1,
> it doesn't work. The servlet tag is not recognized by Tomcat. I then
> downloaded
> ApacheJSSI and put the jar file under <Tomcat_root>/lib and add it to my
> classpath.

On Windows systems, Tomcat does *not* currently add all the JAR files in
%TOMCAT_HOME%\lib to the class path.  You need to add it yourself.
Alternatively, you could put the JSSI JAR file in the WEB-INF/lib directory for
your web application.

Also, you should know that others have reported problems using JSSI under
Tomcat because JSSI is based on the servlet 2.0 API, and several important
things have changed since then.  You might consider using <jsp:include> to
accomplish pretty much the same result.

> I also modified the web.xml file to add in a servlet-mapping
> which
> mapping .shtml to org.apache.servlet.ssi.ServletTagHandler. But when I try
> to load it, tomcat told me that the class
> org.apache.servlet.ssi.ServletTagHandler
> cannot be found.
>
> Help, please!
>
> Liwen
>

Craig McClanahan


>
> ----- Original Message -----
> From: "Preston L. Bannister" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 12, 2000 2:05 PM
> Subject: Re: Refreshing jsp page...
>
> > From: Liwen Chen
> > > is it good for me to keep the information in a database
> > > and use a servlet to retrieve real-time information and
> > > store them in it. then for the jsp file, it just retrieves
> > > data from database?
> >
> > Unless you have some reason to want to persist the data,
> > I cannot see any reason to write it into a database.
> >
> > I'm guessing that you want to cache the data in a class
> > instance stored in the session.  The question is when to
> > update this information.  The answer depends on the time
> > required to perform update from the remote(?) source.
> >
> >
> ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to