struts2 validation failed method

2008-11-03 Thread Harden ZHU
Hi, I have Basic Validation. If validation failed, which method struts2 is calling? Can I define some method like in struts1 input? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

s2 Checkbox problem

2008-10-22 Thread Harden ZHU
I have a checkbox in jsp: s:checkbox name=user.contactConfidential fieldValue=Y /, after html rendering it is shown as input type=checkbox name=user.contactConfidential value=Y id=user.contactConfidential/, that is good. But once a user selects the checkbox and submits the form,

s:datetimepicker Exception

2008-09-01 Thread Harden ZHU
Hi, I am using s:datetimepicker as follow s:datetimepicker name=user.birthDate displayFormat=-MM-dd / When user.birthDate is null, i got exception == Caused by: The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter.

struts2 jsp s:set question

2008-07-15 Thread Harden ZHU
Hi, I have a Company object as follow and setAttribute(company, company) in action. When do follow in jsp s:set name=company value=%{#application.company}/ %=company.formartName(aa)% And company.formartName(aa) in jsp throw exception. Do I did something wrong? Thanks Here is Company.java

Re: struts2 jsp s:set question

2008-07-15 Thread Harden ZHU
So Is there anyway that I can expose the OGNL variable to jsp and have direct access like %=company.formartName(aa)%? Thanks. On Tue, Jul 15, 2008 at 1:23 AM, Lukasz Lenart [EMAIL PROTECTED] wrote: Hi, s:set tag [1] put variable in given OGNL scope, try to use scope=request or you can try

Re: struts2 jsp s:set question

2008-07-15 Thread Harden ZHU
Ok, Thanks, In struts1.x, there is tag like bean:define. Anything like in struts2? On Tue, Jul 15, 2008 at 1:18 PM, Lukasz Lenart [EMAIL PROTECTED] wrote: Try % Company cmp = request.getAttribute(company); % %= cmp.formatName(aa) % but this is ugly ;-( Better solution is to develop some