Meaningless Drivel is fun!
The moose likes Struts and the fly likes Question with frames in struts/JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Question with frames in struts/JSP" Watch "Question with frames in struts/JSP" New topic

Question with frames in struts/JSP

Radha Damera
Ranch Hand

Joined: Oct 31, 2000
Posts: 35

I have a question regarding JSP & struts. In the index page, I have 3 frames - a top frame, a left frame and a
center frame. And right from index page, based on the user actions, we keep displaying new JSPs in the center frame,thus
keeping the top & left frames constant.

My requirement is that for a certain page, i shouldn't display the left the index page should have only 2 frames - top
& a 100% center frame.I tried to put an if condition saying that the left frame shld be invisible, but the problem is
that the request is not coming back to index page and the code is getting executed only when index page loads up initially. iam assuming this is the case b'se of struts - we keep fowarding the request from one page to the other and not back.

Is there a way around?should i load index page again completely?or how shld i proceed so that my if condition gets executed and only 2 frames show up.

Hope Iam clear

sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi radha

Its not the problem with struts...thats the way frames behave ..........when u click on the left frame only right frame refreshes the index page wont be reloaded again thus ur part of code wont execute ....but u can achieve using javascript ......u can hide the left frame too by using JS but u should know when to hide and all mean u should have some parameter to decide up on ............
I agree. Here's the link:
subject: Question with frames in struts/JSP
It's not a secret anymore!