cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Error compiling form_xsp.java file
Date Wed, 19 Jun 2002 17:25:28 GMT
> From: Matthew Hailstone [mailto:matthew.hailstone@waterford.org]
> 
> Thank you for the response.
> 
> I'm using Cocoon 2.1-dev with Tomcat 4.1.3
> 
> > Does session.xsp test work for you?
> 
> I can't seem to find the session sample on Cocoon 2.1-dev.
> The following directories are not found from the webapp expanded from
my
> compiled cocoon.war file:
> 
> samples/sample-static
> samples/sample-xsp
> samples/sample-dynamic
> samples/sub
> samples/sample-apps

There are no such directories. XSP samples are in
webapp/docs/samples/xsp. URL is http://localhost:8080/cocoon/xsp/* (see
sitemap).


> > Also, looks to me that XSP snippet does not match code. Is it
> > wrong snippet?
> >
> > Vadim
> >
> 
> oops. Yeah, looks like it was the wrong section.
> 
> > >
> > > From the form.xsp file:
> > >
> > >
>  ...
>    <form>
>      <xsp:logic>
>        String m_strFormAction = "home/form";
> ...
>         if( <xsp-request:get-parameter name="test-name"/> == "-1" ){
>           <xsp-session:set-attribute name="test-name">
>             <xsp-request:get-parameter name="test-name"/>
>           </xsp-session:set-attribute>

Now that's *easy*.

Are you really sure that you want your parameter in session be "\r\n
" + request.getParameter("test-name") + "\r\n           " ???

If not, then please use:

<xsp-session:set-attribute name="test-name"><xsp-request:get-parameter
name="test-name"/></xsp-session:set-attribute>


Vadim



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