You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christophe ARYS <ca...@audaxis.com> on 2005/02/22 18:12:47 UTC

Need some help with Tapestry JSP tags and Tomcat 4.1

Hi all,

I'm trying to use the jsp tags existing in Tapestry  to create a link
from a JSP included in a Struts application to a Tapestry page. 
I use Tapestry 3.0 and Tomcat 4.1.31.
I have two problems.
     I can't use the tags with the 'standard' servlet.jar that comes
with Tomcat because of the javax.servlet.jsp.JSPContext missing into
this archive.
    I really need the backward compatibility with the servlet
specification (and be able to use the servlet.jar).
    What can I do to be able to use the tags with Tomcat 4.1 ? (Except
of replacing  servlet.jar with some new version...).

To be able to go further with my testing, I replace my servlet.jar by
servlet-api.jar and jsp-api.jar (corresponding to the new Servlet Spec)
and I encounter a second problem:
The root  context of my application is /application.  The Tapestry
servlet is mapped to a /tapestry path. 
Consequently, the full path to access the Tapestry Servlet is
http://localhost:8080/application/tapestry?service=....
However, when I use the tag in the jsp I obtain as url :
"applicationtapestry?service=....".  So a slash "/" is missing between
application and tapestry ?!
Here is the tag I use:
<tapestry:external page="ExternalContactSearch" servlet="/tapestry"/>

Am I doing something wrong ?

Thanks for any support,

Christophe ARYS.




       


Re: Need some help with Tapestry JSP tags and Tomcat 4.1

Posted by Christophe ARYS <ca...@audaxis.com>.
Forget about the second problem... I was wrong.  I forget that the
_servletPath was cached into the Engine and I previously set it up to
"tapestry" without "/".
However I'm still looking for a solution for problem 1...

Christophe.



On Tue, 2005-02-22 at 18:12 +0100, Christophe ARYS wrote:

> Hi all,
> 
> I'm trying to use the jsp tags existing in Tapestry  to create a link
> from a JSP included in a Struts application to a Tapestry page. 
> I use Tapestry 3.0 and Tomcat 4.1.31.
> I have two problems.
>      I can't use the tags with the 'standard' servlet.jar that comes
> with Tomcat because of the javax.servlet.jsp.JSPContext missing into
> this archive.
>     I really need the backward compatibility with the servlet
> specification (and be able to use the servlet.jar).
>     What can I do to be able to use the tags with Tomcat 4.1 ? (Except
> of replacing  servlet.jar with some new version...).
> 
> To be able to go further with my testing, I replace my servlet.jar by
> servlet-api.jar and jsp-api.jar (corresponding to the new Servlet Spec)
> and I encounter a second problem:
> The root  context of my application is /application.  The Tapestry
> servlet is mapped to a /tapestry path. 
> Consequently, the full path to access the Tapestry Servlet is
> http://localhost:8080/application/tapestry?service=....
> However, when I use the tag in the jsp I obtain as url :
> "applicationtapestry?service=....".  So a slash "/" is missing between
> application and tapestry ?!
> Here is the tag I use:
> <tapestry:external page="ExternalContactSearch" servlet="/tapestry"/>
> 
> Am I doing something wrong ?
> 
> Thanks for any support,
> 
> Christophe ARYS.
> 
> 
> 
> 
>        
> 

Christophe ARYS
Consultant
-------------------------------------------------------------------
    / \  _   _  __| | __ ___  _(_)___
   / _ \| | | |/ _` |/ _` \ \/ / / __|    Tel: +32 (0)2 361.83.01
  / ___ \ |_| | (_| | (_| |>  <| \__ \    Fax: +32 (0)2 361.83.11
/_/   \_\__,_|\__,_|\__,_/_/\_\_|___/    Mob: +32 (0)473 935 274
                                          http://www.audaxis.com
====================================================================