cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Crafter <craft...@dresdnerbank.de>
Subject Re: Can't forward a request with a RequestDispatcher
Date Thu, 19 Oct 2000 16:51:09 GMT
Hi Bob,

	You're XML file looks kind'a strange :-)

	Is that *really* the input file you're using ? 

	Note, RequestDispatchers and C2 aren't working that well at the moment
	- see the cocoon-dev archives, but from the namespace I presume you're
	using Cocoon 1 which should work (we've had no problems with
	RequestDispatchers here).

	Cheers,

	M.

On Thu, 19 Oct 2000, Bob Fellenz wrote:

> xml file:
> <?xml version="1.0"?>
> <?cocoon-process type="xsp"?>
> 
> <xsp:page language="java"
>     xmlns:xsp=" http://www.apache.org/1999/XSP/Core <http://www.apache.org/1999/XSP/Core>
"
> >
>  
> <DOCUMENT>
>   <xsp:logic>
>   if (session.getAttribute("LOGIN") == null) {
>       RequestDispatcher dispatcher = request.getRequestDispatcher(" http://www.yaho <http://www.yaho>
o.com/");
>       if(dispatcher!=null){
>         dispatcher.forward(request, response);
>       }
>   }
>   </xsp:logic>
> </DOCUMENT>
> </xsp:page>
>  
> Exception stack trace:
>  
> java.lang.NullPointerException: 
> at _usr._local._apachemm._tomcat._webapps._cocoon._servlets._waldo._rx.populateDocument(_rx.java:81)
> at org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:96)
> at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:494)
> at org.apache.cocoon.Engine.handle(Engine.java:359)
> at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
> at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
> at java.lang.Thread.run(Thread.java:475)
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 
> 

-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   Open Software Associates GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'     Email : Marcus.Crafter@osa.de
          &&&&.        Business Hours : +49 69 9757 200
    &&&&&&&:           After Hours    : +49 69 49086750


Mime
View raw message