Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes RequestDispatcher  and Blank Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "RequestDispatcher  and Blank Page" Watch "RequestDispatcher  and Blank Page" New topic
Author

RequestDispatcher and Blank Page

Eric Baxter
Greenhorn

Joined: Jun 13, 2000
Posts: 7
Hello,

I'm trying to forward the results of a JDBC / servlet call to a JSP. Rather than going to the results JSP I view a blank page. In the address screen is the path of the URL-Pattern in the web.xml file. I'm at wits end
Thanks alot!!

JMSDemo is the context (dir just below webapps)

Starting JSP Page action tag


Web.xml lines ---


Servlet Code ---


Result -http://localhost:8080/JMSDemo/Demo (BLANK PAGE)

Thanks again!!
E


Eric Baxter
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
<servlet><servlet-name>DemoServlet</servlet-name><servlet-class>com.TestDemo.DemoServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>DemoServlet</servlet-name> <url-pattern>/Demo</url-pattern> </servlet-mapping>


You have mapped the servlet as /Demo and you are using "Demo" in following line instead of /Demo

<form name ="GUIform" method="POST" action="Demo">

Use /Demo instead of Demo and use http://localhost:8080/Demo to access this servlet.

May be this will solve the problem. If not then tell what happens when you change these things
Eric Baxter
Greenhorn

Joined: Jun 13, 2000
Posts: 7
Thank you for your help.

The answer was multipart.

When I commented out the print statement used when an exception was thrown, the page forwarded correctly.

Thanks again
 
wood burning stoves
 
subject: RequestDispatcher and Blank Page
 
Similar Threads
Servlet Mapping
forward() does not work with jsp:include
Authentication, again [not solved yet]
Named Dispatcher Issue
Servlet to servlet