How to redirect users to another address

Hi
Thank you for reading my post
I have a problem that i do not know how to resolve.
we had an application in an address like :
http://www.myweb.com/web2/ it is a dynamic application written in java .
now we move it to another server like : http://10.10.a.b/web2/
we need all people that come to the first address to be redirected to new address with the complete url for example if some one come to http://www.myweb.com/web2/register.jsp
we should be able to redirect him/her to http://10.10.a.b:8888/web2/register.jsp
what should i do now ? is there any way that i can do this ?
i am allowed to deploy a java web application to first address to do this , i mean i can deploy some java web application to http://www.myweb.com/web2/ to make this redirection possible.
does any one hav an idea ?
thanks

Certainly sounds possible.
Put in a servlet filter that will intercept all requests.
You would use response.sendRedirect to send the redirect.
However what you would lose in this redirect is any request variables. You would have to include them as get parameters in the redirect URL which
- may not be secure
- may not work if there are too many request parameters.

Similar Messages

  • How to redirect user from login page to "Set Challenge question" page

    How to redirect user from login page to "Set Challenge question" page (NOT custom page) after 3 un successful password attempts?
    Meaning when user types wrong password 3 times they will be redirected to set Challenge question page. If user answers the challenge question then password reset page should be appeared other wise (after remaining 3 un successeful challenge question answers) account should be locked out.
    thanks for your help.

    hi sandeep
    Thanks for your answer. Let me ellaborate more on the requirement here.
    - Password Policy and Lost Password management are set up in the identity system
    - Configure login tries allowed= 5. Verify accout is lock out after 5 unsucessful login.
    This is what need to achieve.
    1) If a user attempts to login 3(not 5) times using an incorrect login credential he/she should be redirected to set challenge question (security question) page.
    2) Then if the user attempts (remaining) 2 times incorrect challenge answer then his/her account should be locked out.
    3) If he/she answers the challenge answer correctly then he/she should be redirected to password reset page.
    Is this possible?

  • How to redirect user on or before page load

    Hi,
    what is best practice for redirecting a user when he opens a specific page.
    I have a solution with a custom master page and several webparts. When a user opens my solution (every page based on the same master). 
    What i need to do now is, when the user opens the page i have to check before rendering the page and the webparts some criteria. When the user is not allowed to open the page i need to redirect him to another location.
    How could q redirect a user in a sharepoint solution?
    I thought about some ways:
    - develop a webpart (without any rendering) and put in onprerender event the check and the redirect
    - create a codebehind for the masterpage
    - create an httpmodule
    What would you prefer? How could i solve it?
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

    Hi,
    In SharePoint on-premises, I suggest you use HttpModule and HttpHandler to achieve it.
    http://sharepointgotchas.wordpress.com/tag/httpmodule/
    http://zoomsharepoint.blogspot.com/2009/09/redirect-page-using-http-module.html
    In SharePoint online, JavaScript is a better choice, we can add some JavaScript code in the master page.
    http://sharepointtipsntricks.blogspot.com/2009/06/redirect-to-another-aspx-using.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to redirect users to certain page on login

    Hello All,
    I need to redirect users to page 1 after login even if they use a direct URL pointing to some other page. How do i achieve this?
    Ex:
    User logs in using URL:
    http://localhost:port/apex/f?p=101:10:1818843916449354::NO:::should redirect him to below page instead of 10:
    http://localhost:port/apex/f?p=101:1:2314843916462565::NO:::Appreciate your reply.
    Thanks and Regards,
    Senana

    Hello Senana,
    Assuming you're using wwv_flow_custom_auth_std.login to log in, and p_flow_page is set to "[your app id]:1" try placing the following line just before your call to wwv_flow_custom_auth_std.login:
    :FSP_AFTER_LOGIN_URL := null;This should force user to page 1 after log-in.
    Hope this helps,
    John

  • How to redirect users to Custom Page on InfoView logoff

    Post Author: Srinivas123
    CA Forum: WebIntelligence Reporting
    How to redirect the users on InfoView logoff to a custom page, instead of the default logon.aspx.   

    Hello Senana,
    Assuming you're using wwv_flow_custom_auth_std.login to log in, and p_flow_page is set to "[your app id]:1" try placing the following line just before your call to wwv_flow_custom_auth_std.login:
    :FSP_AFTER_LOGIN_URL := null;This should force user to page 1 after log-in.
    Hope this helps,
    John

  • After switchover how to redirect users to the new standby?

    Hello.
    Please, the Data Guard has been configured and now I want to know please how I can redirect the users to the primary in a timely manner?
    Thanks

    One of the core skills in administering an Oracle database is to be able to search the documentation.
    Go to http://tahiti.oracle.com, type failover=on in the search box, and select the correct.
    People refusing to work with tahiti shouldn't work as DBA.
    This is a volunteer forum, I don't get anything for doing your work, and it is 11:25 pm here.
    Sybrand Bakker
    Senior Oracle DBA

  • How to redirect users to different pages after logging in?

    Please HELP this is doing my head in.
    I have created a login for a site using dreamweavers login tools, but I need to direct users to their individual pages, as Dreamweaver shows only one.
    I here you can store urls in you data base then call on them depending on the user is this correct ?
    Or is there another way ?
    Could someone show me what I need to do ?
    Any help would be appreciated
    Dazza

    Hi
    It would become a long reply if I showed you, and I would require your database structure. So this is a simple 'things to do / steps to take' list.
    (the access level and user id, (not the same as database table id) are used interchangeable here)
    The first item is to ensure you have your database set-up to allow the items to be recovered from it dependant upon the users id/access level. This could be done via a simple access level being set, the access level would be set in the user table and the page content from the database would have a matching column in the table for content.
    The DW authentication server behaviour will set the access level in the same session variable at the same time as the logged-in session is set, (see the DW documentation on user authentication for how to use this feature).
    It would then be a simple matter of retrieving the information for the page using the DW recordset query server behaviour, which can also automatically set the access level in the query code to ensure that the items to be retrieved matches the access level.
    The biggest problem most people who try to set-up a restricted access section of a site, is not the server behaviour to restrict access to content, but the cms section of the site to create the content as required. For this is may be worth while reading - http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html, although your database code would be slightly different as you would require the access level/user id be used to 'filter' the results returned and the items for the user to view, (links to content) also must be access level/user id dependant, (tip, use conditional region code for this).
    PZ

  • How to redirect users of a certain SSID to a webserver http or https URL ???

    I am not a wifi expert , but a vendor has just demonstrated that choosing 1 of the x number of ssid ,  a user can be redirected a lan machine on http or https from the browser !!!!!!!!!!!!!!!!!!!!!!!!!!!!1 I WANT TO DO THE SAME using CISCO WLC ,  Pls advice .
    Calling out experts.

    You don't have to post more than once on this site... many of use look at each of the forums.  Just follow your original post here:
    https://supportforums.cisco.com/thread/2267127?tstart=0
    Thanks,
    Scott
    *****Help out other by using the rating system and marking answered questions as "Answered"*****

  • Redirect users to another AnyConnect server

    We are finishing up an AnyConnect user pilot test on an ASA that we use specifically for testing.  I now have an ASA VPN load balancing cluster configured for production use.  However, there are still some pilot users that have the pilot profiles so they are connecting to the test ASA.
    Is there any way to configure the test ASA so that users will be redirected to the production ASA cluster? If so, can you specify the profile to use?
    We're in the process of pushing out the production AnyConnect profiles to the users but I'm just wondering if there's a way we can speed things up by having the test ASA redirect connections.
    Thanks.

    BTW, we are using ASA 8.4(4.1) currently. Thanks.

  • How to redirect MouseEvent to another Node?

    I need to redirect the MouseEvent to another Node.

    mi53feld wrote:
    It is not so simple :)Yes, but I have to do with the information you provide... :-)
    So what's wrong with my first solution (using same method)?
    Ah, I see, you want two distinct event handlers, but clicking on one node also triggers the event on the other node, right?
    Something like:
    var rG = Rectangle { id: 'G', fill: Color.GREEN, x: 10, y: 10, width: 50, height: 50 }
    var rB = Rectangle { id: 'B', fill: Color.BLUE, x: 10, y: 100, width: 50, height: 50 }
    var scene: Scene;
    Stage
      title: "Forum Test"
      scene: scene = Scene
        width: 500
        height: 500
        fill: Color.LAVENDER
        content:
          rG, rB
    rG.onMousePressed = function (evt: MouseEvent): Void
      println("Green! {evt.node} {evt}");
    rB.onMousePressed = function (evt: MouseEvent): Void
      println("Blue... {evt.node} {evt}");
      rG.onMousePressed(evt);
    }

  • 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

  • I have a 2008 vintage iMac with 2.8GHz processor and recently upgraded to  OS X 10.9.5.  Soon after theupgrade the mail system started switching the senders address to another address, but same user name.  How do you fix this?

    I have a 2008 vintage iMac with 2.8GHz processor and recently upgraded to  OS X 10.9.5.  Soon after theupgrade the mail system started switching the senders address to another address, but same user name.  How do you fix this?

    Thanks for the reply,.  I went to the site provided and executed the directions but this did not solve the issue. 
    Even more details:
    If I send a message to the Jane Doe address from another account on this machine (all my family uses the same email services provider and each have accounts set up on this machine), when you open it, it shows Jane Doe then the <applejax.xx> address AND the picture associated with the Apple Jax account.
    So the problem shows up when the message is sent to this account from this machine, AND when it is sent from this machine from this account.  No other accounts on the machine are effected.
    I have sent and received email messages from the mail service provider's website, and everything is fine.

  • How to redirect domain controller address to another one without changing IP Helper

    Hi All
    Basically we have been told that our domain controller's address is going to change, we have many switches 200+ that have the current address as the IP Helper address. The topology is basically a core 6509 that goes out to approx 45 distribution switches 3560s that then have multiple access switches hanging off 3560s, 2950s and 2960s. There are also many workstations that have  the domain controllers IP statically assigned.
    My question is is there a way that this server can be decomisioned and replaced with a new one with a different IP without having to change all of the devices IP Helper address static DNS etc. but to just redirect requests for that address to another at a higher level? Like say the core receives requests for the old IP and redirects requests to the new address? We have tried suggesting they keep the same IP for the new server but it's not going to happen.
    thanks

    You can use NAT to do that. Be careful though because that is really a band-aid and not a resolution to the problem.
    http://www.cisco.com/en/US/tech/tk648/tk361/tk438/tsd_technology_support_sub-protocol_home.html

  • How to force user to goto another Required Page

    Hello,
    In my application, I have split my forms into 14 pages, my input forms are split up into add New records only and updates only. On the Adding New records form, how do I force the user onto another required screen? The first page is required, one is required if the user selects yes on the first screen and the other page is always required. I was going to put everything on one page that is required, but that will make the page too busy. After the user clicks next or save, it writes to the database. Is there a better way of doing this?
    Thanks,
    Mary

    Varad,
    I am trying to come up with the quickest solution to this problem. It seems like if I go with the mutiple page solution, I will have recode most of my application. If I go with the single page solution, I am just moving fields over from another page and deleting the page. I think I will just go with the single page solution. But this does give me problems, since I am trying to use a Select list with a redirect back to the same page, it will reset all the entered data back to null, I can't use select list with Submit, since I need a Category selected with a deficiency, it will error out. I have tried to use Select with a Branch, but it goes to the next page, instead of staying on the same page. I understand that with a Select with a Branch I can have it save state. Please advise.
    Thanks,
    Mary

  • How to send data to another site, get response, redirect and get new response

    Dear all,
    I've to write a Java EE application that have to become an interface to a payment platform. The protocol require to send a POST string containing some information (including an error and response page) to an external host, get the response and redirect the user to another host using the previous response. When the user ends the transaction the host redirect the user to my error or response page.
    For the moment my user access to my application using glassfish REALM authentication. After that I write the following code:
    public void paymentPrepare() throws UnsupportedEncodingException, IOException {
       String postUrl = "https://test.payment.test/init/http";
       HttpPost postRequest = new HttpPost(postUrl);
       String id = "99999999";
       String password = "99999999";
       String action = "4";
       String amt = "1.00";
       String currencycode = "978";
       String langid = "ENG";
       String responseurl = "http://myhost:8080/EMBOWorkshop/secure/response.xhtml";
       String errorurl = "http://myhost:8080/EMBOWorkshop/secure/error.xhtml";
      trackid = "TRCK0001";
      udf1 = "Descrizione";
       StringEntity postParamsEntity = new StringEntity("id=" + id
       + "&password=" + password
       + "&action=" + action
       + "&amt=" + amt
       + "&currencycode=" + currencycode
       + "&langid=" + langid
       + "&responseurl=" + responseurl
       + "&errorurl" + errorurl
       + "&trackid" + trackid
       + "&udf1" + udf1);
      postParamsEntity.setContentType("application/x-www-form-urlencoded");
      postRequest.setEntity(postParamsEntity);
       DefaultHttpClient httpClient = new DefaultHttpClient();
       // Execute the HTTP POST
       System.out.println("Executing HTTP Post...\n");
       HttpResponse response = httpClient.execute(postRequest);
       // Check the HTTP status of the post.
       if (response.getStatusLine().getStatusCode() != 200 && response.getStatusLine().getStatusCode() != 201) {
       throw new RuntimeException("Failed: HTTP error code: "
       + response.getStatusLine().getStatusCode());
       // Create a reader to read in the HTTP post results.
       BufferedReader br = new BufferedReader(
       new InputStreamReader((response.getEntity().getContent())));
       // Read in all of the post results into a String.
       String output = "";
       Boolean keepGoing = true;
       while (keepGoing) {
       String currentLine = br.readLine();
       if (currentLine ==
    null) {
      keepGoing = false;
       } else {
      output += currentLine;
       System.out.println("Raw string result: \n" + output);
    The previous code works fine. I receive the response. But now I don't know how to continue. How can redirect the user to another site, and when the payment is finished, receive the response? Another question is, the user authenticate himself to access to the application. When the user will redirect to an external site, the glassfish session permits to get the response from the other host without require a new authentication?
    For the moment I don't know how to redirect the user, but I tried to write this method to obtain the last response:
      public void getResponse(HttpServletRequest request, HttpServletResponse response) {
      paymentId = request.getParameter("paymentid");
      result = request.getParameter("result");
      auth = request.getParameter("auth");
       ref = request.getParameter("ref");
      traind = request.getParameter("tranid");
      trackid = request.getParameter("trackid");
      udf1 = request.getParameter("udf1");
      responsecode = request.getParameter("responsecode");
    Is it correct?
    Thanks

    Now I'm able to redirect the user to the other page:
    ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
    externalContext.redirect("http://stackoverflow.com");
    Now the problem is: once the user has finished to pay, the other site redirect the user to my site using one of the two JSF page I prepared for error or response like the following:
    <?xml version='1.0' encoding='UTF-8' ?>
    <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                    template="./index.xhtml"
                    xmlns:h="http://java.sun.com/jsf/html"
                    xmlns:f="http://java.sun.com/jsf/core"
                    xmlns:rich="http://richfaces.org/rich"
                    xmlns:a4j="http://richfaces.org/a4j"
                    xmlns="http://www.w3.org/1999/xhtml"
                    xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                    >
        <ui:define name="content">
            <center>
               An error occurred during  transaction
                #{participantBean.auth}<br />
                #{participantBean.responsecode}
            </center>
      </ui:define>
    </ui:composition>
    So, how can I get the GET parameters that the other host sent to me during the redirection?

Maybe you are looking for

  • WIH 00013 - Session Closed after try to run a report

    Hi all My system is BOXI R2 SP3  and client W2K SP4 and IE 6 SP1. When try to lauch a report, the report never end, and after 20 minutes I cancel the report and show WIH 00013 error. I try to launch the report using another web browser and work fine

  • Is it possible to hide the HD icon in the desktop?

    It annoys me... Also, can anyone recommend me a site where I can download new Dock/menu bar themes?

  • Possible Fix for Disc Image Creation Problems

    I've noticed a number of posts describing problems similar to the one I had: with my first session with iDVD5, I tried creating an .img disc image (thanks to Apple, btw, for building that function in -- and for the new progress bars!), but it hung up

  • Need to delete drop down values of activity in travel request portal

    Hi, We need to hide/delete few of the drop down values from activity in travel request creation in portal, i know that if we delete in R/3 it will effect here, as per the client requirement we need values in R/3 system but that few of the values shou

  • Cisco Prime Intrastructure 2.0 boot loop issue?

    Hi!!! I have a question. I have a server Cisco UCSC-C220-M3L: 2x Intel Xeon E5-2665; 32Gb RAM; 1x LFF HDD 1 TB: LSI embedded sw MegaRaid controller. HDD is configured in RAID 0. I have installed CPI 2.0 Express OVA on my ESXi host version 5.5 and wen