![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA/JSP
confu
这个作者很懒,什么都没留下…
展开
-
获得传入路径的方法
例如:http://localhost:7001/myservlet/somepath/test?someparam=somevaluerequest.getPathInfo():返回/somepath/test request.getRequestURL():http://localhost:7001/myservlet/somepath/test request.getRequestU原创 2004-12-07 14:57:00 · 638 阅读 · 0 评论 -
[Struts入門]ActionError與ActionMessage
ActionForm是表單的物件化,有關於表單資料的完整性檢查工作該在其中進行,例如使用者是否填寫了所有的欄位,ActionForm中所有的屬性是否被設定了,您可以重新定義ActionForm的validate()方法來進行這項工作,例如:package onlyfun.caterpillar;import javax.servlet.http.*;import org.apache.struts原创 2005-03-22 16:21:00 · 1580 阅读 · 0 评论 -
Don't settle for <html:error>
Many Struts applications can get by with a simpletag at the top of a page. If any error messages are present, its this tags job to print them all out. To help prettify the output, checks for errors原创 2005-03-23 11:25:00 · 1266 阅读 · 0 评论