Not able to Compile(Error Included)
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Prashant_Bhatia
Posted On:   Wednesday, July 9, 2003 08:07 AM

Hi I have posted the message earlier also and got some resposes though not satisfied. I changed my Uploading a file code and now I have just one file. Its not compiling as well but the error I am getting is somewhat same as the previous one. This means I am definitely missing something. The errors are: E:jakarta-tomcat-4.1.24webappssparshaWEB-INFclassessparsha1uploadFileUploadBean.java:3: package javax.servlet.http does not exist import javax.servlet.http.HttpServletRequest; ^ E:jakarta-tomcat-4.1.24webappssparshaWEB-INFclassessparsha1uploadFileUploadBean.java:4: package javax.servlet does not exist import javax.servlet.ServletInputStream; ^    More>>

Hi

I have posted the message earlier also and got some resposes though not satisfied.

I changed my Uploading a file code and now I have just one file. Its not compiling as well but the error I am getting is somewhat same as the previous one. This means I am definitely missing something.

The errors are:



E:jakarta-tomcat-4.1.24webappssparshaWEB-INFclassessparsha1uploadFileUploadBean.java:3: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;
^
E:jakarta-tomcat-4.1.24webappssparshaWEB-INFclassessparsha1uploadFileUploadBean.java:4: package javax.servlet does not exist
import javax.servlet.ServletInputStream;
^
E:jakarta-tomcat-4.1.24webappssparshaWEB-INFclassessparsha1uploadFileUploadBean.java:65: cannot resolve symbol
symbol : class HttpServletRequest
location: class sparsha1.upload.FileUploadBean
public void doUpload(HttpServletRequest request) throws IOException {
^
E:jakarta-tomcat-4.1.24webappssparshaWEB-INFclassessparsha1uploadFileUploadBean.java:66: cannot resolve symbol
symbol : class ServletInputStream
location: class sparsha1.upload.FileUploadBean
ServletInputStream in = request.getInputStream();
^
4 errors


Can someone tell me, what exactly I am missing.

Any help will be greatly appreciated

Thanks in advance

Prashant Bhatia

   <<Less
About | Sitemap | Contact