コード例 #1
0
 public String getLayoutUrl(long id, RequestCycle rc) {
   HttpServletRequest req = ((WebRequest) rc.getRequest()).getHttpServletRequest();
   return req.getContextPath() + "/" + BricketApplication.LAYOUT_IMAGE_PATH + "/" + id;
 }
コード例 #2
0
 public String getThumbnailUrl(long id, RequestCycle rc) {
   HttpServletRequest req = ((WebRequest) rc.getRequest()).getHttpServletRequest();
   return req.getContextPath() + "/" + BricketApplication.THUMBNAIL_IMAGE_PATH + "/" + id;
 }