Navigation Handler is not working in jspx page..

Hi,
I have written a sample application with 3 pages.
- one.jpsx
- two.jspx
- error.jspx
In one.jspx page a scriptlet is written to forward the page to error.jspx. But it is not working. Any help or suggestions would be appreciated.
pages:
one.jspx_
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<jsp:directive.page import="javax.faces.context.FacesContext"/>
<jsp:scriptlet>
FacesContext fc = FacesContext.getCurrentInstance();
     fc.getApplication().getNavigationHandler().handleNavigation(fc,"","error");
</jsp:scriptlet>
<f:view>
<af:document>
<af:form>
<af:outputText value="This is first page"/>
<af:commandButton text="Click on" action="two"/>
</af:form>
</af:document>
</f:view>
</jsp:root>
error.jspx_
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<f:view>
<af:document>
<af:form>
<af:outputText value="This is error page.."/>
</af:form>
</af:document>
</f:view>
</jsp:root>
two.jspx_
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<f:view>
<af:document>
<af:form>
<af:outputText value="This is second page"/>
</af:form>
</af:document>
</f:view>
</jsp:root>
adfc-config.xml_
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<view id="one">
<page>/one.jspx</page>
</view>
<view id="two">
<page>/two.jspx</page>
</view>
<view id="error">
<page>/error.jspx</page>
</view>
<control-flow-rule>
<from-activity-id>one</from-activity-id>
<control-flow-case>
<from-outcome>two</from-outcome>
<to-activity-id>two</to-activity-id>
</control-flow-case>
</control-flow-rule>
</adfc-config>
Thanks
Sukumar

What's the reason you think the JSP <jsp:scriptlet> tags works in JSF?
CM.

Similar Messages

  • Navigation Handling does not work !!!!

    hi every body
    i have two pages Login.jsp and page1.jsp, i want to prevent direct access to page1.jsp unless the user first go to login page and redirected to page1.jsp.. so if the user paste the pathe of page1.jsp immedatily , the application will redirect him to login page.
    i used the following code in pre-render method:
    FacesContext context=FacesContext.getCurrentInstance();
    Application application=context.getApplication();
    NavigationHandler navigator=application.getNavigationHandler();
    navigator.handleNavigation(context,null, "insecure");-----
    but unfortunately it does not work ,
    can any one please help me ?
    thanks in advance
    Mohammed

    Dude,
    Why not use a filter? It will save you having to add code to every page that requires a user to be logged in.
    Try http://securityfilter.sourceforge.net/ for something comprehensive. Or if you just want something that just intercepts a request and checks if a user is logged in (e.g. if the username property in SessionBean1 is set) and redirects the user to the login page if not... it's pretty easy if you've worked with filters before.
    Try it out and ask again if you want pointers.
    Cheers,
    Dave

  • Not working in jspx page

    Hi.,
    I am using jdev11.1.5
    I had created a EO [Finyear] with that corresponding VO
    I had created a VO [finperiod VO name] using read only Querry with the given querry
    select distinct fp_bu,fp_year,fp_period, decode(gdh_status,'R','Yes','No') distribution,decode (aj_status ,'N','Yes','No') Recursion,
    decode(RSUPHD_STATUS,'P','Yes','No') Supplier,decode(RCDOC_STATUS,'P','Yes','No') Customer
    from gl_dist_hd,fin_periods,appl_journals,rec_suplr_doc_hd,rec_cust_doc_hd
    where
    fp_period = gdh_period(+) and
    gdh_period = aj_period(+) and
    aj_period = RSUPHD_DOC_PERIOD(+) and
    RSUPHD_DOC_PERIOD = RCDOC_DOC_PERIOD(+)
    ORDER BY fp_period ascI had created a viewlink between two vo finperiod , finyear
    finperiod.bu = finyear.bu
    finperiod.year = finyear.yearwhile i am running the viewlink in Business Component browser it works fine
    But when i tried to run this in my jspx page it displays the output for one period
    i need to display the output for all the 12 period corrsponding to that year.,
    would anyone pls help me

    Hi,
    When you ran the AM tester (and selected the view link), it is displayed as master form and detail table. But, in the jspx page, you have only the table.
    Can you create another page and try dropping it as master form and detail table to check if it works on the same manner as which the AM tester?
    -Arun

  • Navigation on CR not working for 3+ pages on IIS

    I have a C# project that uses Crystal reports. When running locally, I can navigate normally for reports with more than 2 pages. When running from the web server, it navigates to page 2, but after that, clicking next reloads page 2.
    I tried the solutions posted online, moving the code from page_init to page_load, this fixed it on local platform, but not on IIS web server. So I am guessing there is something missing with the Crystal Reports set up on the server.
    Saving the report as PDF shows all 3 pages, navigation doesnt show errors or anything, just reloads page 2 again
    This is my page_init
    protected void Page_Init(object sender, EventArgs e)
       if (IsPostBack)
       // RefreshRaportData();
       if (Session[REPORT_SESSION] != null)
       int exportFormatFlags = (int)(CrystalDecisions.Shared.ViewerExportFormats.PdfFormat |
       CrystalDecisions.Shared.ViewerExportFormats.WordFormat |
       CrystalDecisions.Shared.ViewerExportFormats.ExcelFormat |
       CrystalDecisions.Shared.ViewerExportFormats.RtfFormat);
       CrystalReportViewer1.AllowedExportFormats = exportFormatFlags;
       CrystalReportViewer1.ReportSource = (ReportDocument)Session[REPORT_SESSION];
       CrystalReportViewer1.RefreshReport();
       return;
       // set these params only after Server.Transfer
       var entry = (ItnMena)PreviousPage;
       if (entry != null)
       #region set values from previous page
       PNROfficeId.Value = entry.PNROfficeIdText;
       SignIn.Value = entry.SignInText;
       RecLoc.Value = entry.RecLocText;
       LastSaveTime.Value = entry.LastSaveTime.ToString("yyyyMMdd HHmm");
       FirstPerson.Value = entry.PaxLastNameText;
       UserOfficeId.Value = entry.UserOfficeId;
       //if (ViewState[FLIGHT_BAGGAGE_ASSOICATION] != null)
       // FlightBaggageAssociation[] flightBaggageArray = (FlightBaggageAssociation[])ViewState[FLIGHT_BAGGAGE_ASSOICATION];
       // flightBaggageList = new List<FlightBaggageAssociation>(flightBaggageArray);
       #endregion
       #region reset session values
       ClearSession();
       #endregion

    Hi Don,
    Thanks for the info, If i have a report with more than 2 pages, and try to save it as PDF, all the pages show up.
    I've tried Fiddler, but I am not quite sure yet. I attached two images below of the result after clicking next when already on page 2, one when running from the server (still shows current page as page 2). The second when run locally, from visual studio where it works normally
    I have no idea why its working locally but not from the server. Any ideas would be very helpful

  • Navigation Rules are not working

    Hi
    I had written my application in Java Creator.
    Now i am shifted to -- NetBeans
    Here my Navigation Rules are not working.
    I am unable to navigate between pages.
    can anyone please help me, why navigations are not working.
    and how to write navigation rules in Netbeans.
    Thanks
    Praveen

    Could you explain more about your problem?
    -Do you have the navigation rules in your faces-config.xml?
    like:
    <navigation-rule>
    <from-view-id>/page1.jspx</from-view-id>
    <navigation-case>
    <from-action>#{Controller.toPage2}</from-action>
    <from-outcome>success</from-outcome>
    <to-view-id>/page2l.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>

  • Please see my site about Navigation Bar Links not working

    Greetings,
    I have an urgent issue with www.ForexProFund.com and it's navigation bar links. For some reason only some of the links work in the navigation bar. I have tried and recreated new pages and moved all the content over to the new pages with no luck. I moved the nav bar to the most "forward" position and pushed everything else to the back so it's on the top for sure. You can see that on the "contact" page, the navigation bar does not work, and I have no idea why...it's the same on the "Open Account" page.
    I really need this fixed, as I am sure many of you do.
    Thanks in advance for any input or ideas.
    Jason :>

    Hi there,
    Can you tell me how to "reduce" these things? I am not sure why some links in the nav bar and others do not...maybe I am doing something wrong? Very frustrating since Mac. does not let you simply setup a nav bar....it all has to be template based and then these types of things happen. Either way, if you have details of how to remedy this, please let me know. I tried to remove the line under the nav bar on the first two pages and still no luck.
    Thank you!

  • UIComponent broadCastAction is not working in mobile page

    We are using the broadCastAction in one of our critical flows to submit to an action in Managed bean but we are facing issue in our ADF fusion web app for mobile . When we create a page with mobile render option selected the broadCastAction is not getting triggered . broadCastAction shows null in the getter of BroadCastAction.
    <tr:commandButton text="AutoSubmit" id="cb2"
    action="processResponse"
    binding="#{pageFlowScope.testBean.braodCastAction}"
    rendered="false"/>
    This is working in normal page without "render in mobile" selected , we need a solution for it to work on mobile compatible page as well

    Hi Frank
    UIComponent braodCastAction is from javax.faces.component.UIComponent . It is used to invoke action of a UI component through Java code
    if we have button like
    <tr:commandButton text="AutoSubmit" id="testCommandbtn" action="processMobile"
    binding="#{pageFlowScope.mobileBean.braodCastAction}"
    rendered="true" />
    Then through getter method of broadcastAction we can invoke the action of this button using the below code
    braodCastAction.broadcast(new ActionEvent(braodCastAction));
    This is working in the normal jspx page but not working in a page where we select render in mobile

  • Navigation keys does not work

    The following navigation keys does not work.
    - Task navigation key
    - Home navigation key
    - Back navigation key
    The rest of the keyboard work

    Hi AdventureGuy and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    Unfortunatley not, however given that you still have a part of the touch screen still not working I would have to advise you to contact your local  Xperia Care team for assistance in arranging an assessment of your device.
    What are your thoughts about this forum? Let us know by doing this short survey.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • I wanted to send a push notification, unfortunately it does not work. The page will not load. Anyone know why?

    I wanted to send a push notification, unfortunately it does not work. The page will not load. Anyone know why?

    Push notifications, I believe, is only for iOS.
    If it is for iOS, take a look at Using Apple push notifications with Digital Publishing Suite | Adobe Developer Connection

  • When iam using jdownloader for dowload, the firefox did not work at any page, as like there in no internet conexion?

    When iam using jdownloader for dowload, the firefox did not work at any page, as like`` there in no internet conexion?``

    you need to check whether '''jdownloader''' is compatible with the Firefox version you are using.
    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Tools Menu -> Add-ons -> Extension section -> check the Status of '''jdownloader''' extension -> if '''an update''' is available for this add-on then install the update -> Restart Firefox and check again check the compatibility -> if it is '''GREYED with Exclamation mark''' then it is incompatible with Firefox
    Try using this extension to force compatibility.
    https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    Check and tell if its working.

  • ScriptLink tag not working for application page sharepoint 2010

    <ScriptLink> tag not working for application page sharepoint 2010 for including javascript in application page, it appends either 1033 or _layout to path specified for javascript.But javascripts are located in custom document library on site and not
    in _layouts folder.
    Please help and explain in details as I tried lot on this.

    Hi,
    Use the following line of code
    <SharePoint:Scriptlink runat="server" Name="~sitecollection/Style Library/[YOUR SITE]/js/functions.js" Language="javascript" />
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

  • HT5429 navigation voice is not working

    Navigation voice is not working.

    What's the reason you think the JSP <jsp:scriptlet> tags works in JSF?
    CM.

  • Navigation links not working on some pages

    Since updating to iWeb '08, I have had problems with the main navigations links on most of my pages once I leave the Home Page. I'll go to the site, click on a Navigation link at the top of the page, and when the new page loads, the nav links at the top of the newly loaded page (which are the same as the ones on the home page) don't all work.
    Anyone got a clue?
    Site: www.faithmountainaz.com
    Thanks, all!

    That was a hopeful. But the graphic is NOT blocking the nav bar. I even went through all the pages to make sure it was out of the way.
    Bummer. That would have been an easy fix!

  • CommandMenuItem is working in the Homepage.But its not working in sub pages

    Hi All,
    I am using jdeveloper 10.1.3.0.4
    I am working with the menu2 and GlobalMenu facets of the panelPage component.
    Here i had two problems.......
    1.I created a menuBar in the menu2 facet and had put 3 commandMenuItems.
    My problem is the commandMenuItem links are working in the main page.But in other pages its not working and all commandButtonItems are idle means even i can't click on that(that hand symbol is not showing when we put cursor over there).
    2.I put link to my help page in the GlobalMenu.like GlobalMenu -->MenuButtons -->commandlink. This link also working in the main page not in the other.
    I set that Help page as globalHelp in the Navigation Rules of config file...
    Here is the code of config file....
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>globalHelp</from-outcome>
    <to-view-id>/Help.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <managed-bean-name>HelpBean</managed-bean-name>
    <managed-bean-class>com.cchs.timx.view.HelopBean</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    So what might be the wrong ........Appreciate help
    Thanks!
    simmi

    Hi All,
    I am using jdeveloper 10.1.3.0.4
    I am working with the menu2 and GlobalMenu facets of the panelPage component.
    Here i had two problems.......
    1.I created a menuBar in the menu2 facet and had put 3 commandMenuItems.
    My problem is the commandMenuItem links are working in the main page.But in other pages its not working and all commandButtonItems are idle means even i can't click on that(that hand symbol is not showing when we put cursor over there).
    2.I put link to my help page in the GlobalMenu.like GlobalMenu -->MenuButtons -->commandlink. This link also working in the main page not in the other.
    I set that Help page as globalHelp in the Navigation Rules of config file...
    Here is the code of config file....
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>globalHelp</from-outcome>
    <to-view-id>/Help.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <managed-bean-name>HelpBean</managed-bean-name>
    <managed-bean-class>com.cchs.timx.view.HelopBean</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    So what might be the wrong ........Appreciate help
    Thanks!
    simmi

  • CommandMenuItem is working in the Homepage.But its not working in sub pag

    Hi All,
    I am using jdeveloper 10.1.3.0.4
    I am working with the menu2 and GlobalMenu facets of the panelPage component.
    Here i had two problems.......
    1.I created a menuBar in the menu2 facet and had put 3 commandMenuItems.
    My problem is the commandMenuItem links are working in the main page.But in other pages its not working and all commandButtonItems are idle means even i can't click on that(that hand symbol is not showing when we put cursor over there).
    2.I put link to my help page in the GlobalMenu.like GlobalMenu -->MenuButtons -->commandlink. This link also working in the main page not in the other.
    I set that Help page as globalHelp in the Navigation Rules of config file...
    Here is the code of config file....
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>globalHelp</from-outcome>
    <to-view-id>/Help.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <managed-bean-name>HelpBean</managed-bean-name>
    <managed-bean-class>com.cchs.timx.view.HelopBean</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    So what might be the wrong ........Appreciate help
    Thanks!
    simmi

    Hi All,
    I am using jdeveloper 10.1.3.0.4
    I am working with the menu2 and GlobalMenu facets of the panelPage component.
    Here i had two problems.......
    1.I created a menuBar in the menu2 facet and had put 3 commandMenuItems.
    My problem is the commandMenuItem links are working in the main page.But in other pages its not working and all commandButtonItems are idle means even i can't click on that(that hand symbol is not showing when we put cursor over there).
    2.I put link to my help page in the GlobalMenu.like GlobalMenu -->MenuButtons -->commandlink. This link also working in the main page not in the other.
    I set that Help page as globalHelp in the Navigation Rules of config file...
    Here is the code of config file....
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>globalHelp</from-outcome>
    <to-view-id>/Help.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <managed-bean-name>HelpBean</managed-bean-name>
    <managed-bean-class>com.cchs.timx.view.HelopBean</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    So what might be the wrong ........Appreciate help
    Thanks!
    simmi

Maybe you are looking for

  • Extracting files out a PDF portfolio

    This is my situation: I made a portfolio with several documents, including PDFs, DOCs and CHMs. Everything works the way it supposed to for PDFs and DOCs, I can read them and extract them, but not with the CHMs. I can't neither view or extract them,

  • Lightroon CC upgrade will not run on windows 8.1

    Ran Adobe Creative Cloud updates today, all updates installed and are working OK except for Lightroom, it will not run when opened, no error messages appear and windows trouble shooter reports it as lightroom is incompatible. I have done a complete m

  • Updating OLAP Universe Automatically

    hi, We have created Universes on the top of BEx queries. What happens in BEx query is that some of the column headers are getting updated every week. Beause of this everytime we have open the Universe refresh and export it back. This recurrent activi

  • I accidently put my new ipod as my sisters in itunes

    I updated iTunes because it needed to in order to get my new ipod and then I accidently put it to sync all my sisters information and now it changed the whole layout of my ipod.

  • Outofmemory problem during webserver startup

    Below error log which starting the web server. No changes were made the JVM options and im getting suddenly. Checked the memory size, path and everythings looks ok. Any suggestions please !! [22/Oct/2003:12:06:01] info ( 1013): CORE1116: Sun ONE Web