java
I'm a little sad
yesterday,when I came to home after working in countryside about a week,we found "MiMei"-my daughter,refuse me touch her.Obviousely,she was umfamiliar with me then,only after a week.I was a little sad.Maybe,she was angry with me.But, the thing happened later make me more sad.An old classmate which never knew anything about me from we separated more than ten years ago,was allowed to touch her,and,will follow him leave us by autocycle!I thought,if a villain take her away like this...what terrible!
I think,we should educate our daughter be aware the villain.
start the first iteration of our project
yestoday,replied several friends' email.started the first iteration of our new learning platform.The first step is system requirement analysis.
In order to produce a transparent development flow and learn english,I suggested members of our group communicating at website in english.Created a goal named "our on-line mails collection" that can replace common email with the message at our website.
our on-line mails collection
This goal can be used in the communication between of us,we can choose this to substitute the email in order to get the help of other friends.
If you want exchange some idea with other registered user,you can create a diary named:"mails between *** and ***" after getting the agreement of each other.
In order to learn english,I suggest we communicate in english,and,please correct the english error in the mail of us.
Use it!
Last week,a friend in our LearnDiary Developing Group told me the key of learning english is two words:USE IT!I think it is right.
So,from then on,I will try to write the most of my diary in english.And,I wish my friend in the LDDG communicate each other in english,email or our website.
Last week,I listened sevral text of new concept english.but there are many text I havn't listened clearly.I should listen every word clear in the text,It approach my goal only in this way.
the summary of learning <>
This week,I have learned chapter 7-10 of this book,this is the second time learning it.
There are four typies of diagram in OO analysis.They are class diagram,use-case diagram,interaction diagram(sequence diagram or collaboration diagram),state diagram.
I have a question is if struts class should be imported in at this phase.I learned a book there is a seqence diagram,it includes struts class.But,I think,we should know what should we do in the analysis phase.the result should be used in any oop design,for example:.net.So,I think struts class shouldn't be imported at this time,but design phase.
The state diagram is used to create method in a class.But I don't know it clearly.
After analysis phase,We should choose a plan according with the environment and post it to the manage department.
In design phase,the package diagram is used to dividing sub system.at this phase,We should use state diagram to write pseudocode of a method's logic of a class.
The most valuable knowledge come from chapter 10--datebase design for me.especially oodb.The ability of OODB is exciting for me.It can support self definition data type and inheritance and other new charactor that relation db can't support.I should learn it later.
In our LD project,We should use another db type it between relation db and oo db called hybrid object-relational DBMS.
In hybrid object-relational DBMS,if there are several child class for a parent class. the child class can be processed in two ways.one is using a table that represent a super set of all these class,another is every child class is a table and the key of this table is outer-key(I can't understand it).
Floodwater towards heaven
Corse,corse,40000;water,water,30 metres;no blood,no blood,only sadness...What an image!the tsunami in these days happening at seral countries beside the Indian Ocean. I want to cry!
What can I do when if I faced the water it's 30 metres high?What?Nothing!I want to cry!
40000 people have lost their lives,and a life is so helpless,a life is so
slight!I want to cry!
Human has been fighting nature a long time.But when we face this disaster,why we lost so many lives of our friends in a world?why?
I think,if existed a network of preventing disaster like this:there are many detector at the ocean floor to detect the activity of the earth quake,It can broadcast the danger to all people who can be harmed as quickly as it can,we will don't lost so many lives.
But,why there isn't a network like this?I don't know.
What can we do now?what can the member of LDDG do now?If we think if it's us faced this situation?
Things we can do now is blessing and blessing,blessing our friend in a world far away from the danger...
A mind for learning english in our project
English is very important now.I have a mind of learning english,that is two words:use it!It's told me by a friend in the LearnDiary Developing Group(LDDG).And this friend introduce a english learning method-"study english reverse method" invented by generals Zhong DaoLong.This method can be downloaded at this address:,It's need pdf reader with Simpfied Chinese Support Package which can be downloaded at this address:.I suggest the friend like me to learn and exercise this method.
So I have a mind,it's developing a part of our project in english.For example:private message management model in our project or other model.We can analyse,design,and code this model in english.
Another,we can communicate each other in my website in english.In this way,we can learn english by using it.Of course,we should also take some other method introduced in manual writed by generals Zhong DaoLong.
In order to learn english,I will write some type of diary in english,for example:nurture my daughter,felling in my life,and learn jsp.
I hope there are many friend can join the team of learning english.
学习raorao的PostAdvice0Action.java
我在beforePostArt指的提交文章前的target,当提交文章后,这个target会保存在session
中。当重复提交失败后,页面会定向到beforePostArt所指的target。
因为raorao如果不改定向,提交日记定向的是diarysuccess所指的toSendMailOfGoalAction.do,这个target
提交日记前就已经保留在了session的beforePostArt中。重复提交日记失败后,调用
beforePostArt所指的target,自然就定向到了diarysuccess所指的toSendMailOfGoalAction.do,
就形成了重复发送邮件。
所以,raorao把重复提交日记失败后的target用isBackSubmit重新定向,避免了一般情况下的重复发送邮件。
但由于learndiaryV0.9本身没有彻底解决重复提交问题,在此基础上形成防止重复发送日记的代码在重复提交日记
成功后自然就被绕过了。而这正是学习日记程序设计队现在正在解决的目标之一。
xml的解析与用途
xml是java开发中不可缺少的一部分,对于系统的配置,数据的存储都起着很大的作用。而系统对xml数据的读取过程就是对xml文档的解析过程。关于xml的解析有两种方式,一种是dom方式,一种是sax方式。dom是基于对象的,他依照xml文档在内存中建立树状结构,因此当xml文件较大时,dom的解析方式比较占用内存,因此一般的时候用sax方式,sax是基于事情的,当遇到特定的符号时就会触发相应的函数去执行。java中提供了相应的api函数,当然都是遵循xml标准的。关于xml,本人只开个头,希望大家都来商讨,商讨。