Reply To: daily dynamic url

Splash Forums Rewrite Users daily dynamic url Reply To: daily dynamic url

#26886

arcturus
Participant

Hey, I’m trying to do something similar to this part of code :

.addRule(Join.path("/private/{page}").to("/views/{page}.xhtml"))
.where("page").convertedBy(new Converter<String>() {
        @Override
	public String convert(Rewrite event,
	EvaluationContext context, Object value) {
          // transform somethingcrypted to login
	  return "login";
}
})

so basically, if i call this url http://localhost/project/private/somethingcrypted. prettyfaces will get somethingcrypted param and transform it to the real name of page (for example login). finally, rewrite can find corresponding page login.xhtml

i hope if this clear up my issue, please help…thnx in advance

  • This reply was modified 6 years, 11 months ago by  arcturus.