Hello World in Struts 1
Follow this tutorial: http://www.dzone.com/tutorials/java/struts/struts-tutorial/struts-tutorial-using-eclipse-1.html
After following this, you will be able to create a project but with import error for javax.serveletapi
To resolve this, you need to install tomcat and add it to project's build path.
Install Tomcat 7 from here http://tomcat.apache.org/download-70.cgi
Add tomcat in the targetted runtime as described here http://stackoverflow.com/a/9287149/997566
Set tomcat in the java build path:
Right click on project ---> Properties ---> Java Build Path ---> Add Library... ---> Server Runtime ---> Apache Tomcat ----> Finish
Now, run the application and you should see the hello world!
After following this, you will be able to create a project but with import error for javax.serveletapi
To resolve this, you need to install tomcat and add it to project's build path.
Install Tomcat 7 from here http://tomcat.apache.org/download-70.cgi
Add tomcat in the targetted runtime as described here http://stackoverflow.com/a/9287149/997566
Set tomcat in the java build path:
Right click on project ---> Properties ---> Java Build Path ---> Add Library... ---> Server Runtime ---> Apache Tomcat ----> Finish
Now, run the application and you should see the hello world!
Comments
Post a Comment