Help..help..help...with popup

I need to know how to pass values from popup box to jps calling it. Popup window has many checkboxes. Once user click Done, those values should be displayed in a text field in the parent window. So far, I can only get it to reload within the popup window. I have included the codes, please tell me what I have done wrong...please..
//jsp1 will create a popup window if user click on address link
<TD align="right" width="106">Address Book</TD>
//jsp2 is the popup window
<FORM name="address" method="post" action="ComposeMessage.jsp">
<input type=submit name=insertAddress value="Insert Addresses">
<table align=left width=350>
<tr>
<td width="30"><b>To</b></td>
<td width="100"><b>CC</b></td>
<td width="117">First</td>
<td width="119">Last</td>
</tr>
     <%
     while(rs.next())
          { %>
          <tr onMouseOver="bgColor='cyan'" onMouseOut="bgColor='white'">
<td width="30"><input type="checkbox" name="mailTo" <%=toggleValue%> value='<%=rs.getString("lastName")%>'></td>
<td width="100"><input type="checkbox" name="mailCC" value='<%=rs.getString("lastName")%>'></td>
<td width="100"><%=rs.getString("firstName")%></td>
<td><%=rs.getString("lastName")%></td>
          </tr>
     <%          
     %>
     </table>
     </form>
//jsp1 codes to display values passing from jsp2
<%
     if (request.getParameter("mailTo") != null)
     String[] address = request.getParameterValues("mailTo");
     for (int i = 0; i < address.length; i++)
     {%>
          <%=address%>
<%
Is there anything wrong with these codes? anyone?

I hope I got everything here...
JSP1 will look for addr1, addr2, city, state, country in the first run. No values will be there, so they will be "". User will fill addr1, addr2, city, state in JSP1 and press the GoToCountry button. It will submit all the information filled in to JSP2 (Country.jsp)
Country.jsp will pull the submit value...if it is submit then it will forward to your final page. Otherwise, it will have a field for country input, but place all other variables into a hidden field. So, when you submit there, it will call Address.jsp (JSP1) again, and this time you will have values retrieved...and you would place into the fields...this time when you 'submit', you will goto your processingPage.jsp.
HOPE I HAVE NOT CONFUSED YOU...but take a look.
JSP1: Address.jsp
String addr1 = request.getParameter("addr1");
String addr2 = request.getParameter("addr2");
String city= request.getParameter("city");
String state= request.getParameter("state");
String country= request.getParameter("country");
***if each is equal to null, set to ""***;
<form name="callcountry" action="country.jsp">
<input type="text" name="addr1" value="<%=addr1%>" />
<input type="text" name="addr2" value="<%=addr3%>" />
<input type="text" name="city" value="<%=city%>" />
<input type="text" name="state" value="<%=state%>" />
<input type="hidden" name="country" value="<%=country%> />
<input type="submit" name="submitPage" value="GotoCountry" />
<input type="submit" name="submitPage" value="submit" />
</form>
JSP2: Country.jsp
String action=request.getParameter("submitpage");
if action.equals("submit")
<jsp:forward page="processingPage.jsp" />
String addr1 = request.getParameter("addr1");
String addr2 = request.getParameter("addr2");
String city= request.getParameter("city");
String state= request.getParameter("state");
String country= request.getParameter("country");
***if each is equal to null, set to ""***;
<form name="callcountry" action="address.jsp">
<input type="hidden" name="addr1" value="<%=addr1%>" />
<input type="hidden" name="addr2" value="<%=addr3%>" />
<input type="hidden" name="city" value="<%=city%>" />
<input type="hidden" name="state" value="<%=state%>" />
<input type="text" type="hidden" value="<%=country%> />
<input type="submit" value="fromCountry" />
</form>

Similar Messages

  • My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to lissen I had to put on loud speaker or to use handsfree please help me out with this problem if some body have answer?

    My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to listen I had to put on loud speaker or to use hands free please help me out with this problem if some body have answer?

    Hi Venkata from NZ,
    If you are having an issue with the speaker on your iPhone, I would suggest that you troubleshoot using the steps in this article - 
    If you hear no sound or distorted sound from your iPhone, iPad, or iPod touch speaker - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Hi Friends... I'm trying to delete a back-up file on mu TC but I get the message "The operation could not be completed because the item "bands" is in use. I'd like to start the Back from scratch, could help me out with deleting the current file?

    Hi Friends...
    I’m trying to delete a back-up file on mu TC but I get the message “The operation could not be completed because the item “bands” is in use. I’d like to start the Back from scratch, could help me out with deleting the current file?

    Sorry, I am very confused. I asked the following question....
    Is this the only backup file on your Mac, or do you have other backup files and data on the Time Capsule disk?
    The answer that you gave was....
    This is the only one
    Now you are saying that....
    But I have lots of other files on Time Capsule! The back up file is only one of them.
    Can you clarify, please?

  • TS4040 I assumed this would help my problem with not being able to open apps like Preview or TextEdit since I installed Mountain Lion. Instead, first I'm prompted to enter a password, then once I do that, I get an error box telling me the Library needs re

    I assumed this would help my problem with not being able to open apps like Preview or TextEdit since I installed Mountain Lion. Instead, first I'm prompted to enter a password, then once I do that, I get an error box telling me the Library needs repairing. So I click on Repair, and once again I'm prompted for a password, which I enter, then the same error box opens, and so it goes. Can anyone help me with this problem? I'd greatly appreciate it.
    Thor

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Step 1 should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary, and if everything is working as expected after step 1.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Hi, somebody can help to me with a ringtone, I bought a Ringtone on my iPod but is not on my iPhone, is possible to have in the other devices? If is possible please tell me how can I download this ringtone again. Thank You!

    I am not able to download again the ringtone that I have purchase... I am little angry because is not possible that something like a. Ringtone is a hard ditching to download again. Please help to me with this. Thank you!

    Ringtones (and audiobooks) are currently a one-time only download. If you still have it on your iPod then you should be able to copy it over to the Tones part of your computer's iTunes library via File > Transfer Purchases (File > Devices > Transfer Purchases on iTunes 11) and you can then sync it to your iPhone

  • I have several issues that I hope you can help me out with. I am a professional photographer with a Mac with OS X 10.9.4: - I can only make ONE contact sheet in CS6 (from AUTOMATE) from pictures indicated in Bridge. If I want to make another contact sheet

    I have several issues that I hope you can help me out with. I am a professional photographer with a Mac with OS X 10.9.4:
    - I can only make ONE contact sheet in CS6 (from AUTOMATE) from pictures indicated in Bridge. If I want to make another contact sheet I need to shut down and restart CS6.
    - Camera RAW: if I change any setting in Camera RAW (except exposure), having first optimized the exposure, the exposure will automatically return to zero. Sometimes when I've set exposure and cropped the picture in Camera RAW Plug-In, the effects are lost just by opening the picture in CS6.
    - Sometimes if I crop a picture in Camera RAW, it may be impossible to open it again from Bridge!
    - I cannot do lens corrections in Camera RAW, at all. The Camera RAW comment is that "it cannot load the correct lens type". Why?

    Are you writing that when you select  a large number of images in the bridge  like a hundred thumbnails  when you then use Bridge menu Tools>Photoshop>Contact Sheet II that Photoshop only produces a single contact sheet for the first few thumbnails and fails to produce additional contact sheets for the other selected thumbnails? Photoshop contact sheet II script should create as many contact sheet as needed  for the numbers of thumbnails selected.  Perhaps the script is hung or you have exhausted  your machine resources.
    ACR Crop tool does not crop the RAW file it records crop settings to be used during the conversion process.    Camera RAW DATA is not altered.  The only changes made to RAW Files is ACR Metadata may be added.  Anything you do in ACR can be un-done in ACR.    If you can not open a RAW File in ACR the Files is either corrupt or from a new camera ACR does not support yet.  ACR should not corrupt RAW files.
    If you do not have a lens profile for ACR I think you should still be able to do lens correction manually in ACR.
    Some of what you write I don't follow could you post some screen captures of your problems often a picture helps.

  • HT4972 the apps weve downloaded are not working.  please help,  extremely frustrated with our ipod 4

    the apps we have downloaded are not working,  please help,  extremely frustrated with our ipod 4

    See my previous reply for for the apps closing.
    For the wifi problem:
    Does the iOS device connect to other networks?
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect OK before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network       
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • Hi, I would like to synchronize the calendar's items of my iPad Mini with my MacBook Pro. At today I can only do the reverse operation (from MacBook Pro to iPad Mini). Can you help me maybe with a little tutorial or something? Many Thanks.

    Hi, I would like to synchronize the calendar's items of my iPad Mini with my MacBook Pro. At today I can only do the reverse operation (from MacBook Pro to iPad Mini). Can you help me maybe with a little tutorial or something? Many Thanks.

    Hello there Tonynos.
    The following Knowledge Base article should help with guiding you on how to synchronize information from your iOS device to your computer:
    iOS: How to transfer or sync content to your computer
    http://support.apple.com/kb/HT1296
    Thanks for reaching Apple Support Communities.
    Cheers,
    Pedro D.

  • Firefox is not able load any websites but others programs can. i tried everything given in the support forum but nothing worked out. so can you please help me out with it?

    firefox is not able to load any websites... i tried everything given in the support forum under the topic firefox is not able to load any websites but other programs can.. but still i am facing the same problem. so please help me out with this issue!!

    firefox is not able to load any websites... i tried everything given in the support forum under the topic firefox is not able to load any websites but other programs can.. but still i am facing the same problem. so please help me out with this issue!!

  • Please help me out with some fundamentals in BW

    Hello,
    Please guide me regarding the below mentioned questions.
    1. what is the key date in query designer.
    2. when do we perform attribute change run
        like once the master data is loaded then we perform attribute change run and load the transactional data ?
    3.what is the disadvantage of using aggregates.
    4. what is full repair options?
    please help me out with these questions

    HI,
    Repair full request :
    If you indicate a request in full update mode as a repair request, then it is able to be updated in all data targets. This is also true if they already contain data from initial runs or deltas for this DataSource / source system combination, and they have overlapping selections.
    Consequently, a repair request can be updated at any time without checking each ODS object. The system supports loading in an ODS object by using the repair request without having to check the data for overlapping or request sequencing. This is because you can also delete selectively without checking an ODS object.
    Posting such requests can lead to duplicate data records in the data target.
    Hierarchy/attribute change run after loading master data;
    When hierarchies or attributes of characteristics change, the aggregate affected by the change can be adjusted manually or calculated automatically in process chains.
    Aggregates:
    Aggregates are materialized, pre-aggregated views on InfoCube fact table data. They are independent structures where summary data is stored within separate transparent InfoCubes. The purpose of aggregates is purely to accelerate the response time of queries by reducing the amount of data that must be read in the database for a given query navigation step. In the best case, the records presented in the report will exactly match the records that were read from the database.
    Aggregates can only be defined on basic InfoCubes for dimension characteristics, navigational attributes (time-dependent and time-independent) and on hierarchy levels (for time-dependent and time-independent hierarchy structures). Aggregates may not be created on ODS objects, MultiProviders or Remote Cubes.
    Queries may be automatically split up into several subqueries, e.g for individual restricted key figures (restricted key figures sales 2001 and sales 2002). Each subquery can use one aggregate; hence, one query can involve several aggregates.
    If an aggregate has less than 15 components, BW 3.x puts each component automatically into a separate dimension that will be marked as “line item” (except package and unit dimension); these aggregates are called flat aggregates. Hence, dimension tables are omitted and SID tables referenced directly.  Flat aggregates can be rolled up on the DB server (i.e., without loading data into the application server). This accelerates the roll up (hence the upload) process.
    Disadvantage : The more aggregates exist, the more time-consuming is the roll-up process and thus the data loading process; the change run is also affected.
    Hope this info Helps.
    Thanks,Ramoji.

  • NEED HELP IN MATRIX WITH GROUP REPORT

    Dear All,
    I need small help in MATRIX WITH GROUP REPORT In Report Builder Test Report
    In my report, having periods as rows and location as columns as shown below,
    1) LOC-A
    JAN-10 FEB-10
    ITEM-GROUP -1 1 2
    ITEM-GROUP-2 3 4
    ITEM-GROUP 3 5 6
    2) LOC- B
    MAR-10 APR-10
    ITEM-GROUP -1 7 8
    ITEM-GROUP-2 9 10
    ITEM-GROUP-3 11 12
    But comming to my requirement, the periods should be in fix in matrix as shown below
    1) JAN-10 FEB-10 MAR-10 APR-10
    LOC-A
    ITEM-GROUP -1 1 2
    ITEM-GROUP-2 3 4
    ITEM-GROUP 3 5 6
    LOC- B
    ITEM-GROUP -1 0 0 7 8
    ITEM-GROUP-2 0 0 9 10
    ITEM-GROUP-3 0 0 11 12
    I am unable to get this kind of output format
    Please kindly waiting for reply from our team....
    Regards
    krishna.P

    For the periods, create a seperate dummy query and then use it as column group in the multi query matrix.

  • Please help me out with the function code of print option in module pool

    please help me out with the function code of print option in module pool, along with CASE condition.
    regards,
    asif

    Hi
    you can use the Function module
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        destination            = 'LP01'                       "'Printer name
        list_name              = 'TEST'
        list_text              = 'SUBMIT ... TO SAP-SPOOL'
        immediately            = ' '
        line_size              = '2000'
        no_dialog              = 'X'             "pass space to Pop screen for Print option
      IMPORTING
        out_parameters         = wa_pri_params
        valid                  = w_valid.
    "next call below things
      NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params.
         "and try to Print the values inside the new-page
      NEW-PAGE PRINT OFF.
    Prabhudas

  • HT1926 get the following message when trying to download iTunes, " program C:\program files (x86)\itunes\ituneshelper.exe"  R6034  attempt to load the C runtime library incorrectly, any help or experience with this?

    get the following message when trying to download iTunes, " program C:\program files (x86)\itunes\ituneshelper.exe"  R6034  attempt to load the C runtime library incorrectly, any help or experience with this?

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99280)

  • I'm help a friend with a new 4S iPhone.  He's converting from an old 3GS.  We've gone throughout the activation, update to iOS 5.0.2 and restored.  Now I'm surprised to find that the Facetime app is not on his new 4S iPhone.  How do we fix this?

    I'm helping a friend with a new 4S iPhone.  He's converting from an old 3GS.  We've gone throughout the activation, update to iOS 5.0.2 and restored.  Now I'm surprised to find that the Facetime app is not on his new 4S iPhone.  How do we fix this?

    I would suggest you read the user guide.  There IS no Facetime App for the iPhone.
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf
    < Edited By Host >

  • I received an email telling me that my icloud storage is almost full.  I need to upgrade to the next level.  Can someone help me out with this?

    I received telling me that my icloud storage is almost full.  I need to upgrade my storage.  Can someone help me out with this.  I understand that the 20 GB is only .99 per month.  Just hoping this would be enough for me.  I back up 2 ipads and my iphone on the same computer.  Any help you can give me would be appreciated.  Thank you.

    Okay.
    I responded as I did because you wrote, "I have 2 ipads and my iphone that I back up on one computer"
    No worries here.
    But hopefully you get/got it sorted.
    Any issues, post back.

Maybe you are looking for

  • How do I stop the addition of a tag in the file "...might be blocked to help protect computer."?

    Firefox 8.0 I used the Google search to look for pictures. When I find what I am looking for, I download them to my local hard drive. At a later time when I try to view the picture, I get a dialog that asks me if I would like to open this file (as it

  • I want to configure my email live adress in my iPhone

    I'm trying to configure my email account in my iPhone but I couldn't. I try to make it with exchange and outlook. Could somebody tell me how I have to configure it my email address is live.com.mx

  • Block Service Entry Sheet Printing

    Hi expert, I want to ask about service entry sheet printing. When I created service entry, I can print the entry sheet even before I release it. My question is : how to block entry sheet printing if it hasn't been released? And my next question is :

  • Blue Tooth even worse after update

    Blue Tooth connection does not work at all now after new update. Was working with new blue tooth speaker before pc only update. What the? Serious sony fan saying **bleep**? What am I missing?

  • Project administration & system role

    Dear All, we are working with SAP ecc 6.0 implementation project . We r having solution manager 4.0. Our development system is having clients 220 as golden client, 230 the development client and 200 client is used as sandbox. The development team is