Thursday, May 14, 2015

Day 3

Today I went through a tutorial that taught me how to use servlets. The name of the site is Crunchify and it uses a JSP-servlet example to show you how to do this. This site gives you step-by-step instructions on how to do this...here is the link to that page:

http://crunchify.com/servlet-tutorial-getting-starting-with-jsp-servlet-example/

While going through this, I encountered a couple problems. Initially, the tutorial asks you to create a dynamic web project. Although this sounds very easy (and I thought it would be), I had some issues doing this. When I attempted to create a new project, there was no option to create a dynamic web project. I tried creating various different types of projects to try to find something that looked similar to what the tutorial wanted, but to no avail.

My problem? I had the wrong version of Eclipse that was required to do what the tutorial was asking.
When downloading Eclipse, ensure to download the Eclipse IDE for Java EE developers, not the Eclipse IDE for Java developers like I did. This may help you solve a few issues like it did for me.

Another problem I faced was that after creating the dynamic web project and completing the first few steps, I realized that I didn't have web.xml file. To solve this problem, you can go to the personality insights code and copy its web.xml file. You can then copy and paste the code from the tutorial into there. This helped me solve my problem and hopefully if you encounter the same one in your project, this will help you.

Lastly, I learned that I needed to download a server to complete this tutorial. You can follow the instructions on the link below to do this. You can download the tar.gz rather than the zip like the link says.

http://crunchify.com/step-by-step-guide-to-setup-and-install-apache-tomcat-server-in-eclipse-development-environment-ide/


No comments:

Post a Comment