Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

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
Avatar of gudii9
gudii9
Flag of United States of America image

ASKER

i was reading here


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
Avatar of gudii9

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
Avatar of gudii9

ASKER

Even this link I followed has same jars

http://learntechnology.net/content/struts2/struts2_crud.jsp
Avatar of gudii9

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
Avatar of Manish
add it in lib dir
Avatar of gudii9

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
ASKER CERTIFIED SOLUTION
Avatar of Manish
Manish
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

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
Avatar of gudii9

ASKER

servlet.jar and antlr.jar are missiong. I searched in my local machine found under c--eclipse---eclipse--plugins---org.eclipse.tomcat_4.1.30.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
Avatar of gudii9

ASKER

Here are all JARs I added
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,