Can struts.xml and struts annotation be used at the same time <p>I am using two action classes in my application, i am using annotation in one action class and i want to use struts.xml for the other action class. Is it possible. When i am using annotation, this is working</p> <pre><code>@Namespace("/") @ResultPath("/") public class StartQuizAction extends ActionSupport { private static final long serialVersionUID = 953099491763814636L; private List qlist; public List getQlist() { return qlist; } public void setQlist(List qlist) { this.qlist = qlist; } public static long getSerialversionuid() { return serialVersionUID; } @Action(value="startQuiz" ,results={@Result(name="success" , location="User/pages/qData.jsp") }) public String execute(){ System.out.println("in 2nd action"); QuizDataInput qData= new QuizDataInput(); qlist=qData.getData(); System.out.println(qlist); return SUCCESS; } } </code></pre> <p>But when i use struts.xml, removing annotations, i am getting this error</p> <blockquote> <p>There is no Action mapped for namespace [/] and action name [] associated with context path [/quizcreator]. - [unknown location]</p> </blockquote> <p>Struts.xml</p> <pre><code>&lt;struts&gt; &lt;package name="default" namespace="/" extends="struts-default"&gt; &lt;action name="startQuiz" class="com.agc.onlinequiz.action.StartQuizAction"&gt; &lt;result name="success"&gt;User/pages/qData.jsp&lt;/result&gt; &lt;/action&gt; &lt;/package&gt; &lt;/struts&gt; </code></pre>