hello everybody,
i've tried the example for the SessionFormAction described in the Javadoc-Part of it. But running in trouble, because the FormValidatorAction throws a NullPointerExc. Anyone knows why. The only thing that i've made is the transforming xslt to change the <inputxml foo="bar"> into <input foo="bar"> for showing as xhtml. So I think thats the weak point.
parts of my xslt:
<xsl:template match="form">
<form>
<xsl:attribute name="name">
<xsl:value-of select="@name"/>
</xsl:attribute>
<xsl:attribute name="action">
<xsl:value-of select="@action"/>
</xsl:attribute>
<xsl:attribute name="method">
<xsl:value-of select="@method"/>
</xsl:attribute> <xsl:apply-templates/>
<input type="submit" name="submit" value="submit"/>
</form>
</xsl:template><xsl:template match="inputxml">
Forename:
<input>
<xsl:attribute name="name">
<xsl:value-of select="@name"/>
</xsl:attribute>
<xsl:attribute name="type">
<xsl:value-of select="@type"/>
</xsl:attribute>
</input>
</xsl:template>
And here is the code from the Javadoc:
xml:
<session:form name="info_form">
<session:action>next_page</session:action>
<session:content>
<session:inputxml name="name" type="text" context="trackdemo" path="/user/name"/>
</session:content>
<session:validate>
<root>
<parameter name="name" type="string" nullable="no"/>
<constraint-set name="form_a_set">
<validate name="name"/>
</constraint-set>
</root>
</session:validate>
</session:form>
sitemap:
<map:match pattern="next_page">
<map:act type="session-form">
<map:generate src="next_page.xml"/>
<map:transform type="session"/>
<map:transform src="simple2html.xsl"/>
<map:serialize/>
</map:act>
<map:generate src="first_page.xml"/>
<map:transform type="session"/>
<map:transform src="simple2html.xsl"/>
<map:serialize/>
</map:match>thanks in advance Robert J�ger
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
