gudii9
asked on
struts error
HI,
I was running struts example from following link
http://courses.coreservlets.com/Course-Materials/struts.html
relating to
'Processing Requests with Action Objects'.
I downloaded the zip file of source code. I imported as archive file. I see errors with HTTPServletRequest and response. I right clicked on the project and add jars from the same projecte WEB-INF/lib as in attachment. I still see the errors
Please advise on how can I resolve this issue.Any ideas, suggestions, sample code, links, source code highly appreciated. Thanks in advance
Error1.JPG
Error2.JPG
I was running struts example from following link
http://courses.coreservlets.com/Course-Materials/struts.html
relating to
'Processing Requests with Action Objects'.
I downloaded the zip file of source code. I imported as archive file. I see errors with HTTPServletRequest and response. I right clicked on the project and add jars from the same projecte WEB-INF/lib as in attachment. I still see the errors
Please advise on how can I resolve this issue.Any ideas, suggestions, sample code, links, source code highly appreciated. Thanks in advance
Error1.JPG
Error2.JPG
ASKER
even this links is close but no solution
http://www.coderanch.com/t/448303/vc/Eclipse-import-javax-servlet-http
http://www.coderanch.com/t/448303/vc/Eclipse-import-javax-servlet-http
ASKER
http://www.dzone.com/tutorials/java/struts/struts-tutorial/struts-tutorial-using-eclipse-1.html
I addd all 10 libraries as mentioned in above link. Still seeing error
I addd all 10 libraries as mentioned in above link. Still seeing error
ASKER
ASKER
http://www.rameshsengani.in/vaannila/struts/struts-tutorial/struts-tutorial-using-eclipse-1.html
above link also has similar jars
Do I need to keep javaee, servlet etc jars as well. Please advise
above link also has similar jars
Do I need to keep javaee, servlet etc jars as well. Please advise
Download required jar from following link,
http://www.findjar.com/class/javax/servlet/http/HttpServletRequest.html
http://www.findjar.com/class/javax/servlet/http/HttpServletRequest.html
add it in lib dir
ASKER
when I click above link leading to
http://www.oracle.com/technetwork/topics/index.html
any other better direct link which gives all the required jars. I wonder what all jars needs to be added for simple struts application. Please advise
http://www.oracle.com/technetwork/topics/index.html
any other better direct link which gives all the required jars. I wonder what all jars needs to be added for simple struts application. Please advise
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am struck as that link when I try to download jar is leading to oracle site. also I am not sure what all the JARS needed to remove HTTPSERVELTREQUEST and ?HTTPSERVLETRESPONSE related errors. Please advise
ASKER
servlet.jar and antlr.jar are missiong. I searched in my local machine found under c--eclipse---eclipse--plug ins---org. eclipse.to mcat_4.1.3 0.1
Added them to web-inf/lib and then right clicked on the project went to build path 'add jars'
and deployed and restarted application. Now everything worked fine
My question is
After adding JARS to web-inf/lib do i need to right click on the project went to build path 'add jars'
What is the purpose of above step, Please advise
StrutsAction.JPG
Added them to web-inf/lib and then right clicked on the project went to build path 'add jars'
and deployed and restarted application. Now everything worked fine
My question is
After adding JARS to web-inf/lib do i need to right click on the project went to build path 'add jars'
What is the purpose of above step, Please advise
StrutsAction.JPG
ASKER
Here are all JARs I added
JarList.JPG
JarList.JPG
When you are working in eclipse, that time still may require to add jars from build path,
When you deploy war in any server, that time it may refer to lib dir,
When you deploy war in any server, that time it may refer to lib dir,
ASKER
http://stackoverflow.com/questions/4284700/error-httpservletrequest-refers-to-the-missing-type-string
do I need to add JRE to IDE. How can I do that. Please advise