• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

using target tag in servlet?

 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
This tiny ad is suggesting that maybe she should go play in traffic.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic