Re: Multiple forms in one JSP + one Action
First form has among other things: two attributes of the type formB1 formB2 (with the accessors getFormB1 getFormB2). The fields in the forms are then named : _ formB1.name, formB1.surname _ formB2.name, formB2.surname Don't forget to instanciate in the FormABean the two sub beans. \T, I am unable to find a solution or an alternate way of having multiple forms in one jsp and upon submit one action handling all forms.The jsp will have the forms as follows: html:form %-- first form stuff -- using formA --% html:form %-- second form stuff -- using formB1 --% /html:form html:form %-- third form stuff -- using formB2 --% /html:form /html:form How do I indicate to the action that it depends on two forms? Or should I be using nested forms? Which I can't find docs or HOWTO for? I would be thankful for any help? Shedrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thomas SMETS rue J. Wytsmanstraat 62 1050 Brussels - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat startup error using struts.
May be posting the Struts-config.xml would make it possible to help you ? \T, Has anyone seen the following error before? INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true 24/05/2004 14:05:55 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 18 column 19: The content of element type set-property must match EMPTY. org.xml.sax.SAXParseException: The content of element type set-property must match EMPTY. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.j ava:1006) at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9 55) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10 44) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3959) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126) at org.apache.catalina.core.StandardHost.start(StandardHost.java:832) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:594) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) IMPORTANT NOTICE: This e-mail and any attachment to it are intended only to be read or used by the named addressee. It is confidential and may contain legally privileged information. No confidentiality or privilege is waived or lost by any mistaken transmission to you. The RTA is not responsible for any unauthorised alterations to this e-mail or attachment to it. Views expressed in this message are those of the individual sender, and are not necessarily the views of the RTA. If you receive this e-mail in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thomas SMETS rue J. Wytsmanstraat 62 1050 Brussels - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Message Resources
You do not need to load the Message ressources. I would suggest you to place the following in your AS classpath : A file named : SimpleLog.properties (may be all small letters) with the following content : snip # # # # # # # Author : $Author$ # Revision : $Revision$ # Last updated : $Date$ # ### # Logging detail level, # Must be one of (trace, debug, info, warn, error, or fatal). org.apache.commons.logging.simplelog.defaultlog=info # Id : $Id$ # # Log # # # $Log$ # /snip and another one : File named : commons-logging.properties file content is snip # # # # # # # Author : $Author$ # Revision : $Revision$ # Last updated : $Date$ # ### org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog # Id : $Id$ # # Log # # # $Log$ /snip doing that you will allow to see the jakarta logging being flushed out : [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true[INFO] PropertyMessageResources - -Initializing, config='YourResource_1', returnNull=true[INFO] PropertyMessageResources - -Initializing, config='YourResource_2', returnNull=true[INFO] PropertyMessageResources - -Initializing, config='YourResource_3', returnNull=true[INFO] PropertyMessageResources - -Initializing, config='YourResource_4', returnNull=true[INFO] PropertyMessageResources - -Initializing, config='ApplicationResources', returnNull=true I have NO idea what decided on the order they are loaded as it is definitively NOT the order we declared them in our Struts-config.xml Cheers, \T, Greetings, The following code snippet is from my ActionForm.validate() method. What I don't like and wonder if there is a better way to this: is the loading of the Message Resources. I need to do this to get a value that is passed as a parameter to a message. private static MessageResources messages = MessageResources.getMessageResources(resources.ApplicationResources); errors.add(ActionErrors.GLOBAL_ERROR, new ActionMessage(errors.general.alphabetic.required, messages.getMessage(hrOnlineLocale.getLocaleLocale(), label.first.name))); Is there a better way to do this? TIA, Glenn -- Thomas SMETS rue J. Wytsmanstraat 62 1050 Brussels - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]