I've used Struts for years and thought I had seen every way to break it, but 
this one has me stumped.  I'm starting a new Struts 1.2.9/Tiles project at home 
for http://www.byteworksinc.com.  I'm working on the first submittable pages, 
which display fine, but clicking Submit sends you to the home page.  I looked 
at the HTML source and the FORM tag is missing the "do" and Action name.  
Instead of including the Action name, the FORM action parameter just has the 
site context path, "/Byteworks". Why would form tags render without the Action 
name?   

The JSP has: <html:form action="/admin/listNewsFeedTypes" >

The HTML renders as <form name="newsFeedTypeListForm" method="post" 
action="/Byteworks">

The Action servlet mapping in the web.xml is:
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>/do/*</url-pattern>
  </servlet-mapping>

The struts-config file has:
<action
         path="/admin/listNewsFeedTypes" 
         name="newsFeedTypeListForm"
         scope="request"
         type="com.byteworks.action.NewsFeedTypeListDisplayAction"
         validate="false">
         <forward name="success" path="listNewsFeedTypes.tile"/>
      </action> 

Any suggestions?




Reply via email to