Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Customer Requirements for Developers
this week in the
Cannot find bean TestForm in any scope'
Joined: Jul 02, 2003
Apr 15, 2006 04:46:00
I am getting the following exception on my web browser when I try to access the action
in:/jsp/displayName.jsp] Cannot find bean TestForm in any scope'
here is my
<form-bean name="TestForm" type="com.src.TestForm" />
<message-resources key="com.src.Management" null="false" parameter="myMessages" />
tiles config file.
<!-- Deployment Requests -->
<definition extends="myDef" name="mytiles">
<put name="body" value="/jsp/displayName.jsp" />
Can anybody tell me what is wrong in this configuration
[ April 15, 2006: Message edited by: Santosh Maskar ]
Joined: Feb 15, 2005
Apr 15, 2006 10:50:00
Before displaying "displayName.jsp", you must instantiate a TestForm object and place it in session scope using the statement:
request.getSession().setAttribute("Testform", new TestForm());
Joined: Mar 19, 2005
Apr 17, 2006 22:55:00
Here are few things to note while using Struts :
name of the html:form tag in
should have the same name as formbean and type:Testform(ur Testform.java class)
that name must be the name in action tag , name of formbean...
if these coinside and if
form.java exists in the classpath or /web-inf/classes folder with ur structure
then it works.try with it
subject: Cannot find bean TestForm in any scope'
Tiles and struts 1 , not redirecting to tileś definition path
Cannot find ActionMappings or ActionFormBeans collection
Unable to find setter method for attribute: locale
html:options collection tag help URGENT
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015