aspose file tools*
The moose likes Struts and the fly likes Why sevlet.service() exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Why sevlet.service() exception" Watch "Why sevlet.service() exception" New topic
Author

Why sevlet.service() exception

Arun R. S. Chandran
Ranch Hand

Joined: Oct 08, 2008
Posts: 81
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.....
Paras Jain
Ranch Hand

Joined: Feb 26, 2005
Posts: 137
Have you seen this


Paras Jain
SCJP 5.0
Arun R. S. Chandran
Ranch Hand

Joined: Oct 08, 2008
Posts: 81
Thank you....
I got it correct...

 
Consider Paul's rocket mass heater.
 
subject: Why sevlet.service() exception