wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts1.2_ Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts1.2_ Exception" Watch "Struts1.2_ Exception" New topic
Author

Struts1.2_ Exception

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi all,

i deploy the application but when i run my jsp file ,i got below exception



please help me out
Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 396
This exception typically occurs because Struts cannot find the form bean it expects for a specific action according to the mapping in the struts-config.xml file. Most often, this is probably because the name given to the form in the name attribute of the form-bean element does not match the name attribute of the associated action's action element. In other words, the action and form should each have a name attribute that matches exactly, including case. It has been reported that this error has been seen when no name attribute is associated with the action. If there is no name attribute in an action element, no form is associated with the action.

Mourougan


Mourougan
Open Source leads to Open Mind
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi,


in stuts1.2 , if you specify <html:form> element then, you should use ActionForm?...but here i do not want to use ActionForm

Action in struts-config



my jsp page:




if i use ordinary form it is ok but if i use stuts form then i am not getting the above exception(i mention in my first post)


please anybody explain me
[ November 14, 2008: Message edited by: seetharaman venkatasamy ]
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Originally posted by seetharaman venkatasamy:
but if i use stuts form then i am not getting the above exception(i mention in my first post)


please anybody explain me



Its right , when you used <html:form (a struts tag) it looks for the mapping of ActionForm (bean) in <action >tag in struts-config.xml, for collecting the user input into a bean..


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Struts1.2_ Exception
 
Similar Threads
JSP error page and exception handle
error - prepared statement
to retreive datas from mysql table in jsp
wrong exception in JSP page
class not found exception javax.jms.MessageListener