• Post Reply Bookmark Topic Watch Topic
  • New Topic

Newbie Servlet question

 
Scott Matthews
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So far in java, I have only written applications. Now I want to try writing servlets. I have looked at some source code examples in books. I understand what they are describing in the coding examples they show.
I have tried compiling one of the programs and I am getting a lot of errors. I assume that I need additional jar/class files to make them compile.
Also, I see in the books that I need a "servlet" engine once I am able to compile the programs. The books give Tomcat as an example of a servlet engine.
What do I need to do in order to be able to:
1. Compile a java servlet file?
2. Run a java servlet file? (Can you recommend a servlet engine)

Sorry for greeness of the question.
 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Download tomcat and installed it. Configuration is kinda complex but you will get it. Read tomcat docs follow how to set tomcat path? Once path is set, try their sample examples. When you see their example is working. Write your own. Goodluck BK.
What do I need to do in order to be able to:
1. Compile a java servlet file?
2. Run a java servlet file? (Can you recommend a servlet engine)
Sorry for greeness of the question.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!