On Fri, 25 Feb 2011 17:21:04 -0300, Namron <normanm...@btinternet.com>
wrote:
Hi,
Hi!
I am very new to tapestry and I appreciate this is probably a very simple
question as I can't find any examples, similar questions anywhere.
Welcome to the mailing list! :)
I want to deploy it on OC4J but before I tried that, I tried changing the
url filter in web.xml to /appname assuming that it would jetty would
treat that as a context root, but it doesn't. It seems just to redirect
everything to index and links of that don't seem to get resolved
correctly.
This isn't correct. Tapestry is a servlet filter, not a servlet, so it
needs to be configured to handle all requests, even if not actually
handling all requests. This allows Tapestry to be used at the same time as
Struts, for example. You can instruct Tapestry to not handle some URLs.
Check http://tapestry.apache.org/configuration.html, section Configuring
Ignored Paths, to know how.
If you want your whole application to run under /appname, you need to
change the Jetty configuration or the way you deploy your application.
Can someone point me in the direction of an example/tutorial somwhere
which shows a context root using tapestry 5?
Context roots are are handled by configuration in the servlet container,
not by the application itself nor Tapestry.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org