You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Stephen Chang <sc...@yahoo.com> on 2001/01/05 19:25:52 UTC
how to pass request param into taglib parameter?
hello all,
thanks for all the help so far from everyone. it's
been very helpful!
anyways, i am making use of my own tag library in an
XSP page. This taglib call requires input parameters
in the form of XML elements like:
<mylib:mytag>
<param1><xsp:expr>value1</xsp:expr></param1>
<param2><xsp:expr>value2</xsp:expr></param2>
</mylib:mytag>
The way i am using it, my "value1" and "value2" are
varibles read in the beginning in an <xsp:logic/>
block like:
<xsp:logic>
String value1 = request.getParameter("v1");
String value2 = request.getParameter("v2");
</xsp:logic>
My taglib logicsheet never receives the values of
value1 and value2. Instead they have blank values so
nothing is passed to my taglib logic. I looked at the
generated file and saw that empty parameters were
being passed into my taglib logic. What's going on?
Does this have anything to do with the order of XSP
processing on the page, as I have an <xsp:expr> inside
a user-defined taglib which also is expanded by the
XSP processor?
HALP!
Thanks in advance!
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/