aspose file tools*
The moose likes Websphere and the fly likes Struts redirect in webphere 4.05 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Struts redirect in webphere 4.05" Watch "Struts redirect in webphere 4.05" New topic
Author

Struts redirect in webphere 4.05

giang nguyen
Ranch Hand

Joined: May 13, 2003
Posts: 42
Hi every body,
I developed a web app using struts 1.0 and deployed it on websphere application server 4.05. As in struts 1.02, I separate my app into 2 logical module for security mapping with roles. This is one of my action path config:
action name="companyForm" path="/Admin/companyAddNew" scope="request" type="com.tgt.cas.dbadmin.action.CompanyAddNewAction" input="Admin\companyAddNew.jsp"
forward name="companyAddNew" path="Admin\companyAddNew.jsp" redirect="true" /forward
forward name="companyList" path="/Admin/companyList.do" redirect="true"
/forward
forward name="companyAddNewError" path="/Admin/companyAddNew.jsp"
/forward
/action
The forward element:
forward name="companyList" path="/Admin/companyList.do" redirect="true">
works fine in my websphere studio's test enviroment, but when I deploy it on a real websphere application server (4.05), the server seemed cannot recognise the path "/Admin/companyList.do" that I forward to. When I change redirect to "false" it works but redirect ="true" is what I need to ensure the functionality of my app. Can any one help me understand this? and btw show me how to config the path that work under redirect situation.
Note: As this is struts 1.02, I just can use One struts-config.xml file
I have to remove the </> and <> so that the code get displayed.
[ September 15, 2003: Message edited by: giang nguyen ]

SCJP 1.4, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts redirect in webphere 4.05