Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

RE: S2:The value of checkbox getted in server-side is "false" when no any checkbox been selected.

Dave Newton

2006-12-18

Replies:

From: Denis Ling [mailto:denislingcn@(protected)]
> the retrieved value of "roleId" is {"false"} when user doesn't select
> any checkbox elements. In my opinion, this case should returns null
> directly.

Why?

S2 automagically deals with one of the headaches of HTTP (not returning
unchecked box values) by adding a hidden field to the form. This makes
the server side code much cleaner, IMO.

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.