URL encoded and refreshing the current page

Hello, I am redirecting to a page using response.sendRedirect(encodedPage). In the page which I redirect to, I have some code that checks if certain session variables are set. Upon redirection, all the session variables are set. However, if I hit the refresh button on my browser, the session check code tells me the variables are no longer set. Is this supposed to happen?
Any help would be appreciated.
jason

My suggestion probably has nothing to do with the
problem, but when you encode the URL for your
sendRedirect() call, are you using encodeURL()?
Because you should be using
encodeRedirectURL().
I am using encodeRedirectURL :) .... thanks for the suggestion though.

Similar Messages

  • ADF 10.1.3 Programatically committing changes and refreshing the list page.

    Hello,
    I have a requirement where on list page i select a recrod and than modifies it on next page. I am using different database views for list and update purpose. So when i save the changes, control comes back to REFRESHED list page.
    Pls let me know how can i commit and refresh the changes programatically. I hav added a method on managed bean as part of action binding.
    Thanks
    Manish

    public String beanMethod() {
    //obtain a reference to your bindingcontainer. chances are you have the "bindings" member variable of the mangaged bean and you have the getBindings() function already built by the wizard for you.
    DCBindingContainer bc = (DCBindingContainer)getBindings();
    //Make sure you have the "Commit" action binding on your pageDef. If not ob will return a Null reference. If you have drag and dropped the Commit operation on your ApplicationModule found on the Data Control Pallete on your page, the "Commit" operation should be there on your pageDef
    OperationBinding ob = (OperationBinding)bc.get("Commit");
    ob.execute();
    return "navigationToListPage";
    I think when you go back the listPage, the ADF framework will execute the query automatically.
    When you go to the update page, are you just updating the current row or creating a new row and then filling out the attribute values?

  • How to refresh the current page when retrieving data from database

    hi all
    in my application i want to navigate from different tables to different forms.  The data in the table and in the forms is comming fromthe database. when i select a navigation link to database of a form it is connecting to database.  so im manually refreshing the refresh button of I.E. which is big headache.  so is there any way to refresh my current table or form dynamically at run time to retrieve from database
    Thanks and regards
    khaja

    Hi,
      Refreshing a connection to Database means re establishing your connection each time.It will be load for the DB to load the data every time generally not advisable to do.
      Inorder to get the value from the DB you have load the driver and connect it using fireplug with the view for navigations.
      for the same refer this link.
    http://help.sap.com/saphelp_erp2004/helpdata/en/51/2c747ecd037842943bdb38be214719/frameset.htm
    Hope it helps.
    Rdgs,
    Guru

  • Clicking any button in the crystal toolbar refreshes the current page???

    Post Author: Saiedh
    CA Forum: Crystal Reports
    I have a crystalviewer that is setup in a table and the report loads fine the first time, but if I click any of the buttons such as next, previous, print, group tree, it will refresh the page.  Basically what happens is that their is a custom criteria panels and depending on what report is selected, the panel becomes visible.  You select your criteria and click Run Report and that will display your report, but when you click the toolbar, the bottom left of IE shows default.aspx, so it reloads the page and shows you the criteria panel again instead of the next page of the report.  Here is code below:
    Page_Load of Default.aspx
    protected void Page_Load(object sender, EventArgs e)
    if (!IsPostBack)
    calStartDate.SelectedDate = DateTime.Today;
    calEndDate.SelectedDate = DateTime.Today;
    GenerateUserList();
    GenerateRollingMonthWindow();
    GenerateErrorTypeList();
    GenerateInsuranceGroupList();
    GenerateAccountStatusList();
    MasterPage mpMaster = (MasterPage)this.Master;
    DropDownList ddlReportList = (DropDownList)mpMaster.FindControl("ddlReportList");
    if (ddlReportList != null)
    switch (ddlReportList.SelectedValue.ToString())
    case "ManagerSummary":
    DisplayCriteriaUserStartEndDate(mpMaster);
    break;
    case "CoachingPlanSummary":
    DisplayCriteriaUserRollingMonth(mpMaster);
    break;
    Any ideas why this is happening???
    Thanks in advance,
    Saied

    If you have firefox run the Error Console to see what JavaScript errors occured. For developing JavaScript FireBug is a very nice tool. Even if you are not running your forms in Firefox you could write a plain HTML file with your JavaScript code and test it like that. Once it works implement it in your basexyz.html.
    Internet Explorer should have a equal functionality too, but as I am not a frequent IE user I can't tell you where to find it.
    cheers

  • Button click without "refresh" the current page. Please help

    Hi everyone:
    Here is my code:
    Code:
    <HTML>
    <HEAD>
    <TITLE>Parallel Port</TITLE>
    </HEAD>
    <BODY>
    <H1 ALIGN="CENTER">On/Off Bit0 of server's parallel port</H1>
    <form name="myform" action="robotcontrol.jsp" method="POST">
    <input type="hidden" name="action" value="<%=action%>">
    <INPUT TYPE="SUBMIT" VALUE="set/reset">
    <jsp:include page="./VideoToApplet/htmlroot/index.html" flush="true" />
    </form>
    </BODY>
    </HTML>
    everytime i click the button, it will perform (set/reset) parallel port, and i have include a html page which consist a video streaming applet.Maybe cause of this:
    <form name="myform" action="robotcontrol.jsp" method="POST">
    So.. please help !! Thanks in advance.
    but unfortunately, everytime i click on the button, it will likely refresh the page, and the applet will auto reconnect to camera,(it take time to reconnect)..

    Inside the body of JSP/HTML page, at the end of <BODY>, paste this small script.It will refresh your page automatically after 20 seconds, that is nothing but the value assigned to V.You can assign the time interval as you wish.
    <SCRIPT language="javascript">
         var ONESEC = 1000 ;                    // One second (in ms)
         var V = 20 * ONESEC ;
         var ONEMIN = 60 * ONESEC ;     // One minute (in ms)
         var INTERVAL = 1 * ONEMIN ;               // How often is page refreshed (in ms)
         window.setTimeout(function(){
                                            window.location.reload() ;
                                            },V) ;
    </SCRIPT>

  • Return to the current page after refreshing

    Hello!
    When I refresh the current page I'd like to return to it, not to another page.
    When I choose "SAP Business Intelligence" forums link (with all subordinate forums in one screen) and go to previous pages (for example, to 3rd page), even if I return to 1st page when I refresh the screen it shows me again the 3rd one, not the first. It's very annoying. Could it be changed?
    Best regards,
    Eugene

    Eugene
    The forums are displayed in an iframe. Therefore, if you wanted to simply refresh the forums to the exact page that you have navigated to, you should right-click on the content area of SDN (the forums page) and choose the refresh option. This will refresh this window and should keep your place marker. If you refresh the URL in the browser window then this will refresh the entire SDN page and will take you to the entry point of the forums.
    I hope this helps
    D

  • Javascript pop up windows -- forces the current page to change?

    I have a really odd bug. I am testing a javascript popup window for a report. I edit the column of the report and tell it to link to a URL. For testing purposes I just put in javascript:window.open(); That takes fine. However, when I click the link in the report, it refreshes the current page, the url stays the same but the only thing I see on the page is [object]. White screen, black text. Anyone have any idea as to whats causing this? Thanks a bunch.

    Create the &lt;A&gt; like this
    &lt;A href="javascript:void(0)" onclick="javascript:fnPopup()">link&lt;/a&gt;
    or
    &lt;A href="javascript:fnPopup()"&gt;Link&lt;/a&gt;
    To achieve this I will type the following in URL
    javascript:void(0)" onclick="javascript:fnPopup()
    Note: there is no double quotes at the beggining and end.

  • Open Firefox 4 in new window gives a Window frame and address bar does not refresh the current url

    Using Firefox 4 in Windows 7
    I have customised the position of tabs (Tabs on top) and which toolbar items I would like to see.
    The first window I open of firefox 4 always has the configuration as I set it.
    Whenever I open a new window of firefox either:
    - Right-click a link to open in a new window
    - Click a link anywhere (such as an email) to open a new window
    - When a website opens a page in a new window
    Bad Results:
    - The new window does not have the configuration as set in the main window (Tabs on top)
    - The new window has a windows type window frame around the firefox window (see two sets of window controls eg. "minimise", "restore" and "close")
    - The open page does not show the url - navigating to a new page within this window will not update the url :: strangely enough clicking the url page icon will update the url as it should be
    - Sometimes when restarting firefox, it will open the first main window with the remembered tabs and then open approx 8 or so blank new windows as described above

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • I am forced to hold shift and refresh the page on 99% of the sites I visit. How do I fix this from happening? If I don't the pages are missing style sheets and etc.

    When ever I go to sites they half load or are missing style sheets. If I view the source for the page and click on a style sheet link I get the following error:
    Content Encoding Error
    The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
    If I hold shift and refresh the page loads as normal.
    It's happening on 99% of the sites I visit. I have disabled my plugins and add-ons.
    I do have some add-ons or plugins that I would like to remove completely but there is no uninstall or remove option, neither in regular or safe mode.

    '''I'm NOT buying a backup Computer till, Firefox will Run on Windows 8 !'''

  • How to open a URL without session ID and reuse the current browser session?

    Hi All,
    I have a question about HTMLDB 2.0
    How to open a URL without session ID and reuse the current browser session?
    That was the behaviour in HTMLDB 1.6 ...
    My usecase for this is the following:
    We have written an issue tracking application, which sends e-mail to the interested users, when something happens.
    In these email we've put a link to some page, with some parameters in the URL.
    The idea is for the user to be easy to click on the hyperlink and to see the details of the ticket.
    When the user clicks on such a link he is directed to a login screen (page 101) and he enters his Username and password, and is then forwarded to the details for the ticket.
    Then he receives another email (e.g. for another ticked). He clicks on the link and :
    a) in HTMLDB 1.6 he goes to the details as he didn't close his browser and session is remembered
    b) in HTMLDB 2.0 he is prompted to enter username, password with the username populated
    Please tell me how can I achieve the same behaviour in HTMLDB2.0 as it was in HTMLDB 1.6.
    I understand this change is somehow security related, althogh I don't understand how. If you can explain this either I would be very happy?
    Best regards,
    Mihail Daskalov

    Mihail - I detailed a couple of approaches here: Re: Application Link
    Scott

  • How to get the current page URL

    HI All
    I am working in oracle apps 4.0
    I have one page called history in that i have one page item called Application url. My application id is 122 but its a copy of application 106
    How to get the current page url for the page item.
    Any steps should be help ful
    Thanks & Regards
    Srikkanth.M

    I'm not 100% clear on what the requirement is from the description, however it does sound like you are making things unnecessarily complicated.
    If you want permanent/ID-independent links then use application and page aliases.
    so here we used to display the url like this: <tt>{noformat}http://81.131.254.171:8080/apex/f?p=122{noformat}</tt>
    Do you mean that the URL is displayed like that? If so that doesn't seem particularly helpful. How is anyone supposed to know what it is?
    There are many ways to provide links in APEX&mdash;including lists and nav bars.
    Where the link is to another resource located on the same server (such as another page in the same app, or a different app in the workspace), relative addressing can be used, making it unecessary to include scheme, domain and port information in the URL. For example, if the page to be linked to has a page alias <tt>ABOUT</tt> in an application with alias <tt>UNITY</tt>, and the apps share an authentication scheme/cookie to permit shared sessions, then the link URL is simply
    f?p=UNITY:ABOUT:&APP_SESSION.

  • Collecting the URL for the current page..

    I'd like to collect the complete URL that created the current page. I'd like to pas this information to a succeding dynamic page, so that I can return to the current page.
    I have tries using the OWA_UTIL.get_cgi... routines but they seem to be lacking the parameter list to make them complete. The path and page, but no parameters.
    Is there an API routine or a technique to accomplish this in PL/SQL?
    Thanks,
    Stuart

    We had the same problem at a project, we solved it with the use of javascript. If you want an example mail me at [email protected]
    arny

  • How can I get the current user and the current page?

    Hi everyone
    Question..
    It is possible to get the current user (from the user's database on apex) and the current page? (I mean, if I'm in page 4 be able to query a variable / function or something which could give me the current displayed page)
    Thank you very much... I'd been researching without success :-S so I'll appreciate your help
    Regards,
    Fury

    Fury,
    If the user has authenticated, :APP_USER is the name that was used. The current page id is in :APP_PAGE_ID.
    Although I showed bind variable notation for those, & substitution format and v() notation are also available for referencing developer-defined items or built-in names. See the User's Guide for more details.
    Scott

  • How to you reference the current page number and total pages in a script?

    I'm trying write a small script to make field invisible when the current page equals the total number of pages, but with no luck.
    Can anyone advise how to do this?
    I've tried various ways to reference my fields, this being the most basic:
    if(pageNumber == totalPages) {
    continuedBase.presence = "invisible";
    // pageNumber has a run time property as "Current Page Number"
    // totalPages has a run time property as "Number of Pages"
    // continuedBase is a text field within the same subform as pageNumber and totalPages
    Thanks for any help offered.
    Russell

    If you are asking how to get the current page and total pages you acn use these commands:
    current page ----- xfa.layout.page(this)
    total pages ------ xfa.layout.pageCount()
    so your code woudl look like this:
    app.alert("The curent page is: " + xfa.layout.page(this));
    app.aler("The total number of pages is: " + xfa.layout.pageCount());
    if(xfa.layout.page(this) == xfa.layout.pageCount()) {
    continuedBase.presence = "invisible";

  • I click a link and it opens on the current page and a new tab, how do i keep the first tab on the current page and only have the link clicked on appear in the new tab?

    I go to click a link for any site and it opens the link in the current page and a new tab. I only want it to open the link in the new tab. I want to keep the original tab what it was.

    you can try to write some web driver to do this particular job for you, one such driver is Selenium. know more about it at https://code.google.com/p/selenium/downloads/list.
    But this thing will need a good programming skill. Otherwise you have Adblock plus addon (https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/), you can try this. you can also contact its developer to include this particular facility also in this add on

Maybe you are looking for

  • Best practice for naming convention in BI 7.0

    Hi All, Is there a Best Parctice document for naming convention in BI 7.0? Thanks, S.B

  • How to open .jp2 files?

    How to open jp2 files?

  • Satellite A40-271 - Where can I find drivers?

    Helllo everybody, I have a Satellite A40-271, model number: PSA40E-09XD2-SP, and I don't find drives/support for it on toshiba web. Is there any similar model to download drivers? I want to know how I can enable WPA on my Toshiba Wireless LAN Mini PC

  • How do I add this effect to a rotated video [pic]

    I have a rotated video which now has black bars on either side which looks like so: How do I make it so the black bars on the sides are the right & left sides of the actual video appearing blurred? Like this: I don't want to have to zoom to fit. Than

  • 10.6.8 "infected"?

    Been using 10.6.8 for years, no problems. Recently I'm seeing the Beachball soon after start-up, nothing shows in Force Quit window, suspicious Anonymous Process (need to note PID) comment after doing a Forced Shutdown then Reboot out of Single-user