cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Larson" <Tdlar...@ci.canton.oh.us>
Subject Re: How to use Request-parameter Selector with the submit button
Date Thu, 12 Sep 2002 12:52:42 GMT
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message