Thought I'd bring up a few more issues in the area of XPath support in
Struts...

XPath has a function mechanism, and the standard defines a couple of core
functions (and various XPath engines provide an extension mechanism). So
you could write JSP pages containing the following tags...

<bean:write xpath="concat( /request/customerBean/firstName, ' ',
/request/customerBean/secondName)"/>

This would concatenate the values of the firstName and secondName
properties of the bean named 'customerBean' in the request scope. But what
if I decided that I wanted to set the value of an input control to the
concatenation of the in-scope bean's first and second name properties.

<html:input xpath="concat( /request/customerBean/firstName, ' ',
/request/customerBean/secondName)"/>

To which bean property would the value of the field be posted? Perhaps we
would still need to provide the 'name' and 'property' attributes in this
case?

Regards,
James W.

--------------------------------------------------------------------------
This e-mail is from Cards Etc Pty Ltd (ACN: 069 533 302). It may contain
privileged and confidential information. It is intended for the named
recipient(s) only. If you are not an intended recipient, please notify us
immediately by reply e-mail or by phone on +61 2 9212 7773 & delete this
e-mail from your system.
--------------------------------------------------------------------------


Reply via email to