Problem with Pop up windows and struts

Hi
I have problem in working with pop-up windows and struts.
I have parent page which basically lists some data and has a button for adding new record. when I press that button a child windndow will be opened for data entry. The child window has submit button to save data.
when I press the button for save, It will go to action class and saves it in a database and forwards a new page.
but I do not want to forward any new page. If any exception is raised during database saving, a message should be showed in child window otherwise the child window should close and the parent window should get refreshed.
Can any one write me how we can handle this in struts.
Thanks in Advance,
SR

This has nothing to do with struts, you can do the same with some plain JavaScript. Do the following...
1) On error, forward to a error page
2) On success, forward to a temp.html page.
The code in temp.html would be like this
<html>
<head><script>
window.opener.reload();
self.close();
</script></head>
<body>Closing...</body>
</html>Cheers
-P

Similar Messages

  • Having trouble with pop-up windows and ads for MacKeeper

    I've been having trouble with pop-up windows and ads for MacKeeper and similar "services." Tried to download "MPlayerX" a week ago and it all started then. I thought I deleted the file but I'm still having trouble. I've been digging for solutions on here, but nothing I've found on here has worked yet--the VSearch stuff (I think) isn't on my hard drive. Any advice?

    You installed a variant of the "VSearch" trojan. Remove it as follows.
    This malware has many variants. Anyone else finding this comment should not expect it to be applicable.
    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.venus.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.venus.daemon.plist
    /Library/LaunchDaemons/com.venus.helper.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/venus
    /System/Library/Frameworks/v.framework
    The problem may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Then, still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Anyone having problems with pop up windows?

    Very recently (roughly just after performing the most recent Security Update) I have had trouble with pop up windows in Safari. Haven't had the problem before and the strange part is that my setting to block pop up windows keeps becoming unchecked in the Safari menu. My workaround has been to refresh the page, which removes the pop up, and then re-check the block pop up window option. Next time I open up Safari, I get the pop up again and my setting is unchecked.
    Anybody else have this experience. Any malicious software out there that might be causing this? Any suggestions?
    Thanks,
    jack
    G4/933 Quicksilver 2002; Boot ROM 4.3.3f2   Mac OS X (10.4.9)   Safari 2.0.4 (419.3), MyYahoo homepage

    Hi
    Welcome to Apple Discussions
    Oddities in Safari happen, not from viruses etc, but from some of the complexities of the program itself. In this case, a corrupted preference file may be causing the problem.
    In the Finder, drag to the desktop the com.apple.safari.plist folder found in your User Account>Library>Preferences folder.
    Restart Safari. Select the pop-up block. Quit/Restart Safari.
    If the pop-up selection held, you'll need to reset your Safari preferences to your liking, plus any custom settings found in the Edit Menu (spelling) or View Menu (status bar, bookmarks bar, custom icons in the "Customize Address Bar" ).
    Otherwise, move the file back to its original location.
    Post back

  • I have problems with pop up windows after earlier today I updated the software

    I have a macbook pro, and I updated the software today, I have OS X 10.9
    After I did this I started having problems in safari with pop up windows, before it only happened with some sites, but now almost every site I try to open it also opens 
    pop up windows, and some sites have underlined words that link to other sites for advertising.
    I really don't know what to do and I've read several posts of people that also have had my problem but I don't the solutions.

    Mail troubleshooting - Yosemite
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages
    SMTP servers keep going offline

  • Problem with pop-up window

    Hi all,
    i caught up with one issue while using Function-Module POPUP_WITH_TABLE,with this Func-module im able to display all the entries in the pop-up,but if i press the continue button with out selecting any item in the window ,that window does not getting closed.What should i have to do for closing that window even if i press the continue button without selecting any entry of pop-up window.
    Thanks in advance,
    Regards,
    Asmitha.

    you cant get that fn ality in POPUP_WITH_TABLE here you have to cross the window and uncomment the exception part for that.
    try this fm
    data : choice like sy-tabix.
                                CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY_OK'
                                  EXPORTING
                                    ENDPOS_COL         = 30
                                    ENDPOS_ROW         = 30
                                    STARTPOS_COL       = 5
                                    STARTPOS_ROW       = 5
                                    TITLETEXT          = 'chose3'
                                 IMPORTING
                                   CHOISE             = choice
                                  TABLES
                                    VALUETAB           = itab
                                 EXCEPTIONS
                                   BREAK_OFF          = 1
                                   OTHERS             = 2
                                IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                                ENDIF.
    regards
    shiba dutta

  • Problems with pop-up windows

    Hallo,
    I am working with Portal 3.06 and most things work quite fine, except the Pop-Up windows. When I place a pop-up window on a customization form referring a certain dynamic list-of-values and then check it, no pop-up-window appears. The Internet Explorer posts me the Javascript message :
    "Object expected" and the Netscape navigator doesn't return anything. When I use a combobox instead using the same list-of-values everything works fine. Could this be a bug in portal? I searched in the oracle-technet and other discussion boards for a solution but so far I didn't find anything. I would be very happy, if someone could help me.
    Thanks
    Christoph Eggenhofer

    This is a known bug and is fixed in coming release.

  • Problem with applet, popup window and focus loss

    Hi all !
    I've got a problem when my applet lose the focus. Let me explain :
    I've got an applet embed in a jsp page. There are several buttons in it that allow the user to open modal windows.
    The problem comes when the user gives the focus to another application whithout closing the modal window first.
    When he tries to come back to the web page owning the applet (using the task bar), then the modal window stays behind it and blocks any action on the applet.
    Does anyone know how to force the modal window to be displayed in front of the applet, even when the user plays with focuses ?
    Thank's in advance.

    thank you for your help, sils.
    I've written that code :
    * Cr�� le 31 ao�t 05
    package com.scor.apricot.web.rpc.ltnp.applet.listener.ldf;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JDialog;
    import javax.swing.JPanel;
    public class AppletWindowListener extends WindowAdapter {
         private JPanel panel;
         private JDialog dialogWindow;
         public AppletWindowListener(JPanel panel, JDialog dialogWindow) {
              this.panel = panel;
              this.dialogWindow = dialogWindow;
         public void windowActivated(WindowEvent e) {
              if (dialogWindow!=null && dialogWindow.isShowing())
                   dialogWindow.toFront();
    }Is that right ?
    I don't know how to add the listener, where must I put the addWindowListener method ? It seems that this method cannot be used with a JApplet object.

  • Problems with pop-up window in IE

    We run a free multiplayer poker game on Bebo and Facebook.
    You can see it at
    http://apps.bebo.com/poker on
    Bebo and
    http://apps.facebook.com/pokersavvy
    on Facebook.
    As you’ll see, when a user visits the app the Flash
    lobby loads inside the page. There the user sees a list of
    available tables and can either double-click the table name or
    highlight the table and then press the Play button on the right to
    open a table. The table then opens in a new window.
    For most users, this works without a problem. But some users
    on IE report that when they click the Play button the table
    doesn’t open. Instead, the Play button disappears and no
    table opens. These players are certain that no pop-up blocker is
    causing the issue as they either don’t have one or have
    disabled it.
    Switching to Firefox seems to solve the issue.
    Do you have any clues as to what could be causing this in IE?
    Thx very much.

    Ever get this solved? The only time I have seen flash
    disapear is when IE didnt have the latest flash plugin. Tell them
    to right-click over the flash and see what player it says at the
    bottom of the menu...

  • Problem with pop out window in my smarter mail

    For work I have to use SmarterMail. When I go to create a new email or reply to someone, a new smaller window pops out for me to create my message. The problem is.... well the text is not right. Kind of hard to describe so I have cut and paste an example below. Sometimes it can be very difficult to decipher a message. Please help me fix this. It has not been a problem until the most recent firefox update. Also it has been affected on all my PC's and laptop.
    The example below is what I see when I hit reply to a message. The information I need is there but there is a bunch of other stuff there too. I think its HTML code or something... PLEASE HELP ME FIX IT
    <br><br>Doug Graham <br>
    Underwater Sports Bellevue <br>
    12003 NE 12th <br>
    Bellevue, WA. 98004 <br>
    (425) 454-5168 <br>
    www.underwatersports.com
    <br><br><font size=2 face='Tahoma, Arial, Sans-Serif'><hr size=2 width="100%" align=center><b>From</b>: &quot;Seon Kang&quot; &lt;[email protected]&gt;<br><b>Sent</b>: Wednesday, September 07, 2011 5:04 PM<br><b>To</b>: [email protected]<br><b>Subject</b>: Academics Thurs night</font><br><br><DIV dir=ltr>
    <DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
    <DIV>Hi Doug,</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>Wanted to let you know that the OW students took their final on Tuesday so
    we won’t be doing an academic session on Thurs.&nbsp; We let them all know to
    get their tanks filled and also to get fitted for their cold water suits.&nbsp;
    </DIV>
    <DIV>&nbsp;</DIV>
    <DIV>A couple students do need to retake their test so I’m going to be meeting
    them at the shop on Friday at 6 for them to take their final again.</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>Thanks!<BR>Seon</DIV></DIV></DIV><br>

    Hey,
    i Added a print screen of my eclipse when the pop up is appearing...
    I really need your help...
    +----------------------------------------------------------------------+
    |Filename: javaerror.JPG |
    |Download: http://forums.novell.com/attachment....achmentid=4572 |
    +----------------------------------------------------------------------+
    tamirb_a
    tamirb_a's Profile: http://forums.novell.com/member.php?userid=89193
    View this thread: http://forums.novell.com/showthread.php?t=414890

  • I downloaded a new version of firefox. It said it had problems with my norton toolbar and now it doesn't feature it in the window. I'm not that comp savvy. How do I either get the Norton toolbar up or go back to the old firefox? Thank you.

    I downloaded a new version of firefox. It said it had problems with my norton toolbar and now it doesn't feature it in the window. I'm not that comp savvy. How do I either get the Norton toolbar up or go back to the old firefox? Thank you.

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • Problem with shares on Windows 2003R2 server from a Windows 8.1 PC

    I'm having problem with shares on Windows 2003R2 server from a Windows 8.1 PC.  It times out when I try to copy a file from my PC to the server and I get an error message saying "There is a problem accessing network drive W:\. Make sure you are
    connected to the network and try again."
    I have no problem copying files from the server to the PC.
    Any ideas?

    Hi,
    How about your problem now? Have you test other machine also installed Windows 8.1? Did they have this problem?
    To diagnose this problem, firstly, please check Windows 2003R2 firewall settings, also can disable firewall temporarilly for test.
    Secondly, try to use Network Monitor to capture network communication package for test.
    Network Monitor:
    http://www.microsoft.com/en-us/download/details.aspx?id=4865
    Roger Lu
    TechNet Community Support

  • Windows 8.1 Problem with games from windows store.

    I've got a problem with games from windows store. The installation is going well without any problems, however when I try to open it it's loading and then it turns off. The same problem happens when I try to use Games for Windows. I've use a sfc scan and
    it shows some errors but unfortunately it cannot fix them. Should I share the CBS log or find the solution somewhere else? I hope you help, best regards.

    Hi,
    According to my experience, the problem like store game app open failed probably caused by hardware driver. such as Audio and Graphic driver. So, first of all, please try to reinstall these two driver to fix this problem for test.
    In addition, for SFC scan failed problem, it can be caused by many reasons, I would suggest you use another command to fix your system for test.
    Dism /Online /Cleanup-Image /ScanHealth
    Also you can test SFC command in Windows 8.1 safe mode.
    Thirdly, if problem persists, please check Event Viewer, generally speaking, it would record the app open failed events.
    Roger Lu
    TechNet Community Support

  • My iPod says there's a problem with my last purchase and every time I try to look at my history to clear the problem it says there no connection to ITunes

    When I log into my acc it ammediatly says there's a problem with my last purchase and to go to my purchase history to clear it.  When I hit continue its suppose to take me to the history but it just loads then says cannot connect

    the itunes says that it knows that there isan ipod there, but it doesnt recognize it. I have reset the ipod, restarted my computer, and reinstalled itunes.
    Doublechecking. Have you tried a complete uninstall of both iTunes and all the other related software components (Apple Mobile Device Support, Apple Application Support, etc ...) and then a reinstall? If not, try the instructions from the following document:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8

  • Problem with the Finder window in Chrome

    Hello,
    I have a problem with my finder window in Chrome.
    Since the window isn't a separate window anymore, but stuck to the top of the webpage, my finder window is too big. I can't read the "Cancel" or "Send" (I have no idea what's supposed to be there in English but I assume it's something like "send" and "cancel") buttons. I have provided some images of the problem, even if I make the Chrome window as small as possible, the finder window still is too big for my screen. I can resize the finder window from lest to right, but not up or down, which is extremely irritating for me.
    If anyone can help me how I can solve this problem.
    Thanks!

    I found the solution on another thread...Here it is.
    "I was having the same problem.  I found a way to make it smaller.  First, I opened chrome and clicked the green button on the window to make chrome go into full screen.  Then I tried to save a file to make the finder window open in chrome. When it opened in full screen I could see the bottom of the window so I resized it to make it a little smaller.  Once I did this it remembered the size so now I can access the bottom buttons when I take it out of full screen mode. Hope this helps."
    Worked like a charm!

  • I have a problem with the effect gallery and the saving libraries in Illustrator CS6

    Hi everybody
    I have a problem with the effect gallery and the saving libraries in Illustrator
    1. When you go to to effects > effect Gallery the the sketch filter always is black and white. Is this normal? In Photoshop you can set your background and foreground and the sketch effects takes those colors. Is there any way to do this in Illustrator? I have tried changing the colour of the fill and stroke but nothing...
    2. In the same area as before effects > effect Gallery .... In Photoshop you can add multiple filters with the create new button. Always is off is there anyway to make it available? or the only way is to by creating several individual ones and manage then in the appearance panel ...
    3. I saved a brush library and now it appears in the user defined area so I can get it in any document, that is good but any one knows how to delete a user undefined library?
    Many thanks in advance for the help .... I look forward for the reply =)

    I see that it is six months ago that I first posted this. Nothing has changed. When I use affixa to create a message with an attachment from my gmail account in firefox, the message is created in drafts, but the gmail window is closed and I have to re-open it. Not critical, but annoying.
    Now there is a plug-in on the affixa site that is supposed to be designed for Firefox, and which affixa support claims should take care of this. And I've downloaded it twice. When you download it and open it, it says that it will be installed when Firefox restarts, and gives you a button to restart Firefox. But after you click that button and firefox disappears and re-appears, the affixa plug-in is NOT in the plugin list.
    Please, somebody, HELP.

Maybe you are looking for

  • Home button not working on iPad 2

    I gad my iPad 2 for Christmas last year, so 11 months. Last month I started to get an issue where my home button wouldn't work. I admit I ignored it for a bit, but it can no longer be avoided. I'm so disappointed and hate faulty goods, so I now hardl

  • I just purched the 9.99 cloud plan for photoshop, where is the icon to open it?

    I see the Creative Cloud icon in my applications, but no where can I find a Photoshop icon.

  • Runtime Error Project/WBS Element

    Hello, I am getting a Runtime error (statement message 'E') every time i search in the match code for either a Project or a WBS Element, regardless of what transaction they appear in. Can anyone help me with this? Stephen

  • Song won't play/ Skips

    I've noticed recently on my iPod Classic that a song will be skipped over or won't play in my library. It will play on my iTunes itself or any where else. But not on my iPod. Has anyone had a similar problem? Or know how to fix this?

  • How to display sub categories ?

    hi How to display categories and sub categories and its sub categories. We don't know the depth of sub categories.. so how it can the categories be displayed? Could anybody can provide the solution ASAP ? Thanks & Regards user8729783