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, ¿?

your opinion about, please?

 thanks a lot, Knstntn! ;-)


----- Original Message -----
From: "Piroumian Konstantin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 27, 2002 12:52 PM
Subject: RE: jsp-engine


> > From: Raul Wild-Spain [mailto:[EMAIL PROTECTED]]
> >
> > 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" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, August 27, 2002 12:24 PM
> > Subject: RE: jsp-engine
> >
> >
> > > > From: Raul Wild-Spain [mailto:[EMAIL PROTECTED]]
> > > >
> > > > 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
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > ---------------------------------------------------------------------
> > > > 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]>
> > > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > 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]>
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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]>
> >
>
> ---------------------------------------------------------------------
> 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]>
>


---------------------------------------------------------------------
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]>

Reply via email to