Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pageContext.forward() not working  RSS feed

 
Sam Gardner
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • 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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66182
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!