You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Timothy Larson <Td...@ci.canton.oh.us> on 2002/09/12 14:52:42 UTC
Re: How to use Request-parameter Selector with the submit
button
The submit button comes across just like text fields.
Here is a sample login page and post page:
<?xml version="1.0"?>
<!-- filename: login.xsp -->
<xsp:page xmlns:xsp="http://apache.org/xsp">
<html>
<form method="post" action="login.post">
Sometext:<br/><input type="text" name="sometext"/><br/>
<input type="submit" name="mysubmitbtn" value="button1"/>
<input type="submit" name="mysubmitbtn" value="button2"/>
</form>
</html>
</xsp:page>
<?xml version="1.0"?>
<!-- filename: login.post -->
<xsp:page
xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-request="http://apache.org/xsp/request/2.0">
<html>
Sometext = <xsp-request:get-parameter name="sometext"/><br/>
Submit = <xsp-request:get-parameter name="mysubmitbtn"/><br/>
</html>
</xsp:page>
Tim Larson
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>