`
javatar
  • 浏览: 1680342 次
  • 性别: Icon_minigender_1
  • 来自: 杭州699号
社区版块
存档分类
最新评论

CommonTemplate完成$snatch指令

    博客分类:
  • HTTL
阅读更多
CommonTemplate(http://www.commontemplate.org)

完成$snatch指令, 实现与JSP页面或其它页面的互操作.

假设当前访问路径为: http://localhost:8080/ct/sample/index.ctl

$snatch{"list.jsp"} 相对于当前页面路径目录,
抓取路径: http://localhost:8080/ct/sample/list.jsp

$snatch{"../list.jsp"} 相对于当前页面路径的上级目录
抓取路径: http://localhost:8080/ct/list.jsp

$snatch{"/list.jsp"} 相对于Web根目录<br/>
抓取路径: http://localhost:8080/ct/list.jsp

$snatch{"/list.jsp", 'UTF-8'} 指定编码<br/>
抓取路径: http://localhost:8080/ct/list.jsp

$snatch{"http://www.163.com"} 远程页面<br/>
抓取路径: http://www.163.com
分享到:
评论
1 楼 yananay 2008-05-08  
越来越强了 

相关推荐

Global site tag (gtag.js) - Google Analytics