Re: Some study of implantation
Hi, Perhaps you could be more specific about the specific statistics in which you're interested?
FYI: JBuilder 7 + Generators == NullPointerException
Hello All: Just an FYI about a potential pitfall for those using JBuilder7 to create Cocoon Generators... (C2.0.3). When extending org.apache.cocoon.generation.AbstractGenerator using the New Class function in JB7, JB7 will automatically import org.apache.cocoon.xml.*; into the class. This leads to a NullPointerException in YourGeneratorClass.generate() method at the contentHandler.startDocument(); method at runtime. (at least it does on my machine... just qualifying my statements to CMA where needed...) Hope this helps all you JBuilder users out there. Cheers :-)
recommended C2 hosting
hi, anyone like to recommend web hosting provider that supports C2? my current hosting "solution" is really a problem...
Re: Link creation problem
try using xsp:attribute xsp:logic String my_link=//do your logic to generate the link here xsp:logic a xsp:attribute name="href"xsp:exprmy_link/xsp:expr/xsp:attribute xsp:exprmy_link/xsp:expr /a hope this helps
Re: HTMLGenerator customizing
Just a thought -- someone correct me if my reach is exceeding my grasp here -- would subclassing the HTMLGenerator to a derived 'HTMLGoLiveGenerator' compiled with the custom external config file make sense???
send redirect response from an XSP?
- 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]
How to send redirect from an XSP?
hello all, i'm trying to check to see if a user is in a session, and if not, redirect them to a login page... my (rather sloppy) code so far goes like so... ?xml version="1.0" encoding="ISO-8859-1"? xsp:page language="java" xmlns:session="http://apache.org/xsp/session/2.0" xmlns:xsp="http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0" create-session="false" xsp:logic protected void checkUser() { if(!getSession()) { //SEND REDIRECT... } } protected boolean getSession() { Session session=request.getSession(false); if(session == null) return false; else return true; } /xsp:logic so, anyone care to share with me the secret of sending a redirect? I've checked out the response stylesheet and that was of no help, and the action stylesheet is apparently "not for use in Generators"... any and all help (exlcuding RTFM) welcome
Re: How to send redirect from an XSP?
You shouldn't do it. Use an action for this. There are already a number of actions that perform this job. Use one of them, modify one of them, write a new one, or write an XSP action that does it. I tried using actions in the sitemap, (a la cut and paste and tweak from the sitemap provided in the "protected" sample directory that comes with C2) but just could not get them to work -- the documenation is rather sparse. Can anyone provide any working examples? thanks mtiffany
session-validator action to work outside of the sample....
- 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]
Re: [repost] MySQL no suitable driver
I had the exact same problem... which was solved by uploading an *uncompressed* mysql driver .jar to WEB-INf/lib (yes yes, it seems like a a lot of voodoo nonsense...) good luck
[c2] Tomcat 4.0.1 error on jsp now
Hello all, I'm running Tomcat 4.0.1 on a win98 box. Everything worked properly until I built and installed the c2rc2 .war file -- now, no jsps -- just get a 500 internal server error. I was wondering if anyone else has had a similiar experience and how to correct the problem. exception traces below for those interested. deleting the cocoon.war file and the cocoon folder/context from the webapps directory does not restore function for jsps, just changes the stack trace. many thanks michael without cocoon (tomcat's built-in jsp examples) exception javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoSuchMethodError at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202) at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139) at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at