File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

directing output to a frame

 
manav k
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am calling a servlet from inside a frame..but the problem is that the output from the servlet is also directed to this particular frame...how can i redirect it to any other frame or say have it display on "top"

manav
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Ranch has a naming policy, described here and "manav k" is not a valid name. Please choose one which meets the requirements.
Thanks.
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The way to direct the output from a servlet to another frame or window is to use the "target" attribute of the <a> and <form> tags. For example
<a href="/servlets/something" target=_top>Do It</a>
"_top" is a special name indicating the overall frame for the current window. Otherwise you may use the name of any window or frame that the browser knows about.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic