
Java
文章平均质量分 54
njujmj
这个作者很懒,什么都没留下…
展开
-
Java使用JNI调用dll
一个Java程序调用固有方法,1,第一步是写出对固有方法及它的自变量进行声明的Java代码: class ShowMsgBox { public static void main(String [] args) { ShowMsgBox app = new ShowMs转载 2009-07-10 17:26:00 · 3420 阅读 · 0 评论 -
DAO和Service层的一些解释
1,dao和service对应 一般情况下,Hibernate DAO只操作一个POJO对象,因此一个DAO对应一个POJO对象。 Service层是为了处理包含多个POJO对象(即对多个表的数据操作)时,进行事务管理(声明式事务管理)。Service层(其接口的实现类)被注入多个DAO对象,以完成其数据操作。 2, Service之有无 这一点我的看法未必正确转载 2010-01-17 14:19:00 · 24038 阅读 · 7 评论 -
Session Management
1.rewriting Make the id contained in the hyperlink, such as "TestServlet?id=12". You can append many name/value pairs on the URL, if the length of new URL doesnt exceed the limit.2.hidden field原创 2010-03-26 11:24:00 · 673 阅读 · 0 评论 -
Servlet的include和forward辨析
java的servlet中的include,forward和redirect的区别: include: 指在当前的servlet输出的内容中插入included的内容,即include可以用在当前的servlet任何位置,而不丢失当前输出。 forward: 当前的servlet的输出会丢失(位于buffer内的会丢失,如果已经flush过,则会抛出异常IllegalSta原创 2010-03-25 17:44:00 · 798 阅读 · 0 评论 -
Filter
A filter is loaded before servlets. And you can do something on the request and the response(If you put the statements after the invokation of filterChain.dofilter). The filter machenism is much l原创 2010-03-30 23:35:00 · 540 阅读 · 0 评论 -
Write jsp with xml
The XML is getting more and more popular, and there are many advantages to use XML. Luckily, the jsp pages can be represented by XML. Benefits of writing JSP pages as XML document: (Reference: A原创 2010-04-02 21:26:00 · 618 阅读 · 0 评论