| AxKit-XSP-AttrParam documentation | view source | Contained in the AxKit-XSP-AttrParam distribution. |
AxKit::XSP::AttrParam - XSP taglib for HTTP request parameters
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
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.
| AxKit-XSP-AttrParam documentation | view source | Contained in the AxKit-XSP-AttrParam distribution. |