Solved

Open a new window from a jsp page

Posted on 2003-12-05
11
416 Views
Last Modified: 2010-04-01
hello,

i create a web application in jsp with servlet. i want to open a new window from one of my pages when there is a click on a button. i want to have both windows on my screen : the first one which calls the other and the new one. i may send parameters to the second window and i get results from this window.
is it possible to do that ? if it is, how should i do ?
0
Comment
Question by:sroz
  • 3
  • 2
  • 2
  • +2
11 Comments
 
LVL 15

Expert Comment

by:jimmack
Comment Utility
You mean that you want the first window to open a second window and then when you type things in to fields on the second window, results are displayed on the first?

No it's not possible.  Each window (browser instance) has to request data from the server, so the server can't "push" information to the window.

I suppose you could do it by getting the page on the second window to auto-refresh, but it's probably not quite what you want (and it's not a very good solution).
0
 

Author Comment

by:sroz
Comment Utility
i have a window with inputs to create PERSON. one of the field(COUNTRY) is a foreign key and i want to put a button to help users. when they click on the button, i open a new window with the list of all countries there are in the database. the list is an array. when then select one line by clicking on it, i want to put the name of the country in my first window and close the second one. i have an aspx model where it's done but i don't manage to translate it into jsp.
0
 
LVL 27

Expert Comment

by:rrz
Comment Utility
I am reading the question differently than jim.  
I think yes, there is a solution, but it is a javascript solution and not JSP.

window.open("yourSecondPage.jsp?person=john",....................  

Please address jim's  comment and give more info, then we can sort this out.

0
 
LVL 14

Expert Comment

by:kennethxu
Comment Utility
It's not straightforward, but I too think it is possible with javascript. have a look at this:
http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_20682698.html
and let us know if you have further enquires.
0
 
LVL 14

Expert Comment

by:kennethxu
Comment Utility
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 15

Expert Comment

by:jimmack
Comment Utility
We're all on the same track now ;-)

I also think the solution you want is probably best done with JavaScript (I understand the capabilities, but not the technicalities).

The other alternative would be to populate a drop down list for the country and just use this instead of a popup.
0
 
LVL 14

Expert Comment

by:kennethxu
Comment Utility
suggestions was given by a number of members. asker never follow up, then ask for delete with no reason.

I would recommend: points to rrz
0
 

Author Comment

by:sroz
Comment Utility
sorry, i didn't remember this question and i don't know what i did about this. i stopped programming with jsp, now i only do sql. so i'm not sure i can give points.
0
 
LVL 27

Expert Comment

by:rrz
Comment Utility
>so i'm not sure i can give points  
If that is the case, then  Ok  
>- PAQ-ing the question and refunding points
0
 

Accepted Solution

by:
PashaMod earned 0 total points
Comment Utility
Closed, 200 points refunded.
PashaMod
Community Support Moderator
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now