From: Anthony E. <me...@an...> - 2003-04-25 13:55:37
|
Since you have set the form element's loader attribute to "com.anthonyeden.lib.resource.ClassPathResourceLoader" you will need to place the new-survey-form.xml in /WEB-INF/classes . Give that a try and see if it works. You can also try to remove the loader attribute from the form element and leave the configuration where it is and see if that works. Sincerely, Anthony Eden Schlauer Hund wrote: > I'm using FormProc 0.2 for JPublish und Jpublish 1.4 > new-survey-form.xml, formproc.xml are placed in the folder WEB-INF > > Greets, > Hund > >> From: Anthony Eden <me...@an...> >> To: for...@li... >> Subject: Re: [FormProc-developer] Newbie Problem: Form configuration >> not found >> Date: Wed, 23 Apr 2003 15:46:54 -0400 >> >> Two things: >> >> 1.) Which version of FormProc and which version of JPublish are you using >> 2.) Where is the new-survey-form.xml file? >> >> Sincerely, >> Anthony Eden >> >> Schlauer Hund wrote: >> >>> Hello! >>> I tried to integrate FormProc into my Jpublish Application and did >>> everything that was said in the Tutorial, but I always get the >>> message "javax.servlet.ServletException: Form configuration not found >>> for 'new-survey'". >>> >>> jpubish.xml: >>> ... >>> <module classname="org.jpublish.module.formproc.FormProcModule"> >>> <config>WEB-INF/formproc.xml</config> >>> </module> >>> ... >>> >>> formproc.xml: >>> ... >>> <!-- define forms --> >>> <form name="new-survey" >>> loader="com.anthonyeden.lib.resource.ClassPathResourceLoader" >>> path="new-survey-form.xml" monitor="true"/> >>> </config> >>> ... >>> >>> new-survey-form.xml: >>> <form> >>> <name>new-survey</name> >>> <storer classname="org.formproc.store.ReflectionStorer"/> >>> >>> <element name="survey_name"> >>> <validator type="expression"> >>> <pattern>.{1,}</pattern> >>> <error lang="en">The survey name cannot be empty.</error> >>> </validator> >>> <message lang="en">Required</message> >>> </element> >>> <element name="userfile"> >>> <validator type="expression"> >>> <pattern>.{1,}</pattern> >>> <error lang="en">The filename cannot be empty.</error> >>> </validator> >>> <message lang="en">Required</message> >>> </element> >>> </form> >>> >>> new_survey.html: >>> ... >>> <input type="hidden" name="formproc.formname" value="new-survey"> >>> ... >>> >>> new_survey.xml: >>> ... >>> <page-action name="formproc.initForm"> >>> <form>new-survey</form> >>> </page-action> >>> ... >>> >>> Please help me!!! >>> >>> >>> >>> >>> _________________________________________________________________ >>> Die aktuellsten Computer News gibts auf MSN! http://www.msn.at/computer >>> >>> >>> >>> ------------------------------------------------------- >>> This sf.net email is sponsored by:ThinkGeek >>> Welcome to geek heaven. >>> http://thinkgeek.com/sf >>> _______________________________________________ >>> FormProc-developer mailing list >>> For...@li... >>> https://lists.sourceforge.net/lists/listinfo/formproc-developer >> >> >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf >> _______________________________________________ >> FormProc-developer mailing list >> For...@li... >> https://lists.sourceforge.net/lists/listinfo/formproc-developer > > > > _________________________________________________________________ > Immer auf dem Laufenden mit den Mobile & Telekom News auf MSN! > http://www.msn.at/mobil |