Redirecting across 2 jsp pages in 2 different servers

hi, can anyone tell me if i can use redirect to automatically link from a page on 1 server to a page in another server, or is there some security concerns that will prevent the redirect function from working across 2 servers? thanks.

oh thanks but can i pass a parameter to the jsp page residing in another server using redirect? e.g.
response.sendRedirect("http://www.anotherserverpage.jsp?valuetopass=10");
will i be able to use Response.getParameter in the page residing in the other server?

Similar Messages

  • 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

  • Pass bean property name across JSP pages

    First, the sample code:
    <%-- ================ some.jsp =============== --%>
    <%-- bunch of code [...] --%>
    <tr>
    <td><bean:message key="prompt.desc" /></td>
    <td><html:textarea property="desc" /></td>
    </tr>
    <tr>
    <td>
    <bean:message key="prompt.notes" />
    <tiles:insert page="checkSpellTile.jsp" flush="false"></tiles:insert>
    </td>
    </tr>
    <tr>
    <td><html:textarea property="notes" /></td>
    </tr>
    <%-- ================ end some.jsp =============== --%>
    <%-- ================ checkSpellTile.jsp =============== --%>
    <%-- some JSP code [...] --%>
    <spellingComp:executeSpelling
    mode="popup"
    textComponentName="notes"
    />
    <%-- ================ end checkSpellTile.jsp =============== --%>
    So, my first foray into JSP programming - I have a number of
    different JSP pages that need spell check widgets associated
    to some text fields. The sample code shown works fine. The
    prompt, "Notes ...:" is following by the spell check
    [clickable] widget. Then the user clicks the widget, the
    spell check is launched and it checks the text in the
    "notes" field for the form.
    The sticky situation that I can't seem to solve is that each
    of the forms associated with each of the different JSP pages
    has a different name for the text field (that needs to be
    spell checked).
    I've tried doing this (between the <tiles:insert...></tiles:insert...>):
    <tiles:put name="theNotes" beanName="orderForm" beanProperty="notes"/>
    ... and then in the checkSpellTile.jsp, inserting this:
    <tiles:importAttribute name="theNotes"/>
    ... and then for the "textComponentName" attribute:
    textComponentName="theNotes"
    Any ideas how do solve this problem?

    First, the sample code:
    <%-- ================ some.jsp =============== --%>
    <%-- bunch of code [...] --%>
    <tr>
    <td><bean:message key="prompt.desc" /></td>
    <td><html:textarea property="desc" /></td>
    </tr>
    <tr>
    <td>
    <bean:message key="prompt.notes" />
    <tiles:insert page="checkSpellTile.jsp" flush="false"></tiles:insert>
    </td>
    </tr>
    <tr>
    <td><html:textarea property="notes" /></td>
    </tr>
    <%-- ================ end some.jsp =============== --%>
    <%-- ================ checkSpellTile.jsp =============== --%>
    <%-- some JSP code [...] --%>
    <spellingComp:executeSpelling
    mode="popup"
    textComponentName="notes"
    />
    <%-- ================ end checkSpellTile.jsp =============== --%>
    So, my first foray into JSP programming - I have a number of
    different JSP pages that need spell check widgets associated
    to some text fields. The sample code shown works fine. The
    prompt, "Notes ...:" is following by the spell check
    [clickable] widget. Then the user clicks the widget, the
    spell check is launched and it checks the text in the
    "notes" field for the form.
    The sticky situation that I can't seem to solve is that each
    of the forms associated with each of the different JSP pages
    has a different name for the text field (that needs to be
    spell checked).
    I've tried doing this (between the <tiles:insert...></tiles:insert...>):
    <tiles:put name="theNotes" beanName="orderForm" beanProperty="notes"/>
    ... and then in the checkSpellTile.jsp, inserting this:
    <tiles:importAttribute name="theNotes"/>
    ... and then for the "textComponentName" attribute:
    textComponentName="theNotes"
    Any ideas how do solve this problem?

  • Redirection to JSP page from Applet not working...

    Hello,
    I have some JSP pages that obtain information and set session variables. Once they have gotten the information, they call an applet to perform some processing, then the applet redirects back to the calling page. My problem is that when the applet redirects using
    getAppletContext().showDocument(reportJspUrl, "_self");
    it seems to be unable to see the session variables that I set in the beginning - consequently I am getting a faulty session timeout error. Has anyone seen this problem? I don't understand why it is happening. It seems that when the applet causes the page to be shown, the page should be able to see the session since it is in the same browser, even in the same frame of the browser.
    Thank you for your help in advance.
    Ali

    Have you tried getting the session in the jsp with req.getSession(false) and confirming that the session returned is not null.

  • 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 go to different jsp pages based on different selection?

    I put SELECT and OPTION in the page. I want to go to different jsp
              pages when different OPTION been selected, but there is only one URL
              in the action attribute. How can I do it ?
              

    add a javascript on the select tagg:
              onchange=javascript:jump(this);
              Then make a javascript to pull out the url from the value attribute in the
              selected option tagg.
              http://javascript.internet.com/
              "hgui" <[email protected]> wrote in message
              news:[email protected]..
              > I put SELECT and OPTION in the page. I want to go to different jsp
              > pages when different OPTION been selected, but there is only one URL
              > in the action attribute. How can I do it ?
              

  • WebCenter RIDC DataControl always redirects any JSP page to login page

    Hi
    I have created a Data Control which connects to the UCM data repository and created a plain JSP page to return the results. I have used RIDC Connection settings and authentication details are tested and they look fine to me.
    RIDC Socket Type: socket
    Server Host Name: localhost
    Content Server Listener Port: 4444
    Authentication: Identity Propagation
    Username/Password: weblogic/weblogic
    But when ever I ran the test JSP page, it always redirects the page to login page. For example: http://127.0.0.1:7101/RIDCDocumentManager-Portal-context-root/faces/oracle/webcenter/portalapp/pages/login.jsp
    Any suggestions?
    Thanks
    Khad

    Thanks for the details Yannick. The home.jspx works as expected. Thanks for that.
    I have got one more question on passing username through RIDC api.
    Via RIDC, how can I pass the UserName to the IdcContext object dynamically [IdcContext userContext = new IdcContext("weblogic");]. I mean how to retrieve the logged in user name for the person requesting the page instead of hardcoding the username. Below is the code fragment:
    // create the manager
    IdcClientManager manager = new IdcClientManager();
    // build a client that will communicate using the intradoc protocol
    IdcClient idcClient = manager.createClient("idc://localhost:4444");
    // get the config object and set properties
    idcClient.getConfig().setSocketTimeout(30000); // 30 seconds
    idcClient.getConfig().setConnectionSize(20); // 20 connections
    //create a simple identity with no password (for idc:// urls)
    IdcContext userContext = new IdcContext("weblogic");
    // create an identity with a password
    //IdcContext userPasswordContext = new IdcContext("weblogic", "idc");
    // get the binder
    DataBinder binder = idcClient.createBinder();
    // populate the binder with the parameters
    binder.putLocal("IdcService", "GET_SEARCH_RESULTS");
    //binder.putLocal("QueryText", parameter);
    parameter = getInputParameter();
    binder.putLocal("QueryText", "<qsch>" + parameter + "</qsch>");
    binder.putLocal("ResultCount", "20");
    // execute the request
    ServiceResponse response = idcClient.sendRequest(userContext, binder);
    // get the binder
    DataBinder serverBinder = response.getResponseAsBinder();
    DataResultSet resultSet = serverBinder.getResultSet("SearchResults");
    // loop over the results
    for (DataObject dataObject : resultSet.getRows())
    dataObject.get("dDocTitle");
    dataObject.get("dDocAuthor");
    dataObject.get("dInDate");
    System.out.println("Title is: " + dataObject.get("dDocTitle"));
    System.out.println("Author is: " + dataObject.get("dDocAuthor"));
    System.out.println("Author is: " + dataObject.get("dInDate"));
    }

  • Maintaining Transactions Across JSP Pages

    Hi,
    I have a multi page Registration (3 steps). On each step data submitted is taken
    to the database via an EJB component (Session Bean). How do I maintain a transaction
    across these JSP pages (i.e. either in the EJB or in the jsp) so that the data
    in the database is consistent? So if there is a problem in the 3rd step the data
    submitted in the first two steps should be rolled back.
    Can I use a statefull session beans, which will maintain a database connection
    created during the first step, so that I can use the same connection for steps
    2 & 3. In the first step after getting the database connection I will begin a
    transaction and insert the first part of the data, then this connection will be
    maintained by the statefull session and used for steps 2 & 3. At the end I will
    commit the transaction. Will this work?
    How do I maintain transaction across multiple pages? Is there is any standards
    for this scenario where the transaction is maintained across multiple pages. I
    cannot carry data across the jsp pages because of the complex data collected.
    Any help appreciated.
    Regards
    -MohanRaj

    You can not and should not do it the way that you are proposing. Keeping a transaction
    open across any interaction with the user is a big mistake. Transactions are scarce
    resources. They need to be short. You will need to collect the data from the three
    pages in the servlet itself. You can use the HTTPSession, or hidden fields in
    the forms. Only after all of the data is collected should you begin a transaction
    and update the database. Alternatively, you could store the partial data in a
    temporary database table, and move it to a permanent table when all of the data
    has been provided.

  • Carrying values across jsp pages

    hi there!
    i got a quick question...
    ive got a login page where users enter their email address and a password and upon pressing the submit button the login page calls the page processlogin.jsp which verifies this email addres and password with those values stored in the database.
    a successful login then displays another page where users submit other details. this form then calls another process jsp page which stores this new information in another table in the database.
    my question is how do i 'pass' through that initial email address the user enters on the login page through to this latter page....and inevitably...on to other pages too.
    the reason i need to do this is cos the table which i am storing these new details has email address as its foreign key and i need to store the same value.
    many thanks! :o)

    the simplest thing to do is create a bean to hold on to values a user enters and simply have access to them using the <%= bean.getEMAIL() %> or something like that. For multiple form pages, I like using <input type=hidden ...> to store values without having to create object to store them.
    But I think in your case, since you have a processing page for the form before it goes on then the bean is the best solution.
    Good luck

  • 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.

  • Bug or by Design? Commented-out ADF components still appear on .JSP page

    I normally use all .jspx pages, but for a couple of pages I'm using a .jsp page because I need to include <f:verbatim> HTML code.
    I'm noticing an odd occurrence where ADF component statements contained within comments still appear on the .jsp page (this does not occur with .jspx pages, and, regular comments w/o ADF components do not appear.) For example the following still shows up on the rendered page?:
    <!-- <af:panelLabelAndMessage label="#{bindings.View1mlm.label}">
    <af:outputText value="#{bindings.View1mlm.inputValue}">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.View1mlm.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage> -->
    This statement is not contained with the verbatim tag which appears later. I've also re-saved, re-compiled, etc. to make sure I wasn't using an older version of the page.
    Is this a bug or something I'm not aware of related to <!-- comments containing af: components --> within a .jsp page?

    The different comments jsp are:
    <!-- This is an HTML comment -->
    <%-- This is a jsp comment --%>
    The difference is the HTML comment is send to the browser, but the browser should not render comments to the user.
    The jsp comments are not send to the browser, since they are stripped off by the compiler.
    This reminds me of one project, where we used the write HTML comments on the jsp-pages like
    <!-- This sucks, please correct before next release -->. Luckily, the QAs corrected us before going live. ;o))

  • The best  way of carrying the search string across different jsp pages?

    I heard about transfer object. What about carrying object with session for different pages.
    Please suggest me the best approach to
    carry the search string across different jsp pages?
    thanks
    vijendra

    I doubt its possible even with a fancy HTML widget, although the last iBA update now allows links to other books.

  • SSO problem when redirecting from a JSP page to an external application

    Hi,
    I try to make a redirect from a JSP page (that is under a SSO protected application on iAS) to another page from another application, on an external iAS server, also protected by (a different) SSO. After the redirection is done, the login window appears, I enter the login name and the password and after that I obtain the followin error:
    "Oracle SSO Failure - Unable to process request
    Either the requested URL was not specified in terms of a fully-qualified host name or OHS single sign-on is incorrectly configured.
    Please notify your administrator."
    In the logs og the server I found the following:
    [OSSO] W05: Requested URL is not specified in terms of fully-qualified host name or invalid SSO partner configuration. Host from request
    mycompany.com:7777, registered host 144.147.147.200:7778.
    (the ip address being the address of the mycompany.com host).
    Any clue about this? Thanks a lot in advance!
    Regards,
    Marinel

    Hi Carlo,
    Thanks for your answer.
    The JSP original page is not added as a partner application to the second SSO server.
    The idea was that the user should insert first the login name/passwd for the first server, after being logged in, then redirected to the second application (on a different server), insert the login name/password for the second application and then load the 2nd application page. It seems that is not working after inserting the password for the 2nd application.
    Coming to a more general question that could help me to avoid this complicated approach: is it possible to have two different applications deployed on two different iAS servers and the two applications to use the same SSO (let's say the one from the first iAS server)? I have to mention that the process scenario is the following: the user load a page from the first application (protected by SSO), then, after successfull login and some processing in the first app, he will be automatically redirected by the first app to the second application, on the second server. I want to have also the second application, on the 2nd server, protected by SSO (ideally would be the same SSO as the first one!). Ideally the scenario would be: if it is redirected from the first app and the user is already authenticated, the automatic redirection should be done transparently for the user (without enetring the password again). If the user goes directly from the browser to a page of the second app, the SSO login window should be displayed and the user should provide his password.
    Is such a scenario possible on two apps deployed on two different servers?!
    Thanks a lot again!
    Regards,
    Marinel

  • Portal page serving portlets from different servers

    Can i make a portal page containing portlets which are served by different
    servers. Please reply this is urgent,
    Thanks in advance,
    Amit

    Amit,
    Using WLPortal 4.0 the best way to access remote information is to use the
    Web Service Portlet Wizard (available from the BEA Developer Center -
    http://developer.bea.com/index.jsp). You would need to set up web services
    on your different servers and then access the information using a portlet
    created using the wizard. We will be delivering a more comprehensive remote
    Portlet solution in a future release.
    Sincerely,
    Adrian.
    Adrian Fletcher.
    Senior Software Engineer,
    BEA Systems, Inc.
    Boulder, CO.
    email: [email protected]
    "Amit" <[email protected]> wrote in message
    news:3c608900$[email protected]..
    Can i make a portal page containing portlets which are served by different
    servers. Please reply this is urgent,
    Thanks in advance,
    Amit

  • How can i redirect to with one button to different pages!

    Hi All,
    For any application, for the first time,if a new table exists then there will no data in that table.
    based on this scenerio,in my application,i am handling apex validation staying that "you have no data. Please click here to go Reset symbol page.
    when it redirects to Reset symbol i am providing a text box and with a button. Once there enter a symbol and click on button it will inert in that table and again redirects to Home page for say-39.
    simillarly what are the functionality available in home page i had implemented same thing but only it differs page no for say-115.
    In both the scenerio's i will be redircting reset Symbol page where there can insert a symbol explained in above scenerio case.
    My problem is when i am throwing the error msg from page-39 i am redirecting to Reset symbol and when there enter symbol and click on button again i will be redirection t page -39 because the error had came from page-39.
    If the same error comes from page-115 then also i will redirecting to same Reset Symbol where there will be entering symbol and click on button, in this case it should redirect to page-115 instead of page-39 because i have got error from page-115 but not from page-39.
    How to handle the above scenerio, please help me out.
    Thanks in advance,
    Anoo.

    Hi Andy,
    Thanks for your suggestion, it is working fine..But i am facing one problem in page 115, i have two regions and both regiosn have same name but only difference is items names.. when i had tried to rediect to page-115 the umwanted one regions is showing instead of expected region. It is getting failed here bec it is rediecting to differnet region.
    Any suggestion on this!
    Thanks,
    Anoo..

Maybe you are looking for

  • Report Output for Currency Field--EKBE-WRBTR

    Hello ABAP Experts Since the Issue is related with Related Report output. Thought ABAP General Forum would be right place to post. If not Suggest an appropriate forum for the same. I shall post them in Correct Forum. Currently the report display Curr

  • Kernel Panic - Please Help!

    Hi all, I am having a problem with my Late 2009 27" iMac Intel Core i7. I am currently running the latest updated version of Lion (10.7.1). I have been having Kernel Panic problems for a while and, having searched through various forums, have been un

  • Content disappears in landscape mode on ipad

    Hi there, I am having trouble with one of my pages disappearing in Safari on the iPad. Here is the page: http://www.sbceoportal.org/ets/app_files/trucking_ipad.html In portrait mode it looks fine, but in landscape mode the only part that remains visi

  • How to get better milisecond timer resolution

    I am running a Measurement and Computing DAQ card.  In software we are polling the card for voltage level at rapid intervals, these intervals are controlled using a call to the millisecond timer vi.  We have set the software to poll to at about 10 ms

  • Document Preview File Types

    Hi, I am trying to find a list of all the file types that the document preview in a SharePoint Online environment supports. By this I mean the preview must show the contents of the document, and not just the metadata. Does anyone know of a list I can