my dog learned polymorphism*
The moose likes Servlets and the fly likes always displaying login.jsp in the _top frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "always displaying login.jsp in the _top frame " Watch "always displaying login.jsp in the _top frame " New topic

always displaying login.jsp in the _top frame

Aleksey Matiychenko
Ranch Hand

Joined: Apr 03, 2001
Posts: 178
Hi we need to figure out a way to display our login.jsp for a web application always in the main frame. RIght now the login.jsp will always appear in the frame in which the protected resource is located.
Any ideas?
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Personally: Don't use frames. They're evil.
chanoch wiggers
Ranch Hand

Joined: May 24, 2001
Posts: 245
you can set a javascript that checks if the current frame is the top frame and if not set the src property of the top frame to equal the source of this one.

chanoch<p><a href="" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
I agree. Here's the link:
subject: always displaying login.jsp in the _top frame
Similar Threads
Forwarding responses to frames
How do you make a frame 'Always on Top'?
System Modal Frame
Http status 404 resource not available