hey guys, once again, nasty bugs in the xsp logicsheet application process
have come up to bite me. i've got a logicsheet of my own that calls the
xsp-request logicsheet:
<xsl:template match="wzi:page">
<w:page>
<xsp:logic>
int work_max_rows = 10;
int work_skip_rows = 0;
try {
work_max_rows = Integer.parseInt(<xsp-request:get-parameter
name="work-max-rows"/>);
} catch (Exception e) {}
try {
work_skip_rows = Integer.parseInt(<xsp-request:get-parameter
name="work-skip-rows"/>);
} catch (Exception e) {}
</xsp:logic>
<xsl:apply-templates/>
</w:page>
</xsl:template>
it gets turned into this malformed java code:
int work_max_rows = 10;
int work_skip_rows = 0;
try {
work_max_rows = Integer.parseInt(
xspAttr.addAttribute("", "name", "name", "CDATA", "work-max-rows");
this.contentHandler.startElement(
"http://apache.org/xsp/request","get-parameter",
"xsp-request:get-parameter",
xspAttr);
xspAttr.clear();
this.contentHandler.endElement(
"http://apache.org/xsp/request",
"get-parameter",
"xsp-request:get-parameter");
);
} catch (Exception e) {}
...
as you can see, the xsp-request logicsheet isn't being applied... but in
my cocoon.log file, i see the following:
DEBUG 25662 [cocoon ] (HttpProcessor[8080][4]): Making URL from
file:/usr/local/jakarta-tomcat-4.0-b5/webapps/intranet/content/clients.xml
DEBUG 25664 [cocoon ] (HttpProcessor[8080][4]): Making URL from
jndi:/localhost/intranet/WEB-INF/xsp/shared.xsp
DEBUG 25665 [cocoon ] (HttpProcessor[8080][4]): Logicsheet
Used:jndi:/localhost/intranet/WEB-INF/xsp/shared.xsp
DEBUG 25665 [cocoon ] (HttpProcessor[8080][4]): Adding embedded logic
sheet for
xsp-request:jar:jndi:/localhost/intranet/WEB-INF/lib/cocoon.jar!/org/apache/cocoon/components/language/markup/xsp/java/request.xsl
DEBUG 25665 [cocoon ] (HttpProcessor[8080][4]): Making URL from
jar:jndi:/localhost/intranet/WEB-INF/lib/cocoon.jar!/org/apache/cocoon/components/language/markup/xsp/java/request.xsl
DEBUG 25665 [cocoon ] (HttpProcessor[8080][4]): Logicsheet
Used:jar:jndi:/localhost/intranet/WEB-INF/lib/cocoon.jar!/org/apache/cocoon/components/language/markup/xsp/java/request.xsl
(shared.xsp is my logicsheet, operating on the wzi namespace prefix)
any idea what's up with this?
- donald
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]