How to Redirect to other page

Hi,
i have a select list and a button, when i click the button, i would like it to follow the selection from the select list and redirect to different page. I have total 2 pages, page 1 and page 2. I created a selected list named "P2_GROUPBY", and a button named "Filter".
And i create a process to cater the logic of it.
{color:#333399}begin
case
When :P2_GROUPBY = 'PRDFML' then{color}
{color:#008000}-- Code i should redirect to page 2{color}
{color:#333399}When :P2_GROUPBY = 'FAMILY' then{color}
{color:#008000}-- Code i should redirect to page 3{color}
{color:#333399} end case;
end;
{color:#000000}Please help me with this matter,
Thank you.
Best Regards
Vincent.
{color}{color}

Varad,
Thank you for the suggession, i did try your method, and i created a process to set the setting, somehow, the page still post back to the original page.
my Process:
page1
{color:#000080}Begin
if :F117_PAGE is not null then{color} {color:#008000}-- :F117_Page is application item so i do not need to created in other page.{color}
{color:#000080}:F117_PAGE := '';
end if;
{color}
{color:#000080} case
When :P2_GROUPBY = 'PRDFML' then
:F117_PAGE := 2;
:P2_TESTING := :F117_PAGE;
When :P2_GROUPBY = 'FAMILY' then
:F117_PAGE := 3;
:P2_TESTING := :F117_PAGE;
end case;
end;
{color}
*{color:#000000}Branching to URL identified by Item.*
*{color}*After the process, this branch will trigger by the "filter" button, and go to that particular page.
I put branch action to:
:F117_PAGE
Somehow, the page still redirect to the current page.
~Vincent.

Similar Messages

  • How to redirect to other page in a dialogListener?

    Hi All,
    I am using JDeveloper 11g with ADF BC.
    How to redirect to another page from a dialogListener of <af:dialog>?
    I have a page with a [Delete] button on it. When user click on the delete button, a confirmation dialog will appear to ask "Are you sure? [Yes/No]". If user answer [Yes], I will delete the current record, and go to another page. I can call a Operation Binding in the dialogListener, but I don't know how to go to another page.
    public void handleDeleteDialog(DialogEvent dialogEvent) {
    OperationBinding operationBinding = bindings.getOperationBinding("Delete");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    // redirect to another page?
    Regards,
    Samson Fu

    Hi Samson,
    Check following link for your query:-
    Re: page has to navigate to the next page when  clicking button in the popup
    You can also make usae of Navigation Handler to invoke the navigation action in your task flow as
    FacesContext facesCtx = FacesContext.getCurrentInstance();
    NavigationHandler nh = facesCtx.getApplication().getNavigationHandler();
    nh.handleNavigation(facesCtx, "", "ActionNameInTaskFlow");
    Vikram

  • How to redirect to different page after login in APEX 4.1

    Dear All,
    Here my Requirement is,When the users login,
    when they entered their username and password and pressed login button,
    they have to redirected to different pages based on the type of user.
    Here my LOGIN_TABLE has following 3 columns,
    1.Username
    2.Password
    3.Type.
    The TYPE has 2 values, employee and admin.
    when the type is admin they should be redirected to page 2,
    reaining i.e employee users has to be redirected to page 3.
    How can I do this? please give some suggestion.
    Thank you.
    regards,
    Gurujothi

    Dear Christian,
    Thank you for your reply,
    I would like to explain something,
    When I using the following function,
    *create or replace FUNCTION custom_auth_g (
    p_username IN VARCHAR2,
    p_password IN VARCHAR2)
    RETURN BOOLEAN IS
    BEGIN
    FOR c1 IN (SELECT 1
    FROM login_table
    WHERE upper(username) = upper(p_username)
    AND upper(password) = upper(p_password))
    LOOP
    RETURN TRUE;
    END LOOP;
    RETURN FALSE;
    END;*
    When login, It checks in the login_table table and if the username is exist with the pass word it successfully entered inside the application.
    for all users only one page which we set.
    My Login_table also contains type which has 2 type as I mentined above.
    But As I mentioned earliar based on the user type it has to be redirected to 2 different page.
    I found this Package but I cant understand,Can you please Explain?
    *create or replace PACKAGE app_security_pkg
    AS
    PROCEDURE add_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    PROCEDURE login
    p_uname IN VARCHAR2
    ,p_password IN VARCHAR2
    ,p_session_id IN VARCHAR2
    ,p_flow_page IN VARCHAR2
    FUNCTION get_hash
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    RETURN VARCHAR2;
    PROCEDURE valid_user2
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    FUNCTION valid_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    RETURN BOOLEAN;
    END app_security_pkg;*
    *create or replace PACKAGE BODY app_security_pkg
    AS
    PROCEDURE login
    p_uname IN VARCHAR2
    ,p_password IN VARCHAR2
    ,p_session_id IN VARCHAR2
    ,p_flow_page IN VARCHAR2
    IS
    lv_goto_page NUMBER DEFAULT 1;
    BEGIN
    -- This logic is a demonstration of how to redirect
    -- to different pages depending on who successfully
    -- authenticates. In my example, it simply demonstrates
    -- the ADMIN user going to page 1 and all other users going
    -- to page 2. Add you own logic here to detrmin which page
    -- a user should be directed to post authentication.
    IF UPPER(p_uname) = 'ADMIN'
    THEN
    lv_goto_page := 1;
    ELSE
    lv_goto_page := 2;
    END IF;
    APEX_UTIL.SET_SESSION_STATE('FSP_AFTER_LOGIN_URL');
    wwv_flow_custom_auth_std.login
    p_uname => p_uname,
    p_password => p_password,
    p_session_id => p_session_id,
    p_flow_page => p_flow_page || ':' || lv_goto_page
    EXCEPTION
    WHEN OTHERS
    THEN
    RAISE;
    END login;
    PROCEDURE add_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    AS
    BEGIN
    INSERT INTO app_users (username, PASSWORD)
    VALUES (UPPER (p_username),
    get_hash (TRIM (p_username), p_password));
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    ROLLBACK;
    RAISE;
    END add_user;
    -- Function to Perform a oneway hash of the users
    -- passwords. This cannot be reversed. This exmaple
    -- is a very week hash and if been used on a production
    -- system, you may want to use a stronger hash algorithm.
    -- Read the Documentation for more info on DBMS_CRYPTO as
    -- this is the supported package from Oracle and
    -- DBMS_OBFUSCATION_TOOLKIT is now depricated.
    FUNCTION get_hash (p_username IN VARCHAR2, p_password IN VARCHAR2)
    RETURN VARCHAR2
    AS
    BEGIN
    RETURN DBMS_OBFUSCATION_TOOLKIT.md5 (
    input_string => UPPER (p_username)
    || '/'
    || UPPER (p_password));
    END get_hash;
    PROCEDURE valid_user2 (p_username IN VARCHAR2, p_password IN VARCHAR2)
    AS
    v_dummy VARCHAR2 (1);
    BEGIN
    SELECT '1'
    INTO v_dummy
    FROM app_users
    WHERE UPPER (username) = UPPER (p_username)
    AND PASSWORD = get_hash (p_username, p_password);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN raise_application_error (-20000, 'Invalid username / password.');
    END valid_user2;
    FUNCTION valid_user (p_username IN VARCHAR2, p_password IN VARCHAR2)
    RETURN BOOLEAN
    AS
    BEGIN
    valid_user2 (UPPER (p_username), p_password);
    RETURN TRUE;
    EXCEPTION
    WHEN OTHERS
    THEN RETURN FALSE;
    END valid_user;
    END app_security_pkg;*
    And you said "assign an URL to FSP_AFTER_LOGIN_URL, depending on the Type column",
    Where to assign,Could you please Explain?
    Thank you.

  • How to redirect a JSP page after the session is killed

    Hello!
    I am quite new to JSP. I have a question about how to redirect a jsp page after the session is killed. Could anyone help?
    thanks a lot in advance!

    You can't, directly. There's no connection betweenthe server and browser.
    even after invalidating the session. we can do it
    directly using the statement
    response.sendRedirect("....");
    or we can use the meta refresh tag.if session is invalidated and if we try to do response.sendRedirect(".. ") it throws IllegalStateException

  • Just downloaded Firefox 23 update and now links that show up in my browser searches redirect to other pages

    I downloaded the new update to Firefox 23 (I wasn't sure about it because it looked very weird and behaved differently) and immediately when I clicked on some (not all) of my bookmarks I was redirected to other pages I have never seen before. Also, when I used either Bing or Google search engines, when I click on one of the links given by the search I got redirected to those same odd pages every time. I closed Firefox and ran a virus scan, and even though it caught the usual number of tracking cookies and malware, they were all the same ones it usually catches. I could not find any strange extensions or plugins in the Firefox list, other than the plugins page now has a tab by every item that shows "always activate". Are you hearing from other people about similar problems?

    Problems with bookmarks and history not working properly can be caused by a corrupted places.sqlite database file.
    You can check for problems with the places.sqlite database file in the Firefox profile folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file

  • How to Redirect to a page From a link in Header.

    Hi , I have a link in the Header.jsp to Contactus page. How to navigate to that page From header.jsp.
    Can any one please help me on this

    User render:pageUrl tag
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadocjsp/framework/render/pageUrl.html
    I assume you mean that you wish to goto the page and not a 'redirect'

  • How to redirect to a page dynamically after authentication Apex

    We have developed an application and the application id is 333.
    we have developed a login screen(page No. 111).
    After login Company page (Page No.1) will appear where the user selects the company name.
    Once company is selected, the control goes to Menu Page(Page No.10). The menu will be displayed based on the user rights.
    In shared Components - Authentication scheme,
         In session Not Valid region, URL option is selected and URL is assigned as "we have given "f?p=&APP_ID.:111:&SESSION."
         In Logout URL, URL option is enabled and URL is assigned as "f?p=&APP_ID.:111"
    In shared Components - Security Attributes,
         In Authentication region, in HOME link "f?p=&APP_ID.:1:&SESSION." is assigned
    In login page (Page No. 111), we have created a process "On Submit - After computation and validations".
         in that
              we are checking a condition like
              if the user has access to Only one company then he will be redirected to Menu_page(Page No.10).
              if the user has access to more than one company then he will be redirected to Company Page(Page No.1).
    if "No. of company access" =1 then
    wwv_flow_custom_auth_std.login (p_uname => :p111_username,
    p_password => :p111_password,
    p_session_id => v ('APP_SESSION'),
    p_flow_page => :app_id||':10'
    else
    wwv_flow_custom_auth_std.login (p_uname => :p111_username,
    p_password => :p111_password,
    p_session_id => v ('APP_SESSION'),
    p_flow_page => :app_id||':1'
    end if;
    The above condition is not working. ie. it is always loading Company Page(Page No.1) even if the user has access to one company alone.
    Can anyone point out the place where I have done wrong. Or please suggest me a method to achieve the above said task.

    Hi User490632,
    During the login,
    it using the custom authentication function which I mentioned below,
    *create or replace FUNCTION custom_auth_g (
    p_username IN VARCHAR2,
    p_password IN VARCHAR2)
    RETURN BOOLEAN IS
    BEGIN
    FOR c1 IN (SELECT 1
    FROM login_table
    WHERE upper(username) = upper(p_username)
    AND upper(password) = upper(p_password))
    LOOP
    RETURN TRUE;
    END LOOP;
    RETURN FALSE;
    END;*
    its working fine, If I give the username and password which exist in the table login_table.
    Now I need to redirect to 2 different pages.
    if the username is 'guru' then when he clicked the login button he has to redirect to page 2,
    if username is any other name except 'guru' they have to be redirected to page 3.
    Can you please give the step by step procedure to follow?
    Thank you.
    Regards,
    gurujothi

  • How to Redirect to another page Using JavaScript in ADF Faces?

    Hi Guys,
    I have a UI user case that has a af:menu which contains mutiple af:goMenuItem. When user click on the menu, the menu slides down and shows up the af:goMenuItem. As we know, you could define the page destinations in af:goMenuItem to go to another page when user clicked, but af:menu itself cannot be redirected to another page. Well, the user case wants the menu itself could be redirected if user click on it.
    So I am thinking using JavaScript to do this: when the af:menu gets clicked, redirect to another page. BUT, I looked over the ADF Faces Javascript API and was not able to find that piece of code to do this. Any help???
    Another work around for the user case scenario is to use HTML marks + CSS/JavaScript instead of af:menu and af:goMenuItem but this changes the scope of technology although it's not hard to do
    Any other idea to accomplish the user case other than what I could think of ?
    Thanks Guys!
    Jay

    Hi,
    1 - you can have a hidden command item to do the navigation based on a control flow case. In this case, you access the command component from JavaScript create a new ActionEvent and queue it
    2 - JavaScript can use an af:serverListener to call into a server side managed bean method to perform the navigation
    there is no JavaScript API for navigation in ADF Faces because navigation in JavaServer Faces is an event driven framework and we don't support developers fighting the framework.
    Frank

  • Question about redirecting to other pages

    I have read that redirecting in jsp pages is not working sometimes. The redirection is propably works with Cookies, so if a client would disable all the Cookies from his browser the redirection would not work at all. I use the response.sendRedirect("...") command for this. Does anybody know if this problem stands and if so is there any way or other command to avoid it?
    Thank You !!!

    Yes I agree the JSP redirect should always work. Cookies or no Cookies... on Any browser... This a a server side header replacement, so it should be very reliable.

  • How to redirect to home page on "Cancel" button click

    Hi,
    I have created a web part for office 365 developed using sandbox solution on Sharepoint foundation 2013.
    On "Cancel" button click i want to redirect user to another page(Home page) using C# only.
    i used some methods like 
    Context.Response.Redirect(SPContext.Current.Web.Url.ToString() + "/Home.aspx");
    but its not working. No methods which includes context or HttpContext is not working.
    Please, tell me how can i redirect user to site home page.

    Hi,
    you can try this
    var button
    = new Button();
    button.Attributes.Add("OnClick"
    , "javascript:{window.location='your
    page url';return
    false;}");
    this.Controls.Add(button);
    Hope it helps!
    Avni Bhatt

  • How to redirect a jsp page?

    Hi
    I have two jsp pages called submit.jsp and save.jsp.In the submit.jsp page
    I wrote the following code
    <form name= Submit action=save.jsp>
    <input type=Submit name=save value=save>
    whn i submit save .jsp page is opend and will dispaly a message saved the data.Now wht i want is after the save.jsp page is opened the page should be automatically redirected in 3 seconds to submit.jsp that is the first page.How can i dothis.Pls give me some code.
    Thanks

    Something like...
    <META HTTP-EQUIV="Refresh" CONTENT="3; URL=your.jsp">
    in your <head> tag where 3 is the number of seconds to wait.

  • How to redirect to a page (without branching and without pl/sql)

    Hi,
    Have a requirement where when a user log into the application, the APP_USER must be checked against the list of users maintained in a database table, if APP_USER name exist in the table, the user must be redirected to the home page else user must be redirected to the Registration page.
    Tried the branching concept:
    Branch Point: On Load: Before Header
    Condition: NOT Exists (SQL Query returns no rows)
    Expression1 : select * from users_tab where name = v('APP_USER')
    When this condition is given, though the user name does not exist in the users_tab, the page is redirected to page 1 instead of the Registration page.
    Where is the problem here?
    How can it be resolved?
    Is there an alternative way to implement this?
    Edited by: 935799 on Jun 7, 2012 6:51 AM

    935799 wrote:
    Hi,
    Have a requirement where when a user log into the application, the APP_USER must be checked against the list of users maintained in a database table, if APP_USER name exist in the table, the user must be redirected to the home page else user must be redirected to the Registration page.
    Tried the branching concept:
    Branch Point: On Load: Before Header
    Condition: NOT Exists (SQL Query returns no rows)
    Expression1 : select * from users_tab where name = v('APP_USER')
    When this condition is given, though the user name does not exist in the users_tab, the page is redirected to page 1 instead of the Registration page.
    Where is the problem here?
    How can it be resolved?
    Is there an alternative way to implement this?
    Edited by: 935799 on Jun 7, 2012 6:51 AMThe above should work, try this
    select * from users_tab where upper(name) = nvl(:APP_USER,'X')

  • How to redirect to a page dynamic

    Hello everyone,
    I have the code bellow in public void init() of a fragment page.
    My problem is how to call a page in a dynamic way... if the codigoUsuario is null
    try{
    if (getRequestBean1().getCodigoUsuario()!=null){
    getTb_usuarioRowSet().setObject(1,
    getRequestBean1().getCodigoUsuario());
    }else{
    //code here to go to Login.jsp
    }catch(Exception e){
    log("ErrorDescription", e);
    error(e.getMessage());
    Please someone... help me
    thank�s
    Gustavo Callou

    I have already solve this problem with
    this.getExternalContext().redirect("/Patrimonio/faces/Login.jsp");

  • How to redirect to a page after login fails?

    Since I am working on an automated login from Forms I would like the login page to redirect to an error page if the login fails. I can't seem to find an option for this.
    I am using a public page that branches to 101 with BRANCH_TO_PAGE_ACCEPT, but when login fails I see this login page.
    Instead of that I would like to redirect to a public page that shows a message.
    How can I do this?
    Wendy

    A login failure is when the user and/or pass is not correct. I do not want to show page 101 but a different page when this happens.
    I am using the default login page but I am calling it with BRANCH_TO_PAGE_ACCEPT so the user never sees it and I want to keep it that way....

  • Looking For A Good Tutorial That Shows How To Redirect A Form Page.

    Hi,
    Attached is a mock up of the Home Recipes Page on the site I'm building. When a user clicks on one of the categories (Desserts, Drinks, etc), I want them to be able to go to the Main Page for that category, on which will appear the recipes that have already been posted by them or someone else. Also on the Main Page, I want them to be able to click on a button that takes them to a page on which they can enter a recipe. There are four fields on the "Enter Page;" Recipe Title, Ingredients, Preparation, Serves How Many.
    Does anyone know of a good tutorial that would help me accomplish what I'm trying to do, and/or answer some of the questions I have?
    1. For the page on which they use to post a recipe (in the process of building this one), is that named something like enterDesserts?
    2. For the page on which the already posted recipes appear, do I name it something like postedDesserts?
         2.a. I know I'll have to create a container div on the "posted" page for each of the four fields on the "enter" page, but how do I direct the  
         information that's entered into the proper div?
    Thank you!

    Hi,
    the "linking between the various Main Pages" is ok in my view.
    Here
    <td><a href="RecipesDesserts.php">Desserts</a></td>
    <td><a href="RecipesDrinks.php">Drinks</a></td>
    <td><a href="RecipesFowl.php">Fowl</a></td>
    you use the same key-words in your headline. In order to a precise distinction you should refer to "Recipes for Desserts" like this:
    <td><a href="RecipesDesserts.php">Recipes for Desserts</a></td>
    <td><a href="RecipesDrinks.php">Recipes for Drinks</a></td>
    <td><a href="RecipesFowl.php">Recipes for Fowl</a></td>
    ok?
    Hans-G.
    PS
    And don't forget to study: http://labs.adobe.com/technologies/spry/samples/

Maybe you are looking for

  • Multiple HTTP requests using single HTTPService component

    Hi, I am having one requirement, I need to use a single HTTPService component to send request to a same and single ASP.net multiple times. How can I acheive that..? I know that I can acheive this by sending one request at a time and after the "result

  • Is Iphone 6 from Straight Talk unlocked?

    as titled

  • ITunes - Incoming network connections error message

    Hello, I am hoping some one can help me? I have a Mac and I keep get an error message appear when I open my ITunes. The error message reads " Do you want the application iTunes to accept incoming network connections". I have changed the security sett

  • Where is my editable PDF content?

    I have created editable business card PDF which saves perfectly. When I upload to an online printing company my editable content does not show.

  • Cannot highlight multiple pages

    In the pages view, I would like to be able to highlight multiple pages in a document to move them around together, delete, etc.  I used to be able to do this, by clicking on a page, holding control and then clicking the other pages.  This no longer w