AxKit::XSP::AttrParam - XSP taglib for HTTP request parameters


AxKit-XSP-AttrParam documentation  | view source Contained in the AxKit-XSP-AttrParam distribution.

Index


NAME

Top

AxKit::XSP::AttrParam - XSP taglib for HTTP request parameters

SYNOPSIS

Top

Add the aprm: namespace to your XSP <xsp:page> tag:

  <xsp:page
    language='Perl'
    xmlns:xsp='http://apache.org/xsp/core/v1'
    xmlns:aprm='http://xmlns.knowscape.com/xsp/AttrParam'>

And add the taglib to AxKit (via httpd.conf or .htaccess):

  AxAddXSPTaglib AxKit::XSP::AttrParam

DESCRIPTION

Top

The XSP aprm: tag library implements a simple way to access HTTP request parameters (query string and posted form data) by field name. it is shamelessly stolen from Kip Hampton's AxKit::XSP::Param but allows one to use parameter names that may not be valid XML names, as well as parametre names derived from expressions.

Thus, the value submitted from this text box

  <input type='text' size='20' name='foo' />

is available after submitting the form either as

  <aprm:param name='foo' />

or as

  <aprm:param>
    <aprm:name>foo</aprm:name>
  </aprm:param>

or yet again (and more usefully)

  <aprm:param>
    <aprm:name><xsp:expr>$perl_that_returns_foo</xsp:expr></aprm:name>
  </aprm:param>

Tag Reference

There are no named functions for this tag library.

ACKNOWLEDGEMENTS

Top

Special thanks to Matt and Kip from the entire Knowscape dev team.

AUTHOR

Top

Robin Berjon,

COPYRIGHT

Top


AxKit-XSP-AttrParam documentation  | view source Contained in the AxKit-XSP-AttrParam distribution.