File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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
It's not a secret anymore!