• Post Reply Bookmark Topic Watch Topic
  • New Topic

A problem in executing the servlet

 
manda prasad
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a servlet which generates a HTML page.The URL I use to execute the servlet is.

http://localhost:8080/Beer-v1/form.html

The following is the servlet : examplejava.java


My form.html file is below :


And my web.xml file is :



please let me know how do I get the html tags written in servlet file
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the problem you are having? I could not tell by your description what is not working for you.
 
Nitish Bahadur
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check <servlet-class>com.example.web.examplejava</servlet-class>

The code you posted uses HelloServlet.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!