aspose file tools*
The moose likes Servlets and the fly likes using target tag in servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "using target tag in servlet?" Watch "using target tag in servlet?" New topic
Author

using target tag in servlet?

Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

I recently came to know abt the target tag used in HTML.
Having known that, I was wondering if there is a similar
way of sending the response from a servlet to a new
browser window.
Basically, can I fire off a new browser window using the
response of a servlet? Just curious......
<h5>I am trying to read the servlet specs (74 pages you know),
so I thought I could ask here instead.......... </h5>
Thanks.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Satya,
I assume you want to call a servlet and this servlet should dynamically fire off a new window and write some dynamic contents. Is this what you wanted? If so the following code will work I think. I tested the functionality as a html file called fireNewWin.html.
What our servlet should do is , inside fireNewWin() method do all the out.printlns....... of all lines of this .html file.
Another better idea could be, make this .html file as .jsp file and replace the dynamic part alone with <% %> tags. Since it is tedious to do all out.printlns from servlet.
Just to make a simple test, cut and paste the commented html part alone and save as fireNewWin.html and open in a browser and see if this is what you wanted.

regds
maha anna
[This message has been edited by maha anna (edited March 30, 2001).]
 
 
subject: using target tag in servlet?