![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Struts
digua007
这个作者很懒,什么都没留下…
展开
-
AtionErrors和ActionMessages的区别
AtionErrors和ActionMessages的区别 2008-06-30 08:57 尽管Struts框架提供了有效的异常处理机制,但不能保证处理所有的错误,这时Struts框架会把错误抛给Web容器,在默认情况下Web容器会向用户浏览器直接返回原始信息。 正在装载数据…… 如果想避免直接让用户看到这些原始信息,可以在web.xml...原创 2008-07-16 14:04:23 · 73 阅读 · 0 评论 -
多参数传递
一是不用<html:link>标签改用<a href="aaa.do?para=<bean:write name="sss" property="codename"/>&ddd=<bean:write name="sss" property="ddd"/>"></a&a原创 2008-07-22 22:18:08 · 114 阅读 · 0 评论 -
struts 自定义标签
自定义标签必须实现下面三个接口中的一个:Tag、IterationTag、BodyTag 1.Tag 如果要实现这个接口,可以通过扩展TagSupport这个类,来写自己需要的方法,而不需要把Tag接口中的所有方法实现。 Tag接口的方法: doStartTag()、doEndTag()、getParent()、setParent()、release()、setPageContext() ...原创 2008-08-27 15:30:36 · 157 阅读 · 0 评论 -
struts自定义标签及三个接口
自定义标签必须实现下面三个接口中的一个:Tag、IterationTag、BodyTag 1.Tag 如果要实现这个接口,可以通过扩展TagSupport这个类,来写自己需要的方法,而不需要把Tag接口中的所有方法实现。 Tag接口的方法: doStartTag()、doEndTag()、getParent()、setParent()、release()、setPageContext(...2008-03-05 12:19:19 · 95 阅读 · 0 评论 -
struts action中使用MessageResources
MessageResources messages = getResources(request);在Action类中定义了getResources(HttpServletRequest request)方法,该方法返回当前默认的MessageResources对象,它封装了Resource Bundle中的文本内容。接下来Action类就可以通过MessageResources对象来访问文本内容...2008-03-07 14:02:07 · 100 阅读 · 0 评论 -
ActionForward 动态转发(Redirect和Forward是两种不同的机制.)
我的写法: ActionForward oldForward = mapping.findForward("success"); String path = oldForward.getPath(); path += "?keyId="+tmo.getRecId()+"&actId="+actId; System.out.println("-----------------path...2008-03-09 18:25:35 · 325 阅读 · 0 评论 -
action 动态跳转地址
action中实现动态跳转得一个方法 public class RegmobileAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse ...原创 2009-08-13 08:54:44 · 176 阅读 · 0 评论