Redirect to anaother site

Hi,
I'm sure this is easy but not sure how to do it, or what is the best method.
I have a submit button on a jsp that gets a servlet.
The servlet deals withe logic then I want to go to another site after the logic has been processed.
Now this needs to be dynamic so the site address is passed as a parameter. I have tried request.dispatchto
but that does not work, so what can it be.
Many Thanks
Phenoracle

Hi,
Do you try using the following in the servlet:
1.getServletConfig().getServletContext().getRequestDispatcher(targetUrl).forward(req, res);
2.res.sendRedirect(targetUrl);
res is the HttpServletResponse object received by your servlet.
req is the HttpServletRequest object received by your servlet.
targetUrl is the Url of your target site
Hope that this is what you are looking for.

Similar Messages

  • When I try to open some web sites i am blocked by MOZILLA and redirected to a site I did not want and am unable to close or go back without going back to the home page. Help help help

    I have removed the check from the pop up blocked in the MOZILLA options but still get this problem of not being able to open certain sites. The MOZILLA icon appears with the three options available, but before i can click on one I am automatically redirected to a site I did not want, and when I try to go back it will keep coming back to the site MOZILLA put on the computer. I have to close and go back to the home page and start all over again. I have installed a new virus protection system STOPZILLA and could this have any bearing on the problem. After awhile it becomes very frustrating trying to get on line information and being continually redirected. Any ideas?

    There are other things that need attention:
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Shockwave Flash 10.0 r32
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • How do i get Safari to stop redirecting to mobile sites?

    Mobile websites are a curse, and IMO was one of the main reasons people didn't use the mobile web before the iPhone. Now with the iPhone you can view the actual web (minus flash, which I would really like to see soon, hint hint), without having to deal with these crippled sites, yet most of them still redirect you to their mobile site.
    Someone please tell me there is a way to get safari on the iPhone to stop redirecting to mobile sites without jailbreaking my phone.

    These redirects are controlled by the websites themseives. They figure out if you are on a mobile phone or not and then redirect you to the mobile version.
    The only way to change that is to look for a link on their site that leads to the full version or write the website webmaster asking them for a link to be added.
    There are other ways as well but those aren't supported by Apple so they can't be discussed here.

  • Links in facebook redirecting to phone site

    I have chared a link on facebook to promote my company site. When i clicked it on my desktop the page opened fine. When I clicked a link within the page it redirected to the phone site. I checked and double checked and the links were good.
    I tried it in chrome and it worked fine. But safari seems to be choosing the phone site for every link.
    Any suggestions where I should start looking? The first time I uploaded my site it was with the wrong link to the phone site. But after this is corrected safari still seems to get it wrong.

    Hey
    thanks! I think it was a cache issue with my first wrong link to the mobile website. I was really sweating my pants of. Thanks again!
    Met vriendelijke groeten,
    Johannes Mortier
    0486 21 39 40
    // We cook your air!
    www.mozesmedia.be
    Op 25-sep.-2013, om 22:24 heeft Vikas.Sharma <[email protected]> het volgende geschreven:
    Re: links in facebook redirecting to phone site
    created by Vikas.Sharma in Help with using Adobe Muse CC - View the full discussion
    Hi Johannes,
    Even on Safari (6.0.5) clicking on the gif or logo at bottom, it takes me to http://www.mozesmedia.be/index.html which is the desktop version.
    Have you tried clearing Safari cache or resetting your Safari or tried on Safari in a different machine?
    Cheers,
    Vikas
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5713771#5713771
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5713771#5713771
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5713771#5713771. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Redirect to mobile site {subject edited by moderator}

    hello i have a website and a mobile site when i try to upload the mobile site files it ask to over write the main website files ?help in cs6

    You can do this with javascript on the main site's default page -
    <script type="text/javascript">
    if (screen.width <= 730) {
      window.location = "http://www.example.com/m";
    var ua = navigator.userAgent.toLowerCase();
    var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
    if(isAndroid && screen.width <= 730) {
      // Do something!
      // Redirect to Android-site?
      window.location = 'http://www.example.com/m';
    </script>
    If either of those tests return true, the user is redirected to the default page in the "m" subdirectory which would be where your mobile site and its dependent files are located.

  • I'm not sure if this is a Firefox issue, but in the last week or so, whenever I do a search on Google or Bing, when I click on one of the results, I get redirected to a site like Tazinga!, instead of taking me to my destination.

    For example, I did a search on Google for :
    "resume have summary and objective - Google Search"
    It returned several options. I clicked on :
    "Summary and Objective statements | Magic Pot of Jobs (http://www.magicpotofjobs.com/2005/07/30/summary-and-objective-statements/)
    And instead ended up at:
    http://www.gimmeanswers.net/search/v5_1/searchabc.php?search=Resume+Have+Summary+And+Objective&affiliate=mx1-33371
    This has been occurring with almost every search I do.

    Do a malware check with some malware scan programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • I am in Mexico, but do not want pages like google or yahoo to redirect to .mx sites. How do I make this stop happening?

    I am in Mexico, and pages like google or yahoo redirect to .mx sites. I would like to know how to keep them from redirecting, to stay at google.com / yahoo.com

    The problem is that what you are asking for is something you know you aren't going to get - specifically the
    I would also like Apple to provide a projected timeline for these fixes. Not a commitment, just a projected time-line.
    You know that is not how Apple do business - ever. While it's entirely possible they will ultimately meet your wishes in terms of the fixes, updates and added features, it won't be part of a 'deal' but just because they will continue to roll out their product plan as if nothing had ever happened.
    On the other hand, I have to say that I agree entirely. Much could and should be achieved simply by building on the platform and advancing it. It isn't an unreasonable wish to see that happen and to know it will happen. Just not Apple's way to tell anyone.

  • Random redirection to other sites

    i've been an internet user for nearly 10 years, but i think alas i've downloaded some sort of virus.
    when i google search for anything, even sites i have before, sometimes when i click the links i'm redirected to other sites trying to sell me cheap tat, and even sites for new mums... i'm 18... and a guy.
    anyone know what i have to do to get rid of this major annoyance?
    P.S. when i click the links i can clearly see in the address bar, that i'm being redirected to 'bots.com' and the like.

    Try downloading and running AVG free and ad-aware. Spybot may also help (but use with caution as it doesn't like playing with ad aware).
    If you can't access the AVG site, use another computer or ask a friend so you can install it.

  • How do I stop being redirected to nonsense sites when I'm trying to access a unique site like United Airlines?

    ''locking as a duplicate - https://support.mozilla.com/en-US/questions/807870''
    see above

    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • Please help -- How can I install flash player plugin (version 8) in browser without downloading setup or redirecting to macromedia site if flash plugin is not available in browser

    Hi,
    Please help
    How can I install flash player plugin (version 8) in browser
    without
    downloading setup or redirecting to macromedia site if flash
    plugin is not
    available in browser
    Thanks

    Via Javascripting. Look for Flash detection kits at the
    Adobe/Maromedia web
    site and also at Internet search engines.
    As well this forum focuses on database access issues and you
    might find more
    takers for this type of question in the Flash General forum.
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "jiby" <[email protected]> wrote in message
    news:e3odp2$pdc$[email protected]..
    Hi,
    Please help
    How can I install flash player plugin (version 8) in browser
    without
    downloading setup or redirecting to macromedia site if flash
    plugin is not
    available in browser
    Thanks

  • I have Kaspersky anti-virus for mac. The extension Kaspersky URL Advison 8.0.6 causes Firefox to hang when visiting secure websites, especially when the secure site redirects to another site.

    Kaspersky URL Advisor 8.0.6 causes Firefox 9.0.1 to hang when visiting secure websites and will not allow a redirect to another site. banking sites, facebook, auctionsniper, all these are affected.

    Please also contact Kaspersky Tech support and Forum and let them know the issue, if its really a bug, they will fix it through patch via database update
    * https://my.kaspersky.com/en/support/helpdesk
    * http://forum.kaspersky.com/index.php?showforum=117

  • Page continues redirecting to mobile site.

    I have my website www.jorgeromero.me (I'm still a beginer so please give me opinios on what to improve, thanks)
    I have designed a mobile view of my regular site and in the head of the Desktop View site  I placed the following Java Script to redirect to mobile site to devices less than 800 px:
    <script type="text/javascript">
    <!--
    if (screen.width <= 800) {
    window.location = "http://www.jorgeromero.me/welcome-to-my-page-mobile/";
    //-->
    </script>
    It works very well in mobile devices, the only thing I've noticed is that when I click "desktop view" to go to the regular site, it will keep redirecting me to the mobile site which makes sense because Java Script is doing what it's been asked for.
    I tried placing this code in the head of the mobile site to redirect to the desktop view but it only makes a loop in the browser which also makes sense
    <script type="text/javascript">
    <!--
    if (screen.width >= 800) {
    window.location = "http://www.jorgeromero.me";
    //-->
    </script>
    My question is.... what could I do in order to still be able to visit the desktop site when I click "desktop view" in the mobile site.
    Thanks a lot in advance for your help!!

    Thank you!!  I will definitely try this, thanks a lot for your reply.
    When placing the cookie do I have to keep the Java Script redirection code in my mobile site header??
    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=0;" />
    <meta name="apple-mobile-web-app-capable" content="yes" />

  • When making a selection from a search I am being redirected to a site other than what I selected and it says "redirecting" right on the tab, how do I stop it!

    When doing a search, the search list comes up fine. On most of the sites I select, it redirects me to another search site. I have McAfee protection installed, and it shows no threats or issues. Even had their techs on my computer remotely.
    Also, my pop up is turned off, and I still get pop ups and it opens them in Explorer!

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • I keep getting redirected to advertising sites that I did not clicki....How do I fix this

    I use the latest FF browser and yesterday when I would try to go to
    a site I wanted to see, I would be redirected to an advertising site...
    Usually it happens from a google search but not always....
    I ran the Microsoft Security software, but it did not fix it...Do you have any suggestions

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Redirect to another site in business catalyst

    Hello - I have a site that I would like to point my domain name to within business catalyst .  Not sure how to do this without creating an issue with my partner site.  So when people enter in www.mysite.com I want the other site to come up - not the site that has that domain name.  So does anyone know how to do a redirect within business catalyst without messing up your partner site?

    .oO(Ken Binney)
    >Put this in the HEAD section
    ><meta http-equiv="refresh"
    content="2;url=http://targetdomain.com">
    *sigh*
    Use standard redirects: don't break the back button!
    http://www.w3.org/QA/Tips/reback
    META Refresh And Search Engines
    http://www.netmechanic.com/news/vol4/promo_no15.htm
    Micha

Maybe you are looking for

  • Mutual Changes of sales document in  CRM and ECC

    HI 1.We have a scenario as we are creating orders in CRM, but want to change the same in ECC. Also whatever changes we do in ECC should flow back to CRM. 2.Similarly, if we create sales order in ECC, it should be changeable in CRM and the corresponsi

  • Having problem implementin javabeans in JSP

    here is my code: <html> <body> <%@ page language="java" import="dbBean"\%> <jsp:useBean id="dbBean" scope="request" class="dbBean" /> <% dbBean.setUserID(request.getParameter("id")); dbBean.setUserPass(request.getParameter("pass")); dbBean.setFirstNa

  • Is this brand new MacMini new?

    I went the the Apple Store 2 days ago and purchase a MacMini (i7 2.3) and when I got home and booted it up, I realised that it has 10.8.3 and not 10.9 (Maveriks) So it's safe to think that this mini has been on the warehouse shelves for about 10 mont

  • Line Frequency Noise

    Hi! I am acquiring data from a digital readout unit using AI on my PCI-6034 card (with CB-68LP). This signal is VDC (±10mV) Lets say the output from the digital readout unit is solid 3mV. When I display the acquired signal, I see a random noise signa

  • Cp1025nw won't print multiple pages

    No matter where I set the number of copies to print out, I'm only getting one. I've found other solutions related to Mopier settings, but I can not find these anywhere for this printer. Windows 7 Home CP1025NW I have reinstalled the drivers both from