• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Struts2 : Problem in redirecting From other site to myApplication

 
Greenhorn
Posts: 8
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using struts2.0 and the application is deployed and tested over tomcat 6.0.

As per requirement, my application (myApplication) has to redirect from a PHP site with domain name http:// abc.com

When this PHP site redirects the request to my application it calls an action Action1 of my application, which further redirects to another action Action2. But while redirection it changes the domain name to Application's server IP (http://applicationServerIP:8080/myApplication/Action2 ). My expected result is ( http://abc.com/myApplication/Action2).

Action configuration in sturts.xml is:



Any Help to solve this issue will be appreciated.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Facing same issue let me explain in more detail.
We have 10 Welcome pages which redirect to our Struts2 based application.



In above code we are using redirectAction.
When request comes from welcome page to our application url suppose to keep host name as it is but its not happening.
for example Welcome page url is like

http://beta.abctest.com

after accepting zipCode its redirect to our struts2 application with some request parameter.
so url suppose to be

http://beta.abctest.com/AutoThreeV2/autothreeV2action/?zipCode=90001 etc

but problem is its change hostname to ip address

http://10.39.33.34:8080/AutoThreeV2/autothreeV2action/?zipCode=90001

Any Help to solve this issue will be appreciated.

reply
    Bookmark Topic Watch Topic
  • New Topic