开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜