• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RequestDispatcher and Blank Page

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
The knights of nee want a shrubbery. And a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic