Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Form Bean not able to read form rendered from xml/xsl

Rajeev Kumar Pandey

2006-12-22



Hi All,




I am new to this mailing list, so might not be able to pose my question
appropriately. Kindly bear with me.




I am facing an issue with use of form beans in my project to read html
forms rendered through xml/xsl.




When I use <xsl:element name="input">

     <xsl:attribute name="name">UserId</xsl:attribute>

     <xsl:attribute name="type">hidden</xsl:attribute>

     <xsl:attribute name="value"><xsl:value-of
select="//Node/UserId"/></xsl:attribute>

     </xsl:element>




the formbean is not able to pick the value from the form. But in the
other part of the code where I use





<xsl:when test="//TIMERADIO[.='monthdate']">

<input type="radio" value="monthdate" name="time" checked="true"/>

</xsl:when>

the getter and setter method is called for the above parameter. Is there
an equivalent for xsl:element so that my action class can read UserId
from the formbean?





Thanks and Regards

Rajeev Kumar Pandey









**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
©2008 junlu.com - Jax Systems, LLC, U.S.A.