子墨苑

每天学习一点点。

导航

09 2011 档案

Google Guice入门教程06-Web & Servlet
摘要:3 Web 和 Servlet 3.1 快速开始 我们从一个例子开始Guice Web的开发。 首先准备我们的环境,由于是web开发,因此我们需要guice-servlet的jar包。log4j不是必须的,只是为了方便日志记录而已(Guice内部是使用jdk内部的logging包来完成日志记录的)。 必可避免的要在web.xml中都一些手脚,这里先配置一个filter吧。 <filter><f... 阅读全文

posted @ 2011-09-18 22:43 子墨苑 阅读(1144) 评论(0) 推荐(0)

Tapestry5 Setup with HTML5 and jQuery
摘要: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 阅读全文

posted @ 2011-09-08 22:30 子墨苑 阅读(573) 评论(0) 推荐(0)

JQuery Alert
摘要:今天写了第一个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: & 阅读全文

posted @ 2011-09-08 22:24 子墨苑 阅读(388) 评论(0) 推荐(0)