开发者

Shorter URL in Groovlet

开发者 https://www.devze.com 2022-12-30 15:46 出处:网络
Consider the following Groovlet: html.html { head { title(\"Groovy Test\") } body { center { img(src:\"ge开发者_StackOverflow社区tPlot.groovy?name=name&value=value\")

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

精彩评论

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