摘要: INSERT table (auto_id, auto_name) values (1, 'yourname') ON DUPLICATE KEY UPDATE auto_name='yourname' 阅读全文
posted @ 2012-10-12 15:02 樱木不坏 阅读(126) 评论(0) 推荐(0)
摘要: 使用JPA的方式配置Struts时,需要在Action间传递参数(即把参数传给@Result的action),可以用如下方式@Action(name="WorkCalWithOrganRoleAction_doAdd")@ResultOfRedirectAction("WorkCalWithOrganRoleAction_goMain.action?workCalendarID=${workCalendarID}")public String doAdd() {...} ${xxx}里面的就是需要传递的参数,记住需要用@ResultOfRedirectA 阅读全文
posted @ 2012-10-12 14:58 樱木不坏 阅读(162) 评论(0) 推荐(0)