permaculture playing cards*
The moose likes JSP and the fly likes submit values to Popup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "submit values to Popup" Watch "submit values to Popup" New topic

submit values to Popup

Praveen K P

Joined: Aug 11, 2005
Posts: 3
Hi Everybody,
I am facing with a problem where I need to pass information from my parent page to a popup window. The scenario is like this:
In my parent page I have a lot of check boxes. When I click on a button, i need to submit the values of the checkboxes that are selected, to an action class, but the parent page should not get submited.

Is there any way I could handle this.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60817

"Praveen K P ",

You have already been asked once (here) to change your display name to conform to JavaRanch standards. This is not optional.

Visit JavaRanch Naming Policy and adjust your display name to match it prior to your next post

Accounts with invalid display names are closed.

Forum Bartender

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ajay Krihnamurthy

Joined: Aug 24, 2005
Posts: 8
hi u have to use the URL rewrite process to solve ur problem.. please go thru this sample code
function openPopup() {
var s = "/popup.jsp?prodId="+document.frm.prodId.value;,"Popup", "top=0,left=0,toolbar=0,status=0,menubar=0,scrollbars=1,resizable=0,width=400,height=500");

} u know the above one is the javascript to open the popup window. There u can see a product value (ie from ur checkbox .. u have to split the selected checkbox id values with "," like 12,34,36). In the popup.jsp u can get the values using request.getParameter("prodId").

Suppose if u are using the using Servlet for Popup u can get the value with in the doGet() method ..

hi re let me know ur reply in

hi.. java is not a product it is an Industry
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60817

Ajay, JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

Please read this for more information.

Forum Bartender
I agree. Here's the link:
subject: submit values to Popup
Similar Threads
Popup window question
input from a new window
Passing parameters between pop window JSP page and parent JSP page
Help on popup windows
setting hidden field value using javascipt