Re: [appfuse-user] default Redirect in Struts

2009-11-18 Thread Thai Son Cung
Hi Nelson Yes, Thai Son = Tyson. I used to use it interchangeably Glad you found your solution. In my case it is different since I have to treat 404 and 403 differently due to client's requirements. Best Regards, Tyson Cung Hello Technology Pte. Ltd. 180 Cecil Street, #07-03, Bangkok Bank B

Re: [appfuse-user] default Redirect in Struts

2009-11-18 Thread Nelson Biasura
Thanks Tyson Cung and Thai Son Cung (Are you same person?).. I already figured it out.. My two Objective in this issue: 1. Catch all mapping that do not exist in struts.xml Solution: Put wildcard in the action name Example:

Re: [appfuse-user] default Redirect in Struts

2009-11-18 Thread Nelson Biasura
I tried your suggestion Thai Son Cung. It works. But i'm looking for more decent solution. I am wondering if the namespace in xwork might be the solution., it think this feature is available is struts too. I have done some experiment regarding it but no success so far. Here is the link: http:/

Re: [appfuse-user] default Redirect in Struts

2009-11-18 Thread Thai Son Cung
Hi Nelson, I am not sure if it is the correct way of doing the direction. You can create an jsp says openRate.jsp at the root level (together with 403.jsp etc.) which contains: <%@ include file="/common/taglibs.jsp"%> and change /403.jsp to /openRate.jsp Best Regards, Tyson Cung Hello T

Re: [appfuse-user] default Redirect in Struts

2009-11-18 Thread Nelson Biasura
Thanks Tyson, yes that is what i'm doing right now. But the problem is that when i changed (for example) 403.jsp into openRate.html which is available in my struts.xml mapping. the result is blank page! i can't do direct calling of the jsp like /pages/openRate.jsp because it must go through my a

Re: [appfuse-user] default Redirect in Struts

2009-11-18 Thread Tyson Cung
Hi Nelson Check the web.xml for error-page tag and change the location page accordingly. For example: 500 /error.jsp 400 /index.jsp 403 /403.jsp 404 /index.jsp Regards Tyson On Wed, Nov 18, 2009