This is related to another issue
https://coderanch.com/t/105180/vc/WTP but I thought I would rephrase the subject to make it clearer.
I'm running Eclipse with WTP and
Tomcat. I have a
JSP page that opens an http connection to another web server. I'm using Jakarta Common's httpclient library. I added the .jar to the project and I'm able to use the objects in the library without problems when composing the JSP. Autocomplete works ok and I don't get any errors.
But when I try to run the JSP on Tomcat inside Eclipse I get several errors like
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated
servlet error:
Only a type can be imported. org.apache.commons.httpclient.HttpClient resolves to a package
Generated servlet error:
Only a type can be imported. org.apache.commons.httpclient.HttpConnection resolves to a package
I'm almost sure that I have to include the jar file somewhere for Tomcat to be able to use it when compiling the JSP but I'm not sure where. Can anyone help me with this?
Thanks