I've found solution.
You can avoid this problem if you will add hidden field with the same name
as the checkbox. Like this :
*
*
On Nov 20, 2007 11:12 AM, John Doe <[EMAIL PROTECTED]> wrote:
> Solution still needed. Forgot to say, I'm using struts 1.2.7
>
>
> On
Solution still needed. Forgot to say, I'm using struts 1.2.7
On Nov 19, 2007 11:08 AM, John Doe <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a form declared in my struts config :
>
> *
>
>
>
>
Hi,
I have a form declared in my struts config :
*
*
and here is my JSP code :
*
...
*
and my code in action
*log.info("IS processed : " + dynaForm.get(Constants.FormFields.IS_PROCESSED
));*
I always have null value first time I submit
The simplest way (if I'have understood your problem right) is to create 10
variables in your action class (with getters and setters of course) and on
the form. So it'll be
private String firstName1;
private String firstName2;
private String firstName3;
...
private String firstName10;
in the actio
I've solved the problem. The only way to validate properly is to add an
error to the errors variable. Without this validator will think that
everything is OK even if you returned false in validate method.
On 10/29/07, John Doe <[EMAIL PROTECTED]> wrote:
>
> No, there is no except
No, there is no exception.
On 10/28/07, Paul Benedict <[EMAIL PROTECTED]> wrote:
>
> I think validation can pass if an exception is thrown. Please check your
> log
> files that no error is occurring with your validation.
>
> Paul
>
--
Best regards,
Bashmaкov Anton
Yes. I have validation working correctly. Required and mask works good. And
my validator method gets called and returns false, but I do not add any
errors message is it necessary?
On 10/26/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
>
> John Doe wrote:
> > Hi,
> > I have
Hi,
I have Struts 1.2.7 application and I need to write custom validator for my
form. I've wrote struts tutorial at
http://struts.apache.org/1.2.7/userGuide/dev_validator.html
and have tried to do the same. But my validator is not working. Here is my
class method :
public class GroupIdValidator {
8 matches
Mail list logo