Hello all, this list has been pretty quiet lately.

Anyway, I just wrote a quick'n'dirty XSP taglib (I love TaglibHelper!) to work with request parameters better than the existing <param:foo/> and <if-param:foo/> taglibs.

My problem was that I needed to see if a parameter existed, even if it was empty (e.g. foo.xsp?value=&value2=)...I couldn't find a way of doing that with the existing taglibs.

The new taglib allows you to:

<param:get name="foo"/>
<param:set name="foo" value="bar"/>
<param:remove name="foo"/>

<xsp:logic>
if (<param:exists name="foo"/>) {
<message>Foo exists</message>
}
</xsp:logic>

<param:enumerate/>
<!-- This last one returns a list of all parameter names available -->
<param-list>
<param id="1">foo</param>
<param id="2">bar</param>
</param-list>

My questions to everyone:

a) Are there any features / changes you would like to see in this?
b) What should I name it? It would be a bit presumptuous to usurp AxKit::XSP::Param; I had planned to call it AxKit::XSP::ParamExists, but it's scope is much larger than that now.
c) Should I release this as a separate package, or would you like to wrap this up in the stock AxKit distro?

Cheers!

--

-man
Michael A Nachbaur
The best way to predict the Future is to invent it.

PGP Public Key at http://www.nachbaur.com/pgpkey.asc
PGP Key fingerprint = 83DC 7C3A 3084 6A21 9A3F 801E D974 AFB4 BFD7 2B6F


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to