Refreshing Parent.jsp and forwarding to Child.jsp

Hi
I have a parent.jsp where I provide criteria to query and export the data to excel. If the resultset is null I forward to parent.jsp with error message, but if there is data I forward to child.jsp.
If in the first attempt there is no data and display of error message in parent.jsp and in the subsequent second attempt I change the selection criteria and get the data report in excel format, but the error message displayed in parent.jsp for the earlier transaction remains the same i.e. parent.jsp should ideally refresh and then forward to child.jsp.
Currently I am using the following code and controlling it with a script that is called on click of submit i.e. I set the text (error text) value to null. Is there a better way to achieve this? Kindly help
<%if (error != null) {%>
<table>
<tr>
<td>
<input type="text" name="errorMsg"
style=" color:red; font-size: 8pt; FONT-FAMILY: verdana, helvetica;font-style: TT; border:'0'; font-weight: Bold"
value='<%= error %>'
size="141" readonly="readonly"/>
</td>
</tr>
</table>
<%}%>

Thanks a lot frndz.. for your reply.. but both ways I tried its not working ..Devendra I went thru the code given there in the link but it couldn,t work... I tried for window.opener.refresh(). In spite of refreshing the parent jsp and getting the pop up closed ,it displayed the the refreshed parent JSP in the pop up window. keeping parent JSP intact..
Any other alternative can anyone advise... :)

Similar Messages

  • How to refresh parents externally changed collection of child objects

    Hello,
    we have an external process which updates the database independently from TopLink. We receive a notification whenever objects are created or deleted.
    We have an object A that contains a collection of B's. When a B is inserted or deleted in the database, we get an insert- or delete-event for B. But we also need to refresh the object A to reflect the changed collection in our object model.
    Is there any TopLink mechanism we can use to do this automatically? Otherwise we will have to manually find all the objects that reference the inserted or deleted B and refresh them as well.
    We are grateful for any suggestions.

    Hello Don,
    thank you for your answer. We have the back reference and at the moment follow the approach you suggested. But as a consequence we have to handle each class B individually, i. e. given our knowledge of the object modell we have to hand-code for each class B a method that refreshes all the objects referring to it. Since the necessary information to do this seems to be available in the TopLink descriptors we were wondering whether there exists a more generic way. E. g. we thought about analyzing B's descriptor and follow all one-to-one mappings to the referred objects and find out if their descriptors in turn contain a collection mapping to B in which case we would refresh them. Unfortunately that won't work in case of n:m mappings where no back reference exists.
    Another possibility would be to go over the TopLink cache and refresh every entry that refers to the object in question, but we do not know how this could be done (and if it is advisable).
    Best regards
    Achim

  • Refreshing Parent Window on Close of Child Window

    I need to open a new popup window/tab using window.open method of javascript and on close of the new tab/popup window have to return some values from closing window to parent window. When I open a popup suing window.open in my asp .net application which is supposed to be compatible with iPad. Value has successfully been returned when I use IE, Chrome, FireFox and Safari (on PC with windows 7).
    Unfortunately the same code fails in Safari when I access the application through iPad. On iPad domObject is prompted on new window open instead of prompting returned value on new window close.
    Below is the code. Parent Window:
    Parent Window:
    <script type="text/javascript">
            function modalWin() {       
                    retVal = window.open('About.aspx', 'name', 'height=255,width=250,toolbar=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no ,modal=yes');
                    alert(retVal);
        </script>
    //HTML
    <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <a title="Test New Popup" onclick="modalWin();">New Popup for all browsers.</a>.
    </asp:Content>
    Popup window or new tab:
        <script type="text/javascript">
            function closeIt(tempValue) {
                window.returnValue = tempValue;
                window.close();
        </script>
    //HTML:
    <input id="btnButton1" value="btnButton1" type="button" title="Press it to Close" onclick="closeIt('btnButton1');" />
        <br />
        <input id="btnButton2" value="btnButton2" type="button" title="Press it to Close" onclick="closeIt('btnButton2');" />
        <br />
        <input id="btnButton3" value="btnButton3" type="button" title="Press it to Close" onclick="closeIt('btnButton3');" />

    HI for your reference
    am opening the new window by using
    <i><b>page navigation property</b></i> in that I am setting the
    Launch a new window  :   display in seperate window
    now if i close the main window ie potral screen i want the window which is opened through this also to be closed
    regards
    Abhijith YS

  • Passing values from javascript in pop up window to parent jsp

    Hi
    I am trying to pass values from a pop up window to the main window that popped this child window , with the idea to have the parent window refresh itself with value from pop up window.But the values are not going through.I do a request on the hidden variable but when the parent
    jsp refreshes , the variable is still null...
    The following is the code i have .
    Parent jsp:a.jsp
    <form name='summary'>
    <input type=hidden name=customerid value="">
    <input type="button" class="textButton" name="action" value="customerlist" onClick="javascript:openWin('b.jsp','800','350')">
    <script>
    function openWin(loc, w, h) {
    var newWin = window.openloc,"HTML",'dependent=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h);
    newWin.window.focus();
    </SCRIPT>
    <%
    String optionVal = request.getParameter("customerid");%>
    var user = "<%= optionVal%>";
    </form>
    child jsp- b.jsp (pop up window)
    <script>
    function closer(){
    var val = document.formname.id.selected.value;
    window.opener.document.summary.customerid.value = val;
    window.opener.location.reload();
    </script>
    <form name = formname>
    <input type="text" name="id" value = ''>
    <input type="button" class="textButton" value="select"
    onClick="closer();window.close();">
    </form>
    Any ideas on what i am missing
    Thanks
    Arn

    use window.opener.document.forms[0].filedname.value = 'value u need to set'

  • Forbid refresh in jsp

    hi
    I have one jsp with some data.when I refresh jsp with button of browser.The result is:in jsp have data twise.
    when i refresh with browser button servlet execute last action.I dont like this.
    I want to forbid refresh from browser in this jsp,but this is silly,and i dont know how this.
    Any suggestions for that how forbid refresh in jsp or some other decision

    Web apps have to be able to survive all kinds of unexpected user actions with the browser, refresh, back and forward buttons, bookmarking pages in the middle of a conversation, openning a second window on the same page and so on.
    So you need to write your JSP with fewer assumptions about the data it's invoked with.
    Beyond that we'd need more details.

  • Firefox dose not refresh while ie refreshes the JSP page

    Hiii,
    I think I am in a little tricky situation here and need for your advice,
    here is the situation...
    I have a small .jsp page that contains a little jsp code and a little html code ...
    the main function of the jsp part is the adjust the "refresh content" destination...
    this is the code ..
    if (abs==1
         toGo = "a.jsp";
    if (abs==2)
              toGo = "b.jsp";
    if (abs==3)
                   toGo = "c.jsp";
    if (abs==4)
         toGo ="d.jsp";
    %>
    <meta http-equiv="REFRESH" content="10; url=<%=request.getContextPath()%>/en/<%=toGo%>">
    this code works fine in ie,
    ie, refreshes the page and decide where to go ...
    however firefox (and mozilla, may be netscape too) .. dose not refreh .. so the page stays...
    actually they are porbably refreshing but it seems that they are not running jsp again and again ..
    where is the problem ? ..
    How should I solve this problem ...
    Thank you..

    actually it makes sense but It is not working..
    event if I adject the refresh path like,
    <meta http-equiv="REFRESH" content="10; url=http://www.yahoo.com/<%=request.getContextPath()%>/<%=lang%>/event/Proposal/<%=toGo%>">
    it is not reporting an error... .. (page not found :) ) .... but it refreshes... I mean If I change the content of the html part, I get the changes from browser.. but the page is still there..

  • How to refresh frame1.jsp from frame2.jsp?

    Hi,
    I have main.jsp that holds frameset that contains "frame1.jsp" and "frame3.jsp".
    on submit at "frame3.jsp" it goes to "frame2.jsp", now I want to refresh "frame1.jsp"
    p.s.
    I don't mind to refresh the "main.jsp", I guess that will refresh the frames inside him too - include "frame1.jsp".
    BUT, how can I do it?

    Hi,
    this seems to be a HTML/JavaScript problem, not JSP related.
    The file frame2.jsp could refresh frame1.jsp using "onLoad" on the <body> tag.
    You could also do this before loading frame2.jsp, while pressing the submit button. Instead of using a submit buton you could use a JavaScript function that would submit the form and reload another frame.
    Good Luck!
    PS: If this isn't enough help, plese post the contents of main.jsp (the frameset) so you can get some real code back.

  • Prolem with refreshing my jsp page

    Refreshing the page
    I have a jsp page with few buttons(like add, delete, save), during loading time, it loads data from database and display in a table of row data,when I clicked the delete button to delete a row, it removes a row of data from my database, but it still displays that deleted row, bcoz page has not been refreshed. Now I wrote 2 java script function, one which invokes my delete function in my Action class and another I am trying to again load the page after delete, so that I can get fresh data. But its not happening, do you have any idea, where am I going wrong, or how can I refresh my jsp page after I delete a row. I am getting my data from database and after that I put in session.
    Here is my small code base
    function invokeICCanAssignmentDeleteFunction()
          func();
          initialise();
    // this method deletes my data from DB
        function func()
         alert("alert 1");
        document.forms[0].action='/eta/canAssignment.do?mode=icCanAssignmentDelete';
         alert("alert 2");
    // this method initialise my form bean taking data from db and put in session inside my action class
        function initialise()
         alert("alert 3");
        document.forms[0].action='/eta/canAssignment.do?mode=icCanAssignment';
         alert("alert 4");
        }

    The following two javascript lines will only set the action value of the form and does nothing else. No server call will be made.
    document.forms[0].action='/eta/canAssignment.do?mode=icCanAssignmentDelete';
    document.forms[0].action='/eta/canAssignment.do?mode=icCanAssignment';You need to submit the form to make a server call. For Example:
    document.forms[0].action='/eta/canAssignment.do?mode=icCanAssignmentDelete';
    document.forms[0].submit();Google Javascript tutorials for more.

  • SQL Server 2012 Management Studio:In the Database, how to print out or export the old 3 dbo Tables that were created manually and they have a relationship for 1 Parent table and 2 Child tables?How to handle this relationship in creating a new XML Schema?

    Hi all,
    Long time ago, I manually created a Database (APGriMMRP) and 3 Tables (dbo.Table_1_XYcoordinates, dbo.Table_2_Soil, and dbo.Table_3_Water) in my SQL Server 2012 Management Studio (SSMS2012). The dbo.Table_1_XYcoordinates has the following columns: file_id,
    Pt_ID, X, Y, Z, sample_id, Boring. The dbo.Table_2_Soil has the following columns: Boring, sample_date, sample_id, Unit, Arsenic, Chromium, Lead. The dbo.Table_3_Water has the following columns: Boring, sample_date, sample_id, Unit, Benzene, Ethylbenzene,
    Pyrene. The dbo.Table_1_XYcoordinates is a Parent Table. The dbo.Table_2_Soil and the dbo.Table_3_Water are 2 Child Tables. The sample_id is key link for the relationship between the Parent Table and the Child Tables.
    Problem #1) How can I print out or export these 3 dbo Tables?
    Problem #2) If I right-click on the dbo Table, I see "Start PowerShell" and click on it. I get the following error messages: Warning: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. 
    --> Failed to retrieve data for this request. --> Invalid class.  Warning: Could not obtain SQL Server Service information. An attemp to connect to WMI on 'NAB-WK-02657306' failed with the following error: An exception occurred in SMO while trying
    to manage a service. --> Failed to retrieve data for this request. --> Invalid class.  .... PS SQLSERVER:\SQL\NAB-WK-02657306\SQLEXPRESS\Databases\APGriMMRP\Table_1_XYcoordinates>   What causes this set of error messages? How can
    I get this problem fixed in my PC that is an end user of the Windows 7 LAN System? Note: I don't have the regular version of Microsoft Visual Studio 2012 in my PC. I just have the Microsoft 2012 Shell (Integrated) program in my PC.
    Problem #3: I plan to create an XML Schema Collection in the "APGriMMRP" database for the Parent Table and the Child Tables. How can I handle the relationship between the Parent Table and the Child Table in the XML Schema Collection?
    Problem #4: I plan to extract some results/data from the Parent Table and the Child Table by using XQuery. What kind of JOIN (Left or Right JOIN) should I use in the XQuerying?
    Please kindly help, answer my questions, and advise me how to resolve these 4 problems.
    Thanks in advance,
    Scott Chang    

    In the future, I would recommend you to post your questions one by one, and to the appropriate forum. Of your questions it is really only #3 that fits into this forum. (And that is the one I will not answer, because I have worked very little with XSD.)
    1) Not sure what you mean with "print" or "export", but when you right-click a database, you can select Tasks from the context menu and in this submenu you find "Export data".
    2) I don't know why you get that error, but any particular reason you want to run PowerShell?
    4) If you have tables, you query them with SQL, not XQuery. XQuery is when you query XML documents, but left and right joins are SQL things. There are no joins in XQuery.
    As for left/right join, notice that these two are equivalent:
    SELECT ...
    FROM   a LEFT JOIN b ON a.col = b.col
    SELECT ...
    FROM   b RIGHT JOIN a ON a.col = b.col
    But please never use RIGHT JOIN - it gives me a headache!
    There is nothing that says that you should use any of the other. In fact, if you are returning rows from parent and child, I would expect an inner join, unless you want to cater for parents without children.
    Here is an example where you can study the different join types and how they behave:
    CREATE TABLE apple (a int         NOT NULL PRIMARY KEY,
                        b varchar(23) NOT NULL)
    INSERT apple(a, b)
       VALUES(1, 'Granny Smith'),
             (2, 'Gloster'),
             (4, 'Ingrid-Marie'),
             (5, 'Milenga')
    CREATE TABLE orange(c int        NOT NULL PRIMARY KEY,
                        d varchar(23) NOT NULL)
    INSERT orange(c, d)
       VALUES(1, 'Agent'),
             (3, 'Netherlands'),
             (4, 'Revolution')
    SELECT a, b, c, d
    FROM   apple
    CROSS  JOIN orange
    SELECT a, b, c, d
    FROM   apple
    INNER  JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    LEFT   OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    RIGHT  OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    FULL OUTER JOIN orange ON apple.a = orange.c
    go
    DROP TABLE apple, orange
    Erland Sommarskog, SQL Server MVP, [email protected]

  • My "refresh" button is on the very end of the RIGHT side of the tool bat while my "back and "forward" is still on the very left of the tool bar?

    I just upgrade to firefox 4 There are a few issues but on my toolbar the refresh button now appears on the very left side of the tool bar.
    My "back" and "forward" button are still where they always been -- on the left side. Is it possible to move the Refresh button over so that it is next to the back and forward button?
    Also my cut, copy and paste are on the left __i can not move them either???

    Right click your mouse over any tool on the toolbar. Then select 'customize' and a window will pop up with more buttons. While that window is open you can drag the existing buttons on your tool bar to any spot you want.

  • The back and forward arrow, the house icon and the refresh icon are missing. How do I find them, thanks

    The back and forward arrows are missing, as are the house icon and the refresh icon. All that goes in that area. Can you tell me how to find them? Thanks

    This article will help you restore them - [[Back and forward or other toolbar items are missing]]

  • Dispatching and Event in Parent SWF & Receiving it in Child SWF

    Hi All...
          I  would like to receive an event(Dispatchd in Parent swf) in Child SWF,  the bold italic text represents the piece of coding i require help with
         //in PARENT SWF i have -----------------------------
            dispatchEvent(new Event("CloseDoors"))
        // in Child SWF --------------------------------
           here i need a code that catches the event dispatched in parent.addEventListener("closeDoors",closedoor)
           Please let me know if there are alternative ways to do it. I think some  people prefer to listen to the event also in Parent file and run
           the function in CHild from parent file....i would like to learn the  best practive to INFORM CHILDREN through a PARENT FILE...
         Thanks.

    Perfect....just to make sure i m taking care of it in a nice practical way....here is how i learned to access a file located in Child (researching other posts)
    is this the way you recommend it?
    (LoaderName.content as MovieClip).functionName(new Event("whatever"))
    and in Child File we have
    function functionName(e:Event)
    i have seen other ways of calling a function in Child Swf , like using EmbedSWF and etc. wanna make sure which one is a better practice. Thanks

  • Can a child block a parent using ios7 on a verizon plan that has parental safeguards and the parent is listed as a trusted contact?

    My child is at college and when we get in an argument or he just is being a spiteful brat he claims to block me using the ios7 capability to block callers.  I have Verizon and have the parental safeguards and controls set up and as account owner and the parent, I also listed myself as a trusted contact which states the call can't be blocked.  However, I want to know if ios7 can override the parent control and actually block my calls and texts?
    And yes, i know to take away his phone.  If this continues he will lose the privilege of it.  So, please no parenting tips.

    That's what I thought.  That really stinks when they are away at school and I physically can't get the phone back.  I'll just deactivate until he learns to not be disrespectful.
    Thank you.

  • I can't seem to find the bar with "file, edit, view, etc". I can view it if I press "alt", but when I hit any other key it disappears again. The back and forward arrow, house, refresh and "url" space is missing

    I can't seem to find the bar with "file, edit, view, etc". I can view it if I press "alt", but when I hit any other key it disappears again. The back and forward arrow, house, refresh and "url" space is missing

    * In Firefox 3.6 and later on Windows you can hide the "Menu Bar" via "View > Toolbars" or via the right-click context menu on a toolbar.
    * Press F10 or press and hold the Alt key down to bring up the "Menu Bar" temporarily.
    * Go to "View > Toolbars" or right-click the "Menu Bar" or press Alt+V T to select which toolbars to show or hide (click on an entry to toggle the state).
    See also:
    * [[Menu bar is missing]]
    * http://kb.mozillazine.org/Toolbar_customization

  • New Firefox page does not have back and forward arrows, refresh or stop features on it.

    I used to have a back and forward arrow, an X to stop something and a refresh sign on the second line at the top of the screen and box with the link I was on shown so you could copy and paste it. Those features are no longer there.
    == This happened ==
    Every time Firefox opened
    == I upgraded to the new version of Firefox yesterday.

    Did you reset the '''general.useragent''' prefs on the '''about:config''' page?
    You can open the ''about:config'' page via the location bar, just like you open a website.
    Filter: '''general.useragent'''
    If any ''general.useragent'' prefs are bold (user set) then right-click that pref and choose ''Reset''.
    * If, on Windows, in Firefox 3.6 the menu bar is hidden then press and hold the Alt key down or press F10, that should make the "Menu Bar" appear
    * Go to "View > Toolbars" and check-mark "Menu Bar" with a click on it to make that permanent. See [[Menu bar is missing]]).
    * Make sure that you have the "Navigation Toolbar" and the "Bookmarks Toolbar" visible: "View > Toolbars"
    * If items are missing then see if you can find them in the "View > Toolbars > Customize" window
    * If you see the item in the Customize window then drag it back from the Customize window to one of the toolbars.
    * If, in "View > Toolbars > Customize", you do not see that item then click the "Restore Default Set" button
    See also [[Back and forward or other toolbar buttons are missing]] and [[Navigation Toolbar items]]
    See http://kb.mozillazine.org/Toolbar_customization

Maybe you are looking for

  • Trying to update Adobe Acrobat Pro DC, but it's been stuck at 35% for a little over a day?

    Trying to update Adobe Acrobat Pro DC, but it's been stuck at 35% for a little over a day?

  • SSO - Authentication for Calendar withe MS Exchange

    Hi, I have configured the calendar iView (com.sap.netweaver.coll.appl.ui.gw.MeetingWith) to work with IIS and CDO (MS Exchange) with user mapping. Do you know the different steps to use it in SSO authentication mode ? What are the modifications neede

  • CF9 install on Windows 2008 Server R2

    Hi everyone I've installed Cold Fusion 9 on my windows 2008 Server r2 box and everything appears to be configured correctly becuase I can get to the Cold Fusion 9 Administrator page just fine. I've looked within IIS 7.5 and it's recognizing the .cfm

  • Aperture Crash Message

    Aperture 3 exporting a slideshow and my external hard drive dropped pulling it from my Macbook Air. The Hard drive was fine and I have access to my aperture library etc. Next time I booted into Aperture I received this message: Aperture has detected

  • FIOS Quantum Gateway Router

    Just installed but need to figure how to get 5gz speed.  What do I do with the old MI424WR???? Do they want it back??? I paid retail for the G1100 but what about the monthly fee I paid for the old router??  Asking Verizon help is almost impossible.