The moose likes Servlets and the fly likes servlet showing blank page. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet showing blank page." Watch "servlet showing blank page." New topic

servlet showing blank page.

achuthan mukundarajan
Ranch Hand

Joined: May 30, 2012
Posts: 79
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

Joined: Jan 10, 2002
Posts: 60774

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: servlet showing blank page.
Similar Threads
Problem with accessing servlet from browser
/test/GreetingServlet doesn't work
/test/GreetingServlet doesn't work
call Jboss rule from jsp or java servlet
Accessing servlet