maybe OT: help in customizing error pages
i am trying to customize 404 error pages: but i can't seem to get the original URI that caused the error: i.e. http://myhost/blahasdfasfsd i search the web and found these but they all return null. System.out.println("javax.servlet.forward.request_uri : " + request.getAttribute("javax.servlet.forward.request_uri")); System.out.println("javax.servlet.forward.context_path : " + request.getAttribute("javax.servlet.forward.context_path")); System.out.println("javax.servlet.forward.servlet_path : " + request.getAttribute("javax.servlet.forward.servlet_path")); System.out.println("javax.servlet.forward.path_info : " + request.getAttribute("javax.servlet.forward.path_info")); System.out.println("javax.servlet.forward.query_string : " + request.getAttribute("javax.servlet.forward.query_string")); can someone help me. thx Richard
Generic form bean in session
Hello all, We are planning to use a generic form bean for all forms. When two browser windows are open with different forms, and the form is submitted, there is a chance for the values in form bean from one form to be dumped into the form bean into the other form. Is there a standard way to resolve this issue. I checked the saveToken() and isTokenValid() method, but I dont feel this will help. Please let me know if there is any standard way or work around to resolve this issue. Regards, Vijay Sargunam Icicle Consultancy, Web: www.icicleconsultancy.com
Struts Config for JRun FYI....
I'm not sure if this is old news or not, but hopefully it might be of help to others I've spent most of the weekend trying to configure a Struts 1.1 web app on a JRun 3.x server. When I would try and start the web app the event log would show an error indicating that it could not instantiate org.apache.struts.action.ActionServlet. I spent the better part of the weekend trying to figure out why this was happening. I develop locally with JBuilder 7 and when testing, the app worked fine; it only bombed when deployed to the JRun server. After countless hours searching, I found an old posting that said JRun 3.x could not support Struts 1.1 it would only support version 1.0. This being the case, I downloaded the 1.0 version and commenced to converting all of the necessary class files. Once the conversion was complete, I deployed the "new" web app version to the JRun server and it worked. I do however have one "glitch" I'm trying to resolve For some reason I must now use the full package names when referring to various bean classes, even if I import them into the JSP For example, <%@ page import="biz.minimoon.beans.*" %> doesn't seem to do any good I still have to reference classes individually with the entire package name when I want to use them This is even true if I import java.util.* in order to use a Collection or ArrayList, I still have to use the entire package name in order for it to work If anyone has any suggestions for my remaining bug, I'd appreciate it. Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ValidatorForm losing params when validation fails
The validate method of the form would be called before the execute method of action .. Why do you have to call the form.validate(mapping, request) explicitly , I doth think this code in acton would be executed if the validation fails ... -Original Message- From: Marc Dugger [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 6:45 AM To: [EMAIL PROTECTED] Subject: ValidatorForm losing params when validation fails The following code fragment is used in a DispatchAction and when the validation fails, the input form is returned unpopulated because all my form fields lose the data that was originally sent with the request: ActionErrors errors = form.validate(mapping, request); if (!errors.isEmpty()) { saveMessages(request, errors); return mapping.getInputForward(); } My form extends ValidatorForm and I have not overridden reset(). Why is the form losing it's parameters? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dynamic page contentType
Good afternoon... Sorry, I'm new to Struts so I need a bit more context than that. Do use the method below in my Action object? And then use different Forwards depending on whether the result is to be in HTML or XML? Or do I check in the JSP what my content-type is set to and output the correct output? Schultz. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: November 8, 2003 9:15 AM To: Struts Users Mailing List Subject: Re: Dynamic page contentType On 11/07/2003 10:16 PM Eric SCHULTZ wrote: > I'm developing an application in Struts that outputs primarily XML; but in > some instances I need it to output HTML of the same ActionForms and Actions. > Is there a way I can change the page forwarded in the Forward depending on > some flag or property?! > > Or is there someway I can set the JSP to output text/html or text/xml > depending on some flag or property (and obviously generate the correct > section based on the flag)? response.setHeader("Content-type", "text/xml"); Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hello World gone wrong
Hi, I was wondering if someone could help me with this problem that I have. I am trying to get a simple Hello World struts application to run and I keep getting this error: org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE I have tried running the web application under these two configurations: Tomcat Version: Apache Tomcat/4.1.29 JVM Version: 1.4.2_02-b03 JVM Vendor: Sun Microsystems Inc. OS Name: Windows XP (Pro) OS Versin: 5.1 OS Architecture: x86 and Tomcat Version: Apache Tomcat/4.1.27 JVM Version: 1.4.2_01-b06 JVM Vendor: Sun Microsystems Inc. OS Name: Linux (Red Hat 9) OS Versin: 2.4.20-8smp OS Architecture: i386 I get the same error message under both versions. I have tried searching the Internet for reasons as to why this would occur. I have tried putting the properties file in a package and jar'ing it up and using that to reference the resource bundle, and I received the same error message. If I don't use the bean:message to output the keys of the resource bundle and simply use the html:html and html:base, the output works fine. The minute I try to use a resource bundle, then I get the error message. It is almost as though the bean can't find the resource bundle at all. If anyone can help me or see something that I am missing, I would really appreciate it. Thanks. - Here is the directory structure of the web application: /hello.jsp /WEB-INF/web.xml /WEB-INF/struts-config.xml /WEB-INF/classes/HelloWorldMessageResources.properties /WEB-INF/lib/struts.jar /WEB-INF/tlds/struts-bean.tld /WEB-INF/tlds/struts-html.tld - Here is the hello.jsp file: <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> - Here is the struts-config.xml file: http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> - Here is the web.xml file: http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> Hello World Application This application simply displays the phrase "Hello World!" helloworld org.apache.struts.action.ActionServlet application HelloWorldMessageResources config /WEB-INF/struts-config.xml hello.jsp /WEB-INF/tlds/struts-html.tld /WEB-INF/tlds/struts-html.tld /WEB-INF/tlds/struts-bean.tld /WEB-INF/tlds/struts-bean.tld - Here is the HelloWorldMessageResources.properties file: # Page Titles title.helloworld=Hello World # Labels label.helloworld=Hello World! Richard Morris [EMAIL PROTECTED]
ValidatorForm losing params when validation fails
The following code fragment is used in a DispatchAction and when the validation fails, the input form is returned unpopulated because all my form fields lose the data that was originally sent with the request: ActionErrors errors = form.validate(mapping, request); if (!errors.isEmpty()) { saveMessages(request, errors); return mapping.getInputForward(); } My form extends ValidatorForm and I have not overridden reset(). Why is the form losing it's parameters? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't undeploy struts.jar in Tomcat 4.1.27
Good evening... Using Tomcat 4.1.27 (and JVM 1.4.2_02-b03 on Win2k) when I Remove my Struts application in the Manager the /myApp/WEB-INF/lib/struts.jar file doesn't get deleted. The original WAR file is deleted and the expanded directory contents are deleted, except the struts.jar file. If I try to delete it manually I'm told there's a sharing violation and the file is in-use. Once I stop the Tomcat service I can delete the jar file file though. If I don't delete the jar whenI try to re-install the WAR it copies the war doesn't expand it!? Any ideas on why or how to fix? This even happens when the web-app is running without errors. Is there something I need to do to "close" a session? Eric Schultz. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Slides from Craig's Struts/JSF Talk
The slides from Craig McClanahan's recent Struts/JSF talk are now available here: http://www.baychi.org/bof/struts/20031105a/ The talk was captured on digital video too. However, it may be several weeks before the video is available online. I'll send another announcement when the video is accessible online. That's all folks, Van Mike Van Riper Silicon Valley Struts User Group mailto:[EMAIL PROTECTED] http://www.baychi.org/bof/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuration Trouble
I have also looked for the following: org.apache.struts.action.MESSAGE which is part of an error that I am seeing when I search for it I do not find it in the package structure is it possible I need additional files? -Original Message- From: alvin antony [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 2:13 PM To: Struts Users Mailing List Subject: RE: Configuration Trouble Hello David, I note you are using Jrun3.0! I never had success to setup struts 1.1 with 3.0 but only with 3.1 and Jrun 4. It is worth to test with the new version. Alvin David Liles <[EMAIL PROTECTED]> wrote: Thanks for the info I've moved the log4j.jar file to servers/lib and restarted the app and still have the same problem. This is the first Struts project deployed on this server since being rebuilt so I know there are no other struts.jar files even searched to make sure >From the error being displayed at the dev URL (http://dev.minimoon.biz), it seems as >though JRun doesn't know how to interpret the struts tag when I change it back to >a standard tag the server then errors when it encounters the tag. The log says it can't instantiate [0]javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet Any other suggestions? -Original Message- From: alvin antony [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 1:02 PM To: Struts Users Mailing List Subject: RE: Configuration Trouble Hi, I had this error before. It seems to be a bug in the Jrun. please double check if the old version of jar files from struts1.0 are in the class path for jrun. It will even cause problems when an another web application running on the same Jrun with old version of struts. I also run into problems with Log4j , can solve this by puting Log4j.jar unter server/lib folder, I knew it is not very nice. HTH, Alvin David Liles wrote: I've double checked the path and I have the file in the classes\resources folder named application.properties. It is all lower case so I have no idea why it isn't picking it up -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 11:57 AM To: Struts Users Mailing List Subject: RE: Configuration Trouble David, Your message resources statement: Seems to requires this exact file name: "WEB-INF/classes/resources/application.properties" Did you perhaps name it with a capital "A? starting "Application.resources" and forget to update your struts-config.xml file? The JRUN error says it is the message resources (that config line above) which has no resources file, hence the struts app failing. Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:40 PM To: Struts Users Mailing List Subject: RE: Configuration Trouble I have also found this error in the JRun event log. This error occurs when I attempt to start the web app. 11/09 11:35:54 error (JRun) Could not pre-load servlet: action [javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet] [1]java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResources .java:577) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17 7) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:169) [0]javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:242) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17 7) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308)
RE: Configuration Trouble
Thanks Alvin we have JRun 4 but had to uninstall it because Macromedia removed the ability to have user accounts that can have limited access to different JRun instances As for version 3.1, is that an actual upgrade or is it a patch that we can download and install on to our 3.0 version? Thanks -Original Message- From: alvin antony [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 2:13 PM To: Struts Users Mailing List Subject: RE: Configuration Trouble Hello David, I note you are using Jrun3.0! I never had success to setup struts 1.1 with 3.0 but only with 3.1 and Jrun 4. It is worth to test with the new version. Alvin David Liles <[EMAIL PROTECTED]> wrote: Thanks for the info I've moved the log4j.jar file to servers/lib and restarted the app and still have the same problem. This is the first Struts project deployed on this server since being rebuilt so I know there are no other struts.jar files even searched to make sure >From the error being displayed at the dev URL (http://dev.minimoon.biz), it seems as >though JRun doesn't know how to interpret the struts tag when I change it back to >a standard tag the server then errors when it encounters the tag. The log says it can't instantiate [0]javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet Any other suggestions? -Original Message- From: alvin antony [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 1:02 PM To: Struts Users Mailing List Subject: RE: Configuration Trouble Hi, I had this error before. It seems to be a bug in the Jrun. please double check if the old version of jar files from struts1.0 are in the class path for jrun. It will even cause problems when an another web application running on the same Jrun with old version of struts. I also run into problems with Log4j , can solve this by puting Log4j.jar unter server/lib folder, I knew it is not very nice. HTH, Alvin David Liles wrote: I've double checked the path and I have the file in the classes\resources folder named application.properties. It is all lower case so I have no idea why it isn't picking it up -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 11:57 AM To: Struts Users Mailing List Subject: RE: Configuration Trouble David, Your message resources statement: Seems to requires this exact file name: "WEB-INF/classes/resources/application.properties" Did you perhaps name it with a capital "A? starting "Application.resources" and forget to update your struts-config.xml file? The JRUN error says it is the message resources (that config line above) which has no resources file, hence the struts app failing. Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:40 PM To: Struts Users Mailing List Subject: RE: Configuration Trouble I have also found this error in the JRun event log. This error occurs when I attempt to start the web app. 11/09 11:35:54 error (JRun) Could not pre-load servlet: action [javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet] [1]java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResources .java:577) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17 7) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:169) [0]javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:242) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoad
RE: Configuration Trouble
Hello David, I note you are using Jrun3.0! I never had success to setup struts 1.1 with 3.0 but only with 3.1 and Jrun 4. It is worth to test with the new version. Alvin David Liles <[EMAIL PROTECTED]> wrote: Thanks for the info I've moved the log4j.jar file to servers/lib and restarted the app and still have the same problem. This is the first Struts project deployed on this server since being rebuilt so I know there are no other struts.jar files even searched to make sure >From the error being displayed at the dev URL (http://dev.minimoon.biz), it seems as >though JRun doesn't know how to interpret the struts tag when I change it back to >a standard tag the server then errors when it encounters the tag. The log says it can't instantiate [0]javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet Any other suggestions? -Original Message- From: alvin antony [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 1:02 PM To: Struts Users Mailing List Subject: RE: Configuration Trouble Hi, I had this error before. It seems to be a bug in the Jrun. please double check if the old version of jar files from struts1.0 are in the class path for jrun. It will even cause problems when an another web application running on the same Jrun with old version of struts. I also run into problems with Log4j , can solve this by puting Log4j.jar unter server/lib folder, I knew it is not very nice. HTH, Alvin David Liles wrote: I've double checked the path and I have the file in the classes\resources folder named application.properties. It is all lower case so I have no idea why it isn't picking it up -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 11:57 AM To: Struts Users Mailing List Subject: RE: Configuration Trouble David, Your message resources statement: Seems to requires this exact file name: "WEB-INF/classes/resources/application.properties" Did you perhaps name it with a capital "A? starting "Application.resources" and forget to update your struts-config.xml file? The JRUN error says it is the message resources (that config line above) which has no resources file, hence the struts app failing. Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:40 PM To: Struts Users Mailing List Subject: RE: Configuration Trouble I have also found this error in the JRun event log. This error occurs when I attempt to start the web app. 11/09 11:35:54 error (JRun) Could not pre-load servlet: action [javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet] [1]java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResources .java:577) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17 7) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:169) [0]javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:242) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17 7) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.se
RE: Configuration Trouble
Thanks for the info I've moved the log4j.jar file to servers/lib and restarted the app and still have the same problem. This is the first Struts project deployed on this server since being rebuilt so I know there are no other struts.jar files even searched to make sure >From the error being displayed at the dev URL (http://dev.minimoon.biz), it seems as >though JRun doesn't know how to interpret the struts tag when I >change it back to a standard tag the server then errors when it encounters the > tag. The log says it can't instantiate [0]javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet Any other suggestions? -Original Message- From: alvin antony [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 1:02 PM To: Struts Users Mailing List Subject: RE: Configuration Trouble Hi, I had this error before. It seems to be a bug in the Jrun. please double check if the old version of jar files from struts1.0 are in the class path for jrun. It will even cause problems when an another web application running on the same Jrun with old version of struts. I also run into problems with Log4j , can solve this by puting Log4j.jar unter server/lib folder, I knew it is not very nice. HTH, Alvin David Liles <[EMAIL PROTECTED]> wrote: I've double checked the path and I have the file in the classes\resources folder named application.properties. It is all lower case so I have no idea why it isn't picking it up -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 11:57 AM To: Struts Users Mailing List Subject: RE: Configuration Trouble David, Your message resources statement: Seems to requires this exact file name: "WEB-INF/classes/resources/application.properties" Did you perhaps name it with a capital "A? starting "Application.resources" and forget to update your struts-config.xml file? The JRUN error says it is the message resources (that config line above) which has no resources file, hence the struts app failing. Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:40 PM To: Struts Users Mailing List Subject: RE: Configuration Trouble I have also found this error in the JRun event log. This error occurs when I attempt to start the web app. 11/09 11:35:54 error (JRun) Could not pre-load servlet: action [javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet] [1]java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResources .java:577) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17 7) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:169) [0]javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:242) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17 7) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletSer
mapped properties, checkboxes, and optionsCollection
I have two problems that I think are related, so I'm including them both in this email. I'm using Struts 1.1. Problem #1: I am trying to use a mapped property on an html:checkbox, and it does not appear to be setting the value of the property to true if the checkbox is checked and submitted. This is the line in my JSP: In the reset method I set all Boolean objects in the map to Boolean.FALSE as indicated in the html taglib documentation. It works fine if I use a "scalar" field with a boolean primitive like the following: protected boolean booleanValue = false; public void setBooleanValue(boolean value)... public boolean getBooleanValue()... and I'm wondering if there is a problem where the mapped property is not being set properly (since checkbox is probably trying to set a boolean value instead of Boolean). Has anyone else encountered this before? Problem #2 I am trying to use another mapped property in the same ActionForm implementation on an html:optionsCollection. I initialize the dbList's value in the Map and the optionsCollection loads properly in the browser. However, on submission I only get the first value if multiple values of the list are submitted in the Map for the selectedDb key. I suspect there might be a problem setting the String array in the Map for some reason. I also tried this with a "scalar" field and it worked just fine: protected String[] selectedDbList = null; public String[] getSelectedDbList() { return (this.dbList); } public void setSelectedDbList(String[] selectedDbList) { this.selectedDbList = selectedDbList; } and I get the impression that both these problems are bugs, and if so, I'd be interested in looking into how to fix them. So, if anyone has a idea where I should look first it would be very helpful. Or, if they're not bugs, I'd really appreciate any help you can offer. -- John Hayes <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuration Trouble
Hi, I had this error before. It seems to be a bug in the Jrun. please double check if the old version of jar files from struts1.0 are in the class path for jrun. It will even cause problems when an another web application running on the same Jrun with old version of struts. I also run into problems with Log4j , can solve this by puting Log4j.jar unter server/lib folder, I knew it is not very nice. HTH, Alvin David Liles <[EMAIL PROTECTED]> wrote: I've double checked the path and I have the file in the classes\resources folder named application.properties. It is all lower case so I have no idea why it isn't picking it up -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 11:57 AM To: Struts Users Mailing List Subject: RE: Configuration Trouble David, Your message resources statement: Seems to requires this exact file name: "WEB-INF/classes/resources/application.properties" Did you perhaps name it with a capital "A? starting "Application.resources" and forget to update your struts-config.xml file? The JRUN error says it is the message resources (that config line above) which has no resources file, hence the struts app failing. Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:40 PM To: Struts Users Mailing List Subject: RE: Configuration Trouble I have also found this error in the JRun event log. This error occurs when I attempt to start the web app. 11/09 11:35:54 error (JRun) Could not pre-load servlet: action [javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet] [1]java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResources .java:577) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17 7) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:169) [0]javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:242) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17 7) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:169) -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 11:23 AM To: Struts Users Mailing List Subject: RE: Configuration Trouble David, What classes or taglibs are called from that index.jsp? Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: Configuration Trouble I am having trouble getting a struts web app to work on a JRun 3.0 SP2a server. When I develop and test locally (JBuilder 7) I do not have any problems, but as soon as I deploy the war to the JRun server I get errors. All of the necessary jar files are in the web app/WEB-INF/lib folder and not in the JRun servers/lib folder. I'll in
RE: Configuration Trouble
I've double checked the path and I have the file in the classes\resources folder named application.properties. It is all lower case so I have no idea why it isn't picking it up -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 11:57 AM To: Struts Users Mailing List Subject: RE: Configuration Trouble David, Your message resources statement: Seems to requires this exact file name: "WEB-INF/classes/resources/application.properties" Did you perhaps name it with a capital "A? starting "Application.resources" and forget to update your struts-config.xml file? The JRUN error says it is the message resources (that config line above) which has no resources file, hence the struts app failing. Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:40 PM To: Struts Users Mailing List Subject: RE: Configuration Trouble I have also found this error in the JRun event log. This error occurs when I attempt to start the web app. 11/09 11:35:54 error (JRun) Could not pre-load servlet: action [javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet] [1]java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResources .java:577) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17 7) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:169) [0]javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:242) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17 7) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:169) -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 11:23 AM To: Struts Users Mailing List Subject: RE: Configuration Trouble David, What classes or taglibs are called from that index.jsp? Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: Configuration Trouble I am having trouble getting a struts web app to work on a JRun 3.0 SP2a server. When I develop and test locally (JBuilder 7) I do not have any problems, but as soon as I deploy the war to the JRun server I get errors. All of the necessary jar files are in the web app/WEB-INF/lib folder and not in the JRun servers/lib folder. I'll include the error message and struts-config.xml file. I've tried to contact Macromedia but haven't gotten any response. Is anyone using JRun with Struts? Thanks error mess
RE: Configuration Trouble
David, Your message resources statement: Seems to requires this exact file name: "WEB-INF/classes/resources/application.properties" Did you perhaps name it with a capital "A? starting "Application.resources" and forget to update your struts-config.xml file? The JRUN error says it is the message resources (that config line above) which has no resources file, hence the struts app failing. Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:40 PM To: Struts Users Mailing List Subject: RE: Configuration Trouble I have also found this error in the JRun event log. This error occurs when I attempt to start the web app. 11/09 11:35:54 error (JRun) Could not pre-load servlet: action [javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet] [1]java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResources .java:577) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17 7) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:169) [0]javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:242) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17 7) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader .java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:169) -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 11:23 AM To: Struts Users Mailing List Subject: RE: Configuration Trouble David, What classes or taglibs are called from that index.jsp? Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: Configuration Trouble I am having trouble getting a struts web app to work on a JRun 3.0 SP2a server. When I develop and test locally (JBuilder 7) I do not have any problems, but as soon as I deploy the war to the JRun server I get errors. All of the necessary jar files are in the web app/WEB-INF/lib folder and not in the JRun servers/lib folder. I'll include the error message and struts-config.xml file. I've tried to contact Macromedia but haven't gotten any response. Is anyone using JRun with Struts? Thanks error message: /: javax.servlet.ServletException: Exception thrown on line '4' from page 'E:\\www\\dev_minimoon\\index.jsp'. java.lang.NoClassDefFoundError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at
RE: Configuration Trouble
I have also found this error in the JRun event log. This error occurs when I attempt to start the web app. 11/09 11:35:54 error (JRun) Could not pre-load servlet: action [javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet] [1]java.lang.NullPointerException at org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:577) at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:236) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:177) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:169) [0]javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:242) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:190) at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:177) at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308) at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:236) at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621) at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96) at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187) at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.init(ServletService.java:31) at JRun.main(JRun.java:169) -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 11:23 AM To: Struts Users Mailing List Subject: RE: Configuration Trouble David, What classes or taglibs are called from that index.jsp? Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: Configuration Trouble I am having trouble getting a struts web app to work on a JRun 3.0 SP2a server. When I develop and test locally (JBuilder 7) I do not have any problems, but as soon as I deploy the war to the JRun server I get errors. All of the necessary jar files are in the web app/WEB-INF/lib folder and not in the JRun servers/lib folder. I'll include the error message and struts-config.xml file. I've tried to contact Macromedia but haven't gotten any response. Is anyone using JRun with Struts? Thanks error message: /: javax.servlet.ServletException: Exception thrown on line '4' from page 'E:\\www\\dev_minimoon\\index.jsp'. java.lang.NoClassDefFoundError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at allaire.jrun.jsp.JRunJSPStaticHelpers.createTagHandler(JRunJSPStaticHelpers. java:47) at jrun__index2ejspa._jspService(jrun__index2ejspa.java:38) at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936) at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34 ) at allaire.jrun.jsp.
RE: Configuration Trouble
Below is the index.jsp and related pages here is the url to the dev site: dev.minimoon.biz it seems as though the server is bombing at the tag index.jsp <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> header.jsp <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> header nav.jsp <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> <% String menu = ""; %> <% if(request.getServerName().equalsIgnoreCase("devadmin.minimoon.biz") || request.getServerName().equalsIgnoreCase("admin.minimoon.biz")) { %> <% menu = "Admin"; %> <% } else { %> <% menu = "Public"; %> <% } %> <%= menu %> Menu bracelets neclaces charms accessories main.jsp <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> main body of home page -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 11:23 AM To: Struts Users Mailing List Subject: RE: Configuration Trouble David, What classes or taglibs are called from that index.jsp? Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: Configuration Trouble I am having trouble getting a struts web app to work on a JRun 3.0 SP2a server. When I develop and test locally (JBuilder 7) I do not have any problems, but as soon as I deploy the war to the JRun server I get errors. All of the necessary jar files are in the web app/WEB-INF/lib folder and not in the JRun servers/lib folder. I'll include the error message and struts-config.xml file. I've tried to contact Macromedia but haven't gotten any response. Is anyone using JRun with Struts? Thanks error message: /: javax.servlet.ServletException: Exception thrown on line '4' from page 'E:\\www\\dev_minimoon\\index.jsp'. java.lang.NoClassDefFoundError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at allaire.jrun.jsp.JRunJSPStaticHelpers.createTagHandler(JRunJSPStaticHelpers. java:47) at jrun__index2ejspa._jspService(jrun__index2ejspa.java:38) at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936) at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34 ) at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:177) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936) at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav a:88) at allaire.jrun.file.FileServlet.service(FileServlet.java:179) at allaire.jrun.servlet.JRunServletPool.service(JRunServletPool.java:92) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936) at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav a:88) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1163) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1153) at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330) at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:382) at allaire.jrun.ThreadPool.run(ThreadPool.java:272) at allaire.jrun.WorkerThread.run(WorkerThread.java:75) struts-config.xml: http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -
RE: Configuration Trouble
David, What classes or taglibs are called from that index.jsp? Regards, David -Original Message- From: David Liles [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: Configuration Trouble I am having trouble getting a struts web app to work on a JRun 3.0 SP2a server. When I develop and test locally (JBuilder 7) I do not have any problems, but as soon as I deploy the war to the JRun server I get errors. All of the necessary jar files are in the web app/WEB-INF/lib folder and not in the JRun servers/lib folder. I'll include the error message and struts-config.xml file. I've tried to contact Macromedia but haven't gotten any response. Is anyone using JRun with Struts? Thanks error message: /: javax.servlet.ServletException: Exception thrown on line '4' from page 'E:\\www\\dev_minimoon\\index.jsp'. java.lang.NoClassDefFoundError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at allaire.jrun.jsp.JRunJSPStaticHelpers.createTagHandler(JRunJSPStaticHelpers. java:47) at jrun__index2ejspa._jspService(jrun__index2ejspa.java:38) at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936) at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34 ) at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:177) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936) at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav a:88) at allaire.jrun.file.FileServlet.service(FileServlet.java:179) at allaire.jrun.servlet.JRunServletPool.service(JRunServletPool.java:92) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936) at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav a:88) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1163) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1153) at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330) at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:382) at allaire.jrun.ThreadPool.run(ThreadPool.java:272) at allaire.jrun.WorkerThread.run(WorkerThread.java:75) struts-config.xml: http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> - 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]
Configuration Trouble
I am having trouble getting a struts web app to work on a JRun 3.0 SP2a server. When I develop and test locally (JBuilder 7) I do not have any problems, but as soon as I deploy the war to the JRun server I get errors. All of the necessary jar files are in the web app/WEB-INF/lib folder and not in the JRun servers/lib folder. I'll include the error message and struts-config.xml file. I've tried to contact Macromedia but haven't gotten any response. Is anyone using JRun with Struts? Thanks error message: /: javax.servlet.ServletException: Exception thrown on line '4' from page 'E:\\www\\dev_minimoon\\index.jsp'. java.lang.NoClassDefFoundError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at allaire.jrun.jsp.JRunJSPStaticHelpers.createTagHandler(JRunJSPStaticHelpers.java:47) at jrun__index2ejspa._jspService(jrun__index2ejspa.java:38) at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936) at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34) at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:177) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936) at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88) at allaire.jrun.file.FileServlet.service(FileServlet.java:179) at allaire.jrun.servlet.JRunServletPool.service(JRunServletPool.java:92) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936) at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1163) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1153) at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330) at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:382) at allaire.jrun.ThreadPool.run(ThreadPool.java:272) at allaire.jrun.WorkerThread.run(WorkerThread.java:75) struts-config.xml: http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: use of several layout-definitions
Hi Adam, first of all thanks for your reply. As you might have noticed I am not so familiar with tiles and struts as I 'd like to be. You should not be to much confused about the jsf extensions. I only use them to seperate "executable" pages from others, that are only included by other pages. Hence, the only executable file (or main page) is moduls.jsp. So far I haven't tried to use tiles-def.xml, but maybe I should switch to that. The use of the content-type is a mistake since I meant body-content which should refer to the attribute used in the mainLayout.jsf. regards, Dominik - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, November 09, 2003 11:34 AM Subject: Re: use of several layout-definitions > Hi Dominik, > it's not clear exactly which is your main page that you request from the > browser. I use tiles-defs.xml as the repository for all my definitions, > and I am no longer familiar with the other method that you are using - > in fact I am even unsure whether you are using JavaServer Faces - is > that why the files have .jsf endings? > > From the start I found the tiles-defs.xml method superior. Have you > checked it out? > > Also, I'm confused by your use of 'content-type': does that refer simply > to a tiles attribute or are you also using it somehow to specify the > response header content-type and charset? If so, it's not obvious, and > if not, it's probably at best misleading to use the term 'content-type' > as a name for a tiles definition. > > HTH > Adam > > On 11/08/2003 04:37 PM Dominik Stöttner wrote: > > I am trying to redesign a site with tiles and want to use several > > layout-definitions. One for the layout of the whole site and several for the > > different types of content. Hence, my question: Is it possible to predefine > > the attributes in only one definition-file that refers to the mainLayout? > > > > As you can see from the enclosed code-snippets I predefine all attributes > > (including the modul-attributes form the modulLayout) in the > > mainContnetDef.jsf although I define the content-type attribute(which refers > > to the modulLayout) in the modul.jsp. Is that possible so? Or do I have to > > write a extra definition for the modulLayout? > > > > thanks in advance!! > > dominik > > > > <%-- mainLayout.jsf --%> > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > > <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > <%-- modulLayout.jsf --%> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > <%-- mainContentDef.jsf --%> > > <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> > > > page="/layouts/mainLayout.jsp" scope="request"> > > > > > > > > > > > > > > > > > > <%-- modules.jsp --%> > > <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> > > <[EMAIL PROTECTED] file="../common/mainContentDef.jsf" %> > > > > > > > > > -- > struts 1.1 + tomcat 5.0.12 + java 1.4.2 > Linux 2.4.20 RH9 > > > - > 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]
Re: Fwd: Please Help !! Can't Display ActionMessages
Hi Kam, it's not obvious what is going wrong. What error message are you expecting? Do you see the "There were errors" text? Adam On 11/09/2003 08:55 AM Kam Lung Leung wrote: --- Start of forwarded message --- Subject: Please Help !! Can't Display ActionMessages From: "Kam Lung Leung" <[EMAIL PROTECTED]> Date: Sat, 08 Nov 2003 18:22:07 -0700 (MST) To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Hi, I am trying to follow the logon example of the struts-example.war. However, I can not see the error messages print on the logon.jsp. Any suggestion is greatly appreciated. here is the part that display the errors on my logon.jsp >> There were errors>> < Here is may ActionLogon.java > ActionMessages actionsMsgs = new ActionMessages(); // Validate the request parameters specified by the user String username = (String) PropertyUtils.getSimpleProperty(form, "userName"); String password = (String) PropertyUtils.getSimpleProperty(form, "password"); try { if (lookUpUser(password, username) == false) { actionsMsgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("adminLogonForm.error.password")); } } catch (Exception ex) { // Report any actionsMsgs we have discovered back to the original form actionsMsgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("adminLogonForm.error.password", ex.toString())); saveMessages(request,actionsMsgs); if (log.isDebugEnabled()) { log.debug("validation of user passwword failed for username:" +username ); log.debug("End of execute "); } return (mapping.getInputForward()); } //end try-catch if (log.isDebugEnabled()) { log.debug("execute : password validation ended for user : " + username ); } // Report any actionsMsgs we have discovered back to the original form if (!actionsMsgs.isEmpty()) { saveMessages(request, actionsMsgs); if (log.isDebugEnabled()) { log.debug("validation of user passwword failed for username:" + username ); log.debug("End of execute "); } return (mapping.getInputForward()); } server.log > DEBUG [org.apache.commons.beanutils.ConvertUtils] Convert string 'kamhoho' to class 'java.lang.String' DEBUG [org.apache.commons.beanutils.ConvertUtils] Using converter [EMAIL PROTECTED] DEBUG [org.apache.commons.beanutils.BeanUtils] setProperty([EMAIL PROTECTED], userName, [tytyty]) DEBUG [org.apache.commons.beanutils.ConvertUtils] Convert string 'tytyty' to class 'java.lang.String' DEBUG [org.apache.commons.beanutils.ConvertUtils] Using converter [EMAIL PROTECTED] DEBUG [org.apache.struts.action.RequestProcessor] Validating input form properties DEBUG [org.apache.struts.action.RequestProcessor] No errors detected, accepting input DEBUG [org.apache.struts.action.RequestProcessor] Looking for Action instance for class com.wlwa.Infra.WebComponemt.Dispatcher.Actions.AdminLogonAction DEBUG [org.apache.struts.action.RequestProcessor] Returning existing Action instance DEBUG [com.wlwa.Infra.WebComponemt.Dispatcher.Action.AdminLogonAction] Begin of execute DEBUG [com.wlwa.Infra.WebComponemt.Dispatcher.Action.AdminLogonAction] execute : password validation ended for user : tytyty DEBUG [com.wlwa.Infra.WebComponemt.Dispatcher.Action.AdminLogonAction] End of execute DEBUG [org.apache.struts.tiles.TilesRequestProcessor] processForwardConfig(/Infra/WebComponemt/Presentation/index.jsp, false) DEBUG [org.apache.struts.tiles.TilesRequestProcessor] '/Infra/WebComponemt/Presentation/index.jsp' - processed as uri DEBUG [org.apache.struts.action.RequestProcessor] processForwardConfig(ForwardConfig[name=success,path=/Infra/WebComponemt/Presentation/index.jsp,redirect=false,contextRelative=false]) -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: use of several layout-definitions
Hi Dominik, it's not clear exactly which is your main page that you request from the browser. I use tiles-defs.xml as the repository for all my definitions, and I am no longer familiar with the other method that you are using - in fact I am even unsure whether you are using JavaServer Faces - is that why the files have .jsf endings? From the start I found the tiles-defs.xml method superior. Have you checked it out? Also, I'm confused by your use of 'content-type': does that refer simply to a tiles attribute or are you also using it somehow to specify the response header content-type and charset? If so, it's not obvious, and if not, it's probably at best misleading to use the term 'content-type' as a name for a tiles definition. HTH Adam On 11/08/2003 04:37 PM Dominik Stöttner wrote: I am trying to redesign a site with tiles and want to use several layout-definitions. One for the layout of the whole site and several for the different types of content. Hence, my question: Is it possible to predefine the attributes in only one definition-file that refers to the mainLayout? > As you can see from the enclosed code-snippets I predefine all attributes (including the modul-attributes form the modulLayout) in the mainContnetDef.jsf although I define the content-type attribute(which refers to the modulLayout) in the modul.jsp. Is that possible so? Or do I have to write a extra definition for the modulLayout? thanks in advance!! dominik <%-- mainLayout.jsf --%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> <%-- modulLayout.jsf --%> <%-- mainContentDef.jsf --%> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> <%-- modules.jsp --%> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> <[EMAIL PROTECTED] file="../common/mainContentDef.jsf" %> -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Best Practices.. Paper for Review pls
Hi Puneet, I think you need to check your HTML in Mozilla. Under 'Designing screens for variable number of fields' Mozilla shows no code and some huge blank spaces between paragraphs. Otherwise it's a fine document. But I think it's always a difficult call to differentiate between describing 'best practices' and documenting your favourite features. ;) You might want to talk more about MVC, which is certainly a lynch pin for best practices in struts, IMHO. Adam On 11/08/2003 09:00 AM Ted Husted wrote: I started section in the wiki for a Struts Catalog of Design Patterns and Practices. http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsCatalog Please feel free to add your entries here, if you like. People can then add comments as to how they feel about the various practices. -Ted. Puneet Agarwal wrote: Hi All, I wrote a paper on Struts Best Practices...if you think it can be usefull to someone...Please review and give your valuable inputs... Check the paper at http://puneetdelhi.tripod.com Regards, Puneet Agarwal -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validator - Multiple Applicaiton Modules
Greetings, We have multiple modules (Sub application) in a application. Each module has its own struts-config file and validation file . The problem is in the application modules last loaded application module only getting validated rest other modules are not getting validated. So we forced to combine all the validation in one single file but we want to modularize the validation file also for each module. Tks and rgds, Senthivel U S - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Html:image
Hello, How can I use runtime variable with the property attribute of html:image tag. Eg, My intent is to do the following. However, the value for property is not substituted. Am I missing something here ? TIA Shishir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Please Help !! Can't Display ActionMessages
--- Start of forwarded message --- Subject: Please Help !! Can't Display ActionMessages From: "Kam Lung Leung" <[EMAIL PROTECTED]> Date: Sat, 08 Nov 2003 18:22:07 -0700 (MST) To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Hi, I am trying to follow the logon example of the struts-example.war. However, I can not see the error messages print on the logon.jsp. Any suggestion is greatly appreciated. here is the part that display the errors on my logon.jsp >> There were errors>> < Here is may ActionLogon.java > ActionMessages actionsMsgs = new ActionMessages(); // Validate the request parameters specified by the user String username = (String) PropertyUtils.getSimpleProperty(form, "userName"); String password = (String) PropertyUtils.getSimpleProperty(form, "password"); try { if (lookUpUser(password, username) == false) { actionsMsgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("adminLogonForm.error.password")); } } catch (Exception ex) { // Report any actionsMsgs we have discovered back to the original form actionsMsgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("adminLogonForm.error.password", ex.toString())); saveMessages(request,actionsMsgs); if (log.isDebugEnabled()) { log.debug("validation of user passwword failed for username:" +username ); log.debug("End of execute "); } return (mapping.getInputForward()); } //end try-catch if (log.isDebugEnabled()) { log.debug("execute : password validation ended for user : " + username ); } // Report any actionsMsgs we have discovered back to the original form if (!actionsMsgs.isEmpty()) { saveMessages(request, actionsMsgs); if (log.isDebugEnabled()) { log.debug("validation of user passwword failed for username:" + username ); log.debug("End of execute "); } return (mapping.getInputForward()); } server.log > DEBUG [org.apache.commons.beanutils.ConvertUtils] Convert string 'kamhoho' to class 'java.lang.String' DEBUG [org.apache.commons.beanutils.ConvertUtils] Using converter [EMAIL PROTECTED] DEBUG [org.apache.commons.beanutils.BeanUtils] setProperty([EMAIL PROTECTED], userName, [tytyty]) DEBUG [org.apache.commons.beanutils.ConvertUtils] Convert string 'tytyty' to class 'java.lang.String' DEBUG [org.apache.commons.beanutils.ConvertUtils] Using converter [EMAIL PROTECTED] DEBUG [org.apache.struts.action.RequestProcessor] Validating input form properties DEBUG [org.apache.struts.action.RequestProcessor] No errors detected, accepting input DEBUG [org.apache.struts.action.RequestProcessor] Looking for Action instance for class com.wlwa.Infra.WebComponemt.Dispatcher.Actions.AdminLogonAction DEBUG [org.apache.struts.action.RequestProcessor] Returning existing Action instance DEBUG [com.wlwa.Infra.WebComponemt.Dispatcher.Action.AdminLogonAction] Begin of execute DEBUG [com.wlwa.Infra.WebComponemt.Dispatcher.Action.AdminLogonAction] execute : password validation ended for user : tytyty DEBUG [com.wlwa.Infra.WebComponemt.Dispatcher.Action.AdminLogonAction] End of execute DEBUG [org.apache.struts.tiles.TilesRequestProcessor] processForwardConfig(/Infra/WebComponemt/Presentation/index.jsp, false) DEBUG [org.apache.struts.tiles.TilesRequestProcessor] '/Infra/WebComponemt/Presentation/index.jsp' - processed as uri DEBUG [org.apache.struts.action.RequestProcessor] processForwardConfig(ForwardConfig[name=success,path=/Infra/WebComponemt/Presentation/index.jsp,redirect=false,contextRelative=false]) Kam Lung Leung System Architect Wireless Web Access Inc. (303) 627-9684 --- End of forwarded message --- Kam Lung Leung System Architect Wireless Web Access Inc. (303) 627-9684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]