Go to another page jspx!

Hello! I want to know, how can I say in class Java (bean) to go to the page specific jspx!

Best regards, Debuger!

I hope that you had a page jspx with button.

button_action.
 logoutTarget("/faces/HomePage"); //here your page name, call it where you want
 

   public String logoutTarget(String aTarget)
          {
            ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
            HttpServletResponse response = (HttpServletResponse) ectx.getResponse();
            String url = ectx.getRequestContextPath() + aTarget;
            HttpSession session = (HttpSession) ectx.getSession(false);
            //close session
            session.invalidate();
            try
            {
              response.sendRedirect(url);
              FacesContext.getCurrentInstance().responseComplete();
        }
               catch (IOException e)
               {
                 e.printStackTrace();
    }
               return null;
             }

Tags: Java

Similar Questions

  • Need to open another page jspx as model popup

    Hello world

    I have another question about the popups and model. I'm working on JDev 11gU2 ADFRC

    I have a model to my pages, and there is a link on my model to display information to the user. for this I need to get the info from the user database. so I have to make a definition of the page from my user information page.
    But the problem is when I click on the link my model info to open the information page for the user. It's not open and page refresh error.

    in fact in my model is the source of the page.
    <f:subview id="userInfo">
                <jsp:include page="/popUps/UserInfo.jspx"/>
    </f:subview>
    
    
    <af:commandNavigationItem text="UserInfo"
                                                  immediate="true">
     <af:showPopupBehavior popupId="::userInfo:popup1"
                                                triggerType="action"/>
     </af:commandNavigationItem>
    and in my account Info is the source of the page-
    <?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"/>
      <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_popUps_AccountDetailsPopUp-->
      <af:popup binding="#{backing_popUps_AccountDetailsPopUp.popup1}"
                      id="popup1">
              <af:dialog title="Account Detail" type="none"
                         inlineStyle="margin:0.5px,0,0,0.5px;"
                         closeIconVisible="#{!backing_popUps_AccountDetailsPopUp.editMode}"
                         partialTriggers="panelBox1 panelBox2 panelBox3"
                         binding="#{backing_popUps_AccountDetailsPopUp.dialog1}"
                         id="dialog1">
                <af:decorativeBox topHeight="25px"
                                  inlineStyle="margin:0.5px; height:460px;"
                                  theme="dark"
                                  binding="#{backing_popUps_AccountDetailsPopUp.decorativeBox1}"
                                  id="decorativeBox1">
                  <f:facet name="center">
                    <af:panelStretchLayout startWidth="5px" endWidth="0px"
                                           topHeight="0px" bottomHeight="0px"
                                           binding="#{backing_popUps_AccountDetailsPopUp.panelStretchLayout1}"
                                           id="panelStretchLayout1">
                      <f:facet name="center">
                        <af:decorativeBox theme="light"
                                          inlineStyle="height:430px; width:482px;"
                                          binding="#{backing_popUps_AccountDetailsPopUp.decorativeBox2}"
                                          id="decorativeBox2">
                          <f:facet name="center">
                            <af:panelGroupLayout xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                                 inlineStyle="padding:1%;"
                                                 partialTriggers="commandLink1 commandLink2 commandLink3 commandLink4 commandLink5 commandLink6 commandLink8 commandLink9 commandLink10"
                                                 binding="#{backing_popUps_AccountDetailsPopUp.panelGroupLayout1}"
                                                 id="panelGroupLayout1">
                              <af:panelBox text="Employee Information"
                                           partialTriggers="commandLink1 commandLink2 commandLink3"
                                           binding="#{backing_popUps_AccountDetailsPopUp.panelBox1}"
                              .
    .
    .
    .
    .
    .
                                           binding="#{backing_popUps_AccountDetailsPopUp.spacer2}"
                                           id="spacer2"/>
                              </f:facet>
                            </af:panelGroupLayout>
                          </f:facet>
                        </af:decorativeBox>
                      </f:facet>
                      <f:facet name="start">
                        <af:spacer width="10" height="10"
                                   binding="#{backing_popUps_AccountDetailsPopUp.spacer3}"
                                   id="spacer3"/>
                      </f:facet>
                    </af:panelStretchLayout>
                  </f:facet>
                  <f:facet name="top">
                    <af:panelGroupLayout binding="#{backing_popUps_AccountDetailsPopUp.panelGroupLayout8}"
                                         id="panelGroupLayout8">
                      <af:outputText value="Account Detail : 900101"
                                     inlineStyle="font-weight:bold; font-size:14px;"
                                     binding="#{backing_popUps_AccountDetailsPopUp.outputText10}"
                                     id="outputText10"/>
                    </af:panelGroupLayout>
                  </f:facet>
                </af:decorativeBox>
                <f:facet name="buttonBar">
                  <af:commandLink text="Close"
                                  inlineStyle="font-weight:bold; color:Blue;"
                                  disabled="#{backing_popUps_AccountDetailsPopUp.editMode}"
                                  partialTriggers="panelBox1 panelBox2 panelBox3"
                                  shortDesc="#{backing_popUps_AccountDetailsPopUp.editMode ? 'Can not close in edit mode...' : 'Close Window'}"
                                  binding="#{backing_popUps_AccountDetailsPopUp.commandLink11}"
                                  id="commandLink11">
                    <af:resetActionListener/>
                  </af:commandLink>
                </f:facet>
              </af:dialog>
            </af:popup>
    </jsp:root>
    In fact, I need to open a page in the world and I can't put this link to each page. while I put this on the model.
    I made a page popup too to logout of the application in the same way, this is the file to work, but the difference is that this page is not any def page.
    But account info page.
    I want to use without adding the dialog box: page ADF - config.Xml

    Any help to solve this problem?

    Thank you
    FIZZZ...

    Hello

    If you set the commandNavigationItem attribute partialSubmit = true, then that should solve the problem.

    Frank

  • Iterator to access another page

    Hello

    I use JDev 11.1.1.4 and I was wandering if it is possible to access an iterator from another page.

    In my case, I have a (jspx) page that has the links sub-tab an iterator; on the page there is a button that launches a popup inline (another page jspx), in which I want to use a selectOrderShuttle, which is filled using the iterator of my first page. When I put the iterator binding in the popup page, it works fine, but for issues of reuse (I want to use this popup with selectOrderShuttle for different iterators, which will be given as a string parameters), I want not to have a link on the popup page, I want to access the iterator of my initial page and use it to fill my lists. Is this possible?

    Thank you
    Georgiana

    Hello

    the linking field is per page or display. An iterator is not a data cache mechanism - it is the responsibility of the services business exposed by the DataControl

    Frank

  • How to navigate a page (.jspx) to another (.jspx) using adfc-config. XML?

    Hi all

    I have a fundamental question on the use of adfc - config.Xml. Please clarify my doubt.

    In my application, I created 2 bouded ADF-task-flow, where each workflow contains one page fragments. Now, I created two pages (.jspx) and droped 1st task flow into the first page as a region and even I did in the 2nd page two.

    Now I navigate from page 1 to page two when I hit the next button in the fragment of the first page. The button's action method that returns the string "goNext. Please let me know how can I create the adfc-config.xml file navigation to navigate from the first page to the other. I could able to navigate without any isisue using the faces-config. XML via JSF Navigation box. But how do I do the same thing in adfc-config. XML? I tried like below, but he navigates to the next page when I hit the button.
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="idm">
        <page>/app/idm.jspx</page>
      </view>
      <view id="userMgmt">
        <page>/app/userMgmt.jspx</page>
      </view>
      
      <control-flow-rule>
        <from-activity-id>idm</from-activity-id>
        <control-flow-case>
          <from-outcome>goNext</from-outcome>
          <to-activity-id>userMgmt</to-activity-id>
        </control-flow-case>
      </control-flow-rule>
    </adfc-config>
    Please correct my mistake. Also please clarify why not use the faces - config.xml for my navigation from page to page?

    Thank you
    KLN

    Although technically it might work, I find it always strange. Let go to the design Commission. What units functional (use case) do you have?

    -Find a user?
    -Manage a user (including the various option)

    If Yes, then, I would have 2 pages with 2 or 3 of the workflow
    -page1.jspx contains TF 1, pretty much like you, parent action allows you to navigate, although I would use to discover the url for browsing direct jspx;
    -page2.jspx contains 2 TF, yet once you have. Parent for the "previous" button action is ok, to change password, not so IMHO
    -Option 1: Put the change password in a workflow and call using a call to workflow (as dialogue or not)
    -Option 2: embed the logic of change of password in the user workflow management

    Kind regards

    ~ Simon

  • Include XSQL page within another page

    Hello world!

    I try to include an XSQL page within another page. It seems that the page .jsf filter does not support this feature. So, I've included my page .xsql within a .jspx page that works fine on my built-in server. The problem shows up again when the application is deployed on a stand-alone Weblogic Server. I get a "XML-25013: XSQL Page URI has the value null;" "check the exact case of the name of the file." error.

    My question is, how do include you a page within another page .jsf or .jspx .xsql? I tried to use the tag "af:declarativeComponent" and "jsp: include ' tag but in vain."

    I use Jdeveloper 12.1.3 and a stand-alone 12.1.3 Weblogic Server.

    See you soon,.

    Kristjan

    I solved my problem

    Two tips helped me with my quest. The first came from this question unanswered ( https://community.oracle.com/thread/347827?start=0&tstart=0 ) and the other came from this ( https://docs.oracle.com/cd/E13222_01/wls/docs100/issues/known_resolved.html ) solved the problems of Weblogic, specifically the number of request to change CR299135. The problem, apparently, is with the .war file and the XSQL servlet way seeks the path of the file.

    By setting the parameter weblogic.xml indeed, the path can be resolved properly even in one archive .war and the XML-25013 error goes.

    After reviewing the deployment of the application on my integrated weblogic server, I noticed that the app has not been actually archived in a .war file. She was only the directory structure that imitated the .war file deployment. This is probably the reason why the app worked there.

    Thanks for all the help kdario and dvohra21,

    See you soon

  • Call a child task flow Page (.jspx) Parent workflow

    Hi all

    JDeveloper: 11.1.16
    ADF

    My needs: I have two workflow (Parent, child). I'm calling from the Parent child TF (all are pages [.jspx]) in a popup (external).
    I want to open the page child TF TF parent (single page) in the POP-UP window. And should return a parameter as a bean.

    Please suggest me how do. Also give me some related documents, link to the "caller pages directly from an another TF TF.

    -Thank you
    Jeanmarc

    Dietsch,

    not sure it was a question of Oracle Apps (the FndUIShellController domain controller is not available in the product public).

    Christian,

    Have a look here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/69-custom-lov-with-btf-276178.pdf. I did it instead of returning a value 8as) return an object and your done

    Frank

  • Does not not in page jspx

    Hello.

    I use jdev11.1.5
    I had created a [Finyear] EO with VO correspondent
    I had created a [name of VO finperiod] VO 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 asc
    I had created a viewlink between two finperiod vo, finyear
    finperiod.bu = finyear.bu
    finperiod.year = finyear.year
    while I'm under the viewlink in the browser business component it works fine
    But when I tried to run it in my jspx page it displays the output for a given period
    I need display output for all the corrsponding period 12 to this year.,.

    could someone help me pls

    Hello

    When you have run the AM Tester (and selected the display link), it appears as master form and the secondary table. But in the jspx page, it only takes the table.

    Can you create another page and try a fall as main table form and detail to check if it works on the same way as that the AM Tester?

    Arun-

  • Add a FacesMessage and then navigate to another page

    Hello

    I have a grain of support which adds a message of faces and then returns a result as:
      FacesContext.getCurrentInstance().addMessage(null, infoMessage);     
      return "back";
    I found the message is displayed, even if the target of jspx fact include the tag of af: messages. It seems that the new page operates in a completely different context and the messages are lost. If I return null from the bean of the support in place so that no navigation will occur, the message is displayed correctly.

    Is there a way to add a message and navigate to another page? (i.e. If the message on the target page).

    I use ADF Faces 11.1.1.2.0.

    See you soon!

    Hello

    I've never tried in 11g, but it should work, especially with JSF 1.2. Is the case of the navigation using redirection?

    Kind regards

    ~ Simon

  • Redirect to another page

    Hello

    In ADF how can I redirect to another page when I press the button without map it in faces-config. XML

    Hello

    You can do this from the bean of support code, which you call via actionListener on the commandButton control

            FacesContext fc = FacesContext.getCurrentInstance();
            String newView = "otherPage.jspx";
            ViewHandler vh = fc.getApplication().getViewHandler();
            UIViewRoot x = vh.createView(fc,newView);
            fc.setViewRoot(x);
    

    Pedja

  • How to navigate the web application from merger of a page to another page.

    Jin

    I created an application in jdevloper 11g, which works very well in the default server. But when I deployed to ask the domain server customized at run time
    I am facing problem of navigation. He's not going to another page. Please help me.

    Thanking you


    Rayudu Subrahmanyam

    Do not write in the writing of .jspx URL page without its extension name

  • Try to add a page to a pages document. It worked until now but just finished page 13 with text and photos and cannot add another page, using macbook pro with El Capitan and the most recent version of the Pages.

    Try to add a page to a pages document. It worked until now but just finished page 13 with text and photos and cannot add another page, using macbook pro with El Capitan and the most recent version of the Pages.

    You have placed your beam to insert at the end of your text on page 13 and then apply Insert menu: Page Break? In the v5.6.2, Pages I just add a new page to a section of four pages to this approach.

  • you will not re - direct to another page... followed parcel...

    Firefox will not direct me to another page when the track orders on amazon or ebay... you keep blocking this... then how am I supposed to check on my articles...

    There should be a button that allows the browser to continue.

  • When I open a web page any using firefox, its ok for a few minutes, then he opens another page saying it is redirected for no reason at all

    When I open a web page any using firefox, its ok for a few minutes, then he opens another page saying it is redirected for no reason at all, the homepage remains open, but the other page start for no reason at all in another tab

    It's very consistent, he arrives a few minutes? In this case, I suggest this test:

    To find out if one of your extensions is the culprit, could you test mode without failure of Firefox? It is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    Not all add-ons are disabled: Flash and other plugins still works

    After stops in Firefox, a small dialog box should appear. Click on 'Start mode safe' (not reset).

    Any difference?

  • When Gmail loads up to everything first he moves to another page of gmail inbox immediately?

    As the title says...

    I click firefox or run it from a keyboard shortcut and loading Firefox gmail inbox, Inbox just page load automatically to another page which is still both the Inbox.

    He does not have to do until that some revisions of firefox there is.

    I don't think that there is no built-in Firefox feature to redirect a Home tab after loading. As long as the page loaded is on the Google site, I guess the second charge is a redirect initiated by Google for its own reasons, whatever they may be.

  • I continue to have a new page opens when I click on a button. For example, when I clicked on the "category" to access this page, another page open for Norton.

    For example, try to access this page caused another page opens with an advertisement of Norton. Happens not every time, but every 3 - 4 times. I got Redbox, QuiBids, RxConnection and ensure the car outside Norton. I can't figure out how to stop this.

    Hello OKHiltibrand, this looks like a problem caused by malicious software on your pc. Please go to firefox > addons > extensions and remove any suspicious entries (especially 3 layers Word, things that you have not installed intentionally, does not know what purpose they serve, etc.). also, go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software you have in place and various other tools such as the free version of malwarebytes & adwcleaner.

    Remove a toolbar that has supported your Firefox or the homepage search
    Fix Firefox problems caused by malicious software

Maybe you are looking for

  • I know where the last call from my iphone stolen?

    I know where the last call from my iphone stolen?

  • Security system CLD Exam problem solution? Crazy?

    I just started working on the problems of CLD example.  I use Labview for about 10 years - so everything I do is old school. I am writing this solution for the example of security system.  There are arrays of switches to represent the alarm, derivati

  • Re: HP Mini 110 reset bios password

    Hi sorry he wouldn't let me reply to the original post. Is it possible to get an unlock code for this netbook. The claim code is CNU9394KQL Thank you

  • Can't intall Solution Center

    I have a HP Photosmart Plus B209. I am running windows 7 64 bit. The solution Center icon is their but say cannot be opened because it is not completely installed. I have recentyly had to do a complete system restore & recovery. Don't know why becaus

  • Windows Messaging does not mask the images in emails after installing ie9

    I have Windows Mail to block images in my emails, but that after the installation Internet Explorer9 windows mail does not block the images in my emails even if the parameters are always the same. I had to uninstall ie9 for this reason, except that i