• 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

multiple HTML popup windows

 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my web application i am popping up servlet window with the help of window.open.but i have a problem.When i am trying to pop up the servlet window with two different windows or tabs of same browser than it is popping up only once means while i have popped up servlet from one window or tab link for servlet is not working at second tab or window.
But it's not a issue with windows of two different browsers.What is the reason behind???I am using tomcat 6.0.20 and Oracle 10g.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Servlets don't popup windows, they only responds to requests with HTML text and browsers create windows.

Try to get your idea working with a plain HTML mockup first.

Bill
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am talking about popping up a servlet from a JSP.........
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSPs don't pop up windows either -- JavaScript in an HTML page does that. Whether the HTML is generated from a servlet, or a JSP, or PHP, or Fred' Fantastic Framework is irrelevant.

Moved to the HTML forum.
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sir meaning was same as you replied!!!thanks
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Help if you showed the code, I am guessing you used the same window name.

Eric
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok.........
I think i should redefine my problem


In my web application i am popping up servlet window with the help of window.open.but i have a problem.When i am trying to pop up the servlet window with two different windows or tabs of same browser than it is popping up only once means while i have popped up servlet from one window or tab link for servlet is not working at second tab or window.
But it's not a issue with windows of two different browsers.What is the reason behind???I am using tomcat 6.0.20 and Oracle 10g.



process.jsp is the page from where i am popping up "MainChatServlet"

Directory Structure-
chat->images->abc.jpg
->src->MainChatServlet.java
->WEB-INF->classes->ankit->MainChatServlet.class
->index.html
->img.html
->theory.html
->process.jsp

index.html


Process.jsp



MainChatServlet.java



 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
'chat'

Same name.

Eric
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
where & where???
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
myPopup('MainChatServlet', 'chat'
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not getting yet......I have also tried changing it but doesn,t work!
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you make it unique for each window?

Eric
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how it can be done?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic