06 2012 档案

摘要:这几天按照书上的案例对bbs的搭建多少学了点儿东西。其他的倒是没有什么,书上的编程规习惯很好,值得学习,类的划分和接口的定义对功能扩展提供了很大的方便。在程序中,用到了验证拦截器 AuthenticationInterceptor 。具体代码如下: 1 import java.util.Map; 2 3 import org.model.User; 4 5 import com.opensymphony.xwork2.Action; 6 import com.opensymphony.xwork2.ActionInvocation; 7 import com.opensymphony.xw.. 阅读全文
posted @ 2012-06-05 10:03 lihui_yy 阅读(1924) 评论(0) 推荐(0) 编辑
摘要:最近一直在看一个工程例子,遇到一个问题就是在 jsp 文件中,通常会在 <s:form>标签中使用<s:submit>,而二者均有 action 属性,今天貌似明白了两个之间的区别,但是不知道理解的对不对,若有高手路过还请多指教~~例如,在struts.xml文件中设置了几个action如下:1 <action name="UserLogin" class="org.web.user.UserLoginAction">2 <result name="success" type="re 阅读全文
posted @ 2012-06-04 12:53 lihui_yy 阅读(9716) 评论(0) 推荐(0) 编辑
摘要:1 public static void main(String[] args){2 Date date = new Date();3 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");4 format.format(date);5 System.out.println(format.format(date));6 }这样,输出时间格式为: 2012-06-01 09:26:54 阅读全文
posted @ 2012-06-01 09:29 lihui_yy 阅读(437) 评论(0) 推荐(0) 编辑