Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple HTML popup windows

 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • 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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
i am talking about popping up a servlet from a JSP.........
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Sir meaning was same as you replied!!!thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • 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
  • 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
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'chat'

Same name.

Eric
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where & where???
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
myPopup('MainChatServlet', 'chat'
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not getting yet......I have also tried changing it but doesn,t work!
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
how it can be done?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic