Topic: A tutorial for Spring Web

  Print this page

1.A tutorial for Spring Web Copy to clipboard
Posted by: floater
Posted on: 2004-07-03 04:04

Originally, I uploaded to the ftp, since I don't have access to it at work, so I just append it to here before I go into a long weekend.

This document is intended for mid-level above J2EE developers to jump start Spring MVC web component. You should be able to run web apps by yourself.

1. written in english, since I am good at typing in chinese.
2. each example shows some point, but is small and independent, just concentrate on that point.
3. views(velocity, tapestry, etc) and css are excluded.
4. all src code are included completely, since I am afraid new comers would get lost. They are all tested and run as expected.

Let me know how you think.

This should cover most of the web stuff, next time we'll shoot for database part.

Spring Web Framework 0.4.PDF (597.78k)

2.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: helloworld
Posted on: 2004-07-03 04:09

Big Smile

3.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: haibo
Posted on: 2004-07-03 09:00

感谢作者的辛苦。
文中有几处提到expert one on one j2ee desing and develop
这本书,大致翻了一下,好像什么都讲,有时我想起了关于“红宝书“
的骂声。

4.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: linux_china
Posted on: 2004-07-03 09:21

非常不错!!Tongue


wes109 2004-07-04
未读先ding


veraman 2004-07-09
Thanks

5.Re:A tutorial for Spring Web [Re: haibo] Copy to clipboard
Posted by: Jove
Posted on: 2004-07-04 21:16

haibo wrote:
感谢作者的辛苦。
文中有几处提到expert one on one j2ee desing and develop
这本书,大致翻了一下,好像什么都讲,有时我想起了关于“红宝书“
的骂声。

那本书讲的东西确实比较多,正如封面上的评论"Rod所拥有的经验的深度和广度令人印象深刻!"

你可以站内搜索或是Google搜索,看看他人对这本书的评价. 或许等你看了几章后,便会理解为什么有人会称他为"旷世佳作" Smile

6.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: floater
Posted on: 2004-07-06 09:27

1. I reference chapter 12 & 13 of that book because I don't want to repeat what he is saying(don't fix it if it's not broken).
2. His book does cover quite a few topics in J2EE, but there are still more. His saying is very practical and right(I found quite some books didn't get the points in terms of practice). 旷世佳作 is a little bit off, but definitely very good(because the ideas have been around for years).
3. I want to have a tutorial which can show me nuts and bolts, one piece at a time. A combined petstore is good, but not good for beginners. So I wrote the document to fill in the gap.
4. In my document, I try to have seperate examples to show all forms of input from html side, some data flow from the framework to the application logic side.
So a beginner should be able to start coding.

7.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: yanwj
Posted on: 2004-07-13 15:05

这篇文章还没有写完吧,什么时候出新版

8.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: floater
Posted on: 2004-07-13 22:14

hehe, what else do you think that I should add?

I am still finding time to add something interesting as I explore.

9.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: yanwj
Posted on: 2004-07-14 17:45

啊!原来这篇文章的作者是floater总版主!真是绝好文章,我已在spring.jactiongroup.net上宣传了,相信一定会有更多的人看到的

10.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: floater
Posted on: 2004-07-14 23:03

Thanks, hopefully it's useful and more and more folks benefit from Spring.

I just updated to the newer version (0.3) and plan to stop here, unless there is a dramatic shake of interests.

After using it for 2 projects, I feel great about it. This should be the way to go.

11.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: yanwj
Posted on: 2004-07-15 23:42

0.3版放在哪里啊,急切希望看到它!

12.Re:A tutorial for Spring Web [Re: yanwj] Copy to clipboard
Posted by: davidself
Posted on: 2004-07-16 07:11

yanwj wrote:
0.3版放在哪里啊,急切希望看到它!


附件已经更新了啊。Wink

13.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: floater
Posted on: 2004-07-16 09:12

yea, the same link on the top, too rush to check that, huh? Tounge

14.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: zhbk
Posted on: 2004-07-21 15:59

good,i like this document!thanks!

15.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: superben
Posted on: 2004-07-23 20:07

many thanks

16.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: wes109
Posted on: 2004-07-26 10:30

发现一个小问题

(缩略图,点击图片链接看原图)

17.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: floater
Posted on: 2004-07-26 21:51

good catch, wes109!!

18.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: floater
Posted on: 2004-07-27 04:43

just update to version 0.4. Explore the checkbox/multi-selection part, fix several errors. Enjoy.

19.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: errorter
Posted on: 2004-07-28 00:39

谢谢 floater!

呵,或许是因Java社区同Open Source联系最为密切,获益也颇多
技术嗅觉敏锐的开发者们在某项技术开始被大众所关注和接受的时候,开始写下自己先前学习应用中的一些体会,或写面向初学者的学习指南,或介绍翻译优秀的资料文档……然后无偿的发布(其实他们最初写作整理的目的也只是分享自己经验(自己学习过程中的苦闷与快乐),给后来者以帮助和启示避免再走自己曾走过的弯路……)
其实这也是Open Source 精神的一种体现;是那些在CSDN整天FUD OpenSource及 OSS破坏了市场抢了自己饭碗的FUDer 永远不会体会的到的。

正如gigix在他Blog里提到的:
“Contributing to Eclipse的第一句话就折射出一种张力:“每个人都需要别人帮助,每个人也都有帮助别人的需要。”获得别人的帮助,是为了世俗的利益;帮助别人,是为了心灵的满足——用马斯洛的话来说,是温饱与自我实现,人类的两种不可或缺的诉求。仅仅追求心灵的满足,会因为付不起房租而痛苦;仅仅追求世俗利益,也会在面对星空时感觉一丝落寞。帮助与被帮助的张力,是Eclipse——乃至整个Open Source——社群存在的理由。”

20.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: zhbk
Posted on: 2004-07-30 14:47

谢谢,我看了,真的很不错

21.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: aryuan
Posted on: 2004-08-12 14:39

关于异常的处理 我在Controller中的handleRequest中写了一行 throw new Exception("test exception”);的代码
在caughtexception.jsp中,Exception ex = (Exception)request.getAttibute(“Exception");取得的ex为null,
请问是为什么?
应该是由spring自动将exception放到session中去的吧

22.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: floater
Posted on: 2004-08-12 22:13

check page 10-11 of the tutorial. You map the exceptions in the xml file.

23.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: wood
Posted on: 2004-10-22 09:19

报告,发现一个小错误:
page 12 of 42中 4.5节的例子Hello.jsp
......”$(user)”......”$(now)”......
应该是
......”${user}”......”${now}”......

24.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: floater
Posted on: 2004-10-22 09:25

Good catch. I thought I copied the code from working code, must slip through during format. Thanks.

25.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: wood
Posted on: 2004-10-22 11:09

floater,请教一个问题。
page 17 of 42 input2.jsp文件中
<FORM name="userForm" action="/spring/input1post.htm" method="POST">指定action,就不会引用Input1SimpleFormController;如果改为<FORM name="userForm" method="POST">就能引用。即使引用到,发现formBean.length()等于0。
我用的是Tomcat5.0、spring1.0.2、 jDK1.5.0 beta2

26.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: sunfmin
Posted on: 2004-11-24 18:11

很想知道floater使用什么写的这个文档?用XMLMind XMLEditor写的DocBook?然后转的?

27.Re:A tutorial for Spring Web [Re: floater] Copy to clipboard
Posted by: floater
Posted on: 2004-11-24 19:51

just msword.


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923