Guys I am having problems with the URLRewrite: As a test I am trying to write in the browser url : thePath/test for every url, so I did this:
public static void contributeURLRewriter(OrderedConfiguration<URLRewriterRule> configuration) { URLRewriterRule rule = new URLRewriterRule() { @Override public Request process(Request request, URLRewriteContext context) { return new SimpleRequestWrapper(request, request.getPath()+"/test"); } @Override public RewriteRuleApplicability applicability() { return RewriteRuleApplicability.BOTH; } }; configuration.add("rule1",rule); } just as a test and now is showing me the directories of my webapp in the browser... anyone can help me? Thanks in advance. On Fri, Mar 30, 2012 at 3:34 PM, Juan Alba <juan.a...@condortech.com.ar>wrote: > Ok, I think that I have no solution for my problem. > > I do the authentication in the webapp with Spring so in my AppModule I > have: > configuration.add("spring-security.target.url", "/start"); > > This means that when authentication process finishes it will redirect > there (without using the urlRewriter)... I will be loosing everything that > I have added with the URLRewriterRule. > > Is there any other solution? Or I am missing something? > > Thanks in advance. > > > > > On Fri, Mar 30, 2012 at 1:38 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> On Fri, 30 Mar 2012 10:05:07 -0300, Juan Alba < >> juan.a...@condortech.com.ar> wrote: >> >> Thiago, where can I find some documentation on the URLRewriter (some >>> examples or how tos)? >>> >> >> http://tapestry.apache.org/**url-rewriting.html<http://tapestry.apache.org/url-rewriting.html> >> >> >> -- >> 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 >> > >