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 PROTE

s2 Checkbox problem

2008-10-22 Thread Harden ZHU
I have a checkbox in jsp: , after html rendering it is shown as , that is good. But once a user selects the checkbox and submits the form, user.contactConfidential is set to true. However, on the database side the value should be stored as 'Y' or 'N'. Is there anyway that I can get user.contact

s:datetimepicker Exception

2008-09-01 Thread Harden ZHU
Hi, I am using s:datetimepicker as follow 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. Struts tags are only usable when the request has passed through

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

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

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 <%=company.formartName("aa")%> And company.formartName("aa") in jsp throw exception. Do I did something wrong? Thanks Here is Company.java == public class Com