Re: Action tag is forced to use input result if outer action has action errors

2009-11-10 Thread Matt Jiang
validated, for example: > > > methodName1,methodName2 > > > Even if your interceptor is a default interceptor like workflow or the > interceptor is inside a interceptor stack you can reference it with the > same > declaration > > > name="interceptorName.exclude

Action tag is forced to use input result if outer action has action errors

2009-11-10 Thread Matt Jiang
Hi All, I use Sitemesh as template engine with Struts2. In my decorator jsp file, I use for division content source. Now I encounter a problem that if an action has an action error, there will be a "input" result used. It will cause all in decorator JSP file also execute input result directly. T

Re: [S2] Getting property value from Enum

2009-05-26 Thread Matt Jiang
Don't worry, we all made this kind of mistake before. and this would not be the last time. bless you... On Tue, May 26, 2009 at 4:47 PM, Steven Yang wrote: > OMG > I can't believe myself. > how can i make such a stupid mistake > > Sorry guys for wasting your time. > > Its all my fault my method

Re: Submitting a Date to an Action

2009-04-29 Thread Matt Jiang
Hi It is nothing about date picker tag. You can have a Converter to convert String to Date and vice versa. Below is my implementation for your reference: (For DateUtil, please replace with yours) public class DateConverter extends StrutsTypeConverter { private static final String PATTERN = Dat

How to pass Result dynamic param value while using Annotation to define action

2009-03-04 Thread Matt Jiang
Hi guys, As you can see example in http://cwiki.apache.org/WW/convention-plugin.html You can pass static parameters to Results. The example shows below is static String, but if I would like to use dynamic value, such as getting value from Action. How do I write it? Do I just use ${expression} as w

Questions about convention-plugin

2009-02-23 Thread Matt Jiang
Hi I have test annotation to define Action and its proceeding Results definition. It works fine, but I got confused about the two properties definition as shown below: *You can also tell the plugin to use different strings to locate root packages using the property struts.convention.package.locat