This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet showing blank page.

 
achuthan mukundarajan
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to servlets so i saw a tutorial on the net for the basic servlets . There is the index.jsp which has the following code:




there is a GreetingServlet.java which has the processRequest code as follows:



The values from the textboxes should be shown in the servlet . But i get a blank page. Why?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you done to debug this? Is the servlet even being called? Add some logging to the servlet to see if it is, or use the debug console in the browser to observe the behavior of the requests and responses.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic