Exception: Cannot retrieve definition for form bean null using ForwardAction
Hi, I am trying to use a ForwardAction to navigate from one jsp to another. It has been suggested that every JSP Page should be fronted by an Action. I am currently trying to do this, but getting the following exception: javax.servlet.ServletException: Cannot retrieve definition for form bean null at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:530) at org.apache.jsp.leadDetails_jsp._jspService(leadDetails_jsp.java:657) [snip] I don't want to use a form bean because this is just a simple forward request. My form in my jsp looks like this: My struts-config looks like this: I am using Struts 1.1 RC 1. When I try to load my jsp, I get the exception mentioned above. Can anyone offer any suggestions as to why I would be getting this exception?? Thanks in advance, Damian. www.sensis.com.au A leading Australian advertising, information and directories business. www.yellowpages.com.au www.whitepages.com.au www.citysearch.com.au www.whereis.com.au www.telstra.com.au This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged. Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email. If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 9201 4888]
RE: not showing anything!
Alas, the problem has been solved!! The problem was that because I am also using tiles, I had copied the following part from the tiles example bundled in Struts 1.1RC1 into my 'web.xml' application org.apache.struts.webapp.tiles.dev1-1.ApplicationResources It was being specific to the example. I now have changed it to application resources.application And it works fine. Trick was to also add it to my web.xml file, not just my struts-config.xml file. Thanks for the responses. Damian. -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 10:08 AM To: Struts Users Mailing List Subject: RE: not showing anything! After you wrote this, I tried to get a new version of that utility, and the download link is working fine. On your original problem, exactly what version of Struts are you using? Is it 1.1RC1, or the nightly build? > -Original Message- > From: Alonso, Damian [mailto:[EMAIL PROTECTED] > > Yes I do have the file 'application.properties' in my > WEB-INF/classes/resources folder. Unfortunately I could not download that > tool you suggested (must be a missing link in their site) so any other > suggestions would be grateful. > > Thanks for the feedback, > > Damian. > > -Original Message- > From: Karr, David [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 26, 2003 9:50 AM > To: Struts Users Mailing List > Subject: RE: not showing anything! > > And in your deployed WAR file, a file named "application.properties" is > in the directory "WEB-INF/classes/resources"? > > In times like this, if I can't figure out why something isn't finding a > file I think it should find, I like to set up a "file I/O monitor", that > basically tracks all system calls, and allows filtering or searching for > various strings in the output. In Windows, I tend to use a tool called > "FileMon", you can get from http://www.sysinternals.com. Unices have > similar tools. > > > -Original Message- > > From: Alonso, Damian [mailto:[EMAIL PROTECTED] > > > > I currently have a Struts 1.1 application that I am currently moving > to > > use > > frames and tiles. I am still not sure if my is not > working > > because I am using frames, or because it is not reading the > > application.properties. This is where I need your help! :-) > > > > When I expect an error, I was getting the expected error on my form > page. > > As read in other posts, I wanted to check if my errors where actually > > getting processed, so in my struts-config.xml file, I added the > following > > to > > my message-resources definition. > > > > > > > > After putting the null="false", I was able to get my Error Key to > appear > > in > > the page but it didn't translate to the message I have in my > > application.properties file. > > > > This is what I now see: > > > > ???en_US.ALL_FIELDS_NULL??? > > > > Any ideas on why I cannot see my error messages?? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > www.sensis.com.au > > A leading Australian advertising, information > and directories business. > > www.yellowpages.com.au > www.whitepages.com.au > www.citysearch.com.au > www.whereis.com.au > www.telstra.com.au > > This email and any attachments are intended only for the use of the > recipient and may be confidential and/or legally privileged. > Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, > loss and/or damage arising from using, opening or transmitting this email. > If you are not the intended recipient you must not use, interfere with, > disclose, copy or retain this email and you should notify the sender > immediately by return email or by contacting Sensis Pty Ltd by telephone > on [+61 3 9201 4888] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] www.sensis.com.au A leading Australian advertising, information and directories business. www.yellowpages.com.au www.whitepages.com.au www.citysearch.com.au www.whereis.com.au www.telstra.com.au This email and any attachments are intended only for the use of the recipient and
RE: not showing anything!
It was Struts 1.1 RC1. -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 10:08 AM To: Struts Users Mailing List Subject: RE: not showing anything! After you wrote this, I tried to get a new version of that utility, and the download link is working fine. On your original problem, exactly what version of Struts are you using? Is it 1.1RC1, or the nightly build? > -Original Message- > From: Alonso, Damian [mailto:[EMAIL PROTECTED] > > Yes I do have the file 'application.properties' in my > WEB-INF/classes/resources folder. Unfortunately I could not download that > tool you suggested (must be a missing link in their site) so any other > suggestions would be grateful. > > Thanks for the feedback, > > Damian. > > -Original Message- > From: Karr, David [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 26, 2003 9:50 AM > To: Struts Users Mailing List > Subject: RE: not showing anything! > > And in your deployed WAR file, a file named "application.properties" is > in the directory "WEB-INF/classes/resources"? > > In times like this, if I can't figure out why something isn't finding a > file I think it should find, I like to set up a "file I/O monitor", that > basically tracks all system calls, and allows filtering or searching for > various strings in the output. In Windows, I tend to use a tool called > "FileMon", you can get from http://www.sysinternals.com. Unices have > similar tools. > > > -Original Message- > > From: Alonso, Damian [mailto:[EMAIL PROTECTED] > > > > I currently have a Struts 1.1 application that I am currently moving > to > > use > > frames and tiles. I am still not sure if my is not > working > > because I am using frames, or because it is not reading the > > application.properties. This is where I need your help! :-) > > > > When I expect an error, I was getting the expected error on my form > page. > > As read in other posts, I wanted to check if my errors where actually > > getting processed, so in my struts-config.xml file, I added the > following > > to > > my message-resources definition. > > > > > > > > After putting the null="false", I was able to get my Error Key to > appear > > in > > the page but it didn't translate to the message I have in my > > application.properties file. > > > > This is what I now see: > > > > ???en_US.ALL_FIELDS_NULL??? > > > > Any ideas on why I cannot see my error messages?? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > www.sensis.com.au > > A leading Australian advertising, information > and directories business. > > www.yellowpages.com.au > www.whitepages.com.au > www.citysearch.com.au > www.whereis.com.au > www.telstra.com.au > > This email and any attachments are intended only for the use of the > recipient and may be confidential and/or legally privileged. > Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, > loss and/or damage arising from using, opening or transmitting this email. > If you are not the intended recipient you must not use, interfere with, > disclose, copy or retain this email and you should notify the sender > immediately by return email or by contacting Sensis Pty Ltd by telephone > on [+61 3 9201 4888] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] www.sensis.com.au A leading Australian advertising, information and directories business. www.yellowpages.com.au www.whitepages.com.au www.citysearch.com.au www.whereis.com.au www.telstra.com.au This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged. Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email. If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 9201 4888] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: not showing anything!
Yes I do have the file 'application.properties' in my WEB-INF/classes/resources folder. Unfortunately I could not download that tool you suggested (must be a missing link in their site) so any other suggestions would be grateful. Thanks for the feedback, Damian. -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 9:50 AM To: Struts Users Mailing List Subject: RE: not showing anything! And in your deployed WAR file, a file named "application.properties" is in the directory "WEB-INF/classes/resources"? In times like this, if I can't figure out why something isn't finding a file I think it should find, I like to set up a "file I/O monitor", that basically tracks all system calls, and allows filtering or searching for various strings in the output. In Windows, I tend to use a tool called "FileMon", you can get from http://www.sysinternals.com. Unices have similar tools. > -Original Message- > From: Alonso, Damian [mailto:[EMAIL PROTECTED] > > I currently have a Struts 1.1 application that I am currently moving to > use > frames and tiles. I am still not sure if my is not working > because I am using frames, or because it is not reading the > application.properties. This is where I need your help! :-) > > When I expect an error, I was getting the expected error on my form page. > As read in other posts, I wanted to check if my errors where actually > getting processed, so in my struts-config.xml file, I added the following > to > my message-resources definition. > > > > After putting the null="false", I was able to get my Error Key to appear > in > the page but it didn't translate to the message I have in my > application.properties file. > > This is what I now see: > > ???en_US.ALL_FIELDS_NULL??? > > Any ideas on why I cannot see my error messages?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] www.sensis.com.au A leading Australian advertising, information and directories business. www.yellowpages.com.au www.whitepages.com.au www.citysearch.com.au www.whereis.com.au www.telstra.com.au This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged. Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email. If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 9201 4888] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
not showing anything!
I currently have a Struts 1.1 application that I am currently moving to use frames and tiles. I am still not sure if my is not working because I am using frames, or because it is not reading the application.properties. This is where I need your help! :-) When I expect an error, I was getting the expected error on my form page. As read in other posts, I wanted to check if my errors where actually getting processed, so in my struts-config.xml file, I added the following to my message-resources definition. After putting the null="false", I was able to get my Error Key to appear in the page but it didn't translate to the message I have in my application.properties file. This is what I now see: ???en_US.ALL_FIELDS_NULL??? Any ideas on why I cannot see my error messages?? Thanks in advance, Damian. www.sensis.com.au A leading Australian advertising, information and directories business. www.yellowpages.com.au www.whitepages.com.au www.citysearch.com.au www.whereis.com.au www.telstra.com.au This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged. Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email. If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 9201 4888]
Tiles Error
Hi Everyone, I am trying to migrate my app to use Tiles (using Struts 1.1 RC 1). I am currently getting the following error trying to load my first page: org.apache.jasper.JasperException: Warning - Tag put : Bad type 'path'. at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 48) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) ... [snip] Does anyone know why this exception occurs?? Thanks in advance, Damian. www.sensis.com.au A leading Australian advertising, information and directories business. www.yellowpages.com.au www.whitepages.com.au www.citysearch.com.au www.whereis.com.au www.telstra.com.au This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged. Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email. If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 9201 4888]
Using Struts 1.1 RC1 Within Eclipse With Tomcat Plugin
Hi Everybody, I have downloaded the latest version of Struts, and I am currently trying to upgrade to the new Struts 1.1RC1 version. I currently have a project loaded in Eclipse, along with the Sysdeo Tomcat Plugin, and I can therefore run Tomcat from within my IDE, debug code, etc. Since I have upgraded to the new version of Struts, I have noticed that the commons-digester.jar clashes with Tomcat's jars for XML Parsing. Has anyone using Eclipse to build Struts 1.1 + applications managed to get their Tomcat plugin working?? (and how you did that would be nice 2 :-)) Thanks in advance, Damian. Stack Trace: [2003-03-19 06:54:23] [ERROR] <> java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252 ) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1268) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:459) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:572) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java :727) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(XMLDocumentScannerImpl.java:957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1544) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117 5) at org.apache.commons.digester.Digester.parse(Digester.java:1543) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at org.apache.commons.digester.Digester.createSAXException(Digester.java:2383) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2409) at org.apache.commons.digester.Digester.startElement(Digester.java:1271) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j ava:459) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.ja va:572) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java :727) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo cumentFragmentScannerImpl.java:759) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem entHook(XMLDocumentScannerImpl.java:957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1544) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117 5