pro_jsp thread: PageContext.forward(),sorry.
hi guys, it turns out, this problme has to do with the page i forward too...
what happend was in Test.jsp, I did pageContext.forward("Genearl.jsp")....
and in General.jsp, i have a script in the head section for jumping out of a
frame if it is in other's frame..
so i did
<html>
<head>
<title>Console</title>
<script>
if (parent.frames.length > 0) {
parent.location.href = self.document.location
}
</script>
it's this script that's causing the problem....if it jumps out of the
frame...somehow, it gets back to test.jsp which used pageContext.forward()
and since this General.jsp does not have the paraemters the test.jsp is
expecting..it display null.... If I remove the script...everything is
fine...just that my page is in another's frame, which is quite annoying....
so is there anyway to jump out of the menu without causing
pageContext.forward() to getback the orignal page??? thanks..
note*, in my General.jsp, I don't have any pageContext.forward()...it's
really just a staic page with limited jsp involved...and yet...it will get
back to whereever forward to it uisng pageContext.forward()....