今天搜集了好多资料,研究了一个用j2ee写的分页算法:
public List findAllStr(final String con, final int pageNo, final int page_size) { return getHibernateTemplate().executeFind(new HibernateCallback() { public Object doInHibernate(Session s) throws HibernateException, SQLException { Query query = s.createQuery(con); query.
编者按:当作者 Chuck Cavaness(著有《Programming Jakarta Struts》一书)所在的网络公司决定采用Struts框架之后,Chuck曾经花费了好几个月来研究如何用它来构建公司的应用系统。本文叙述的正是作者在运用Struts过程中来之不易的若干经验和心得。如果你是个负责通过jsp和servlet开发Web应用的Java程序员,并且也正在考虑采用基于Struts的构建方法的话,那么你会在这里发现很多颇有见地同时也很有价值的信息。
Application_en.properties # Resources for the Hello sample application hello.title=A first Struts program hello.prompt.user=Please enter a UserName hello.page.hello=Hello hello.page.wellocome=Wellcome to Blog of Javamxj
SMTP(Simple Mail Transfer Protocol)即简单邮件传输协议,它是一组用于由源地址到目的地址传送邮件的规则,由它来控制信件的中转方式。SMTP协议属于TCP/IP协议族,它帮助每台计算机在发送或中转信件时找到下一个目的地。通过SMTP协议所指定的服务器,我们就可以把E-mail寄到收信人的服务器上了,整个过程只要几分钟。SMTP服务器则是遵循SMTP协议的发送邮件服务器,用来发送或中转你发出的电子邮件。 POP3(Post Office Protocol 3)即邮局协议的第3个版本,它规定怎样将个人计算机连接到Internet的邮件服务器和下载电子邮件的电子协议。它是因特网电子邮件的第一个离线协议标准,POP3允许用户从服务器上把邮件存储到本地主机(即自己的计算机)上,同时删除保存在邮件服务器上的邮件,而POP3服务器则是遵循POP3协议的接收邮件服务器,用来接收电子邮件的。
OS:windows IDE:eclipse3.1/3.2 WEB SERVICE:tomcat5.5 JDK:1.5 Struts:1.2
1.open the eclipse and new a java project,named test1.
2.right click the new project(test1),and new a source folder named src,and then new the package in the src,named com.test.one.struts.action,and new a file named LoginAction.java within this package.
3.right click the test1,and new a folder named web,and create a new folder named W
今天搜集了好多资料,研究了一个用j2ee写的分页算法:
public List findAllStr(final String con, final int pageNo, final int page_size) { return getHibernateTemplate().executeFind(new HibernateCallback() { public Object doInHibernate(Session s) throws HibernateException, SQLException { Query query = s.createQuery(con); query.
编者按:当作者 Chuck Cavaness(著有《Programming Jakarta Struts》一书)所在的网络公司决定采用Struts框架之后,Chuck曾经花费了好几个月来研究如何用它来构建公司的应用系统。本文叙述的正是作者在运用Struts过程中来之不易的若干经验和心得。如果你是个负责通过jsp和servlet开发Web应用的Java程序员,并且也正在考虑采用基于Struts的构建方法的话,那么你会在这里发现很多颇有见地同时也很有价值的信息。
Application_en.properties # Resources for the Hello sample application hello.title=A first Struts program hello.prompt.user=Please enter a UserName hello.page.hello=Hello hello.page.wellocome=Wellcome to Blog of Javamxj
SMTP(Simple Mail Transfer Protocol)即简单邮件传输协议,它是一组用于由源地址到目的地址传送邮件的规则,由它来控制信件的中转方式。SMTP协议属于TCP/IP协议族,它帮助每台计算机在发送或中转信件时找到下一个目的地。通过SMTP协议所指定的服务器,我们就可以把E-mail寄到收信人的服务器上了,整个过程只要几分钟。SMTP服务器则是遵循SMTP协议的发送邮件服务器,用来发送或中转你发出的电子邮件。 POP3(Post Office Protocol 3)即邮局协议的第3个版本,它规定怎样将个人计算机连接到Internet的邮件服务器和下载电子邮件的电子协议。它是因特网电子邮件的第一个离线协议标准,POP3允许用户从服务器上把邮件存储到本地主机(即自己的计算机)上,同时删除保存在邮件服务器上的邮件,而POP3服务器则是遵循POP3协议的接收邮件服务器,用来接收电子邮件的。
OS:windows IDE:eclipse3.1/3.2 WEB SERVICE:tomcat5.5 JDK:1.5 Struts:1.2
1.open the eclipse and new a java project,named test1.
2.right click the new project(test1),and new a source folder named src,and then new the package in the src,named com.test.one.struts.action,and new a file named LoginAction.java within this package.
3.right click the test1,and new a folder named web,and create a new folder named W