dreamcoldfqb Offline

34 Male from Los Angeles       9
Freedom shows the way

dreamcoldfqb
dreamcoldfqb to AsianOrie: Orie,can you do me a favor.I want fake marrage to change my nationality.I don't want to be citizen of China
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: I want fake marrage to change my nationality.Just don't want to be citizen of China anymore.Who can help me?I'm not a rich guy.I can pay you up to $10000.If someone wants to do a deal with me,please feel free to contact me!I just feel it's a suffer to live in China.I really want to change my damn China nationality.Any new nationality is OK for me excepet North Korea and Iraq nor Syria
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: Bojack Horseman is so great an animation.I'm gonna watch it in the coming days!
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: 使用Struts2框架的其中一个好处是, Struts2支持的一系列jsp标签提高了web开发者的开发效率。例如,<s: property value="info"/>这样一个常用的Struts2标签,用很简短的代码量就实现了从Jsp页面中显示action对象的info属性。通过对这些Struts2标签的使用,JSP页面的代码量大大减少。
Translation:One benefit of using Struts2 framework is that it helps web developers improves their development efficiency.For example,a very short Struts2 tag like
<s: property value="info"/> can do the following work for you: showing the value of attribute "info" of an action object in a Jsp file.By using these Struts2 tags,the codes in a JSp file become shorter.
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: 过滤器filter的使用方法:和servlet差不多,也要在web.xml中去声明和url映射。一个常见的用法是做中文字符转换。filter是http请求和servlet之间的桥梁,用户可以对filter收到的http request的内容(包括请求参数)进行修改(可以实现敏感词过滤等功能),修改的逻辑都写在doFilter方法里。多个filter可以组成一个filter chain。
6 years ago Report Link
0
View all 4 posts
firmez
firmez: Hello Dream Json is better than XML.
6 years ago Report
0
dreamcoldfqb
dreamcoldfqb in reply to FistOfStone: sorry,man.I'm too lazy to translate it into English.I'm learning web developing recentlly,so I write some notes to help me learn
6 years ago Report
1
dreamcoldfqb
dreamcoldfqb in reply to firmez: Why you say so? In my opinion,it's meaningless to discuss which one is better between them,they are just two ways of carrying information .Aren't they?
6 years ago Report
0
dreamcoldfqb
dreamcoldfqb: struts2框架的拦截器机制体现了AOP思想。action中可重用的部分,可以提取出来,放到拦截器中。这样,多个不同的action就可以共用拦截器中的代码了。
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: EL表达式与正则表达式有点像,但是目的不同,EL表达式是为了缩短JSP中java代码的长度,使页面代码看起来更精简。
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: JSTL就是JSP的扩展标签
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: java监听器的用法:先单独编写一个监听器类(不同监听器的作用不同,根据需要决定用哪一个)
然后,在jsp或servlet中先实例化一个监听器对象,
再把监听器作为实参传给触发监听器事件的语句。
当触发监听器事件的语句执行时(比如教材中的session.setAttribute("anyname",ut))
就会自动执行监听器对象的相应事件处理方法(如ValueBound、ValueUnbound)。
不知道理解的对不对,暂时这样理解吧。
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: I'm going to learn filter and listener now.
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: Servlet is utilized just for handling with http request.Briefly speaking,the most common way you use servlet is creating a servlet(eclipse will help you) first and writing its doGet or doPost method.After you finish your servlet coding,you modify web.xml to map a url with your servlet(nowadays eclipse will do all the web.xml modification work for you automatically ).That's servlet,it's easy to use and it enables your website to handle with all kinds of url requests.
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: The most classic java web frameworks are all designed for the MVC model.MVC model seperates a web system to three layers,they are Model Layer,View Layer,and Controller Layer.Acctually,if you don't know what is java web framework,you can also build a complicated dynamic java-coded website.You only need JSP(View Layer),Javabean(Model ),servlet(Controller Layer) and JDBC(connect to database) to create a complicated dynamic website.However,you can get lots of benefits from using java framework,for example you will have higher develop efficiency and you will feel easier to modify your codes when you want to upgrade your website oneday.
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: I'm going to study servlet now,good luck to me.Phew~
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: As a conlusion,javabean is only a way of using java codes in JSP...It's not complicated at all.You writes javabean,put it under folder /WEB-INF/classes,and then you use javabean-related JSP lables to use your javabean in your JSP file.Using javabean can abstract some java codes from JSP files so that your jsp file becomes shorter.
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: Coding makes me happy,when I writing codes,I forgot temporarilly all the unhappiness in the real world.I like this feeling.web develop is so cool~~
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: <jps:setProperty name = "Person" property = "*"/> this is a very cool usage.This super-short sentence set all parameters of your javabean!
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: javabean is just like a normal class,you put it under the folder-/WEB-INF/classes,and then you can enjoy its convienience.The purpose of using javabean is to separate our massive webpage codes into several parts.By doing so,our codes are seperated according to its function.Then we have concepts like PO,BO,POJO,DAO and so on.All of these concepts are created to help us easily manage our codes.
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb: Hi,guys,my name is dreamcold.I'm from China,living in Beijing now.I'm learning java web develop now.I want to post technical posts here in future.By doing this,I got two benefits.The first one is I can improve my English.The second one is I can record my thoughts during my technology learning process.
6 years ago Report Link
0
dreamcoldfqb
dreamcoldfqb to FistOfStone: Hi,fist,long time no see.How've you been?
7 years ago Report Link
1
View all 10 posts
FistOfStone
FistOfStone in reply to dreamcoldfqb: i don't even have a job right now dream, i am looking for one ... you still wanna come here even with trump?
7 years ago Report
0
dreamcoldfqb
dreamcoldfqb: Good question,buddy.Trump will not always be the president.No one can change the culture and values of America.I mean American values are always in there.When the Democratic Party take over the White House in some day,things will get better and America will be really great again...haha
7 years ago Report
1
dreamcoldfqb
dreamcoldfqb: Buddy,it's time to sleep for you.Have a good night.I'm going to have lunch.See you later
7 years ago Report
1
dreamcoldfqb
dreamcoldfqb to leelookatchoo: hi,I am from China.I have to go for supper.We can talk later.
10 years ago Report Link
1