Hi guys, I'm using the jsp forward tag in a login page. The login page is in between two frames. But when the forward tag kicks in the target page loads up between the original two frames and I'm left with a 5 frame page! In html you use the target is =_parent. Is there a jsp equivalent?
forward is more of a jsp action than a tag. I wanted to correct that. By the way if your system involves frames, it needs more logic to take care of your problem( may be you can start using Struts-tiles to circumvent this problem). Kishore.
This is what I mean "between two frames" <html> <head><title>PMS</title></head> <frameset cols="15%,70%,15%" border=0 noresize="true"> <frame src="lside.html" noresize="true"> <frame src="login1.jsp" noresize="true"> <frame src="rside.html" noresize="true"> </frameset> </html> And when the page loads up after the forward in login I have something like: //this isnt the exact code by the way <html> <head><title>PMS</title></head> <frameset cols="15%,70%,15%" border=0 noresize="true"> <frame src="lside.html" noresize="true"> <frame src="index.html" noresize="true"> <frame src="main.jsp" noresize="true"> <frame src="news.html" noresize="true"> <frame src="rside.html" noresize="true"> </frameset> </html> the frames index, main, and news replace the login.jsp page. Raymond
or some such. [ March 23, 2004: Message edited by: Bear Bibeault ]
P.S. I'd advise looking into alternate mechanisms for partitioning your pages (iframes, scrollable divs, etc). Framesets are rather passe, and create all manner of headaches of which this is likely to be only your first. This assumes that you are intelligently not supporting dinosaurs such as Netscape 4.
Joined: Mar 23, 2004
Ok thanks for that guys, to be honest the frames that are causing the trouble aren't really vital in the first place, just window dressings so I'll probably just get rid of them. Thanks for your help. Case closed
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com