ï»??xml version="1.0" encoding="utf-8" standalone="yes"?>色网址在线观看,可以免费看污视频的网站在线,精品一区在线http://www.aygfsteel.com/gongyg/zh-cnFri, 04 Jul 2025 20:01:03 GMTFri, 04 Jul 2025 20:01:03 GMT60struts 多moduleä¸?Cannot retrieve mapping for action http://www.aygfsteel.com/gongyg/archive/2006/04/07/39911.htmlgonggongFri, 07 Apr 2006 12:56:00 GMThttp://www.aygfsteel.com/gongyg/archive/2006/04/07/39911.htmlhttp://www.aygfsteel.com/gongyg/comments/39911.htmlhttp://www.aygfsteel.com/gongyg/archive/2006/04/07/39911.html#Feedback2http://www.aygfsteel.com/gongyg/comments/commentRss/39911.htmlhttp://www.aygfsteel.com/gongyg/services/trackbacks/39911.html
Â
  category.jsp
  --------------------------------
  <frameset rows="*" cols="180,*" frameborder="yes" framespacing="1px" border="0" >
    <frame name="menuFrame"
src="../categoryAction.jspx?method=loadAllMenus" scrolling="No"
noresize="noresize"Â >
    <frame name="deatilFrame" src="categoryDetail.jsp" >
  ----------------------------------
 categoryDetail.jsp
 ----------------------------------
   <html:form action="categoryAction.jspx?method=saveCategory" >         Â
... ...
     <html:form>
 -----------------------------------
 struts-config-admin.xml:
 ------------------------------------
    <action
     attribute="categoryForm"
     input="/product/categoryDetail.jsp"
     name="categoryForm"
     parameter="method"
     path="/categoryAction"
     scope="request"
     validate="false"
     type="com.book.web.struts.action.CategoryAction" >
    Â
      <forward name="viewMenu" path="/product/categoryMenu.jsp" />
      <forward name="succ" path="/product/categoryDetail.jsp" />
     </action>
 -----------------------------------
     以链接的形å¼è®‰K—®æ£ç¡®, 直接讉K—®action
http://localhost:8080/promtion/admin/categoryAction.jspx?method=saveCategory
æ£ç¡®.
    但把action 攑ֈ°jsp™åµé¢ä¸å°±å‡ºé”™, http://localhost:8080/promtion/admin/category.jsp
   javax.servlet.ServletException: Cannot retrieve mapping for action /categoryAction
   org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
   org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
   org.apache.jsp.admin.product.categoryDetail_jsp._jspService(categoryDetail_jsp.java:101)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 Â
root cause
javax.servlet.jsp.JspException: Cannot retrieve mapping for action /categoryAction
   org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:810)
 Â
 org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)   Â
org.apache.jsp.admin.product.categoryDetail_jsp._jspx_meth_html_form_0(categoryDetail_jsp.java:187)Â Â Â
org.apache.jsp.admin.product.categoryDetail_jsp._jspx_meth_html_html_0(categoryDetail_jsp.java:147)
   org.apache.jsp.admin.product.categoryDetail_jsp._jspService(categoryDetail_jsp.java:92)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Â
我调试了struts æºç å‘现 刚开å§?也能å–到module çš„name å€égØ“admin, 但在åŽç®‹å¤„ç†çš„æ—¶å€™å°±æŠŠè¯¥å€ég¸¢äº?
于是strutsåªèƒ½ä»Žstruts-config.xml æ–‡äšgè¯Õd–,
è€Œä¸æ˜¯ä»Žstruts-config-admin.xmlä¸è¯»å–action, 所有就找ä¸åˆîCº†action, 抛出异常.
Â
 struts 1.2 我还有待‹¹‹è¯•, ä¸çŸ¥é“æ˜¯å¦æœ‰åŒæ ·çš„é—®é¢??
 其它相åŒé—®é¢˜çš„网å‹å‘a€:
        原文链接1åQ?/b>http://www.aygfsteel.com/shaofan/archive/2006/03/01/32974.html    Â
         原文链接2åQšhttp://202.100.72.44/news/itschool/pro/pro44134.htm
]]>form 的创å»? åŠvalidate http://www.aygfsteel.com/gongyg/archive/2006/04/07/39905.htmlgonggongFri, 07 Apr 2006 12:26:00 GMThttp://www.aygfsteel.com/gongyg/archive/2006/04/07/39905.htmlhttp://www.aygfsteel.com/gongyg/comments/39905.htmlhttp://www.aygfsteel.com/gongyg/archive/2006/04/07/39905.html#Feedback0http://www.aygfsteel.com/gongyg/comments/commentRss/39905.htmlhttp://www.aygfsteel.com/gongyg/services/trackbacks/39905.html
   然åŽè°ƒç”¨resetæ–ÒŽ³•讄¡½®è¯¥form对象的属æ€?
   å†ä»Žjsp™åµé¢å–å¾—å±žæ€§åÆˆset bean的属æ€?
   然åŽå†è°ƒç”¨validateæ–ÒŽ³•(validate = true),验è¯å‡ºé”™, 则直接返回到input ™åµé¢,æ£ç¡®åˆ™è°ƒç”¨action的方法进行出æ?
 Â