1.com.mysql.jdbc.Driver
jdbc:mysql://"+host+":"+port+"/"+dbname,user,pass
2.oracle.jdbc.driver.OracleDriver
jdbc:oracle:thin:@"+host+":"+port+":"+dbname,user,pass
jdbc:oracle:thin:@ip:1521:db
国际化在页面显示
3.<html:submit property="method"><bean:message key="button.ok"/></html:submit>
4.<set-property property="cancellable" value="true"/>
<forward name="back" path="/back.jsp" />
在业务逻辑action中做一个判断究竟是选了哪个按钮
if(this.isCancelled(request)){
return mapping.findForward("back");
}
5做一个preAction用来this.saveToken(request);调到form页面
在业务逻辑上面判断是否刷新操作了
if(!this.isTokenValid(request, true)){
return mapping.findForward("noRefresh");可以设置全局跳转
}
6.加入file类型的要找org.apache.struts.upload.FormFile
表单中的添加这个属性才能上传encode type( enctype="multipart/form-data" )
jdbc:mysql://"+host+":"+port+"/"+dbname,user,pass
2.oracle.jdbc.driver.OracleDriver
jdbc:oracle:thin:@"+host+":"+port+":"+dbname,user,pass
jdbc:oracle:thin:@ip:1521:db
国际化在页面显示
3.<html:submit property="method"><bean:message key="button.ok"/></html:submit>
4.<set-property property="cancellable" value="true"/>
<forward name="back" path="/back.jsp" />
在业务逻辑action中做一个判断究竟是选了哪个按钮
if(this.isCancelled(request)){
return mapping.findForward("back");
}
5做一个preAction用来this.saveToken(request);调到form页面
在业务逻辑上面判断是否刷新操作了
if(!this.isTokenValid(request, true)){
return mapping.findForward("noRefresh");可以设置全局跳转
}
6.加入file类型的要找org.apache.struts.upload.FormFile
表单中的添加这个属性才能上传encode type( enctype="multipart/form-data" )