Shorter URL in Groovlet
Consider the following Groovlet:
html.html
{
head {
title("Groovy Test")
}
body {
center {
img(src:"ge开发者_StackOverflow社区tPlot.groovy?name=name&value=value")
}
}
}
Is there a better way to generate the URL? I'm looking to eliminate the explicit var/vals from the URL.
You could use UrlRewriteFilter for this. It's like mod_rewrite but implemented as a servlet filter.
精彩评论