cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <KPiroum...@protek.com>
Subject RE: jsp-engine
Date Tue, 27 Aug 2002 12:25:48 GMT
> From: Raul Wild-Spain [mailto:rcruz@wild-spain.com] 
> 
> Hi, Konstantin!
> 
> I've been reading the api-java for Resin. I've seen 
> com.caucho.jsp classes.
> It's no clear (for me) but it seems that 
> com.caucho.jsp.JspServlet possibly
> can work as jsp-engine.
> 
> I've changed servlet-class from jsp-engine to 
> com.caucho.jsp.JspServlet.
> I've copied an simple example into my 
> /var/local/www/webapps/cocoon like
> that
> 
> hello.jsp-
> <%page session=false%>
> <% String greeting = new String ("Hola yo!!!") /*I'm spanish ;-)*/ %>
> <title><%=greeting%></title>
> <h1><%=greeting%></h1>
> 
> and typed http://myserver.com/cocoon/hello.jsp in my browser
> 
> I don't know if my method is ok (I've started now to 
> programming in Java
> because an specific project of my company and I'm a little 
> lost) ... even so
> the example works right, ¿?

I don't quite understand these characters: ¿?. If you are saying that 'the
example works correctly' then it's fine and your method is exactly what it
should be. 

> 
> your opinion about, please?

Everything seems Ok to me.

> 
>  thanks a lot, Knstntn! ;-)

No problems

> 
> 
> ----- Original Message -----
> From: "Piroumian Konstantin" <KPiroumian@protek.com>
> To: <cocoon-users@xml.apache.org>
> Sent: Tuesday, August 27, 2002 12:52 PM
> Subject: RE: jsp-engine
> 
> 
> > > From: Raul Wild-Spain [mailto:rcruz@wild-spain.com]
> > >
> > > thanks, Konstantin. I've proved change the Classpath like
> > > you've indicated
> > > me but it still not works (Resin+Cocoon). I already had seen
> > > the text that
> > > you indicate me, but it's too "bare" for me. :-(
> > >
> > > I continue looking for ...
> >
> > There was a patch in Bugzilla a while ago about the 
> JSP+Resin+Cocoon,
> > something about an attribute in request that should contain 
> the requested
> > path to JSP. Maybe it'll solve your problem.
> >
> > What is the exact problem now? Did JSPEngine found the 
> needed servlet
> class?
> >
> > Konstantin
> >
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Piroumian Konstantin" <KPiroumian@protek.com>
> > > To: <cocoon-users@xml.apache.org>
> > > Sent: Tuesday, August 27, 2002 12:24 PM
> > > Subject: RE: jsp-engine
> > >
> > >
> > > > > From: Raul Wild-Spain [mailto:rcruz@wild-spain.com]
> > > > >
> > > > > Hi!,
> > > > >
> > > > > I'm looking for documentation about the jsp-engine tag at
> > > > > cocoon.xconf.  The
> > > > > documentation/cocoon.xconf specifies nothing about this tag.
> > > > >
> > > > > Someone know where I can get it?
> > > >
> > > > There is a comment in cocoon.xconf:
> > > >   <!-- JSP Engine:
> > > >     The JspGenerator selects a JSPEngine component. The 
> JSPEngine
> > > component
> > > >     launches a JSP servlet engine of your servlet
> > > container, feeds the
> > > >     HttpRequest into the JSP servlet engine, and pipes the
> > > jsp response as
> > > >     SAX events into Cocoon2. The JSP page is specified by
> > > the HttpRequest.
> > > >     This way you can continue to use your JSP pages. Your
> > > migration from
> > > JSP
> > > >     to XSP may be done step by step. You may specify your
> > > JSP pages either
> > > > as
> > > >     JSP scriptlets or as JSP-XML. But keep in mind that
> > > your JSP output
> > > > should
> > > >     be valid XML.
> > > >   -->
> > > >   <jsp-engine logger="core.jsp-engine">
> > > >     <parameter name="servlet-class"
> > > > value="org.apache.jasper.servlet.JspServlet"/>
> > > >     <parameter name="servlet-name" value="*.jsp"/>
> > > >   </jsp-engine>
> > > >
> > > > More than this can be found only in the source code. See
> > > > org.apache.cocoon.components.jsp.JSPEngineImpl for details.
> > > >
> > > > --
> > > > Konstantin
> > > >
> > > > >
> > > > > regards,
> > > > >
> > > > > Raúl
> > > > > rcruz@wild-spain.com
> > > > >
> > > > >
> > > > >
> > > 
> ---------------------------------------------------------------------
> > > > > 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:     <cocoon-users-unsubscribe@xml.apache.org>
> > > > > For additional commands, e-mail:
> > > <cocoon-users-help@xml.apache.org>
> > > > >
> > > >
> > > >
> > > 
> ---------------------------------------------------------------------
> > > > 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:     <cocoon-users-unsubscribe@xml.apache.org>
> > > > For additional commands, e-mail:
> > > <cocoon-users-help@xml.apache.org>
> > > >
> > >
> > >
> > > 
> ---------------------------------------------------------------------
> > > 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:     <cocoon-users-unsubscribe@xml.apache.org>
> > > For additional commands, e-mail:   
> <cocoon-users-help@xml.apache.org>
> > >
> >
> > 
> ---------------------------------------------------------------------
> > 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:     <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:   
> <cocoon-users-help@xml.apache.org>
> >
> 
> 
> ---------------------------------------------------------------------
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message