Originally posted by Desai Sandeep:
[B]Hi,
Please find the following piece of code.
I think your SessionManager would be like the LoginManager that I have shown in the above code.You can check/validate the status of the user , before forwarding it to the desired page.
Hope this helps.
Regards,
[/B]
I would like the page that I am forwarding to appear in the browser in the top window so it is the only page showing eliminating the navigation frame.
!_I_Know_Kung_Fu_!
Originally posted by maha anna:
[B]Ezra,
Use META tag trick in your forwarded page to tell the browser to show the results in one single top window. Give it a try. I think it will work. Haven't tested yet.
regds
maha anna
Got this info from an online tutorial.
I tried using the meta tag but it didn't work.
Thanks for trying...
E.E.
[This message has been edited by maha anna (edited April 26, 2001).][/B]
Originally posted by maha anna:
Ezra,
Please have a look at the demo version of my 'Resource Management' web application.
http://www.webappcabaret.com/maha/index.jsp
I have top (Navigation) and botton content frames. User can always see the top-frame menu options. But he/she can go into those options only when successfully logged into the system. If he/she fails to login, any response/message from server side will appear inside the content frame. You can play around this online demo to get a hang of it.
regds
maha anna
Originally posted by Andrew Shafer:
[B]
If I understand correctly, you have a top frame that is the navigation and then some other stuff in the bottom.
You want the top frame to be replaced with the not authorized page. You don't want it to load to the top window, but the top frame correct?
I'm not positive, but I imagine your login is in the lower frame and not in the top one or you wouldn't have this problem.
When using frames, each HTML frame is a seperate page request. Since HTTP is stateless, managing state between frames is difficult. Also, one way or another the window or target frame gets determined on the client side.
I tried searching around to see if there was a nice answer to this but couldn't find one. You might look into the <meta> approach, maybe you can put the name of the target frame instead of _top and it will work. I haven't tried anything but there might be some send redirect/javascript combo.
It would be sweet if you could do something like:
or similar with the jsp:forward, but right now it doesn't seem that will work.
I'll look at some books later and see what I can find.[/B]
Originally posted by maha anna:
Ezra,
I would like to clear this first.
1. User has to log into your system first in order to use your appln further.
2. How do they first get to login page? Is it like http://yourDomain.com/applnName/login.html ?
If so, how does this page look? 2 frames or single page?
3. You said, you have 2 frames top (all nav links) and bottom (contents). Users get to see those top and bottom frames AFTER they successfully login, or login is one of the option links in your top frame?
Please explain, the anticipated use case in little more detail.
Before I confuse you more, please clear these doubts.
regds
maha anna
[This message has been edited by maha anna (edited April 27, 2001).]
Originally posted by maha anna:
[B]Ezra,
Josh' idea is good. Here is another idea. Slightly change the Login.html itself to include an "onLoad" javascript fn, which will make this loagin page as top/only page on screen. In other words, it will break out of any frames. For testing purposes I hard-coded the url. You can change it to include dynamic domain,servertcontext etc using properties file or web.xml file.
Of course it is a Javascript solution. Depending upon your requirement you choose either Josh's or this.
regds
maha anna[/B]
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|