Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher and Blank Page

 
Eric Baxter
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic