Am Donnerstag, 9. Oktober 2008 19:20:55 schrieb Adam Lister: > Whoa, I just noticed in the docs where you have pointed out, it says NOT > to use the [] syntax, but to used (). I've always used the [] syntax, > I'm on struts 2.0.11. Can anyone clear that up? The bracket syntax has > always worked fine for me. I've done stuff like this in the past:
Yeah. And thats why i am fiddling around yet with ( ) which does not work.
Using [ ] it does, using ( ) it does not ... really interesting, anyone can
clear this?
Trying it with ( ) i get this exception:
19:26:43,844 WARN [com.opensymphony.xwork2.util.OgnlValueStack] Caught an
exception while evaluating expression 'ruleSets(1).rules(0).points' against
value stack
java.lang.NullPointerException: target is null for method rules
Using [] syntax it works.
@point:
Using this:
<s:textfield
name="ruleSets[%{#status.index}].rules[%{#rulesStat.index}].points" />
It works.
Thanks for your help and input, i guess i need weeks until i would have found
this out ... thx.
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
Really, I'm not out to destroy Microsoft. That will just be a
completely unintentional side effect."
-- Linus Torvalds
smime.p7s
Description: S/MIME cryptographic signature

