On Tue, Feb 22, 2011 at 12:26 PM, Jainitya wrote:
> [JSP]

Would it be possible for you to only include the actual stuff that
matters? Editing stuff down is really helpful for people trying to
focus on what's actually wrong.

1) http://struts.apache.org/2.x/docs/selecting-themes.html

You may be able to avoid setting the theme on every single form field.

2) If the value is coming from an action property of the same name you
shouldn't need to set the value explicitly.

3) You may be able to use the "key" attribute to eliminate setting
both the "id" and "name" attributes (not sure how it interacts w/ the
"simple" theme).

I'd take a little time and poke around the framework a bit before
proceeding much further--you'll save yourself, and those that have to
maintain your code, some time and hassle.

In any case: why *wouldn't* the list be null? You're not passing any
form values that would populate it. Actions are created per request:
any action properties not set by the form or by action code will be
whatever their type's default value is.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to