• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why sevlet.service() exception

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.....
 
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you seen this
 
Arun R. S. Chandran
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you....
I got it correct...

 
I am a man of mystery. Mostly because of this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic