-------------------------------------------------
SiteMap
-------------------------------------------------
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
<map:generators default="file">
<map:generator name="request"
src="org.apache.cocoon.generation.RequestGenerator"/>
<map:generator logger="sitemap.generator.jsp" name="jsp"
src="org.apache.cocoon.generation.JSPGenerator"/>
</map:generators>
</map:components>
<map:flow language="javascript">
<map:script src="jsp.js"/>
</map:flow>
<map:pipelines>
<map:pipeline>
<map:match pattern="jspflow">
<map:call function="view">
</map:call>
</map:match>
<map:match pattern="*.jsp">
<map:generate type="jsp" src="{1}.jsp"/>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
-------------------------------------------------
JSP
-------------------------------------------------
<%@ page language='java' session='false' %>
<jsproot>
hello
</jsproot>
-------------------------------------------------
Flow
-------------------------------------------------
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js");
function view()
{
cocoon.sendPage("hello.jsp");
}
-------------------------------------------------
URL That Works
-------------------------------------------------
http://localhost:8080/Cocoon/jsptest/hello.jsp
-------------------------------------------------
URL That Doesn't Work
-------------------------------------------------
http://localhost:8080/Cocoon/jsptest/jspflow
--- Joerg Heinicke <[EMAIL PROTECTED]> wrote:
> On 02.07.2004 07:01, Terry Brick wrote:
>
> > Cocoon 2.1.5
> > Tomcat 5.0
> >
> > Weird problem. I have a small test JSP that I'm accessing using JspGenerator. It
> > works fine
> if I
> > hit it straight from the browser (with a URL that matches pipeline in my sitemap)
> > but it fails
> if
> > I call the exact same thing from my flow script using sendPage("hello.jsp").
> >
> > <map:match pattern="*.jsp">
> > <map:generate type="jsp" src="{1}.jsp"/>
> > <map:serialize type="html"/>
> > </map:match>
> >
> > Any ideas?
>
> Any details? The JSP, flow, sitemap? ClassCastException should be easily
> found, but a test case would help massively.
>
> > Here's the Exception Stack Trace
>
> Unfortunately it tells nothing as the ClassCastException occurs in Jasper.
>
> Joerg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]