accessing form beans with java objects in XSL

Dudley Butt <[email protected]> Thu, 10 Mar 2005 21:44:10 +0200
Newsgroups gmane.comp.java.strutscx.user
Message-ID <[email protected]>
Hi Berny,

I see the bean i'm trying to access is part of my actionform in the debug=xml
Here is the xml output snippet...

<!--********** ACTIONFORM **********-->
-
	<actionform>
-
	<EnrollmentForm>
<index/>
-
	<HashMap>
<empty>true</empty>
<class>class java.util.HashMap</class>
</HashMap>
<productType/>
<action/>
-
	<ValidatorResults>
-
	<HashMap>
<empty>true</empty>
<class>class java.util.HashMap</class>
</HashMap>
-
	<class>
class org.apache.commons.validator.ValidatorResults
</class>
</ValidatorResults>
<page>0</page>
-
	<class>
class com.thawte.presentation.retail.actionform.EnrollmentForm
</class>
-
	<ContactDetails>
<workPhone/>
<jobTitle/>
<firstName/>
<lastName/>
-
	<class>
class com.thawte.presentation.valueobject.ContactDetails
</class>
<emailAddress/>
</ContactDetails>
-
	<ActionServletWrapper>
-
	<class>
class org.apache.struts.action.ActionServletWrapper
</class>
</ActionServletWrapper>
<multipartRequestHandler/>
</EnrollmentForm>
</actionform>
<!--********** ACTIONERRORS **********-->
-
	<errors>
<firstName/>
</errors>



What would my xpath statement have to look like to reference the
ContactDetails bean? Or can i use some fancy xslt to reference it in a
simple manner?
Thanx again for your help.
Dudley


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click