File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes multiple HTML popup windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "multiple HTML popup windows" Watch "multiple HTML popup windows" New topic
Author

multiple HTML popup windows

Ankit Tripathi
Ranch Hand

Joined: Oct 17, 2009
Posts: 199
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.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
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

Joined: Oct 17, 2009
Posts: 199
i am talking about popping up a servlet from a JSP.........
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ankit Tripathi
Ranch Hand

Joined: Oct 17, 2009
Posts: 199
Sir meaning was same as you replied!!!thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Help if you showed the code, I am guessing you used the same window name.

Eric
Ankit Tripathi
Ranch Hand

Joined: Oct 17, 2009
Posts: 199
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
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
'chat'

Same name.

Eric
Ankit Tripathi
Ranch Hand

Joined: Oct 17, 2009
Posts: 199
where & where???
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
myPopup('MainChatServlet', 'chat'
Ankit Tripathi
Ranch Hand

Joined: Oct 17, 2009
Posts: 199
I am not getting yet......I have also tried changing it but doesn,t work!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Did you make it unique for each window?

Eric
Ankit Tripathi
Ranch Hand

Joined: Oct 17, 2009
Posts: 199
how it can be done?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multiple HTML popup windows