Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Opening new child window - Running servlet

843840Aug 24 2007 — edited Sep 3 2007
Hi

Currently , I have a javascript code that opens a child window. This child window is a Java Server Page called showdata.jsp that uses some data from the database.

I have used this function to open my page :
<script language="JavaScript">
function open_a_window(){
childwin = window.open("showdata.jsp","dataname", "height=300,width=100");
</script>
Ideally, a servlet should be executed to do the business logic and extract the data that will be displayed on showdata.jsp. Moreover, the user may perform search in the child window, to filter or find the results returned. My questions are as follows:

1. How to run servlet from Javascript that does the logic and then the results are displayed in showdata.jsp (as a child window)?

2. How to go about filtering or finding results in showdata.jsp while it is open ? what is the recommended method? because the results have a check box next to them and when user choses and closes window they are reported back to the main JSP which opened the child JSP.

Any suggestions, reading materials, code , etc is very appreciated.

Thanks in advance
Agapito
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2007
Added on Aug 24 2007
10 comments
364 views