protected void configure () {
// In this pattern $ means a string, which when matched
// is bound to parameter `Username` and control forwarded to profile.jsp
// Parameter will be accessible via request.getParameter()
forward ( "/profile.jsp" , "/profile/$Username" );
// Here % means integer pattern and * means until end of the pattern.
// Binds integers to parameter ArticleId and forwards to article.jsp
forward ( "/article.jsp" , "/article/%ArticleId/*" );
// When matched will send a redirect back to browser and parameters
// are appended to query string so in this case the target will
// be `/servlets/profileservlet? Username=...`
redirect ( "/servlets/profileservlet" , "/member/$Username" );
// On match creates an instanc eof LoginPage and calls it's service method
// LoginPage class implements com.pagegoblin.jurlmap. Page.
// If it is annotated with a @Deploy(url) annotation
// the we don't need to pass a url to the deploy method.
// In this case parameters are bound to bean properties or fields
// of the newly created LoginPage instance.
deploy ( LoginPage . class );
}