Servlet Question - 90% sure hasn't been asked before

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ACO

Servlet Question - 90% sure hasn't been asked before

Post by ACO » Mon Nov 18, 2002 1:40 pm

Hi Folks,

I'm trying to set up a simple databased servet - based on the servlet examples.

I've got a database that returns an average value for every month of the year from a database (each of which when clicked on will go down so that every day of that month is visible). I've recreated both the WebHit class files and WebHitDataSet file (both of which work well together).

My problem comes with the WebHitChart file (or my equillant of it - both fail to compile for the same reason).

I don't seem to be able to find the javax.servlet files - i've done an API serach but they're not in 1.4 - but the sun website does talk about them - but not where they are, so what do i need to set my classpath to/download them from?

ACO

Re: Servlet Question - 90% sure hasn't been asked before

Post by ACO » Mon Nov 18, 2002 2:55 pm

Sorry, i'm a bit dimm.


solved that one now....

Richard Atkinson

Re: Servlet Question - 90% sure hasn't been asked before

Post by Richard Atkinson » Mon Nov 18, 2002 2:56 pm

The javax.servlet.* packages are part of J2EE not the standard JDK. You can either download the J2EE SDK from Sun (http://java.sun.com/j2ee/download.html) or you can probably find the classes bundled as a part of your application server / servlet engine. With Tomcat 4.x for example they are in [TOMCAT_HOME]/common/lib/servlet.jar.

Regards,
Richard...

ACO

Re: Servlet Question - 90% sure hasn't been asked before

Post by ACO » Mon Nov 18, 2002 3:56 pm

Thanks for that, it was actually in my JSP, there was just an mistake in the classpath they described.

Thanks for your help.

Locked