Okay, bad form replying to myself and all that, but I think I figured
out the problem.
I had :
<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<xsp:page language="java"
xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-request="http://apache.org/xsp/request/2.0">
<xsp:logic>
String s_name =
<xsp-request:get-parameter name="store-name/>;
</xsp:logic>
...
</xsp:page>
The problem is, of course, that the generated code will access
(eventually) the request object, but do it in the class context, not in
the context of a method. So the request object is null, and everything
falls apart.
The pattern I'm using now is :
<xsp:page ...>
<xsp:logic>
String s_name;
public void init() {
s_name = <xsp-request.../>
}
</xsp:logic>
<xsp:logic>
init();
</xsp:logic>
<store>
<name><xsp:expr>getStoreName()</xsp:expr></name>
</store>
</xsp:page>
which works.
Is there a guru on the list that can comment on this pattern?
Is there a better one?
-Seth
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>