where am i to download servlet and JSP API's from. How to include them in struts. to compile the Action sub-class you need struts-core.jar, which comes with struts, and javax.servlet package. Where can i get that package. Does it come with Tomcat?
The generally accepted best practice is to get these classes from a jar file provided by the application server to which you are deploying the application. If you're deploying to Tomcat, use Tomcat's jar file. If you're deploying to WebSphere, use WebSphere's jar file. This way you are assured that the version of the classes matches the one being used by your app server.