Forums Register Login

pageContext.forward() not working

+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 880 times.
Similar Threads
When I validate my code I hit this problem...
popup not working fine when i add table in div
A question of Sums
When I validate my code I hit this problem...
How many people share your name?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:26:51.