wood burning stoves*
The moose likes Struts and the fly likes How to redirect a request to another URL in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to redirect a request to another URL in Struts " Watch "How to redirect a request to another URL in Struts " New topic
Author

How to redirect a request to another URL in Struts

ankit misra
Greenhorn

Joined: May 17, 2009
Posts: 2
Hi Friends,

I am developing an application(http://localhost:8080/tas/....). I have user registration page and on that page user will enter their information's. When the user will click on register button the page will redirect the page to a completely different url(like: www.google.com/myservices). So, here my application context starts with /tas and my request will be redirected to google with some post/get parameters. I am using Struts1.3.10 framework. In the jsp file I am using
<% String redirectURL = "www.google.com"; response.sendRedirect(redirectURL); %> but in the url it show (http://localhost:8080/www.google.com). Any help would be much appriciated.

Ankit
Lorand Komaromi
Ranch Hand

Joined: Oct 08, 2009
Posts: 276


OCJP 6 (93%)
ankit misra
Greenhorn

Joined: May 17, 2009
Posts: 2
It worked. Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to redirect a request to another URL in Struts