title: In Struts1, how to use set-property tag inside action tag?
body: <p>I want to pass a value in action when it is called using struts1 configuration file. I have create a form bean with following property</p>
  
  <pre><code>public class MyForm extends ActionForm {
      private String task;  
  
      public String getTask() {
          return task;
      }
      public void setTask(String task) {
          this.task = task;
      }
  }
  </code></pre>
  
  <p>In struts-config.xml, I have defined form bean and action as below.</p>
  
  <pre><code>&lt;form-bean name="myForm" type="demo.MyForm"&gt;&lt;/form-bean&gt;
  &lt;action path="/myAction" name="myForm" type="demo.MyAction" scope="request"&gt;
      &lt;set-property value="view" property="task" /&gt;
      &lt;forward name="success" path="/result.jsp"&gt;&lt;/forward&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>I am trying to run it in web sphere 6.1 with these configurations, it gives following exception</p>
  
  <pre><code>Deregister the mbean because of uncaught init() exception thrown by servlet action: javax.servlet.UnavailableException: Parsing error processing resource path file:/D:/workspaces/j-space/myProject/Web Content/WEB-INF/struts-config.xml
  at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:761)
  at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:744)
  at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:689)
  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:356)
  at javax.servlet.GenericServlet.init(GenericServlet.java:256)
  ....
  </code></pre>
  
  <p>I think I am missing something or using set-property tag in wrong way . Can anyone help?</p>