File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Author

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
Rancher

Joined: Mar 06, 2001
Posts: 13459

Personally: Don't use frames. They're evil.
chanoch wiggers
Author
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="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: always displaying login.jsp in the _top frame