AxKit::XSP::AttrParam - XSP taglib for HTTP request parameters
Add the aprm: namespace to your XSP <xsp:page> tag:
<xsp:page
<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
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>
There are no named functions for this tag library.
Special thanks to Matt and Kip from the entire Knowscape dev team.
Robin Berjon,
Copyright (c) 2001 Robin Berjon. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install AxKit::XSP::AttrParam, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AxKit::XSP::AttrParam
CPAN shell
perl -MCPAN -e shell install AxKit::XSP::AttrParam
For more information on module installation, please visit the detailed CPAN module installation guide.