[S2] Wildcard characters in Action-validation.xml

2007-07-08 Thread Wei Xu
I plan to use Struts validation frame to validate my input fields. I want to konw if there is a way to use wildcard characters such as "*?" in my validtion.xml. For instance: My*Book 1 true Here, this fieldName could be "MyOldBook", "MyNewBook", "MyBook" etc. I nev

[S2] How can I get system validation message modified?

2007-07-05 Thread Wei Xu
In my scenario, I didn't use any Struts validation frame. Here, "field1" is a numeric field in Java bean. If I input a validate numeric, for instance, a random string, there is an error validation message appearing automatially by Struts. Invalid field value for field "field1" My questio

RE: [s2] no result defined error after failed validation - can someone help?

2007-07-05 Thread Wei Xu
Try this way, and it might works. Make your action beans all implement "com.opensymphony.xwork2.Preparable", and implement a method "prepare()" in your action beans just like this: public void prepare() throws Exception { // Clear last error messages clearErrorsAndMessages(); } Everytime whe

Re: [S2] Multiple problem

2007-06-14 Thread Wei Xu
void re-posting a question without the context of any prior discussion. See below for another suggestion: Wei Xu wrote: First, you can look through next jsp codes: Why do the indexing into destObjects manually when s:iterator is already doing it for you? How abou

[S2] Multiple problem

2007-06-13 Thread Wei Xu
First, you can look through next jsp codes: Variable "destObejcts" is a type which contains a serial of objects named "destObject". Variable "visibleColumns" is also a LIST of objects named "visibleColumn", and "fieldDefName" is a property of "visibleColumn". An