Reputation: 5504
I just started writing a basic program for structs, i did installed tomcat and set the CATALINA_HOME to - C:\Program Files\apache-tomcat-7.0.41
and set the path variable to - %CATALINA_HOME%\bin;
i have all the jar file of structs in my build path.
But when i try to write Action class with execute method and HttpServletResponce, HttpServletRequest as its parameters i am getting an error saying HttpServletRequest cannot be resolved to a type.
I did added the project to server by right click on server and going with add or remove option.
Do i need to do anything else to over come this error..
Please Advice, any guidance/Help is really appreciated.
Thanks, Tom
Upvotes: 0
Views: 1072
Reputation: 159754
javax.servlet.http.HttpServletRequest
is contained within the file servlet-api.jar
which is located in apache-tomcat\lib
which can be copied to the classpath
Aside: Build managers are a much cleaner way of managing such dependencies, for example
Upvotes: 1