• 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

Login page not completely loading after RequestDispatcher.forward is used

 
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
I have a login screen, which send the values to a servlet. In that servlet validations are done. If password is wrong, I have used RequestDispatcher.forward to forward a message and view it on that page back. The problem is i am getting the message, but the page is not loading completely, i can only see two fields and a button with white background, where as my original page has images and all. The servlet part is below



and retiving tht vaalue in jsp like this

${message}

. Can someone please point out the mistake.


Thanks and Regards.
Adeeb
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The problem is i am getting the message, but the page is not loading completely, i can only see two fields and a button with white background, where as my original page has images and all.



My be dynamic code in your JSP having some issue. It would be nice if you can paste the JSP code here.
You can also try putting messages in JSP and identify yourself.


 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the entire HTML page being sent to the browser? Or is it cut off?

If the latter, then it's likely an exception is being thrown that is preventing the page from being completely sent to the browser.

If the entire page is there and it's just the images that are not showing, then it's likely that your image URLs are not correctly formed using server-relative addressing that starts with the context path. See the JspFaq for more details.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic