Redirect to the original page after login

Hello, I'm new in the Fusion of the ADF, I'm trying to get my program to do the redirection, submitted by the user, after logging, page example: otherwise

the user is connected to the session, and someone is trying to access a path in the browser (... faces/protected/admin/page.js) JAAS (Yes, I use JAAS, JAAS not ADF security, so I tried that before JAA redirect to the login screen, he kept the URL TO which the user has tried to do that when connecting the user to the system, it redirected to this page) not a standard page...

I tried to recover using this url PhaseListener, filter using the filter applications (/ *) and using the < f: event > someone at - it suggestions?

OBS: authorization and authentication with JAAS is ok, I wanted to just implement this dynamic redirect

I create the hidden entrance and a button to test the parameter:

public class test {}

@ManagedProperty(value="#{param.from")

private String

I don't know if the injection with @ManagedProperty will work.

So, first make sure that hidden field a correct value (you can check this in the source of the page, or you can add a component any visible...)

If this value is correct, you can try to evaluate EL inside your connection method with:

public static String evalAsString(String p_expression){
    FacesContext context = FacesContext.getCurrentInstance();
    ExpressionFactory expressionFactory = context.getApplication().getExpressionFactory();
    ELContext elContext = context.getELContext();
    ValueExpression vex = expressionFactory.createValueExpression(elContext, p_expression, String.class);
    String result = (String) vex.getValue(elContext);
    return result;
}

and then:
String from = evalAsString("#{param.from}");

Dario

Tags: Java

Similar Questions

  • Redirect the user to the previous page after login

    Hello

    The login process on page 101 of the application redirects the user to page 1 after successful login. If the user is currently on page 9 of the application, the session expires and the user is redirected to the login page. Now when the user connects again, can redirect us the user to the page 9 instead of page 1?

    Thank you
    Machaan

    Tony, when the session expires after idling, wouldn't the point of application is invalid and so no point of application of the new session value any?

    Machaan,
    My suggestion would be to save the current page to a variable preference of the user (by saving it to an application process that is running on the page of each page load). Extract the value of this preference after connection and redirect to this page (owa_util.redirect_url) if it is not null. On logout, delete this preference, so that you are not redirected to this page in the next connection.

    Note that the implementation of your condition (using any approach) could lead to problems that you might want to consider.
    For instance if the user was in a page that has a dependent process/calculations onload on some elements of the page (another page set) as would be the case with a child page/edit record of pages; It can generate many unforeseen errors when you connect and redirect to this page without setting any of these elements.
    Another case would be when these pages were opened in pop-up windows or the content of the iframe (and which should be called in a different page) and the parent page has expired without any submission (so once again is the child page last page)

  • Navigate to the correct page after login

    Hi Ben
    I have a list of links that navigate on different pages. Some of the pages that links navigate to be approved, so page 101 is presented to the user. When the user connects, page 101 ordered them on page 1 (at home). How can I make the experience smoother users taking them on the page that they have planned to go to. A few times this page will be in another application.

    Thank you
    Ben

    Ben,

    When you use this format first (P_FLOW_PAGE =>: APP_ID |) (': 1'), the result should be that the login page after is the originally requested page (deep link). If no page has been requested, say just specified the application in the connection of execution ID, then the login page after page of the current application 1 will be.

    When you use this second format (P_FLOW_PAGE =>: APP_ID), the result should be that the login page after is the originally requested page (deep link). If no page was requested, say that you have specified just what ID application in the connection of execution, then the attribute of the application homepage link would be used for the connection URL after-service.

    Scott

  • How can I back to the original page after a link to the different layout?

    I want my user to be able to click the link, and switch to the display of the page, then return to the original location so that they can continue to read the document. Right now I'm using bookmarks and Table of contents to post a link back to the area where the drive started from. There must be a better way. Thank you.

    Hi Tami,

    User can also use combinations of shortcut that is (ALT + LEFT ARROW) keys or the navigation path see-> Page Navigation-> previous view.

    Kind regards
    Rahul

  • Redirect to the same page after submitting a form

    I use a landing page form Eloqua to drive online capture at all our shows. Right now, I have been creating pages for individual destination and forms for each of them... which isn't an ideal situation. I also started using query parameters, so I have a default form that will capture a unique campaign for each show ID. It is, I can't figure out how to redirect the submission form!

    Example:

    testing.Eloqua.com/tradeshowleadform?source=CAMPAIGNID123

    On form submission, the source meets the fact that he was from CAMPAIGNID123 and puts it in the system. But I can't get back to this exact URL for redirection! I get to go back to ' testing.eloqua.com/tradeshowleadform"...but I need to the query parameter in order to capture the right campaign."

    Anyone has an idea on how to do it? My one idea was to enter the FULL URL in a field called (returnURL), but don't know how to do this since the request parameters are only for everything after the question mark.

    Any help would be greatly appreciated.

    Thank you!

    -Jon

    Try campaignid1.  If this does not work, you can find the HTML for the merger of field by inserting it into an email or landing page and showing the source code.

  • How to return to the original page, when I click on a hyperlink in the same document

    I have converted a word document to PDF that has many hyperlinks within the same document. Go back to the original page after the hyperlink tab display?

    Thank you

    Heather

    Click previous view or use Alt + back arrow.

  • Journal of R12 SSO on redirecting to the home page of R12

    Hi all

    I joined R12 with SSO. After clicking on connect, it redirects to the home page again after trying for a while to close your session in the sso page. Help, please.

    Environment, R12.1.3, Aix 6.1

    Kind regards

    Cherkaoui

    Hi Haran,

    Please confirm if the recent changes have been made, and this feature was working fine before.

    Please see if you can find more details in the log of Apache and Application files.

    Please also have a look at the notes:

    Logout link in E-business Suite does not return to the SSO login Page when using Ondaaah (Doc ID 735308.1)

    Thank you &

    Best regards

  • Windows Update has encountered an error and cannot display the requested page after that I click on express update.

    Original title: page Web update always comes back also cannot display the Web page after that I click on express update.

    Page Web I cannot update. Obviolsy I have access to the internet. I tried this several times. I have reintalled windows and I need update Inorder for programs work. Help. I have IE8. XP pro74 free concerts on drive c 400gigs e and d

    Is this the same computer as in this thread previous & abandoned of yours? -Online http://answers.microsoft.com/en-us/windows/forum/windows_xp-networking/remote-desktop-wont-connect-win-7-to-win-xp-pro/d0995287-356b-4e1f-aa51-1813625b4014

  • Its results are not redirect to the respective pages


    Hi all

    I configured ITS Peoplesoft peopletools 8.53 and ELM 9.2 instance.

    After you have everything configured, ITS search results arrive correctly but is you click on it, it is not redirecting to the respective pages.

    This is to show the error on the page in the status bar of Internet Explore.

    Could you please help me to solve the problem.

    Thanks in advance.

    AJMAL

    Hello

    Probably you are encountering the problem that is described in this document of knowledge "My Oracle Support":

    Doc # 1551951.1: Search 'Results list' contains links that do not work because they are built with the incorrect URL

    Here is the solution:

    ------------------------

    Make sure that the content/portal URI are set correctly on all nodes the.  This can be done as follows:

    1. connect to the PeopleSoft application

    2. go to PeopleTools Integration Broker, integration configuration, nodes

    3. sort by "Local node".

    4. for any node where "node Local = 1' do the following:

    a. set up the node

    b. go to the tab "portal."

    c. ensure that the text "URI Content" and "Portal URI text" are properly defined.

    For example, if your Integration Broker is on myserver.mycompany.com:8000 and your site is called hcm, you would use these values:

    Text of the URI of the content = "http://myserver.mycompany.com:8000/PSC/hcm /"

    Portal of text URI = "http://myserver.mycompany.com:8000/psp/hcm /"

    (Write it down "/" at the end of the values.) Make sure you remember that)

    d. make sure this change is made to all nodes. For example, for HCM, this aspect should be defined for nodes PSFT_HR and HRMS.

    5. after making the above changes, you need to rebuild the search index. Do this as follows:

    a. redeploy all the definitions of research that were built with the incorrect URL as follows:

    -Go to PeopleTools, research framework, Administration, deployment/delete the object

    -Box next to the definition of inactive research

    -Click "undeploy".

    -Once finished, check the box next to the definition of research and this time click "deploy".

    b. rebuild search indexes

    -Go to PeopleTools, research, Administration, research agenda Index

    -Bring the command run to perform a build of the full Index and launch it.

    c. Once finished the process ' Building for Search Index ', re - test and verify that the problem is solved.

  • Redirect to the same page with the values of the variables

    Hello

    I develop a form to report data of the certain date range provided by the user.

    The problem is that I have to redirect the page back to the original page with the error message "not found in the date range" If the provided date range contains all the data in the database. I am able to redirect the page to the original page for help:

    < cfif queryname. RecordCount EQ 0 >

    < cfset action 'error' = >

    < Cflocation >

    < / cfif >

    And I use the < cfparam > for the creation of an action to navigate in the code, variable

    < name cfparam = "action" default = "" >

    [Use the < cfparam > above, tag at the top of the code and using action EQ 'report' and ' ' for navigation in the code]

    But, when I redirect to the same page, with the variable value measures of error and using cflocation he forget all varable values in the new page [way], then how can I pass a variable value measures on the same page and redirect it to the same page on meeting certain criteria.

    If this isn't clear, let me know.

    Help, please

    Vijayvijay77.

    vijayvijay77 wrote:


    ...


    And I use

    a kind of cfif to navigate inside the code. I'm doing something wrong here.

    You say that you guessed it at work.  But you have a dangerous code here (if you have not changed).

    The line will generate variables URLS when ColdFusion processes the page.cfm file once requested by the browser.  For example url.set and url.flag.

    Tags are NOT specifying the scope of variables, so they will default to the scope of "variables".  Who are the local variables of the demand for treatment.  For example variables.set and variables.flag.

    URL.set and VARIABLES.set ARE NOT the same variables.  And this confusion can cause some VERY difficult to diagnose the problems of code.

  • Xperia Z5: How to return to the original photo after you save the cropped photo?

    Hi, I wonder how I can return to the original photo after saving a photo cropped on my Xperia Z5. The cropped photo doesn't have a sufficient resolution so he could be put on a canvas, I want to return to the original photo before cropping. Thank you :-)

    Hello, troy_t!

    If you crop the photo, the original photo will always be there. You can crop photos on the Album and then use Photo Editor. It is a standard editing program that is provided with your Sony Xperia Z5. If you crop a photo and then save the cropped photo, the original photo will always be there. I can assure you that if you use the standard Photo editing program to crop a photo, the original photo will always be there, even if it was cropped. You can make as many photos cropped the image you want to crop as you want, because the original photo will always be there, even if you may have saved a version cropped the image you wanted at the origin of the crops.

  • I want a caricature 30 second to open &amp; up to play while the original page remains open.

    I have a few animation bits I want to show but not the page close and a new open to play. I want to have the cartoon opened in its own window and play while the original page remains open. I have about 20 of them and want the Animation page to stay open, while the observer chooses as one to watch.

    I can't find any instructions to show me how to do this. Can you help me?

    Look in the creation of modal windows using the html video tag 5 and MP4 files with Dreamweaver, or use something pre-made as fancy box

  • I have more endurance, remove or insert the option pages after upgrade to Adobe DC. How to get back these functions?

    I have more endurance, remove or insert the option pages after upgrade to Adobe DC. How to get back these functions?

    Looks like you may have updated to misapplication. Probably, you have Adobe Acrobat (the full version) and installed Adobe Acrobat Reader instead. If you had "improved" Adobe Acrobat, it would have cost you money. Acrobat Reader is free.

  • the original page navigation

    Hi all

    I have a link in my flash and when I click it, it opens new window and navigte me to other pages, but still the original page remains on the screen but I want to navigate from the original page in the same window that must I do?

    Hello

    Access the different url using '_self' param, see:

    When the button is clicked

    protected function changePageHandler(event:MouseEvent):void

    {

    var url: String = "http://forums.adobe.com";

    var urlRequest:URLRequest = new URLRequest (url);

    flash.net.navigateToURL (urlRequest, "_self");

    }

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/net/package.html# navigateToURL ()

    Kind regards

    Peter

  • How to redirect to the previous page

    Hello

    I call you a personalized page of standard OA page when I click back to my custom page

    I want to go to the previous page

    I used pageContext.forwardImmediately ();

    but the page id is not valid error can someone suggest how to return to the original page

    page custom

    The example of tutorial wont support the situation go back to the previous page

    Concerning

    Krishna

    Hello

    Give the URL of the page and the page on the previous page function in the pageContext.forwardImmediately or pageContext.setForwardURL methods.

    Thank you
    Kumar

Maybe you are looking for