![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
struts
maybelle0049
yangzhouzhou
展开
-
程序——在DispatchAction中定义多业务编写中的问题及注意事项
<br />(1)struts中 <html:form method="post"> 中表单提交方法必须为 post, 不能为get。<br />(2)<action>元素中属性parameter="method",其中method可以为任意名称,但是有一点要注意,就是修改struts-config.xml之后要重启服务器才能生效。<br />(3)struts标签不能与html标签混合使用。<br />(4)struts存在中文乱码问题,提交表单如果是中文会有乱码,只要提交到了正确的中文,则读写数据库都不原创 2010-06-22 22:36:00 · 488 阅读 · 0 评论 -
struts中文乱码问题
<br />创建一个MyRequestProcessor 类继承struts的RequestProcessor类<br />package fo; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.RequestProcessor; public class MyRequestProcess转载 2010-06-22 22:57:00 · 377 阅读 · 0 评论