Cannot retrieve mapping for action /

hi

i am getting this ex ception.....

javax.servlet.ServletException: Cannot retrieve mapping for action /

the jsp have the form tag as

<html:form action="sendmisdetails" enctype="multipart/form-data" >

i have action defined in the struts-config

<action

path="/sendmisdetails"

type="com.hti.webems.registry.SendEMail"

name="registryForm"

scope="request"

validate="true"

input="/sendEmail.jsp">

<forward

name="success"

path="/confermation.jsp"/>

<forward

name="failure"

path="/registryNotConfermation.jsp"/>

<forward

name="validMobile"

path="/isForget.jsp"/>

</action>

any help?

[1058 byte] By [BRAVOa] at [2007-11-27 11:56:02]
# 1

r u using bean anywhere ? where r u passing jsp data ,,,

i think u have to use <form bean > tag in struts-config.xml

AmitChalwade123456a at 2007-7-29 19:05:20 > top of Java-index,Java Essentials,Java Programming...
# 2

use

<html:form action="beanname" type="beanclassname" >

AmitChalwade123456a at 2007-7-29 19:05:20 > top of Java-index,Java Essentials,Java Programming...
# 3

yes

<form-bean

name="registryForm"

type="com.hti.webems.registry.RegistryForm"/>

BRAVOa at 2007-7-29 19:05:20 > top of Java-index,Java Essentials,Java Programming...
# 4

did it solved u r problem ?

AmitChalwade123456a at 2007-7-29 19:05:20 > top of Java-index,Java Essentials,Java Programming...
# 5

i already have the form-bean defined

the problem is even after

defining the form-bean and the action it is giving

the exception....

one more thing which action?

action /

ie it is not giving the name after /

BRAVOa at 2007-7-29 19:05:20 > top of Java-index,Java Essentials,Java Programming...
# 6

use this

<html:form action="/Lookup" name="beanName" type="beanType">

and

in struts-config

<action-mappings>

<action

path="/Lookup"

type="ActionName"

name="beanName">

<forward name="success" path="/success.jsp"/>

<forward name="failure" path="/failure.jsp"/>

</action>

This has to work !!!!!

AmitChalwade123456a at 2007-7-29 19:05:20 > top of Java-index,Java Essentials,Java Programming...
# 7

did u tried that ? Reply !!BRAVO

AmitChalwade123456a at 2007-7-29 19:05:20 > top of Java-index,Java Essentials,Java Programming...