[Struts] Reload the same page but scroll automatically to where it was

Hi,
I have a form and it is quite long with a vertical scroll bar. Now when the user scrolls down and changes a value, I need to reload the same form with other values and display it to the user. When the form reloads, it should not show the top of the page as if it were accessed for the first time. It should automatically scroll down to the position where the user left. I think this can happen, but I am not able to work this out.. Please help. In order to reload the form, I am using
new ActionForward( mapping.getInput() )
Thanks
SJ

Is there still a search engine selected?
You can click the search engines icon on the search bar and open Manage Search Engines.<br />
You may need to click the Restore Defaults button to restore missing search engines.

Similar Messages

  • Why does the back arrow just reload the same page most of the time

    why does the back arrow just reload the same page most of the time
    == This happened ==
    Not sure how often
    == most of the time since I installed it

    Hi Keith.
    This is probably a normal behavior that's induced by the way pages are done. Can you provide a link to a page where this happens?
    For example, wikipedia articles often have links that lead to sections of the article and not to actually different pages, as you may know. If you click the Back button, Firefox will lead you to the section of the page you were looking at when you clicked that link. Is this perhaps what you're talking about?
    AJAX pages (i.e. pages that take advantage of heavy duty javascript code and server side technologies) often have troubles like these. It's very hard to prevent this from happening from the browsers' point of view, but Mozilla is trying to find a way for Firefox 4 (at least like time I checked they were). So using the back and forth buttons in gmail will probably be troublesome.

  • Using multiple refinement web parts on the same page but have them hidden until needed

    I have a search results page that has several different Core Results web parts on it (each is connected to a different result source). all hidden by tabs using the HillbillyTabs interface
    http://www.sharepointhillbilly.com/Lists/Posts/Post.aspx?ID=42
    unfortunately you cant share a refinement web part across multiple results web parts. So I am left trying to figure out how to hide several refinement web parts and only show the active refinement webpart when the result source tab is selected.
    The template im using is an OOTB standard search results template with the refinement panel on the left navigation zone and the core results web parts configured in the main content zone.
    Scenario:
    Search text box passes query to multiple results web parts on a page. Only one results web part is displayed at a time (active tab). The refiner for the active tab shows and displays its refiners in the navigation panel.
    There are multiple refinement web parts in the navigation panel associated with each core results web part in the main content zone. These refiner web parts are configured with custom refiners.
    the results page displays just one results web part at a time via tabbed interface.
    I am trying to figure out how to make the refiner web parts show and hide depending on which tab is selected.
    Any help pointing to someone thats already attempted this would be appreciated! 
    Eric

    Hi,
    For your issue, you can consider using SharePoint Search Navigation which can achieve a similar feature but not on the same page.
    Search Navigation allows users to move quickly between search experiences listed in the Navigation. Navigation is displayed in the Quick Launch control on search pages, and can also be shown as a drop-down menu from the search box.
    For more information, you can refer to the blog:
    http://blogs.technet.com/b/tothesharepoint/archive/2013/11/13/how-to-add-a-customized-search-vertical-to-your-search-results-page-in-sharepoint-2013.aspx
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • When I click a button to open an online enrolment form, Firefox just reloads the same page.

    I've tried clicking on this link to a allow you to enrol to vote in Australia on my mac, but everytime I do it it just reloads the page. I've been able to open it in chrome and on firefox on a pc and from that I can gather it seems to be one of those separate web apps but I don't have java installed on either of my computers so it's not a java applet. This has happened before with other links to similar styles of interactive web apps but the same thing happens, it just reloads the page with the link on it. I always just ended up doing them on a different computer or browser. I tried disabling all add-ons and allowed all pop ups but that didn't solve it. I couldn't find anyone with similar problems when I searched.

    You can try these steps in case of issues with web pages:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Reload the same page with multiple param id

    Hi dude,
    i create review.jsp and include the displayproduct.jsp.. when i add review for the particular product,value added succesfully in db and successurl method will call and reload the displayproduct.jsp as blank page.. because param id not passing in url..
    how to pass the previous navactionid,navcountid and productid to SuccessURL with same jsp..
    pls clarify my doubt..

    hi MishraI need to pass the param in button
    <dsp:input type="submit" bean="MyReviewFormHandler.addReview" value="Submit Review">
    <dsp:input bean="MyReviewFormHandler.ProductReviewSuccessURL" type="hidden" value="displayCategory.jsp" />
    >
    It should work.
    I'm using below same way and working fine.
    <%/* URL to go to if user's session expires while he is filling out this form */%>
         <dsp:input bean="ShoppingCartModifier.sessionExpirationURL" type="hidden" value="../../common/SessionExpired.jsp"/>
         <%/* ADD TO CART BUTTON: Adds this SKU to the Order*/%>
         <dsp:input bean="ShoppingCartModifier.addItemToOrder" type="submit" value="Add to Cart "/>
         <%/* Goto this URL if NO errors are found during the ADD TO CART button  processing:*/%>
         <dsp:input bean="ShoppingCartModifier.addItemToOrderSuccessURL" type="hidden"  value="../checkout/cart.jsp"/>-RMishra

  • Reloading the same page

    I know this is surely a very retarded question, but I am
    tired of looking about and trying to get the proper answer on my
    own; I have a form that enters information into a database. what I
    want is to have it reset and reloaded each time submit is pressed
    instead of getting the blank page. Thanks In advance!.

    When I do forms with db actions, I always make the form
    action #cgi.script_name# and just do the action on the form page,
    using isdefined() to check for the existence of the form
    submission.
    If you're pre-populating the form with info from the DB, put
    the query to get those details *after* you do your insert, outside
    the cfif isdefined(), but before the form. That way, regardless of
    whether or not the page is being view before or after the form
    submission, you're still getting it pre-populated.

  • How can I have use the same div ID multiple times on the same page?

    Okay so a problem I encounter a lot is that often times I want to use the same div ID several times on the same page. An example of this is when I'm creating table like designs.
    Let's say for instance I create a div ID called 'product-container'. I want to use 'product-container' multiple times on the same page but if I do this it is improper XHTML and will throw errors in any XHTML validator (you are only allowed to use a div ID once on any XHTML page in order for it to be standards compliant).
    Now the first option is that I could define 'product-container' in my CSS style sheet multiple times by doing something like this...
    #product-container {
         width: 300px;
    #product-container-2 {
         width: 300px;
    #product-container-3 {
         width: 300px;
    #product-container-4 {
         width: 300px;
    What you will see there however is that it seems pointless to define the same ID numerous times over (just adding a number on the end) when each ID is the exact same thing and has the exact same attributes.
    Now what I have noticed is that there are some sites out there who manage to have the same ID appear several times in the code but add a number to it just like above. The difference is that they only have one definition for 'product-cointainer' in their CSS document but in their actual XHTML code they have IDs for 'product-container' but with numbers on the end like 2,3,4,5, etc. It's almost as if JavaScript or some other code is automatically appending a number on the end of the ID so the validator won't consider the markup to be invalid, but yet it knows that it's using the same 'product-container' style that is contained in the CSS style sheet.
    I hope I explained this correctly. I'm just hoping to find a way that I can put the same div ID on a page multiple times without having to define it over and over again in my CSS.
    Any help is much appreciated!

    Because it seems like by using a class you can't make this position as 
    well as you can by using an ID. Am I wrong?
    An ID name can be used only one time per page.  A class name can be used multiple times per page.
    .product {
    width: 300px;
    text-align:left;
    color: #FF0000
    border: 2px solid #666;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • JEditorPane HTML link in the same page

    Hi,
    I want to show an HTML page in JEditorPane.
    The HTML page have <a> tags that link to a bookmark in
    the same page, but I can�t show this because I get an error
    like this:
    MalformedURL or similiar.
    I try to do somethig like this:
    public void hyperlinkUpdate(HyperlinkEvent ev)
    ...Editor.setPage(ev.getURL());
    or
    ...Editor.setPage(ev.getDescription());
    without results.
    How can I listen for hyperlinksEvents than link in the same page.
    Thanks

    they dont want to see the first report.
    Is there a way in which the Prompts are also display along with the second report?Then create the same prompt on the second report also.
    Cheers
    Nawneet

  • Multiples Calendar components in the same page

    Hi all,
    I need to develop a call center module in oracle adf where the users needs to view and manage different patient rooms in the same page but I need some ideas about it. So, Here my questions:
    How to reuse a DataView control with different calendars and filters? or What do you recommend to develop an effcient logic to manage the calendar data?
    Is posible to create dinamically calendar components to show more rooms to my users?
    Cordially,
    Jhon Carrillo
    jdeveloper 11.1.2.2
    weblogic 10.3.5
    Oracle 11g r2

    Hi all,
    I need to develop a call center module in oracle adf where the users needs to view and manage different patient rooms in the same page but I need some ideas about it. So, Here my questions:
    How to reuse a DataView control with different calendars and filters? or What do you recommend to develop an effcient logic to manage the calendar data?
    Is posible to create dinamically calendar components to show more rooms to my users?
    Cordially,
    Jhon Carrillo
    jdeveloper 11.1.2.2
    weblogic 10.3.5
    Oracle 11g r2

  • Keeping heading and detail on the same page

    Hi, I have a report with a group header section and a detail section.  How can I keep the heading section and all the detail section on the same page without starting each group on a new page?
    The detail section will have either 2 or 3 records with some of the objects set to grow if the data doesn't fit on one line.  This results in several changes of group appearing on the same page which is what I want.  However, what I don't want is the header section on one page with the detail section on the next, or the header and some of the detail records on one page with the rest of the detail records on the next.  What I would like is the report to start a new page if the header and all the detail records don't fit on the same page but without starting a new page for every group change.  How can I achieve this?

    you can put the group header and details into a sub report on the old group header section.
    then hide the details section

  • Two animations on the same page Html5 canvas (flash cc)

    Hi all,
    I have been using Flash CC to create some nice html5 animations and I am really enjoying it. However I wanted to add more than one animation to the same page. I have managed to get two animations running on the same page, but I am having some issues whereby only one of the animations load the supported images where as the second one does not. I have pasted my code below, any help would be gratefully received. In the long term I want to add many animations to the same page, so would appreciate some help on how this can be done more efficiently. Many thanks in advance.
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>animation test</title>
        <script src="http://code.createjs.com/easeljs-0.7.0.min.js"></script>
        <script src="http://code.createjs.com/tweenjs-0.5.0.min.js"></script>
        <script src="http://code.createjs.com/movieclip-0.7.0.min.js"></script>
        <script src="http://code.createjs.com/preloadjs-0.4.0.min.js"></script>
        <script src="animation-three.js"></script>
        <script src="chart-animation.js"></script>
        <script>
    var canvas, stage, exportRoot;
      function init() {
      canvas = document.getElementById("graph");
      canvas = document.getElementById("piechart");
      images = images||{};
      var loader = new createjs.LoadQueue(false);
      loader.addEventListener("fileload", handleFileLoad);
      loader.addEventListener("complete", handleComplete);
      loader.loadManifest(lib.properties.manifest);
    function handleFileLoad(evt) {
      if (evt.item.type == "image") { images[evt.item.id] = evt.result; }
    function handleComplete() {
              exportRoot = new lib.animationthree();
              stage = new createjs.Stage(graph);
              stage.addChild(exportRoot);
              stage.update();
              createjs.Ticker.setFPS(30);
              createjs.Ticker.addEventListener("tick", stage);
        exportRoot = new lib.chartanimation();
              stage = new createjs.Stage(piechart); 
              stage.addChild(exportRoot);
              stage.update();
              createjs.Ticker.setFPS(30);
              createjs.Ticker.addEventListener("tick", stage);
        </script>
    </head>
    <body onload="init();" style="background-color:#D4D4D4">
        <canvas id="graph" width="530" height="410" style="background-color:#FFFFFF"></canvas>
        <canvas id="piechart" width="530" height="410" style="background-color:#FFFFFF"></canvas>
    </body>
    </html>

    Hi all,
    I have been using Flash CC to create some nice html5 animations and I am really enjoying it. However I wanted to add more than one animation to the same page. I have managed to get two animations running on the same page, but I am having some issues whereby only one of the animations load the supported images where as the second one does not. I have pasted my code below, any help would be gratefully received. In the long term I want to add many animations to the same page, so would appreciate some help on how this can be done more efficiently. Many thanks in advance.
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>animation test</title>
        <script src="http://code.createjs.com/easeljs-0.7.0.min.js"></script>
        <script src="http://code.createjs.com/tweenjs-0.5.0.min.js"></script>
        <script src="http://code.createjs.com/movieclip-0.7.0.min.js"></script>
        <script src="http://code.createjs.com/preloadjs-0.4.0.min.js"></script>
        <script src="animation-three.js"></script>
        <script src="chart-animation.js"></script>
        <script>
    var canvas, stage, exportRoot;
      function init() {
      canvas = document.getElementById("graph");
      canvas = document.getElementById("piechart");
      images = images||{};
      var loader = new createjs.LoadQueue(false);
      loader.addEventListener("fileload", handleFileLoad);
      loader.addEventListener("complete", handleComplete);
      loader.loadManifest(lib.properties.manifest);
    function handleFileLoad(evt) {
      if (evt.item.type == "image") { images[evt.item.id] = evt.result; }
    function handleComplete() {
              exportRoot = new lib.animationthree();
              stage = new createjs.Stage(graph);
              stage.addChild(exportRoot);
              stage.update();
              createjs.Ticker.setFPS(30);
              createjs.Ticker.addEventListener("tick", stage);
        exportRoot = new lib.chartanimation();
              stage = new createjs.Stage(piechart); 
              stage.addChild(exportRoot);
              stage.update();
              createjs.Ticker.setFPS(30);
              createjs.Ticker.addEventListener("tick", stage);
        </script>
    </head>
    <body onload="init();" style="background-color:#D4D4D4">
        <canvas id="graph" width="530" height="410" style="background-color:#FFFFFF"></canvas>
        <canvas id="piechart" width="530" height="410" style="background-color:#FFFFFF"></canvas>
    </body>
    </html>

  • How do i get the selected index in jsp from a select "in the same page!!!"

    i dont if it si possible but i want to get the selected index form a select implmenting javascript jsp an html something like this:
    html:select property="slcLocation" onchange="updateList(this.form)">
    <% for (int i=0; i< user.getNumLocaliza();i++)
    out.println("<option selected>" + user.getLocation(i,1));
    %>
    </html:select> </div></td>
    ...

    i try it in the same page but it fails, the code is:
    <html:select property="slcLocation" onchange="document.location.href='cajaApertura.jsp?slcLocation='+this.options[this.selectedIndex].value">
    <%
    for (int i=0; i< user.getNumLocaliza();i++)
    out.println("<option>" + user.getLocation(i,1));
    %>
    </html:select>
    </div></td>
    </tr>
    <tr>
    <td><div align="left"><font size="1"><strong><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif">Caja:</font></strong></font></div></td>
    <td bgcolor="#C4B4F3"><div align="center">
    <html:select property="slcCaja" onchange="document.location.href='cajaApertura.jsp?asdf='+this.options[this.selectedIndex].value">
    <%
    int caja;
    if (request.getParameter("slcLocation")!=null)
    //for (int i=0; i< cajaLocation.getNumCajas (request.getParameter("slcLocation"));i++)
    for (int i=0; i< 3;i++)
    caja = i+1;
    out.println("<option> Caja p " + caja + request.getParameter("slcLocation"));
    }else
    for (int i=0; i< cajaLocation.getNumCajas (user.getLocation(0,1));i++)
    caja = i+1;
    out.println("<option> Caja " + caja);
    %>
    </html:select>
    is this correct? what is my mistake?
    tnks for your help

  • Links between portlets on the same page

    Hi,
    I want to search for an employee in a poplist. When I choose one from the poplist I want a report to start that will show all the projects he is working in.
    The above happens but when I put my form as a portlet on a page I want the report to start in another portlet on the same page. Now it opens in a new window and that's not good.
    This is how the link works.
    On the link in the form I have a call 'javascript:runrep()'
    On the form, in the 'Form text' section, in the 'Footer Text' I added the
    code for the runrep function (given below).
    <script>
    function runrep()
    var formObj = document.forms[0];
    var pers_id;
    for (var i=0; i < formObj.length ; i++){
    if (formObj.elements.name == "PERSONAL_SOK.DEFAULT.ID.01"){
    //PERSONAL_SOK is the form name
    pers_id = formObj.elements[i].value;
    break;
    var url="http://linux.ekn.se:7778/pls/portal/ppe_utv.ppe_visa_projektforslag.show?
    //PPE_UTV is the schema_name and PPE_VISA_PROJEKTFORSLAG is the report
    p_arg_names=pers_id&p_arg_values=" + pers_id;
    window.location=url
    </script>
    I guess the url has to have another adress to open on the same page, but what?
    /Jennie

    The post below shows you how to link two reports on the same page. You can probably modify it's solution to achieve what you're trying to do.
    Providing Oracle's default color pallete
    Regards
    Hsiu

  • How is when a button pressed a report will come to the same page !!!

    Hi all,
    I wonder that is it possible to bring a report to the page as a region but only when a button pressed in apex .When ı clicked the go button for example ı want to list a report in the same page.
    but I dont know how .If is this possible can you explain me please.I need help!
    Thanks!

    Create your report in a region as normal.
    Create a second region and in this region create an item eg p171_item.
    In the same region create 2 buttons
    Get Report and Reset (branching back to same page).
    Create 2 page processes (PLSQL) on submit after computations
    1. GET REPORT
    DECLARE
    v_item number;
    Begin
    select 1 into v_item from dual;
    :P171_ITEM := v_item;
    end;
    2.RESET
    DECLARE
    v_item number;
    Begin
    select 2 into v_item from dual;
    :P171_ITEM := v_item;
    end;
    Tie the processes to the buttons.
    On your report region put a condition
    PL_SQL RETURNING BOOLEAN
    IF :P171_ITEM = 1 THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    Now by pressing the buttons the report region is opened and closed.
    Now hide P171_ITEM.
    Gus

  • Having trouble trying to link to an accordion panel on the same page

    Hello all,
    I've been following instructions on
    http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample.html#EnablingKey boardNavigation
    to try to link to/open a specific panel in an accordion panel from a menu on the same page, but it's not working. Could somebody tell me what I'm doing wrong? My page-in-progress is:
    http://fleap.com/YGRpage2011.html#
    The menu on the right, under the word, "Details", is the one I'm trying to link to the accordion panel, and the panel itself is lower down the page.
    thanks very much for any help you can give me!
    Anna

    1. Remove the constructor in the HEAD section of your document
    var acc1 = new Spry.Widget.Accordion("SpryAccordion1", { useFixedPanelHeights: false });
    2. Change the HTML markup to the following
    <ul>
      <li><a href="#" onclick="Accordion1.openPanel(0); return false;"> how <span class="title">You've Got Rhythm</span> works</a></li>
      <li><a href="#" onclick="Accordion1.openPanel(1); return false;">sample pages</a></li>
      <li><a href="#" onclick="Accordion1.openPanel(2); return false;">reviews</a></li>
      <li><a href="#" onclick="Accordion1.openPanel(3); return false;">syllabus</a></li>
      <li>copying license</li>
      <li>about the authors</li>
      <li>tips</li>
      <li>cd tracks</li>
    </ul>
    Gramps

Maybe you are looking for