Andreas Mähler wrote:
Hello Everyone,

do you know if the "communication" between the S2 Action and the struts-tags is standardised? Or am I opening a black box if I replace sth. like

<s:textarea id="description" name="object.description" cols="40" rows="6"/>

with a VanillaHTML+JSTL version like

<textarea id="description" name="object.description" cols="40" rows="6">${object.description}</textarea>

?

This approach is okay. You will struggle with collections though (like populating the values of a select) An edge case is radio buttons as they include a hidden field (or was that checkboxes). Just check the templates for what they render as html.


It is currently working; but can I rely on it?

Do you know how the field- and action-errors can be accessed with JSTL-EL?


${actionErrors} is a Collection<String>
${actionMessages} is a Collection<String>
${fieldErrors} is a Map<String, List<String>> where the key is the name of the field

The reason I do this is because I don't like the struts-tags and OGNL.

That's understandable, but the template system of the tags is quite good and it may be more productive to create better templates.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to