Re: Redirect to an internal url

2012-10-17 Thread Rural Hunter
Hi Lance, Thank you very much! 于 2012/10/17 23:48, Lance Java 写道: Creating a URL is probably the easiest thing to do. Note that you can @Inject BaseURLSource to get the URL prefix. Another option is to create a new response type (eg InternalRedirect). You would then contribute a ComponentEvent

Re: Redirect to an internal url

2012-10-17 Thread Lance Java
Creating a URL is probably the easiest thing to do. Note that you can @Inject BaseURLSource to get the URL prefix. Another option is to create a new response type (eg InternalRedirect). You would then contribute a ComponentEventResultProcessor to handle the new return type (by doing the actual red

Re: Redirect to an internal url

2012-10-17 Thread Rural Hunter
Yes, I have already set the ignored paths to ignore all jsps. The question is the default page of myapp when accessed only by "http://myhost/myapp";. Tapestry will show the Tapestry page Index but I want the original page login.jsp being shown. 于 2012/10/17 22:54, Lance Java 写道: Tapestry by d

Re: Redirect to an internal url

2012-10-17 Thread Rural Hunter
Yes, I have already set the ignored paths to ignore all jsps. The question is the default page of myapp when accessed only by "http://myhost/myapp";. Tapestry will show the Tapestry page Index but I want the original page login.jsp is shown. 于 2012/10/17 22:54, Lance Java 写道: Tapestry by defa

Re: Redirect to an internal url

2012-10-17 Thread Lance Java
Tapestry by default wants to handle everything. If you want to let the servlet container handle some url's you will need to contribute to the IgnoredPathsFilter. It's probably best to put all of these sorts of files in a virtual folder and ignore the folder rather than individual fiiles. http://ta