![]() ![]() In the next screen, name your file as ‘helloWorld.jsp’ and click ‘Finish’. ![]() Search for ‘JSP File’, then click ‘Next’ . Right click on the pages folder, then select New -> Other The new structure of the project looks like the following: In order to organize our JSP pages, we create a new folder called ‘pages’ under WebContent so that we store all the JSP pages of the application in one place. JSP files should be created under WebContent. ![]() Here we go, the structure of the generated project looks like the following: In the final screen, make sure to check ‘Generate web.xml deployment descriptor’ checkbox, so that eclipse generates automatically the web.xml file under WEB-INF. In case you didn’t previously link apache tomcat to eclipse, then just click on “New Runtime” button and link your tomcat, in this tutorial i use Apache tomcat 7. In the next screen, fill the mandatory fields as above, you are free to choose any servlet version you want. Open eclipse, then select File -> New -> Dynamic Web Project. ![]() In this tutorial, we provide a step-by-step guide for creating a hello world web application using JSP technology. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |