摘要:3 Web 和 Servlet 3.1 快速开始 我们从一个例子开始Guice Web的开发。 首先准备我们的环境,由于是web开发,因此我们需要guice-servlet的jar包。log4j不是必须的,只是为了方便日志记录而已(Guice内部是使用jdk内部的logging包来完成日志记录的)。 必可避免的要在web.xml中都一些手脚,这里先配置一个filter吧。 <filter><f...
阅读全文
摘要:Partly learning from past experiences, but mainly because of future requirements regarding mobile development, I am looking to create a Tapestry5 project setup that uses jQuery instead of Prototype and can output HTML5.Make Tapestry5 accept HTML5 DoctypeTapestry5 uses a Parser to validate the correc
阅读全文
摘要:今天写了第一个JQuery程序,发现就跑步起来,很奇怪,查看后也正确的引入了JQuery包,不知道是为什么,最后终于发现问题,奇怪的很。错误的代码: 1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 2: "http://www.w3.org/TR/html4/loose.dtd"> 3: <html> 4: <head> 5: <title>My First JQuery example</title> 6: &
阅读全文