Hi I am using Strts, Spring and Hibernate for my project.
I created a
JSP page in
Struts, named CreateJobUPD. And action named JobUPDAction. And I wrote save method inside this action.
In my Actionservlet.xml I wrote the below code to mention the path.
<bean name="/CreatejobUPDAction"
class="com.videocon.action.admin.JobUPDAction" singleton="false">
<property name="jobupdmgr">
<ref bean="jobupdmgr" />
</property>
</bean>
<bean name="/CreateUnitAction"
class="com.videocon.action.admin.CreateUnitAction" singleton="false">
<property name="unitManager">
<ref bean="unitManager"/>
</property>
</bean>
In Strts-config.xml:
<action path="/CreatejobUPDAction"
type="org.springframework.web.struts.DelegatingActionProxy"
name="jobUPDForm" scope="request"
input="page.createjobupd" parameter="method" validate="false" >
<forward name="success" path="page.createjobupd" />
<forward name="failure" path="page.createjobupd" />
</action>
The page is properly loading. The problem is that, when I'm clicking on the submit button it's throwing an servlet.service() exception that is given below.
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CRTRS].[action]] Servlet.service() for
servlet action threw exception
javax.servlet.ServletException: Request[/CreatejobUPDAction] does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.
I couldn't understand why it came. So anybody please help me to correct this part.
.....ARUN.....