`
lance4t
  • 浏览: 12317 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
play框架配合Japid Template Engine模块,秒杀一切啊。。。 颠覆原来的groovy模板,事实证明groovy好慢,比scala慢。 http://www.jtict.com/blog/rails-wicket-grails-play-lift-jsp/ :x
在java中,经常使用的基本类型都是非可改变的,包括String这个特殊的对象类型。那么这种非可改变特性会有什么好处类?首先就是线程安全。String可以任意被多个线程共享而不用考虑同步问题。然后就是可以放心的存储一个String,因为它在作为参数传递时也不会被其他方法修改掉,比如toLowerCase()。 非可改变型数据类型的好处就是减少出错的可能性,减少测试代码量,还有在大多数情况下能获得更好的性能。 在scala中,所有的scala原生集合分为两类,分别放在两个不同的包下面,当创建一个集合的时候,如果不引入任何包,那么所得到的集合就是immutable的。要使用mutable的集合,就 ...
David Pollak谈lift框架和Scala语言 作者 Gavin Terrill 译者 曹云飞 发布于 2008年3月12日 下午9时15分 昨天David Pollak宣布lift的0.6版发布了:   引用  lift是一个用于开发Web应用的表达力强大而优美的框架。lift强调安全性、可维护性、可 ...
国际惯例了,什么框架啊技术啊入门教程都是helloworld,万年不朽啊。。。 废话少说,系统装好maven2,连上互联网,命令行进入到想要创建项目代码的目录 使用maven2的archetype插件命令: 引用mvn archetype:generate -DarchetypeCatalog="http://scala-tools.org/" 出现选项 引用Choose archetype: 1: http://scala-tools.org/ -> scala-archetype-simple (A simple scala project) 2: http://s ...
liftweb作者David关于SiteMap,URL Rewriting, URL Dispatching的讲解 Folks, lift services HTTP requests in a "render pipeline". lift is implemented as a Filter (thanks to the excellent suggestion from Viktor). When a request comes in, any functions defined in LiftRules.early (see LiftRules.appendE ...
Ask: Hi, I want to add/remove Menu at runtime, for dynamically managing menu list. so I need to persist the menu list(SiteMap?) to the database, and retrieve it from the database when users access the home page. the menu items link to the same page, pass some different params so let that page show d ...
lift使用jetty做容器,表单提交遇到问题,内容为UTF-8编码,但是无法正确解析,显示乱码。 解决方法: 在bootstrap.liftweb.Boot中加入几行代码 /** * Force the request to be UTF-8 */ private def makeUtf8(req: HttpServletRequest) { req.setCharacterEncoding("UTF-8") } LiftRules.early.append(makeUtf8) 上面代码可简化为 LiftRules.early.appe ...
Global site tag (gtag.js) - Google Analytics