• 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

pageContext.forward() not working

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Guys,

I'm at my wits end with this. For some reason, my 'password check' page won't forward off to any other page, and I can't figure out why. If anyone can tell why this might be happening, please let me know! Thanks,

Save Pass/Userdata page:


and, the page it's supposed to forward to:


Thanks again if anyone can figure this out!
[ October 12, 2007: Message edited by: Bear Bibeault ]
 
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
It's a really really really really bad idea to put a forward in a JSP page, escpecially after already emitting some markup.

This is the sort of check you should be doing in a servlet prior to forwarding to any JSP. It's likely you're getting an exception that's buried somewhere in your logs.

You might find this article on web app structure helpful.
[ October 12, 2007: Message edited by: Bear Bibeault ]
 
Sam Gardner
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I'm pretty new to beans. How would I get the form that I take the username/password from to set the session properties correctly if I'm not using a "save" jsp page of some sort?

I'm just going based on the structure of a tutorial I found online somewhere, so if there's a better way to do this I'd love to hear about it.

Thanks,

Sam
 
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic