Nested Dynamic Form Question
Hi I was wondering if one can nest Dynamic forms. If I have the following: form-bean name=subjectForm type=org.apache.struts.validator.DynaValidatorForm dynamic=true form-property name=id type=java.lang.int/ form-property name=description type=java.lang.String/ /form-bean form-bean name=courseForm type=org.apache.struts.validator.DynaValidatorForm dynamic=true form-property name=nametype=java.lang.String/ form-property name=description type=java.lang.String/ form-property name=subjectstype=X[]/ /form-bean I want to specify that the 'subjectForm' is a property of 'courseForm' and accesible via form-property 'subjects' Thank you in advance Manie Coetzee -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to getResources at JavaBean?
Hi all, I would like to know , how can i use the messageResource at my javabean, what package i should import, and which statement that i must call it when i use messageResource. At Action, that is easy... just getLocale... getResource()..., in JSP, just bean:message ... , that is great... but how can i use the same messageResource easier ? Please help. Gordon _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: I18N
I don't know if i understand the question correctly, but if you want to enable the user to select the displayed language, you only have to change the locale which ist stored in the session request.getSession().setAttribute(Action.Locale,new Locale(FR,fr)); the Action is the class form struts, and the locale simply uses ISO Code Then you only have to provide the ApplicationRessources_fr.properties and then you have enabled the user to select his locale Oliver -Original Message- From: Jefferson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 4:48 AM To: Struts Users Mailing List Subject: Re: I18N the second one (changing the reference from an english properties file to a portuguese properties file Jefferson Louis Leung wrote: do u mean changing the propertises of a properties file from english to portuguese ? or do u mean changing the reference from an english propertises file to a portuguese propertises file ? Jefferson Rodrigues de Oliveira e Silva wrote: Hi guys, I have a problem with I18N... how can I change my properties file from english to, let's say, portuguese, during execution time ? I want to allow the user to change it in the site ... Thanks a lot Best regards, Jefferson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts vs Turbine
I think look at the Struts kickstart faq. There are links to a couple of articles, one by Ted Husted and another by Jon Stevens. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 09 April 2002 15:57 To: [EMAIL PROTECTED] Subject: Struts vs Turbine hi, does any one have any idea abt turbine. and how its different from struts ? thanx -radhika -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: problem trying to use my own actions
after much heart ache i finalley found the damm problem.. in my class should have been: public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { NOT: public ActionForward perform(ActionMapping mapping, ActionForm form, ServletRequest request, ServletResponse response) throws IOException, ServletException { thanks all for the help :) - Original Message - From: Francisco Hernandez [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 1:24 PM Subject: problem trying to use my own actions i just cant get struts to use my own actions.. struts-config.xml snipplets: global-forwards type=org.apache.struts.action.ActionForward forward name=editVenue path=/editVenue.jsp/ /global-forwards action-mappings type=org.apache.struts.action.ActionMapping action path=/createVenue type=venue.action.CreateVenueAction name=venueForm /action /action-mappings this is my class: public class CreateVenueAction extends Action { public ActionForward perform(ActionMapping mapping, ActionForm form, ServletRequest request, ServletResponse response) throws IOException, ServletException { Util.println(IN CREATE VENUE ACTION); return mapping.findForward(editVenue); } } what am i missing? i just cant seem to get struts to execute my action.. and goto the specified forward is there a way to put struts into a 'verbose' mode so i can see just exactly what action was executed, the url, etc? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Gracias Pello.Re: exception handling in business beans
Hola Pello, Muchas gracias por tu respuesta. En principio mis ideas van por esto que tu comentas, incluso habiamos pensado aqui en crear un bean de errores propio, para independizar de Struts. Yo estoy por Mapfre en Madrid. Como curiosidad, lo del tutorial funciona, pues ya me lo habia imprimido, me habia puesto un bookmark, e incluso habia estado ojeando tu CV que en cierta manera se parece al mio. Te confieso que aun no no lo he leido en detalle, aunque lo tengo en la coleccion de recursos. http://www.geocities.com/ResearchTriangle/Facility/1021/CV.htm aunque esta desactualizado, y bastante chapucero. Me queria pillar un dominio y hacer algo decente con Struts, tutoriales y tal, y habia elegido ya http://www.webappcabaret.com/index.html. :-) Bueno fuera coñas. Esto de Struts a mi me gusta un monton, y no me extrañaria se convierta en un standard en poco tiempo. Te has dado cuenta que no existen libros? ... uno y malo, y menos en castellano. El problema basicamente es desde donde hacer el log al fichero de log4J, con el objetivo de hacer los beans modulares y que no sepan que corren en Web y menos en Struts. Propagando la excepcion, o una propia MapfreException, hay que añadirle algo a la excepcion para que vaya traceando desde la clase donde se genera, por aquellas por las que pasa. El objetivo es que sea el action el que haga el log, y ademas conozca donde se genero la excepcion. Voy a echarle una pensada hoy mas en detalle. Saludetes y gracias, Adolfo. From: Pello Xabier Altadill Izura Pello Xabier Altadill Izura [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Para adolfo.Re: exception handling in business beans Date: Wed, 10 Apr 2002 01:09:40 -0700 Hola adolfo Supongo que entenderas el castellano: Para lo que planteas, ya estas dando soluciones tu mismo; yo te daria otra opcion: Desde el action bean instancia el bean de logica de negocio, ejecuta la operacion pertinente y haz que el bean devuelva una instancia de ActionErrors: si la instancia es nula, todo es OK y rediriges a success en caso contrario guardas la instancia de ActionErrors devuelta por el bean de logica de negocio y redirigues a una pagina de error donde se mostrara el mensaje correspondiente. Para que esta propagracion del error desde la logica de negocio hasta la jsp funcione, dentro del bean de logica de negocio deberas guardar los errores en el ActionErrors que devuelves. Solo tiene un problema: el bean de logica de negocio ya no sera totalmente independiente de struts ya que utiliza dos instancias: ActionErorrs y ActionError; quiza para conseguir una independencia total, que es lo que buscas, tendras que definir otro objeto que guarde errores y convertirlo a ActionError en el ActionBean que invoca la logica de negocio. Espero haberte sido de ayuda. Hasta luego! pd: si te interesa, he creado un tutorial de struts que esta disponible en http://ciberia.ya.com/pxai/ma.html , el cual pretendo ir mejorando. _ Pello Xabier Altadill Izura Ingeniero Informatico y ademas navarro _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Trying Struts Again...
I am not sure, but it seems you need Log4J to use struts. At least the ClassNotFoundException let me think this. Or the log4j.jar is not correctly in the classpath of tomcat Oliver -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 2:40 AM To: [EMAIL PROTECTED] Subject: Trying Struts Again... Subject: Trying Struts Again... From: Wendy S [EMAIL PROTECTED] === I didn't get very far the first time I tried this because the examples wouldn't work on HP-UX. So I'm trying again, this time with Tomcat 3.3.1 on a Windows 2000 (java 1.4.0) machine just for development. I've tried both the 1.0.2 version and 1.1b, just extracting the zip files and dumping the .war files in webapps, then stopping and restarting Tomcat. It's supposed to be that easy, right? :) Both times I get tons of errors in the Tomcat console: 2002-04-09 17:13:39 - Ctx(/struts-tiles) : Exception in preInit java.lang.ClassN otFoundException: org.apache.commons.logging.impl.LogFactoryImpl - org.apache.co mmons.logging.LogConfigurationException: java.lang.ClassNotFoundException: org.a pache.commons.logging.impl.LogFactoryImpl Nothing interesting in the log files, and the DOS console window doesn't hold enough lines to be able to get all of the errors out of it. What am I missing? Any ideas are appreciated! -- Wendy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Cannot retrieve value from bean for checkbox
Hi, Im having trouble retrieving a bean value for my checkbox. Error message appears as Undefined variable: announcement My codes appear as follow: html:checkbox property=announcementId value=%=((src.ann.entity.Announcement)Announcement).getAnnouncementId()%/ Any help would be very much appreciated. regards See Dave Matthews Band live or win a signed guitar http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201/splash.asp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot retrieve value from bean for checkbox
Can you explain in detail??? -Original Message- From: bluetooth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 11:30 AM To: Struts Users Mailing List Subject: Cannot retrieve value from bean for checkbox Hi, Im having trouble retrieving a bean value for my checkbox. Error message appears as Undefined variable: announcement My codes appear as follow: html:checkbox property=announcementId value=%=((src.ann.entity.Announcement)Announcement).getAnnouncementId()% / Any help would be very much appreciated. regards See Dave Matthews Band live or win a signed guitar http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201 /splash.asp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The content of this e-mail is intended only for the confidential use of the person addressed. If you have received this message in error, please notify us immediately by electronic mail, by telephone or by fax at the above num- bers. E-mail communications are not secure and therefore we do not accept any res- ponsibility for the confidentiality or altered contents of this message. Please be aware that SIS Group and its subsidiary companies cannot accept any orders or other legally binding correspondence with a participant as part of an E-mail. The views expressed above are not necessarily those held by SIS Group and its subsidiary companies and not binding for them. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Trying Struts Again...
Subject: Re: Trying Struts Again... From: Hyunjin Kim [EMAIL PROTECTED] === if you followed struts documentation about installation carefuly, you would have seen that struts now depends on several other jar files... take a look at the INSTALL document on struts page (http://jakarta.apache.org/struts) and try installing other dependant files.. Good luck Wendy S [EMAIL PROTECTED] wrote in message news:a901a6$vik$[EMAIL PROTECTED]... I didn't get very far the first time I tried this because the examples wouldn't work on HP-UX. So I'm trying again, this time with Tomcat 3.3.1 on a Windows 2000 (java 1.4.0) machine just for development. I've tried both the 1.0.2 version and 1.1b, just extracting the zip files and dumping the .war files in webapps, then stopping and restarting Tomcat. It's supposed to be that easy, right? :) Both times I get tons of errors in the Tomcat console: 2002-04-09 17:13:39 - Ctx(/struts-tiles) : Exception in preInit java.lang.ClassN otFoundException: org.apache.commons.logging.impl.LogFactoryImpl - org.apache.co mmons.logging.LogConfigurationException: java.lang.ClassNotFoundException: org.a pache.commons.logging.impl.LogFactoryImpl Nothing interesting in the log files, and the DOS console window doesn't hold enough lines to be able to get all of the errors out of it. What am I missing? Any ideas are appreciated! -- Wendy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Cannot retrieve definition for form bean null
I have a strange feeling I've had this problem before I invoke my action FindCustomerDataAction, wich is supposed to display a form. The action runs ok, and a form bean is made (CardCustomerSearchForm), but when i forward to the correct jsp, I get the the error included below. I include the relevant code from struts-config.xml as well: Can anyone help me?? --- --- javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:795) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481) at jsp_servlet._customer.__kort_finn_kunde._jspService(__kort_finn_kunde.java:127) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:241) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) from struts-config.xml form-beans form-bean name=customerSearchForm type=sb1.business.salesclient.customer.action.CardCustomerSearchForm / /form-beans action path=/customer/search type=sb1.business.salesclient.customer.action.FindCustomerDataAction name=customerSearchForm scope=request input=/customer/kort_finn_kunde.jsp validate=true forward name=displayform path=/customer/kort_finn_kunde.jsp /forward forward name=simplesearchresult path=/customer/show.do /forward forward name=advancedsearchresult path=/customer/searchresult.jsp /forward forward name=failure path=/customer/kort_finn_kunde.jsp /forward forward name=error path=/customer/error.jsp /forward /action ...mogul technology as... mogul technology ida dørum - software engineer drammensveien 134 N - 0277 oslo norway tel +47 - 24 11 43 00 dir +47 - 24 11 44 87 mobil +47 - 930 60 318 mailto:[EMAIL PROTECTED] www.mogul.no ... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot retrieve definition for form bean null
Don't you miss to transfert your form bean at the end of your action like this : if(form!=null) if (request.equals(mapping.getScope())) request.setAttribute(mapping.getAttribute(), form); else request.getSession().setAttribute(mapping.getAttribute(), form); arno# -Message d'origine- De: Ida Dorum [SMTP:[EMAIL PROTECTED]] Date: mardi 9 avril 2002 16:54 A:[EMAIL PROTECTED] Objet:Cannot retrieve definition for form bean null I have a strange feeling I've had this problem before I invoke my action FindCustomerDataAction, wich is supposed to display a form. The action runs ok, and a form bean is made (CardCustomerSearchForm), but when i forward to the correct jsp, I get the the error included below. I include the relevant code from struts-config.xml as well: Can anyone help me?? --- --- javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:795) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481) at jsp_servlet._customer.__kort_finn_kunde._jspService(__kort_finn_kunde.ja va:127) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:200) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche rImpl.java:241) at org.apache.struts.action.ActionServlet.processActionForward(ActionServle t.java:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl etContext.java:2495) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl. java:2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) from struts-config.xml form-beans form-bean name=customerSearchForm type=sb1.business.salesclient.customer.action.CardCustom erSearchForm / /form-beans action path=/customer/search type=sb1.business.salesclient.customer.action.FindCustomerD ataAction name=customerSearchForm scope=request input=/customer/kort_finn_kunde.jsp validate=true forward name=displayform path=/customer/kort_finn_kunde.jsp /forward forward name=simplesearchresult path=/customer/show.do /forward forward name=advancedsearchresult path=/customer/searchresult.jsp /forward forward name=failure path=/customer/kort_finn_kunde.jsp /forward forward name=error path=/customer/error.jsp /forward /action ...mogul technology as... mogul technology ida dorum - software engineer drammensveien 134 N - 0277 oslo norway tel +47 - 24 11 43 00 dir +47 - 24 11 44 87 mobil +47 - 930 60 318 mailto:[EMAIL PROTECTED] www.mogul.no ... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot retrieve value from bean for checkbox
yea...I've set an array list of my bean into session. And while trying to iterate my checkbox with its assigned ID...I have problem assigning the ID to the value inside the checkbox, which thus, prompts me: Undefined variable: Announcement Once again, my codes appear as follow: html:checkbox property=announcementId value=%=((src.ann.entity.Announcement)Announcement).getAnnouncementId()% regards -- On Wed, 10 Apr 2002 11:27:24 Vaddiyar, Raghuramudu wrote: Can you explain in detail??? -Original Message- From: bluetooth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 11:30 AM To: Struts Users Mailing List Subject: Cannot retrieve value from bean for checkbox Hi, Im having trouble retrieving a bean value for my checkbox. Error message appears as Undefined variable: announcement My codes appear as follow: html:checkbox property=announcementId value=%=((src.ann.entity.Announcement)Announcement).getAnnouncementId()% / Any help would be very much appreciated. regards See Dave Matthews Band live or win a signed guitar http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201 /splash.asp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The content of this e-mail is intended only for the confidential use of the person addressed. If you have received this message in error, please notify us immediately by electronic mail, by telephone or by fax at the above num- bers. E-mail communications are not secure and therefore we do not accept any res- ponsibility for the confidentiality or altered contents of this message. Please be aware that SIS Group and its subsidiary companies cannot accept any orders or other legally binding correspondence with a participant as part of an E-mail. The views expressed above are not necessarily those held by SIS Group and its subsidiary companies and not binding for them. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] See Dave Matthews Band live or win a signed guitar http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201/splash.asp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: URGENT!!!!! How to Shut off Struts Logging!!!
Subject: Re: URGENT! How to Shut off Struts Logging!!! From: Hyunjin Kim [EMAIL PROTECTED] === oh.. i added what you have taught me and the number of logging statements have decreased considerably... but it does not eliminated the core problem. - it still loggs same logging statement for number of times.. last time I saw the stdout log file, there was one instance of ERROR log statement appearing more than 1000 times!!! looking at the log4j document.. I couldn't find any solution... or i am just not that smart to configure log4j properties file correctly... ANY HELP?? Will Jaynes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I had to add the following to log4j.properties: log4j.category.org.apache=ERROR B.Adji Maharyatno wrote: I put debug and detail to 0. Cheers. B. Adji Maharyatno Singapore -Original Message- From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 1:10 PM To: [EMAIL PROTECTED] Subject: URGENT! How to Shut off Struts Logging!!! Subject: URGENT! How to Shut off Struts Logging!!! From: Hyunjin Kim [EMAIL PROTECTED] === I am using struts 1.1b and log4j for my application, and struts is logging same statement for multiple times and number of times it logs are doubling each time a specific statement is called... and eventually, the number of times a specific logging statement is so large that the server just hangs... here's my code web.xml file where i configured Action Servlet... servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param init-param param-namedebug/param-name param-value1/param-value /init-param init-param param-namedetail/param-name param-value1/param-value /init-param load-on-startup2/load-on-startup /servlet and my log4j properties file... log4j.rootCategory=DEBUG, A1 # A1 is set to be a RollingFileAppender. log4j.appender.A1=org.apache.log4j.RollingFileAppender log4j.appender.A1.File=../logs/nanoenc_application.log log4j.appender.A1.MaxFileSize=5000KB # Keep one backup file log4j.appender.A1.MaxBackupIndex=10 # Print the date in ISO 8601 format # like 2000-09-07 14:07:41,508 [main] INFO MyApp - Entering application. log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n # for individual classes, try the following line. log4j.category.com.nanoenc=ERROR log4j.category.biz.itline=ERROR How can I stop Struts to keep doubling number of times it's logging??? any help from struts/log4j gurus will be REALLY appreciated!! THANKS!!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: *.do !
Subject: Re: *.do ! From: Hyunjin Kim [EMAIL PROTECTED] === hmm.. i am not sure if i am understanding your question correctly... but.. the answer is no.. you cannot just call the forward path(buy.jsp) and hope it will also call the action servlet (except if you have code in the jsp page that calls the action class... but in that case, you are outside of the struts framework). now my question: Why do you wanna do that?? [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Hi, When i call an action i have in my browser url field http://...buy.do insteadof ../buy.jsp Is there a solution to have the forward path and not the path of the action Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ClassCastException
Hello, I am extending ActionForm but do not use the validate() method since I don't want an ActionError to be returned, I implement my own method. ActionError does not satisfy me. I get a ClassCastException when running it with Jrun 3.1. (my jsp tries to instantiate Authentication then AuthenticationForm). So I have the following : Error : 04/10 11:52:14 info (JRun) action: Processing a POST for /authentication 04/10 11:52:14 info (JRun) action: Looking for ActionForm bean under attribute 'authenticationForm' 04/10 11:52:14 info (JRun) action: Creating new ActionForm instance of class 'mypackage.AuthenticationForm' 04/10 11:52:14 error (JRun) action: Error creating ActionForm instance of class 'mypackage.AuthenticationForm' [java.lang.ClassCastException: mypackage.AuthenticationForm] java.lang.ClassCastException: mypackage.AuthenticationForm at org.apache.struts.action.ActionServlet.processActionForm(ActionServlet.java: 1702) *** Code of AuthenticationForm: package mypackage; import javax.servlet.http.HttpServletRequest; //import org.apache.struts.action.ActionError; //import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; import mypackage.my2.MyErrorClass; public final class AuthenticationForm extends ActionForm { public void myValidation(ActionMapping mapping, HttpServletRequest request) creating here a MyErrorClass and doing a mapping.findForward. Thank you very much for any help. Barbara Post 01 49 87 43 78 - 06 98 17 21 86. Software AG France 5 avenue de Verdun, 94204 Ivry-sur-Seine
offtopic: poolman struts
hello, i am using poolman with postgresql 7.1 in my struts app. i have an action which insert news into the database. first i had problems with the character encoding but i fixed that. now the only thing that doesn't work are the linebreaks in the news body. i use preparedStatements with poolman but still it doesn't recognize the linebreaks. what can i do about it? thanks, oliver -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Having trouble nesting iterate tags (long explanation,relatively simple question)
Hi. I'm fairly new to Struts, but I've gone through the Struts documentation and KeyboardMonkey's helpful tutorial. What I want to do is (almost) right out of the tutorial, but it's not working the way I would expect. The list archives show that other people have had this problem, and the few real solutions I've found seem to indicate that I'm doing the right thing, but I keep getting exceptions. My understanding is complicated by the fact that the tutorial shows how to nest lists within a form, but I'm not using a form (surely that's not necessary?). One clarification I need: the KM tutorial indicates that only Object[] can be used for nested lists, even though the Struts taglib docs say that logic:iterate can iterate over Collection, Enumerations, arrays, etc. Is that still true? Or can I nest lists where the bean property getters return java.util.Collection? So let me describe what I have, and what I'm trying to do. BTW, simply using a single-level logic:iterate tag works great. I'm using Tomcat 4.0.4b2 and the nightly build of Struts from a couple days ago. I have a set of Locations that are in a City. I have a list of Cities. I would like to list all the Cities, and under each City list all the locations. My code manages to list all the Cities, but when I add tags HTML to list the Locations, I get variously tag nesting exceptions or null pointer exceptions (and occasionally a getter not found exception), depending on various ways of writing the code. I have a City bean (called a Site for historical reasons, it will eventually be changed) defined like this: public class Site { public StringgetCity() { return mCity; } public voidsetCity(String inCity) { mCity = inCity; } public StringgetState() { return mState; } public voidsetState(String inState) { mState = inState; } public CollectiongetLocations() { return mLocations; } public voidsetLocations(Collection inLocations) { mLocations = inLocations; } private StringmCity = null; privateStringmState = null; privateCollectionmLocations = null; // Vector of Locations } and a FindResults bean defined like this: public class FindResults { public CollectiongetCities() { return mCities; } public voidsetCities(Collection inCities) { mCities = inCities; } private CollectionmCities; // A Vector of Sites } There's also a simple Location bean: public Location { public String getName() { return mName; } public void setName(String inName) { mName = inName; } } As a result of submitting a form, my FindAction object gets executed. It takes the form input, does a JDBC lookup, then creates a FindResults bean and puts it in the session state. The following (simplified) JSP displays the list of cities satisfactorily: %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested % jsp:useBean id=findResults scope=session type=com.latencyzero.cc.FindResults/ head titleSearch Results/title /head body bgcolor=#ff logic:iterate id=foundCity name=findResults property=cities table trtd Locations in bean:write name=foundCity property=city/ /td/tr trtd !-- insert location list here -- /td/tr /table /logic:iterate /body /html:html It's when I try to nest a list that I run into trouble. I started by replacing the insert location list here comment with the following: logic:iterate id=foundLocation name=foundCity property=locations pbean:write name=foundLocation property=name/p /logic:iterate As soon as I do that, I get org.apache.jasper.compiler.ParseException: End of content reached while more parsing required: tag nesting error?. Various permutations of using nested instead of logic and bean result in other errors. For example, if I use nested:iterate for the inner loop (and on the bean write), I get null pointer exception (even if I remove the 'name=foundCity' attribute). I even tried to make a single outer loop (the very first example above) that used a nested:write tag, just to see if I could get *something* nested going. Using both logic:iterate and nested:iterate, this resulted in a null pointer exception. Clearly, I'm missing some fundamental point about nesting. Some people's responses on the list indicate that they've had success simply nesting logic:iterate tags without trouble (http://www.mail-archive.com/struts-user@jakarta.apache.org/msg23493.html). I'd be happy with that for this situation (I don't think I need the implicit-dotting of hierarchies of properties for this simple operation). TIA for any help! BTW, is my approach of
Re: Struts Tutorial
Great job Mark - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] Newsgroups: Struts Sent: Tuesday, April 09, 2002 8:10 AM Subject: RE: Struts Tutorial Great initiative! -Original Message- From: Stephan Wiesner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 12:58 AM To: [EMAIL PROTECTED] Subject: Struts Tutorial Hi, I'm writing a Struts tutorial. The actual version (30 pages at the moment) can be found at: http://rzserv2.fhnon.de/~lg002556/struts/ It is written in englisch. And intended as an easy, step by step introduction. Stephan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: problem trying to use my own actions
Try this: global-forwards forward name=editVenue path=/editVenue.jsp/ /global-forwards action-mappings action path=/createVenue type=venue.action.CreateVenueAction name=venueForm /action /action-mappings Francisco Hernandez [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... i just cant get struts to use my own actions.. struts-config.xml snipplets: global-forwards type=org.apache.struts.action.ActionForward forward name=editVenue path=/editVenue.jsp/ /global-forwards action-mappings type=org.apache.struts.action.ActionMapping action path=/createVenue type=venue.action.CreateVenueAction name=venueForm /action /action-mappings this is my class: public class CreateVenueAction extends Action { public ActionForward perform(ActionMapping mapping, ActionForm form, ServletRequest request, ServletResponse response) throws IOException, ServletException { Util.println(IN CREATE VENUE ACTION); return mapping.findForward(editVenue); } } what am i missing? i just cant seem to get struts to execute my action.. and goto the specified forward is there a way to put struts into a 'verbose' mode so i can see just exactly what action was executed, the url, etc? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Connection Pool Sample
Hi, I would like to see a sample where the Connction Pool mechanism of struts is implementet. Can anyone please point one out for me? thanx, rainer
Re: Struts Tutorial
Mark? Hey, he just praised me (Stephan) ;-) Stephan - Original Message - From: Nicolas Parisé [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 12:16 AM Subject: Re: Struts Tutorial Great job Mark - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] Newsgroups: Struts Sent: Tuesday, April 09, 2002 8:10 AM Subject: RE: Struts Tutorial Great initiative! -Original Message- From: Stephan Wiesner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 12:58 AM To: [EMAIL PROTECTED] Subject: Struts Tutorial Hi, I'm writing a Struts tutorial. The actual version (30 pages at the moment) can be found at: http://rzserv2.fhnon.de/~lg002556/struts/ It is written in englisch. And intended as an easy, step by step introduction. Stephan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Tutorial
come mark, waiting for you comments amit -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: URGENT!!!!! How to Shut off Struts Logging!!!
Hi, Sounds like you are creating a new instance of the logger each time instead of using the same one. We use an initialisation servlet to set up log4j and then do a Category.getInstance in our classes to get an instance of the logger to log against. We are not using the latest version of Log4J as Category has been replaced by the Logger class. You could also try http://jakarta.apache.org/log4j/docs/manual.html Les -Original Message- From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] Sent: 10 April 2002 10:55 To: [EMAIL PROTECTED] Subject: Re: URGENT! How to Shut off Struts Logging!!! Subject: Re: URGENT! How to Shut off Struts Logging!!! From: Hyunjin Kim [EMAIL PROTECTED] === oh.. i added what you have taught me and the number of logging statements have decreased considerably... but it does not eliminated the core problem. - it still loggs same logging statement for number of times.. last time I saw the stdout log file, there was one instance of ERROR log statement appearing more than 1000 times!!! looking at the log4j document.. I couldn't find any solution... or i am just not that smart to configure log4j properties file correctly... ANY HELP?? Will Jaynes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I had to add the following to log4j.properties: log4j.category.org.apache=ERROR B.Adji Maharyatno wrote: I put debug and detail to 0. Cheers. B. Adji Maharyatno Singapore -Original Message- From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 1:10 PM To: [EMAIL PROTECTED] Subject: URGENT! How to Shut off Struts Logging!!! Subject: URGENT! How to Shut off Struts Logging!!! From: Hyunjin Kim [EMAIL PROTECTED] === I am using struts 1.1b and log4j for my application, and struts is logging same statement for multiple times and number of times it logs are doubling each time a specific statement is called... and eventually, the number of times a specific logging statement is so large that the server just hangs... here's my code web.xml file where i configured Action Servlet... servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param init-param param-namedebug/param-name param-value1/param-value /init-param init-param param-namedetail/param-name param-value1/param-value /init-param load-on-startup2/load-on-startup /servlet and my log4j properties file... log4j.rootCategory=DEBUG, A1 # A1 is set to be a RollingFileAppender. log4j.appender.A1=org.apache.log4j.RollingFileAppender log4j.appender.A1.File=../logs/nanoenc_application.log log4j.appender.A1.MaxFileSize=5000KB # Keep one backup file log4j.appender.A1.MaxBackupIndex=10 # Print the date in ISO 8601 format # like 2000-09-07 14:07:41,508 [main] INFO MyApp - Entering application. log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n # for individual classes, try the following line. log4j.category.com.nanoenc=ERROR log4j.category.biz.itline=ERROR How can I stop Struts to keep doubling number of times it's logging??? any help from struts/log4j gurus will be REALLY appreciated!! THANKS!!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problems changing example to use /action URL mapping
Is this what you have in web.xml? servlet-mapping servlet-nameaction/servlet-name url-pattern/action/*/url-pattern /servlet-mapping BTW: just to be funny we did: servlet-mapping servlet-nameaction/servlet-name url-pattern/*.asp/url-pattern /servlet-mapping Mark -Original Message- From: Jay sissom [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 10:20 PM To: Struts Users Mailing List Subject: Re: Problems changing example to use /action URL mapping If you are using Struts 1.1b, I've heard that /action/* mapping will not work. Struts 1.1b supports multiple config files and it determines which to use based on the path, so it will only work based on the extension. I heard this at a BOF session at JavaOne, but I haven't tried it myself. Jay On Tue, 9 Apr 2002, Rob Jellinghaus wrote: I am dinking around with the struts-example app, trying to convert it from using *.do servlet mapping to /action/* servlet mapping. The problem is that it's extremely confusing! Where is the best explanation of how servlet mapping and struts-config.xml interact? Right now I tried changing all the *.do URLs to be /action/* instead, throughout the .jsp's and struts-config.xml, and let's just say it didn't work. In fact, there are situations where *no* permutation of URLs works. I am sure there are some basic things I'm not understanding about how base URLs, servlet URL mapping (I'm using Tomcat), and Struts action lookup work. But how to learn better? All clues appreciated. Cheers, Rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem trying to use my own actions
Happens all the time! I actually spent two hours pouring over source code the other night, not being able to figure out why changes in my ActionForm class were not being represented in the JSP presentation. Are you ready for this? I forgot to start the container (JRun) and I was looking at browser-cached pages. Mark -Original Message- From: Francisco Hernandez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 4:21 AM To: Struts Users Mailing List Subject: Re: problem trying to use my own actions after much heart ache i finalley found the damm problem.. in my class should have been: public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { NOT: public ActionForward perform(ActionMapping mapping, ActionForm form, ServletRequest request, ServletResponse response) throws IOException, ServletException { thanks all for the help :) - Original Message - From: Francisco Hernandez [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 1:24 PM Subject: problem trying to use my own actions i just cant get struts to use my own actions.. struts-config.xml snipplets: global-forwards type=org.apache.struts.action.ActionForward forward name=editVenue path=/editVenue.jsp/ /global-forwards action-mappings type=org.apache.struts.action.ActionMapping action path=/createVenue type=venue.action.CreateVenueAction name=venueForm /action /action-mappings this is my class: public class CreateVenueAction extends Action { public ActionForward perform(ActionMapping mapping, ActionForm form, ServletRequest request, ServletResponse response) throws IOException, ServletException { Util.println(IN CREATE VENUE ACTION); return mapping.findForward(editVenue); } } what am i missing? i just cant seem to get struts to execute my action.. and goto the specified forward is there a way to put struts into a 'verbose' mode so i can see just exactly what action was executed, the url, etc? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot retrieve definition for form bean null
The error turned out to be in my mapping, I have never needed to add the form to my request or session in my action to make it available in my jsp? Why do you do that? ida -Original Message- From: Arnaud Heritier [mailto:[EMAIL PROTECTED]] Sent: 10. april 2002 11:53 To: 'Struts Users Mailing List' Subject: RE: Cannot retrieve definition for form bean null Don't you miss to transfert your form bean at the end of your action like this : if(form!=null) if (request.equals(mapping.getScope())) request.setAttribute(mapping.getAttribute(), form); else request.getSession().setAttribute(mapping.getAttribute(), form); arno# -Message d'origine- De: Ida Dorum [SMTP:[EMAIL PROTECTED]] Date: mardi 9 avril 2002 16:54 A:[EMAIL PROTECTED] Objet:Cannot retrieve definition for form bean null I have a strange feeling I've had this problem before I invoke my action FindCustomerDataAction, wich is supposed to display a form. The action runs ok, and a form bean is made (CardCustomerSearchForm), but when i forward to the correct jsp, I get the the error included below. I include the relevant code from struts-config.xml as well: Can anyone help me?? --- --- javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:795) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481) at jsp_servlet._customer.__kort_finn_kunde._jspService(__kort_finn_kunde.ja va:127) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:200) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche rImpl.java:241) at org.apache.struts.action.ActionServlet.processActionForward(ActionServle t.java:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl etContext.java:2495) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl. java:2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) from struts-config.xml form-beans form-bean name=customerSearchForm type=sb1.business.salesclient.customer.action.CardCustom erSearchForm / /form-beans action path=/customer/search type=sb1.business.salesclient.customer.action.FindCustomerD ataAction name=customerSearchForm scope=request input=/customer/kort_finn_kunde.jsp validate=true forward name=displayform path=/customer/kort_finn_kunde.jsp /forward forward name=simplesearchresult path=/customer/show.do /forward forward name=advancedsearchresult path=/customer/searchresult.jsp /forward forward name=failure path=/customer/kort_finn_kunde.jsp /forward forward name=error path=/customer/error.jsp /forward /action ...mogul technology as... mogul technology ida dorum - software engineer drammensveien 134 N - 0277 oslo norway tel +47 - 24 11 43 00 dir +47 - 24 11 44 87 mobil +47 - 930 60 318 mailto:[EMAIL PROTECTED] www.mogul.no ... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Para adolfo.Re: exception handling in business beans
That was really helpful. There are other-language user-groups, you know. And I'm not sure I agree with you on the propagation of the ActionErrors from the ActionBean through the failure mapping. Mark -Original Message- From: Pello Xabier Altadill Izura Pello Xabier Altadill Izura [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 4:10 AM To: Struts Users Mailing List Subject: Para adolfo.Re: exception handling in business beans Hola adolfo Supongo que entenderas el castellano: Para lo que planteas, ya estas dando soluciones tu mismo; yo te daria otra opcion: Desde el action bean instancia el bean de logica de negocio, ejecuta la operacion pertinente y haz que el bean devuelva una instancia de ActionErrors: si la instancia es nula, todo es OK y rediriges a success en caso contrario guardas la instancia de ActionErrors devuelta por el bean de logica de negocio y redirigues a una pagina de error donde se mostrara el mensaje correspondiente. Para que esta propagracion del error desde la logica de negocio hasta la jsp funcione, dentro del bean de logica de negocio deberas guardar los errores en el ActionErrors que devuelves. Solo tiene un problema: el bean de logica de negocio ya no sera totalmente independiente de struts ya que utiliza dos instancias: ActionErorrs y ActionError; quiza para conseguir una independencia total, que es lo que buscas, tendras que definir otro objeto que guarde errores y convertirlo a ActionError en el ActionBean que invoca la logica de negocio. Espero haberte sido de ayuda. Hasta luego! pd: si te interesa, he creado un tutorial de struts que esta disponible en http://ciberia.ya.com/pxai/ma.html , el cual pretendo ir mejorando. _ Pello Xabier Altadill Izura Ingeniero Informatico y ademas navarro --- Descubre el poder de la personalización en línea. Todos tus servicios favoritos en un solo lugar: http://www.terra.com/tumonitor/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Para adolfo.Re: exception handling in business beans
Sorry, next time I'll try to respond personally. I beg your pardon. now: And I'm not sure I agree with you on the propagation of the ActionErrors from the ActionBean through the failure mapping. why not? share your options. Bye.. _ Pello Xabier Altadill Izura Ingeniero Informatico y ademas navarro --- Descubre el poder de la personalización en línea. Todos tus servicios favoritos en un solo lugar: http://www.terra.com/tumonitor/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New Site
This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Para adolfo.Re: exception handling in business beans
The point is that it is NOT a personal issue. This is a public forum from which users derive benefits only from a public discussion of the issues. If you want to respond to someone in a non-English language, do so privately. Otherwise you merely waste our bandwidth. Mark -Original Message- From: Pello Xabier Altadill Izura Pello Xabier Altadill Izura [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 7:36 AM To: Struts Users Mailing List Subject: RE: Para adolfo.Re: exception handling in business beans Sorry, next time I'll try to respond personally. I beg your pardon. now: And I'm not sure I agree with you on the propagation of the ActionErrors from the ActionBean through the failure mapping. why not? share your options. Bye.. _ Pello Xabier Altadill Izura Ingeniero Informatico y ademas navarro --- Descubre el poder de la personalización en línea. Todos tus servicios favoritos en un solo lugar: http://www.terra.com/tumonitor/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Never mind (was Re: Problems changing example to use /action URL mapping)
Don't be - this was a very useful bit of information! Thanks for sharing. Mark -Original Message- From: Rob Jellinghaus [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 11:46 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Never mind (was Re: Problems changing example to use /action URL mapping) Well, I got my IDEA (http://www.intellij.com/idea) configuration set up to run Struts under Tomcat in the debugger (thank goodness for built-in remote debugging support!). Compiled the Struts source, compiled the struts-example source, started setting breakpoints and looking at things. It turns out, as you all know, that the action names are post-mapping, so an /action/* servlet mapping converts an URI of /struts-example/action/logon to an action name of /logon. It also, of course, turns out that all HREF entries and other paths *do* include the /action context. Once I understood that, I was able to get rid of *.do. Next time I won't be so quick to ask questions :-) GOD I LOVE OPEN SOURCE! Cheers! Rob At 05:54 PM 4/9/2002 -0800, Rob Jellinghaus wrote: I am dinking around with the struts-example app, trying to convert it from using *.do servlet mapping to /action/* servlet mapping. The problem is that it's extremely confusing! Where is the best explanation of how servlet mapping and struts-config.xml interact? Right now I tried changing all the *.do URLs to be /action/* instead, throughout the .jsp's and struts-config.xml, and let's just say it didn't work. In fact, there are situations where *no* permutation of URLs works. I am sure there are some basic things I'm not understanding about how base URLs, servlet URL mapping (I'm using Tomcat), and Struts action lookup work. But how to learn better? All clues appreciated. Cheers, Rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Cannot retrieve definition for form bean null
Ida Dorum wrote: The error turned out to be in my mapping, I have never needed to add the form to my request or session in my action to make it available in my jsp? Why do you do that? Neither me (?) Could you send an extract of the JSP file? (kort_finn_kunde.jsp) -- C. Bouessay -Original Message- From: Arnaud Heritier [mailto:[EMAIL PROTECTED]] Sent: 10. april 2002 11:53 To: 'Struts Users Mailing List' Subject: RE: Cannot retrieve definition for form bean null Don't you miss to transfert your form bean at the end of your action like this : if(form!=null) if (request.equals(mapping.getScope())) request.setAttribute(mapping.getAttribute(), form); else request.getSession().setAttribute(mapping.getAttribute(), form); arno# -Message d'origine- De: Ida Dorum [SMTP:[EMAIL PROTECTED]] Date: mardi 9 avril 2002 16:54 A:[EMAIL PROTECTED] Objet:Cannot retrieve definition for form bean null I have a strange feeling I've had this problem before I invoke my action FindCustomerDataAction, wich is supposed to display a form. The action runs ok, and a form bean is made (CardCustomerSearchForm), but when i forward to the correct jsp, I get the the error included below. I include the relevant code from struts-config.xml as well: Can anyone help me?? --- --- javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:795) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481) at jsp_servlet._customer.__kort_finn_kunde._jspService(__kort_finn_kunde.ja va:127) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:200) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche rImpl.java:241) at org.apache.struts.action.ActionServlet.processActionForward(ActionServle t.java:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl etContext.java:2495) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl. java:2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) from struts-config.xml form-beans form-bean name=customerSearchForm type=sb1.business.salesclient.customer.action.CardCustom erSearchForm / /form-beans action path=/customer/search type=sb1.business.salesclient.customer.action.FindCustomerD ataAction name=customerSearchForm scope=request input=/customer/kort_finn_kunde.jsp validate=true forward name=displayform path=/customer/kort_finn_kunde.jsp /forward forward name=simplesearchresult path=/customer/show.do /forward forward name=advancedsearchresult path=/customer/searchresult.jsp /forward forward name=failure path=/customer/kort_finn_kunde.jsp /forward forward name=error path=/customer/error.jsp /forward /action ...mogul technology as... mogul technology ida dorum - software engineer drammensveien 134 N - 0277 oslo norway tel +47 - 24 11 43 00 dir +47 - 24 11 44 87 mobil +47 - 930 60 318 mailto:[EMAIL PROTECTED] www.mogul.no ... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE x 3: Para adolfo.Re: exception handling in business beans
The point is that it is NOT a personal issue. This is a public forum from which users derive benefits only from a public discussion of the issues. If you want to respond to someone in a non-English language, do so privately. Otherwise you merely waste our bandwidth. Mark I know it is NOT a personal issue. I said: Sorry, next time I'll try to respond personally. Sorry again. Please NOW, would you respond to my question? now: And I'm not sure I agree with you on the propagation of the ActionErrors from the ActionBean through the failure mapping. why not? please try to use our precious bandwidth with answers. I proposed to use ActionErrors instance in BizLogic beans, or to define a independent error bean that could be converted in ActionBean. Singing: Please forgiv m.. _ Pello Xabier Altadill Izura Ingeniero Informatico y ademas navarro --- Descubre el poder de la personalización en línea. Todos tus servicios favoritos en un solo lugar: http://www.terra.com/tumonitor/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot retrieve definition for form bean null
It is not really relevant, the error turned out to be that I messed up the action mappings during refactoring. In other words, the code from Arnaud that added the form to the request or session had nothing to do with how I solved my problem. I have never added the form to the session or request in forms I've made earlier either. ida -Original Message- From: Christian Bouessay [mailto:[EMAIL PROTECTED]] Sent: 10. april 2002 14:03 To: Struts Users Mailing List Subject: Re: Cannot retrieve definition for form bean null Ida Dorum wrote: The error turned out to be in my mapping, I have never needed to add the form to my request or session in my action to make it available in my jsp? Why do you do that? Neither me (?) Could you send an extract of the JSP file? (kort_finn_kunde.jsp) -- C. Bouessay -Original Message- From: Arnaud Heritier [mailto:[EMAIL PROTECTED]] Sent: 10. april 2002 11:53 To: 'Struts Users Mailing List' Subject: RE: Cannot retrieve definition for form bean null Don't you miss to transfert your form bean at the end of your action like this : if(form!=null) if (request.equals(mapping.getScope())) request.setAttribute(mapping.getAttribute(), form); else request.getSession().setAttribute(mapping.getAttribute(), form); arno# -Message d'origine- De: Ida Dorum [SMTP:[EMAIL PROTECTED]] Date: mardi 9 avril 2002 16:54 A:[EMAIL PROTECTED] Objet:Cannot retrieve definition for form bean null I have a strange feeling I've had this problem before I invoke my action FindCustomerDataAction, wich is supposed to display a form. The action runs ok, and a form bean is made (CardCustomerSearchForm), but when i forward to the correct jsp, I get the the error included below. I include the relevant code from struts-config.xml as well: Can anyone help me?? --- --- javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:795) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481) at jsp_servlet._customer.__kort_finn_kunde._jspService(__kort_finn_kunde.ja va:127) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:200) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche rImpl.java:241) at org.apache.struts.action.ActionServlet.processActionForward(ActionServle t.java:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl etContext.java:2495) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl. java:2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) from struts-config.xml form-beans form-bean name=customerSearchForm type=sb1.business.salesclient.customer.action.CardCustom erSearchForm / /form-beans action path=/customer/search type=sb1.business.salesclient.customer.action.FindCustomerD ataAction name=customerSearchForm scope=request input=/customer/kort_finn_kunde.jsp validate=true forward name=displayform path=/customer/kort_finn_kunde.jsp /forward forward name=simplesearchresult path=/customer/show.do /forward forward name=advancedsearchresult path=/customer/searchresult.jsp /forward forward name=failure path=/customer/kort_finn_kunde.jsp /forward forward name=error path=/customer/error.jsp /forward /action ...mogul technology as... mogul technology ida dorum - software engineer drammensveien 134 N - 0277 oslo norway tel +47 - 24 11 43 00 dir +47 - 24 11 44 87 mobil +47 - 930 60 318 mailto:[EMAIL PROTECTED] www.mogul.no
Re: New Site
Galbreath, Mark wrote: This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? No. I would look for a bug in your code, not in Struts. Have you run a profiler on it to see where it is spending it's time? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: New Site
Yes, it took some time to come up totally! Jefferson Galbreath, Mark wrote: This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
profiler
Hello all, I need to profile my webapp build with struts. Anynoe knows a good free profiler tool and is it difficult to profile a webapp in tomcat ? Thx in advance = -- KeV -- = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New Site
It is a little slow but it's depend of the server. Can you tell us what is the server side architecture. JDBC ? EJB ?? Which server do you use : Tomcat ?.? (+Apache ?.?), Weblogic, What is the Hardware and the OS ??? I know, I'm very curious but all this parameters alter the result. Arno -Message d'origine- De: Martin Samm [SMTP:[EMAIL PROTECTED]] Date: mardi 9 avril 2002 14:27 A:[EMAIL PROTECTED] Objet:New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: profiler
Optimizeit! Suite is a good choice. It´s just about putting tomcat bootstrap jars in profiler´s classpath. João. Joao Guilherme Del Valle [EMAIL PROTECTED] Visionnaire Informática SA http://www.visionnaire.com.br Tel/Fax: +55 41 373-7400 r: 221 Curitiba / PR / Brasil - Original Message - From: Viet Kevin [EMAIL PROTECTED] To: struts mailing list [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 9:12 AM Subject: profiler Hello all, I need to profile my webapp build with struts. Anynoe knows a good free profiler tool and is it difficult to profile a webapp in tomcat ? Thx in advance = -- KeV -- = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: New Site
I would also check that your JSP's are pre-compiled. The JSP's are compiled as servlets wen they are first called after changes. That can take some time as well. We have been getting excellent performance across a T1 over the Atlantic that goes from Philly to Raleigh to the UK and back aain. Jim Berg Sr. Software Specialist PSCI 610-270-4158 [EMAIL PROTECTED] Pete Carapetyan pete@datafundamentals .com To: Struts Users Mailing List 10-Apr-2002 08:10cc: Please respond toSubject: Re: New Site Struts Users Mailing List [EMAIL PROTECTED] pache.org Galbreath, Mark wrote: This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? No. I would look for a bug in your code, not in Struts. Have you run a profiler on it to see where it is spending it's time? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New Site
Thanks for the suggestion - and it's a good one that everyone should heed if they have heavy-weight JSPs. But ours are very light, and we have ANT precompile them on every deploy. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 8:36 AM To: Struts Users Mailing List Subject: Re: New Site I would also check that your JSP's are pre-compiled. The JSP's are compiled as servlets wen they are first called after changes. That can take some time as well. We have been getting excellent performance across a T1 over the Atlantic that goes from Philly to Raleigh to the UK and back aain. Jim Berg Sr. Software Specialist PSCI 610-270-4158 [EMAIL PROTECTED] Pete Carapetyan pete@datafundamentals .com To: Struts Users Mailing List 10-Apr-2002 08:10cc: Please respond toSubject: Re: New Site Struts Users Mailing List [EMAIL PROTECTED] pache.org Galbreath, Mark wrote: This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? No. I would look for a bug in your code, not in Struts. Have you run a profiler on it to see where it is spending it's time? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New Site
We're using WebSphere Advanced 4.0.2 with a nightly build of Struts from January. We've got a somewhat non-traditional EJB implementation -- only one stateless session bean that acts as an in-container target for commands. And we are not using JSP -- all our presentation is done using Enhydra XMLC. Even running this configuration on our desktop development systems with 1G processors and 256M of memory we haven't encountered any Struts-related performance problems. Jim -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 8:05 AM To: 'Struts Users Mailing List' Subject: RE: New Site Yeah - we think JRun is the main culprit (which is why we are abandoning it in favor of WebLogic). I was just interested in other's experience to confirm our suspicions. Thanks, Mark -Original Message- From: Pete Carapetyan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 8:10 AM To: Struts Users Mailing List Subject: Re: New Site Galbreath, Mark wrote: This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? No. I would look for a bug in your code, not in Struts. Have you run a profiler on it to see where it is spending it's time? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] font size=1Confidentiality Warning: This e-mail contains information intended only for the use of the individual or entity named above. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, any dissemination, publication or copying of this e-mail is strictly prohibited. The sender does not accept any responsibility for any loss, disruption or damage to your data or computer system that may occur while using data contained in, or transmitted with, this e-mail. If you have received this e-mail in error, please immediately notify us by return e-mail. Thank you.
Really Dumb Newbie Question about Extending Action
Some days it just doesn't pay to chew through the leather straps and come to work... I would like to add a layer of inheritance between the org.apache.struts.action.Action class and my application's Action subclasses. IE: MyAction extends ORGAction extends Action. Seems simple enough, however when I set this up and run my applicaiton it doesn't work. No error messages, no compile errors, no nothing. When MyAction extends Action directly the application runs as expected and I get the proper output and log messages, like so: start of copied log [02.04.10 07:28:43:630 CDT] 7f9895eb WebGroup I SRVE0091I: [Servlet LOG]: action: Process servletName=action, urlPattern=*.do [02.04.10 07:28:43:660 CDT] 7f9895eb WebGroup I SRVE0091I: [Servlet LOG]: action: Mapping for servlet 'action' = '*.do' [02.04.10 07:28:59:923 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Processing a GET for /enterVisitorDisplay [02.04.10 07:29:00:184 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Setting locale 'en_US' [02.04.10 07:29:00:194 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Looking for ActionForm bean under attribute '' [02.04.10 07:29:00:214 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Creating new ActionForm instance of class 'dhs.vcm.vis.form.SuccessContentForm' [02.04.10 07:29:00:794 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Storing instance under attribute '' in scope 'session' [02.04.10 07:29:00:804 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Populating bean properties from this request [02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Validating input form properties [02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Looking for Action instance for class dhs.vcm.vis.action.EnterVisitorActionDisplay [02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Double checking for Action instance already there [02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Creating new Action instance [02.04.10 07:29:01:706 CDT] 6572d5f7 SystemOut U EnterVisitorActionDisplay : perform : entered [02.04.10 07:29:01:826 CDT] 6572d5f7 SystemOut U EnterVisitorActionDisplay : perform : posting message [02.04.10 07:29:01:856 CDT] 6572d5f7 SystemOut U MessageRouting : postMessageToQueue : enterVisitor [02.04.10 07:29:01:866 CDT] 6572d5f7 SystemOut U EnterVisitorActionDisplay : perform : leaving now end of copied log When I have MyAction extending ORGAction, which extends Action I get this: start of copied log [02.04.10 07:32:02:396 CDT] 7a45d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Process servletName=action, urlPattern=*.do [02.04.10 07:32:02:416 CDT] 7a45d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Mapping for servlet 'action' = '*.do' [02.04.10 07:32:35:794 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Processing a GET for /enterVisitorDisplay [02.04.10 07:32:35:954 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Setting locale 'en_US' [02.04.10 07:32:35:974 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Looking for ActionForm bean under attribute '' [02.04.10 07:32:35:984 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Creating new ActionForm instance of class 'dhs.vcm.vis.form.SuccessContentForm' [02.04.10 07:32:36:675 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Storing instance under attribute '' in scope 'session' [02.04.10 07:32:36:685 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Populating bean properties from this request [02.04.10 07:32:37:075 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Validating input form properties [02.04.10 07:32:37:116 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Looking for Action instance for class dhs.vcm.vis.action.EnterVisitorActionDisplay [02.04.10 07:32:37:126 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Double checking for Action instance already there [02.04.10 07:32:37:136 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Creating new Action instance end of copied log What gives? I know I am doing something very basic wrong. I just can't see it. Sigh. TIA, Mark _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Really Dumb Newbie Question about Extending Action
dunno...let's see the source of ORGAction(). Mark -Original Message- From: Struts Developer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 9:20 AM I would like to add a layer of inheritance between the org.apache.struts.action.Action class and my application's Action subclasses. IE: MyAction extends ORGAction extends Action. Seems simple enough, however when I set this up and run my applicaiton it doesn't work. No error messages, no compile errors, no nothing. When MyAction extends Action directly the application runs as expected and I get the proper output and log messages, like so: TIA, Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: New Site
Subject: Re: New Site From: Vic Cekvenich [EMAIL PROTECTED] === Weblogic is expensive. Consider Resin... or OrionServer.com. Galbreath, Mark wrote: Yeah - we think JRun is the main culprit (which is why we are abandoning it in favor of WebLogic). I was just interested in other's experience to confirm our suspicions. Thanks, Mark -Original Message- From: Pete Carapetyan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 8:10 AM To: Struts Users Mailing List Subject: Re: New Site Galbreath, Mark wrote: This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? No. I would look for a bug in your code, not in Struts. Have you run a profiler on it to see where it is spending it's time? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Trying Struts Again...
Subject: Re: Trying Struts Again... From: Wendy S [EMAIL PROTECTED] === Hyunjin Kim [EMAIL PROTECTED] wrote in message news:a9118h$8nd$[EMAIL PROTECTED]... if you followed struts documentation about installation carefuly, you would have seen that struts now depends on several other jar files... Taking a fresh look at it this morning, the strange thing is that even with the errors in the Tomcat console, the mail-reader example seems to work. And yes, I did read the README file and it said that the additional files (JAXP JDBC) were necessary only for building Struts from source or for using the entire framework rather than just the tag libraries. But this error is complaining about logging... and I don't see any reference to that in the Struts README. I've now got the commons logging files from jakarta, but I'm not certain where to put them. No README file came with commons-logging. :( I'm also stuck on adding JAXP to 1.4 since its doc says to put everything _ but_ jaxp-api.jar into /java_location/lib/endorsed, but then never really says where to put jaxp-api.jar. I'm going with java_location/lib/ext for now. Those of you using JAXP on 1.4, where did you put jaxp-api.jar? Thanks for your help! -- Wendy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Really Dumb Newbie Question about Extending Action
Okay, here's my source: -start package dhs.struts.action; import org.apache.struts.action.Action ; public class ORGAction extends Action { } -end Mark N. From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Really Dumb Newbie Question about Extending Action Date: Wed, 10 Apr 2002 09:29:39 -0400 dunno...let's see the source of ORGAction(). Mark -Original Message- From: Struts Developer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 9:20 AM I would like to add a layer of inheritance between the org.apache.struts.action.Action class and my application's Action subclasses. IE: MyAction extends ORGAction extends Action. Seems simple enough, however when I set this up and run my applicaiton it doesn't work. No error messages, no compile errors, no nothing. When MyAction extends Action directly the application runs as expected and I get the proper output and log messages, like so: TIA, Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: New Site
Subject: Re: New Site From: Vic Cekvenich [EMAIL PROTECTED] === Sorry... It is just so slow. Always, always stress test before deploying... it save money. http://webtool.rte.microsoft.com/download.asp is one stress test Vic Cekvenich wrote: And JRockit.com or IBM for a VM. (tags are slow on Sun JDK 1.3) Vic Cekvenich wrote: Weblogic is expensive. Consider Resin... or OrionServer.com. Galbreath, Mark wrote: Yeah - we think JRun is the main culprit (which is why we are abandoning it in favor of WebLogic). I was just interested in other's experience to confirm our suspicions. Thanks, Mark -Original Message- From: Pete Carapetyan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 8:10 AM To: Struts Users Mailing List Subject: Re: New Site Galbreath, Mark wrote: This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? No. I would look for a bug in your code, not in Struts. Have you run a profiler on it to see where it is spending it's time? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: New Site
Subject: Re: New Site From: Vic Cekvenich [EMAIL PROTECTED] === And JRockit.com or IBM for a VM. (tags are slow on Sun JDK 1.3) Vic Cekvenich wrote: Weblogic is expensive. Consider Resin... or OrionServer.com. Galbreath, Mark wrote: Yeah - we think JRun is the main culprit (which is why we are abandoning it in favor of WebLogic). I was just interested in other's experience to confirm our suspicions. Thanks, Mark -Original Message- From: Pete Carapetyan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 8:10 AM To: Struts Users Mailing List Subject: Re: New Site Galbreath, Mark wrote: This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? No. I would look for a bug in your code, not in Struts. Have you run a profiler on it to see where it is spending it's time? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Action Facade
Hello, Any recommendations on how to write Action Facade for Struts? I mean what all it should do to be a facade for the actions. Design strategies? Thanks so much, Ranjan.
can not access a member of class ... with modifiers - Error
Hi, can someone tell me what this error has to say? org.apache.struts.action.ActionServlet: Error creating Act ion instance for path '/login', class name 'com.di.security.auth.authentication. LoginAction'^M java.lang.IllegalAccessException: Class org.apache.struts.action.ActionServlet c an not access a member of class com.di.security.auth.authentication.LoginAction with modifiers ^M at java.lang.Thread.run(Thread.java:536)^M... thank you juraj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New Site
We, in fact, are considering Oracle 9ias (built on Orion). We are considering WebLogic only because we are in the process of making the decision to outsource the hosting and every major vendor seems to support WebLogic only. Mark -Original Message- From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 9:40 AM To: [EMAIL PROTECTED] Subject: Re: New Site Subject: Re: New Site From: Vic Cekvenich [EMAIL PROTECTED] === Weblogic is expensive. Consider Resin... or OrionServer.com. Galbreath, Mark wrote: Yeah - we think JRun is the main culprit (which is why we are abandoning it in favor of WebLogic). I was just interested in other's experience to confirm our suspicions. Thanks, Mark -Original Message- From: Pete Carapetyan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 8:10 AM To: Struts Users Mailing List Subject: Re: New Site Galbreath, Mark wrote: This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? No. I would look for a bug in your code, not in Struts. Have you run a profiler on it to see where it is spending it's time? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Really Dumb Newbie Question about Extending Action
Have you implemente the struts-config manually, or have you used a tool like XDoclet to generate it ? Cause i had the same problems cause XDoclet produces some errors here. Oliver -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 4:24 PM To: 'Struts Users Mailing List' Subject: RE: Really Dumb Newbie Question about Extending Action Try this as a bare minimum: package dhs.struts.action; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForward; public class ORGAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return mapping.findForward( success); } } Mark -Original Message- From: Struts Developer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: RE: Really Dumb Newbie Question about Extending Action Okay, here's my source: -start package dhs.struts.action; import org.apache.struts.action.Action ; public class ORGAction extends Action { } -end Mark N. From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Really Dumb Newbie Question about Extending Action Date: Wed, 10 Apr 2002 09:29:39 -0400 dunno...let's see the source of ORGAction(). Mark -Original Message- From: Struts Developer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 9:20 AM I would like to add a layer of inheritance between the org.apache.struts.action.Action class and my application's Action subclasses. IE: MyAction extends ORGAction extends Action. Seems simple enough, however when I set this up and run my applicaiton it doesn't work. No error messages, no compile errors, no nothing. When MyAction extends Action directly the application runs as expected and I get the proper output and log messages, like so: TIA, Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Really Dumb Newbie Question about Extending Action
I just assumed (dumb) that he would have mapped the extension in struts-config and web-xml. Mark -Original Message- From: Oliver Reflé [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 10:29 AM To: Struts Users Mailing List Subject: RE: Really Dumb Newbie Question about Extending Action Have you implemente the struts-config manually, or have you used a tool like XDoclet to generate it ? Cause i had the same problems cause XDoclet produces some errors here. Oliver -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 4:24 PM To: 'Struts Users Mailing List' Subject: RE: Really Dumb Newbie Question about Extending Action Try this as a bare minimum: package dhs.struts.action; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForward; public class ORGAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return mapping.findForward( success); } } Mark -Original Message- From: Struts Developer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: RE: Really Dumb Newbie Question about Extending Action Okay, here's my source: -start package dhs.struts.action; import org.apache.struts.action.Action ; public class ORGAction extends Action { } -end Mark N. From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Really Dumb Newbie Question about Extending Action Date: Wed, 10 Apr 2002 09:29:39 -0400 dunno...let's see the source of ORGAction(). Mark -Original Message- From: Struts Developer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 9:20 AM I would like to add a layer of inheritance between the org.apache.struts.action.Action class and my application's Action subclasses. IE: MyAction extends ORGAction extends Action. Seems simple enough, however when I set this up and run my applicaiton it doesn't work. No error messages, no compile errors, no nothing. When MyAction extends Action directly the application runs as expected and I get the proper output and log messages, like so: TIA, Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: can not access a member of class ... with modifiers - Error
hi, ok i have it; my generated action-class wasn't ''public'' -Ursprüngliche Nachricht- Von: juraj Lenharcik [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 10. April 2002 16:14 An: Struts-User@Jakarta. Apache. Org (E-Mail) Betreff: can not access a member of class ... with modifiers - Error Hi, can someone tell me what this error has to say? org.apache.struts.action.ActionServlet: Error creating Act ion instance for path '/login', class name 'com.di.security.auth.authentication. LoginAction'^M java.lang.IllegalAccessException: Class org.apache.struts.action.ActionServlet c an not access a member of class com.di.security.auth.authentication.LoginAction with modifiers ^M at java.lang.Thread.run(Thread.java:536)^M... thank you juraj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Really Dumb Newbie Question about Extending Action
Hmmm... mapped the extension in struts-config and web-xml'? Mapped how? Here is my web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app !-- Example Database Initialization Servlet Configuration servlet servlet-namedatabase/servlet-name servlet-classorg.apache.struts.example.DatabaseServlet/servlet-class init-param param-namedebug/param-name param-value2/param-value /init-param load-on-startup1/load-on-startup /servlet -- !-- Standard Action Servlet Configuration (with debugging) -- !-- added no-cache parm. mhn. 3.28.2002 -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param init-param param-namenocache/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Standard Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping !-- The Usual Welcome File List -- !-- changed from index.jsp by mhn on 4.3.2002 -- welcome-file-list welcome-fileindexFrame.html/welcome-file /welcome-file-list !-- Example Application Tag Library Descriptor taglib taglib-uri/WEB-INF/app.tld/taglib-uri taglib-location/WEB-INF/app.tld/taglib-location /taglib -- !-- Struts Tag Library Descriptors -- taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-html.tld/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-logic.tld/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-template.tld/taglib-uri taglib-location/WEB-INF/struts-template.tld/taglib-location /taglib !-- added Tiles taglib. mhn 2.13.2002 -- taglib taglib-uri/WEB-INF/tiles.tld/taglib-uri taglib-location/WEB-INF/tiles.tld/taglib-location /taglib !-- added DHS HTML taglib. mhn 2.28.2002 -- taglib taglib-uri/WEB-INF/dhs-html.tld/taglib-uri taglib-location/WEB-INF/dhs-html.tld/taglib-location /taglib !-- added Pager taglib. mhn 3.4.2002 -- taglib taglib-uri/WEB-INF/pager-taglib.tld/taglib-uri taglib-location/WEB-INF/pager-taglib.tld/taglib-location /taglib /web-app And parts of my struts-config.xml file (overall its 600+ lines, didn't want to include the whole bloody thing...) ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd; !-- This is the Struts configuration file for the VIS Web Access application. -- struts-config !-- == Data Source Configuration === -- !-- data-sources data-source autoCommit=false description=Example Data Source Configuration driverClass=org.postgresql.Driver maxCount=4 minCount=2 password=mypassword url=jdbc:postgresql://localhost/mydatabase user=myusername / /data-sources -- !-- == Form Bean Definitions === -- form-beans !-- VIS Logon Form Bean -- form-bean name=logonForm type=dhs.vcm.vis.form.LogonForm/ !-- Finish Reason Form Bean -- form-bean name=finishReasonForm type=dhs.vcm.vis.form.FinishReasonForm/ !-- Sucess Content Form Bean -- form-bean name= type=dhs.vcm.vis.form.SuccessContentForm/ /form-beans !-- == Global Forward Definitions == -- global-forwards forward name=success path=/indexFrame.html/ forward name=welcomePage path=/indexFrame.html/ forward name=finishReasonPage path=/finishReasonTest.jsp/ /global-forwards !-- == Action Mapping Definitions
RE: Really Dumb Newbie Question about Extending Action
Mark, Here is the latest version of my source: package dhs.struts.action; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action ; import org.apache.struts.action.ActionForm ; import org.apache.struts.action.ActionMapping ; import org.apache.struts.action.ActionForward ; public class ORGAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return mapping.findForward( success); } } I added a mapping to my struts-config.xml file for success. It still doesn't work. Phooey. /\/\ark From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Really Dumb Newbie Question about Extending Action Date: Wed, 10 Apr 2002 10:24:16 -0400 Try this as a bare minimum: package dhs.struts.action; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForward; public class ORGAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return mapping.findForward( success); } } Mark -Original Message- From: Struts Developer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: RE: Really Dumb Newbie Question about Extending Action Okay, here's my source: -start package dhs.struts.action; import org.apache.struts.action.Action ; public class ORGAction extends Action { } -end Mark N. From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Really Dumb Newbie Question about Extending Action Date: Wed, 10 Apr 2002 09:29:39 -0400 dunno...let's see the source of ORGAction(). Mark -Original Message- From: Struts Developer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 9:20 AM I would like to add a layer of inheritance between the org.apache.struts.action.Action class and my application's Action subclasses. IE: MyAction extends ORGAction extends Action. Seems simple enough, however when I set this up and run my applicaiton it doesn't work. No error messages, no compile errors, no nothing. When MyAction extends Action directly the application runs as expected and I get the proper output and log messages, like so: TIA, Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt
Subject: Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt From: Ken Holzer [EMAIL PROTECTED] === Hi Vic, I downloaded the latest version and am trying to run it using WebSphere 4.0. I am getting the following error when I start the server: [02.04.10 09:52:27:953 CDT] 2b31e7c1 WebGroup I SRVE0091I: [Servlet LOG]: action: init [02.04.10 09:52:28:421 CDT] 2b31e7c1 ServletInstan X SRVE0100E: Did not realize init() exception thrown by servlet action: javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/config/struts-config.xml at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j ava:780) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:417) at org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j ava:52) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja va:802) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe rvlet.java:137) at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl eServlet.java:243) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer vlet.java:103) at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java: 84) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet Manager.java:226) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA ppServletManager.java:357) at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001) at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133) at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234) at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139) at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:63 3) at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36) at com.ibm.ws.runtime.Server.startModule(Server.java:615) at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333) at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349 ) at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:882) at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158) at com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.ja va) I was able to run the Index.HTML and get to the First.JSP. The TestDAO runs OK but the tiles version fails (because of above error). Any help would be appreciated. Thanks, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I just placed a new version of the WebPIM on the downloads page. (It uses the latest build of Struts 1.1 beta). First 10 people that deploy it, get a FREE shirt (in continental US). 1. You must send at least one line to this newsgroup or MVC newsgroup on how to deploy tip. (MVC is on news.basebeans.com in a newsreader) 2. Send me ([EMAIL PROTECTED]) a screen shot of the app running (and your mailing address). Thanks, Vic Major changes include factoring out DAO out of baseBeans/FormBeans Also, this applications demonstrates the following: * DB CRUD * How to fork the action so it dispatches to right execute * Use of factoring out DAO from FormBean so you can use any data source (even EJB) * Validation * Messages * Master/Detail * Drill Down * Iteration * Formatting # and date * Collections options drop downs * Use of menu navigation using Struts menu to factor out navigation * Use of Portal Tiles - Navigation -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ReadOnly data in a Form question
I'm not sure what exactly you are trying to do, but you can put that extra data into your form, and then define the fields in your JSP as this strutshtml:text property=property_name size=20 readonly=true /. Brian Chappell, Simon P [EMAIL PROTECTED] 04/10/02 07:40am I have no problem with getting data to and from a JSP in a Form object. But if I want to send extra read-only (display-only?) data to a JSP, can I put it in the Form object and read it from there? If I don't have a JSP field with that name (e.g.ReadOnlyData) would that work? The reason that I ask, is that for the situation I am thinking of, I want to have a bunch of computed read-only data on a form and then a single field to accept data and I would rather not dump a potentially large amount of data into the session. All suggestions appreciated (especially from Mark! :-) Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[OT] precompiling jsp with ant (prev 'RE: New Site')
Mark, Would you mind providing a sample ant code that does the JSP precompiling? I am currently doing that through a servlet, but using ANT would be much better... I looked on the ANT and Tomcat archives but I could not any info on how to do that. Thanks in advance, Fabien - Fabien Modoux, Voicemate - http://www.voicemate.com -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 9:08 AM To: 'Struts Users Mailing List' Subject: RE: New Site Thanks for the suggestion - and it's a good one that everyone should heed if they have heavy-weight JSPs. But ours are very light, and we have ANT precompile them on every deploy. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 8:36 AM To: Struts Users Mailing List Subject: Re: New Site I would also check that your JSP's are pre-compiled. The JSP's are compiled as servlets wen they are first called after changes. That can take some time as well. We have been getting excellent performance across a T1 over the Atlantic that goes from Philly to Raleigh to the UK and back aain. Jim Berg Sr. Software Specialist PSCI 610-270-4158 [EMAIL PROTECTED] Pete Carapetyan pete@datafundamentals .com To: Struts Users Mailing List 10-Apr-2002 08:10cc: Please respond toSubject: Re: New Site Struts Users Mailing List [EMAIL PROTECTED] pache.org Galbreath, Mark wrote: This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? No. I would look for a bug in your code, not in Struts. Have you run a profiler on it to see where it is spending it's time? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Error with composite pages using Struts
I'm developing a web site using composite pages with the Struts MVC Frame work running under Websphere 4.0. showLatestNews.do is a defined action that will instantiate an object that performs a database query and returns a result set. This result set is then made available to the VIEW (ShowLatestNews.jsp) for presentation. action-mappings action path=/showLatestNews scope=request type=com.aig.aignet.ShowLatestNewsAction unknown=false validate=false forward name=viewLatestNews path=/ShowLatestNews.jsp/ /action /action-mappings I'm receiving the following error: Error Message: ERROR: Cannot forward. Writer or Stream already obtained. html body jsp:include page=/showLatestNews.do flush=true /jsp:include /body /html Has anyone had this problem ? Freddie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt
Subject: Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt From: Vic Cekvenich [EMAIL PROTECTED] === Do non-db sample from Struts run (Tiles, validator, struts-docs)?. I tested on Tomcat4, Resin 2.1, and OrionServer. Can you just get a hello world jsp? My first page is just a non struts jsp in webPIM. I want to help!!!. Vic Ken Holzer wrote: Hi Vic, I downloaded the latest version and am trying to run it using WebSphere 4.0. I am getting the following error when I start the server: [02.04.10 09:52:27:953 CDT] 2b31e7c1 WebGroup I SRVE0091I: [Servlet LOG]: action: init [02.04.10 09:52:28:421 CDT] 2b31e7c1 ServletInstan X SRVE0100E: Did not realize init() exception thrown by servlet action: javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/config/struts-config.xml at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j ava:780) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:417) at org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j ava:52) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja va:802) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe rvlet.java:137) at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl eServlet.java:243) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer vlet.java:103) at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java: 84) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet Manager.java:226) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA ppServletManager.java:357) at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001) at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133) at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234) at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139) at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:63 3) at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36) at com.ibm.ws.runtime.Server.startModule(Server.java:615) at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333) at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349 ) at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:882) at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158) at com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.ja va) I was able to run the Index.HTML and get to the First.JSP. The TestDAO runs OK but the tiles version fails (because of above error). Any help would be appreciated. Thanks, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I just placed a new version of the WebPIM on the downloads page. (It uses the latest build of Struts 1.1 beta). First 10 people that deploy it, get a FREE shirt (in continental US). 1. You must send at least one line to this newsgroup or MVC newsgroup on how to deploy tip. (MVC is on news.basebeans.com in a newsreader) 2. Send me ([EMAIL PROTECTED]) a screen shot of the app running (and your mailing address). Thanks, Vic Major changes include factoring out DAO out of baseBeans/FormBeans Also, this applications demonstrates the following: * DB CRUD * How to fork the action so it dispatches to right execute * Use of factoring out DAO from FormBean so you can use any data source (even EJB) * Validation * Messages * Master/Detail * Drill Down * Iteration * Formatting # and date * Collections options drop downs * Use of menu navigation using Struts menu to factor out navigation * Use of Portal Tiles - Navigation -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
upgrading to 1.1 also Validator issues
Before I post specific errors that I'm getting is there a document somewhere that I can read that explains what needs to be changed when moving from struts1.0 to 1.1beta ? Also some documentation on issues related to using Validator with 1.1. I did find some helpful stuff in the list archives concerning validator issues http://www.mail-archive.com/struts-user@jakarta.apache.org/msg27466.html but I'm still running into other problems. I looked at the readme that came with struts1.1 and I didn't find anything that explained any issues. I'll post specific problems but I was just wondering if someone had a link they could point me too first so I don't ask questions that have been answered already. Thanks -- Rick mailto:[EMAIL PROTECTED] I can't stand cheap people. It makes me real mad when someone says something like, 'Hey, when are you going to pay me that $100 you owe me?' or 'Do you have that $50 you borrowed?' Man, quit being so cheap! -Jack Handey -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt
Subject: Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt From: Ken Holzer [EMAIL PROTECTED] === Hi Vic, I was able to get the Struts-Tile example to run, after placing the xerces.jar in the lib directory. I did the same in the WebPIM and it is now working. Thanks for the help, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Do non-db sample from Struts run (Tiles, validator, struts-docs)?. I tested on Tomcat4, Resin 2.1, and OrionServer. Can you just get a hello world jsp? My first page is just a non struts jsp in webPIM. I want to help!!!. Vic Ken Holzer wrote: Hi Vic, I downloaded the latest version and am trying to run it using WebSphere 4.0. I am getting the following error when I start the server: [02.04.10 09:52:27:953 CDT] 2b31e7c1 WebGroup I SRVE0091I: [Servlet LOG]: action: init [02.04.10 09:52:28:421 CDT] 2b31e7c1 ServletInstan X SRVE0100E: Did not realize init() exception thrown by servlet action: javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/config/struts-config.xml at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j ava:780) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:417) at org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j ava:52) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja va:802) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe rvlet.java:137) at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl eServlet.java:243) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer vlet.java:103) at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java: 84) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet Manager.java:226) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA ppServletManager.java:357) at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001) at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133) at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234) at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139) at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:63 3) at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36) at com.ibm.ws.runtime.Server.startModule(Server.java:615) at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333) at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349 ) at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:882) at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158) at com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.ja va) I was able to run the Index.HTML and get to the First.JSP. The TestDAO runs OK but the tiles version fails (because of above error). Any help would be appreciated. Thanks, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I just placed a new version of the WebPIM on the downloads page. (It uses the latest build of Struts 1.1 beta). First 10 people that deploy it, get a FREE shirt (in continental US). 1. You must send at least one line to this newsgroup or MVC newsgroup on how to deploy tip. (MVC is on news.basebeans.com in a newsreader) 2. Send me ([EMAIL PROTECTED]) a screen shot of the app running (and your mailing address). Thanks, Vic Major changes include factoring out DAO out of baseBeans/FormBeans Also, this applications demonstrates the following: * DB CRUD * How to fork the action so it dispatches to right execute * Use of factoring out DAO from FormBean so you can use any data source (even EJB) * Validation * Messages * Master/Detail * Drill Down * Iteration * Formatting # and date * Collections options drop downs * Use of menu navigation using Struts menu to factor out navigation * Use of Portal Tiles - Navigation -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt
Subject: Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt From: Vic Cekvenich [EMAIL PROTECTED] === Do you have DB and master detail working as well? Send me private ([EMAIL PROTECTED]) e-mail with a mailing address if you want the t-shirt. Vic Ken Holzer wrote: Hi Vic, I was able to get the Struts-Tile example to run, after placing the xerces.jar in the lib directory. I did the same in the WebPIM and it is now working. Thanks for the help, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Do non-db sample from Struts run (Tiles, validator, struts-docs)?. I tested on Tomcat4, Resin 2.1, and OrionServer. Can you just get a hello world jsp? My first page is just a non struts jsp in webPIM. I want to help!!!. Vic Ken Holzer wrote: Hi Vic, I downloaded the latest version and am trying to run it using WebSphere 4.0. I am getting the following error when I start the server: [02.04.10 09:52:27:953 CDT] 2b31e7c1 WebGroup I SRVE0091I: [Servlet LOG]: action: init [02.04.10 09:52:28:421 CDT] 2b31e7c1 ServletInstan X SRVE0100E: Did not realize init() exception thrown by servlet action: javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/config/struts-config.xml at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j ava:780) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:417) at org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j ava:52) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja va:802) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe rvlet.java:137) at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl eServlet.java:243) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer vlet.java:103) at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java: 84) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet Manager.java:226) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA ppServletManager.java:357) at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001) at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133) at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234) at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139) at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:63 3) at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36) at com.ibm.ws.runtime.Server.startModule(Server.java:615) at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333) at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349 ) at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:882) at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158) at com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.ja va) I was able to run the Index.HTML and get to the First.JSP. The TestDAO runs OK but the tiles version fails (because of above error). Any help would be appreciated. Thanks, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I just placed a new version of the WebPIM on the downloads page. (It uses the latest build of Struts 1.1 beta). First 10 people that deploy it, get a FREE shirt (in continental US). 1. You must send at least one line to this newsgroup or MVC newsgroup on how to deploy tip. (MVC is on news.basebeans.com in a newsreader) 2. Send me ([EMAIL PROTECTED]) a screen shot of the app running (and your mailing address). Thanks, Vic Major changes include factoring out DAO out of baseBeans/FormBeans Also, this applications demonstrates the following: * DB CRUD * How to fork the action so it dispatches to right execute * Use of factoring out DAO from FormBean so you can use any data source (even EJB) * Validation * Messages * Master/Detail * Drill Down * Iteration * Formatting # and date * Collections options drop downs * Use of menu navigation using Struts menu to factor out navigation * Use of Portal Tiles - Navigation -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: *.do !
If the question is: How do I get the URL of the JSP (or other forward URL path) to show in the browser's URL field? I think the answer is to add redirect=true to the forward element definition. Of course, this has other side effects, such as losing the request's attributes and parameters. So make sure that is what you really want to do. Steve -Original Message- From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 2:55 AM To: [EMAIL PROTECTED] Subject: Re: *.do ! Subject: Re: *.do ! From: Hyunjin Kim [EMAIL PROTECTED] === hmm.. i am not sure if i am understanding your question correctly... but.. the answer is no.. you cannot just call the forward path(buy.jsp) and hope it will also call the action servlet (except if you have code in the jsp page that calls the action class... but in that case, you are outside of the struts framework). now my question: Why do you wanna do that?? [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Hi, When i call an action i have in my browser url field http://...buy.do insteadof ../buy.jsp Is there a solution to have the forward path and not the path of the action Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Having trouble nesting iterate tags (long explanation, relatively simple question)
A total stab in the dark here, I'm a JSP newbie: At 04:20 PM 4/9/2002 -0700, Rick Mann wrote: logic:iterate id=foundLocation name=foundCity property=locations pbean:write name=foundLocation property=name/p /logic:iterate As soon as I do that, I get org.apache.jasper.compiler.ParseException: End of content reached while more parsing required: tag nesting error?. Should it maybe be p bean:write name=foundLocation property=name / /p (note the closing slash)? Cheers, Rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ReadOnly data in a Form question
Yeah, I could. Let me throw a little more light on the situation. My intention is to have a multi line table of line items for the shipment info and then a single data item at the bottom (perhaps top) of the form for the single data item to be entered. The data item can be a String. The line items for the shipment would be an ArrayList of LineItem objects. I want to have struts handle the auto loading/extracting of the String field and I want to use the logic:iterate tag to display the line items myself. This is not wildly different to the registration.jsp, except that I don't really want to pass the extra data in through the session. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Brian Holzer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 10:27 AM To: [EMAIL PROTECTED] Subject: Re: ReadOnly data in a Form question I'm not sure what exactly you are trying to do, but you can put that extra data into your form, and then define the fields in your JSP as this strutshtml:text property=property_name size=20 readonly=true /. Brian Chappell, Simon P [EMAIL PROTECTED] 04/10/02 07:40am I have no problem with getting data to and from a JSP in a Form object. But if I want to send extra read-only (display-only?) data to a JSP, can I put it in the Form object and read it from there? If I don't have a JSP field with that name (e.g.ReadOnlyData) would that work? The reason that I ask, is that for the situation I am thinking of, I want to have a bunch of computed read-only data on a form and then a single field to accept data and I would rather not dump a potentially large amount of data into the session. All suggestions appreciated (especially from Mark! :-) Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
character encoding
Searched the archives but could not find relevant answers. This is JBoss 2.4.4 with Tomcat 3.2.3. Character encoding works fine both for input*1 and output. I did verify this checking the database content and displaying in JSP output without Struts help. Now the problem is that Struts ignores(?) encoding set in @page contentType to UTF8: html:text property=name styleId=name tabindex=1 size=16 maxlength=16/ above displays wrong result whereas using my own method to display the same data (custom tag library to display EJB entity). It is very strange as I am able to input (and decode characters) correctly with modified setters but somehow this does not work to display output. Am I doing something wrong? Or is this a bug? TIA Peter *1 I changed setters in my ActionForm: try { this.name = new String(name.getBytes(iso-8859-1), utf-8); } catch (java.io.UnsupportedEncodingException e) { this.name = name; } _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Security Question getRemoteUser() or getUserPrincipal()
The getRemoteUser() method is simply returning the value of an HTTP header to you. On the other hand, java.security.Principal is an interface which you, as the security provider, would typically implement. How you implement the getName() method is up to you - the result may have no relationship to what you get from getRemoteUser(). -- Martin Cooper - Original Message - From: Phase Web and Multimedia [EMAIL PROTECTED] To: Struts User [EMAIL PROTECTED]; Struts Dev [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 3:03 PM Subject: Security Question getRemoteUser() or getUserPrincipal() Sorry all I know this isn't a struts question. But I have a security framework that will give more flexiblity to struts and tomcat(+ other containers). I am able to tie it into the container managed security. But, I need a question answered? what is the difference between getRemoteUser() and getUserPrincipal()? From what I can tell getRemoteUser() returns the username in string form and the only method in the Principal class is the getName() which returns the usersname. Why do we have both and if I am doing programmatic security checks which should I use and why? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts 1.1b/log4j
Can someone please point me to (or send to the list) an example log4j.properties file that will work with Struts 1.1b? I'm not sure what appenders and categories to put in there and I haven't found any documentation about it. Also, do I have to start log4j or does Struts start it automatically? Thanks Jay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DynaBeans documentation
Hi, Can anyone point me to any relevant DynaBeans documentation and/or examples ? Thank you, Corneliu
Websphere problem running struts 1.1b1
Hi guys, I'm trying to run my application in Websphere 4.0 (redHat 7.2), but I keep getting always the same error... All the action goes ok, but when it's ready to show the JSP page, it complains with the following error: on the browser: Error 500: org/apache/struts/taglib/html/BaseHandlerTag on default stdOut.log: [4/10/02 14:18:25:789 EDT] 19f4c66c WebGroup X SRVE0026E: [Servlet Error]-[JSP 1.1 Processor]: com.ibm.servlet.engine.webapp.WebAppErrorReport:org/apache/struts/taglib/html/BaseHandlerTag at com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispatcherResponse.java:85) at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:467) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:573) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:972) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:408) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112) at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:184) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67) at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315) at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252) at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122) Any help is great appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New Site
We run JRun 3 + Struts with no notable performance problems on www.codenotes.com ... on a fairly modest hardware. JRun has been fast for us, but we don't use EJB. Cheers _ Stuart Charlton Infusion Development Corp. Tel: (212) 732-6100 x109 Free: (888) INFUSE-8 Authors of the CodeNotes book series visit www.codenotes.com -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 9:05 AM To: 'Struts Users Mailing List' Subject: RE: New Site Yeah - we think JRun is the main culprit (which is why we are abandoning it in favor of WebLogic). I was just interested in other's experience to confirm our suspicions. Thanks, Mark -Original Message- From: Pete Carapetyan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 8:10 AM To: Struts Users Mailing List Subject: Re: New Site Galbreath, Mark wrote: This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? No. I would look for a bug in your code, not in Struts. Have you run a profiler on it to see where it is spending it's time? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:struts-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:struts-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts 1.1b/log4j
Jay sissom wrote: I'm not sure what appenders and categories to put in there and I haven't found any documentation about it. The commons-logging package uses class names to instantiate the loggers. So, for example, the logger for the ActionServlet will be named org.apache.struts.action.ActionServlet (or something). The appenders you can set up as you wish. Also, do I have to start log4j or does Struts start it automatically? You have to start it manually. -- []'s Marcelo Vanzin Touch Tecnologia [EMAIL PROTECTED] Life is too short to drink cheap beer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Too Slow: Debug Struts + Torque project using JBuilder5
Hi I have a powerful PC: 1.5G Intel cpu, 768M memory, 30G HD But when I debug Struts+Torque project with JBuilder5, the speed is terrible slow!!! My project scale is not very large, only 10 jsp and 20 oracle tables. It will take more than 1 minute to start debug. What's the main problem is? Which is the best debug tool for Struts+Torque projects? Thanks in advance. Annie
RE: Struts 1.1b/log4j
Can you please tell me the file in the log4j download tar.gz file that tells how to configure log4j to work with struts? I did a grep for struts in the whole log4j download and the only mention of it in the entire thing were links to http://jakarta.apache.org/struts (and a couple of email messages that have no documentation). I downloaded 1.1.3. Maybe it's in a different version. Please tell me what version to download also. I know how to use log4j, I just don't know which Categories struts 1.1b uses in log4j. I now know that one is org.apache.struts.action.ActionServlet. Is that the only one? Is this documented anywhere? Thank you very much for your help Jay On Wed, 10 Apr 2002, Zeltser, Mark wrote: Download log4j from jakarta.apache.org and read documentation on how to configure it with struts. Mark. -Original Message- From: Jay sissom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 2:23 PM To: Struts Users Mailing List Subject: Struts 1.1b/log4j Can someone please point me to (or send to the list) an example log4j.properties file that will work with Struts 1.1b? I'm not sure what appenders and categories to put in there and I haven't found any documentation about it. Also, do I have to start log4j or does Struts start it automatically? Thanks Jay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts 1.1b/log4j
Subject: Re: Struts 1.1b/log4j From: Vic Cekvenich [EMAIL PROTECTED] === The Struts DB sample app on homepage of baseBeans.com has a log properties files all set up. Jay sissom wrote: Can someone please point me to (or send to the list) an example log4j.properties file that will work with Struts 1.1b? I'm not sure what appenders and categories to put in there and I haven't found any documentation about it. Also, do I have to start log4j or does Struts start it automatically? Thanks Jay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt
Subject: Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt From: Ken Holzer [EMAIL PROTECTED] === Yes, I do have the DB and master detail working. I am having one problem with the date conversion, it gives me the following error: U E:java.sql.SQLException: getDate Failed on value (03/28/2002) in column 7 I received the same error with the dates as 2002-03-28. I am using an Access database to retrieve the data. Thanks, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Do you have DB and master detail working as well? Send me private ([EMAIL PROTECTED]) e-mail with a mailing address if you want the t-shirt. Vic Ken Holzer wrote: Hi Vic, I was able to get the Struts-Tile example to run, after placing the xerces.jar in the lib directory. I did the same in the WebPIM and it is now working. Thanks for the help, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Do non-db sample from Struts run (Tiles, validator, struts-docs)?. I tested on Tomcat4, Resin 2.1, and OrionServer. Can you just get a hello world jsp? My first page is just a non struts jsp in webPIM. I want to help!!!. Vic Ken Holzer wrote: Hi Vic, I downloaded the latest version and am trying to run it using WebSphere 4.0. I am getting the following error when I start the server: [02.04.10 09:52:27:953 CDT] 2b31e7c1 WebGroup I SRVE0091I: [Servlet LOG]: action: init [02.04.10 09:52:28:421 CDT] 2b31e7c1 ServletInstan X SRVE0100E: Did not realize init() exception thrown by servlet action: javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/config/struts-config.xml at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j ava:780) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:417) at org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j ava:52) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja va:802) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe rvlet.java:137) at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl eServlet.java:243) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer vlet.java:103) at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java: 84) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet Manager.java:226) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA ppServletManager.java:357) at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001) at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133) at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234) at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139) at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:63 3) at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36) at com.ibm.ws.runtime.Server.startModule(Server.java:615) at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333) at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349 ) at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:882) at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158) at com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.ja va) I was able to run the Index.HTML and get to the First.JSP. The TestDAO runs OK but the tiles version fails (because of above error). Any help would be appreciated. Thanks, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I just placed a new version of the WebPIM on the downloads page. (It uses the latest build of Struts 1.1 beta). First 10 people that deploy it, get a FREE shirt (in continental US). 1. You must send at least one line to this newsgroup or MVC newsgroup on how to deploy tip. (MVC is on news.basebeans.com in a newsreader) 2. Send me ([EMAIL PROTECTED]) a screen shot of the app running (and your mailing address). Thanks, Vic Major changes include factoring out DAO out of baseBeans/FormBeans Also, this applications demonstrates the following: * DB CRUD * How to fork the action so it dispatches to right execute * Use of factoring out DAO from FormBean so you can use any data source
Configuration Changes for Action extension??
I am still unable to get my application to work using a subclass of Action as my base action. If I create a BaseAction class that subclasses org.apache.struts.action.Action, what configuration changes (if any) do I need to make to web.xml, struts-config.xml, or elsewhere? I am running struts 1.0.2. Thanks... From: Struts Developer [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Really Dumb Newbie Question about Extending Action Date: Wed, 10 Apr 2002 08:19:36 -0500 Some days it just doesn't pay to chew through the leather straps and come to work... I would like to add a layer of inheritance between the org.apache.struts.action.Action class and my application's Action subclasses. IE: MyAction extends ORGAction extends Action. Seems simple enough, however when I set this up and run my applicaiton it doesn't work. No error messages, no compile errors, no nothing. When MyAction extends Action directly the application runs as expected and I get the proper output and log messages, like so: start of copied log [02.04.10 07:28:43:630 CDT] 7f9895eb WebGroup I SRVE0091I: [Servlet LOG]: action: Process servletName=action, urlPattern=*.do [02.04.10 07:28:43:660 CDT] 7f9895eb WebGroup I SRVE0091I: [Servlet LOG]: action: Mapping for servlet 'action' = '*.do' [02.04.10 07:28:59:923 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Processing a GET for /enterVisitorDisplay [02.04.10 07:29:00:184 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Setting locale 'en_US' [02.04.10 07:29:00:194 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Looking for ActionForm bean under attribute '' [02.04.10 07:29:00:214 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Creating new ActionForm instance of class 'dhs.vcm.vis.form.SuccessContentForm' [02.04.10 07:29:00:794 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Storing instance under attribute '' in scope 'session' [02.04.10 07:29:00:804 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Populating bean properties from this request [02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Validating input form properties [02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Looking for Action instance for class dhs.vcm.vis.action.EnterVisitorActionDisplay [02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Double checking for Action instance already there [02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Creating new Action instance [02.04.10 07:29:01:706 CDT] 6572d5f7 SystemOut U EnterVisitorActionDisplay : perform : entered [02.04.10 07:29:01:826 CDT] 6572d5f7 SystemOut U EnterVisitorActionDisplay : perform : posting message [02.04.10 07:29:01:856 CDT] 6572d5f7 SystemOut U MessageRouting : postMessageToQueue : enterVisitor [02.04.10 07:29:01:866 CDT] 6572d5f7 SystemOut U EnterVisitorActionDisplay : perform : leaving now end of copied log When I have MyAction extending ORGAction, which extends Action I get this: start of copied log [02.04.10 07:32:02:396 CDT] 7a45d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Process servletName=action, urlPattern=*.do [02.04.10 07:32:02:416 CDT] 7a45d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Mapping for servlet 'action' = '*.do' [02.04.10 07:32:35:794 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Processing a GET for /enterVisitorDisplay [02.04.10 07:32:35:954 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Setting locale 'en_US' [02.04.10 07:32:35:974 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Looking for ActionForm bean under attribute '' [02.04.10 07:32:35:984 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Creating new ActionForm instance of class 'dhs.vcm.vis.form.SuccessContentForm' [02.04.10 07:32:36:675 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Storing instance under attribute '' in scope 'session' [02.04.10 07:32:36:685 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Populating bean properties from this request [02.04.10 07:32:37:075 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Validating input form properties [02.04.10 07:32:37:116 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Looking for Action instance for class dhs.vcm.vis.action.EnterVisitorActionDisplay [02.04.10 07:32:37:126 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Double checking for Action instance already there [02.04.10 07:32:37:136 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Creating new Action instance end of copied log What gives? I know I am doing something very basic wrong. I just can't see it. Sigh. TIA, Mark
Re: Too Slow: Debug Struts + Torque project using JBuilder5
Use -classic in the commandline. If you dont use this option default hotjava compiler takes too long to start. Good luck -E - Original Message - From: Annie Zhang [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 1:50 PM Subject: Too Slow: Debug Struts + Torque project using JBuilder5 Hi I have a powerful PC: 1.5G Intel cpu, 768M memory, 30G HD But when I debug Struts+Torque project with JBuilder5, the speed is terrible slow!!! My project scale is not very large, only 10 jsp and 20 oracle tables. It will take more than 1 minute to start debug. What's the main problem is? Which is the best debug tool for Struts+Torque projects? Thanks in advance. Annie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Logging
I'm having a problem with logging related to Struts, and I've searched the list high and low, to no avail (maybe I missed it). I was on the nightly build of Struts, and happily using logging. Then, it changed. By that, I mean I updated Struts from the CVS one day, and after that, logging worked differently. Same thing happens with Struts 1.1-b1. I can see that logging does work because log.info() outputs to the console. But I have no control over logging levels and appenders. I've been playing with the file located at /WEB-INF/classes/log4j.properties. When it worked, I only needed to alter this file to change logging levels. Now I'm stuck in INFO level, and the appenders output to the console. Is this still the correct location? I'm guessing no, but I can't find another file to alter. Anthony In a five year period we can get one superb programming language. Only we can't control when the five year period will begin. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts menu
On Mon, 2002-04-08 at 08:12, Jon.Ridgway wrote: Hi All, I was wondering if there are any plans add the following to the Struts menu: -Support for roles I don't currently have plans to support roles. However, I am working out an implementation for generically supporting permission checking. This could easily be tied into checking roles as well. I'll have to think about it some more. -Support for locales (might already be their can't see how to use however) Localization is already supported. However, it does not automatically use the main MessageResources used in Struts apps (keyed by Action.MESSAGES_KEY). At this point, you need to pass the attribute key of the MessageResources you want to use. For example: menu:useMenuDisplayer name=CoolMenus bundle=%=Action.MESSAGES_KEY% Check the example menu application. -Support for struts-config forwards. Sounds like a good idea. I'll put it on the ToDo list. You can check out the latest version of StrutsMenu at: https://sourceforge.net/projects/struts-menu/ The latest release is 1.1beta. The most significant changes are the implementation of a Struts PlugIn and support for displaying CoolMenus3 dynamic menus. There will probably be some significant changes comming soon. I may end up skipping to a 2.0 release, but we'll see. I'm only working on this in my spare time, so please excuse the lack of content on the sourceforge site. Scott Sayles Jon Ridgway www.upco.co.uk -Original Message- From: Vaddiyar, Raghuramudu [mailto:[EMAIL PROTECTED]] Sent: 08 April 2002 11:49 To: 'Struts Users Mailing List' Subject: RE: conditional iterate (3) Better avoid array elements with same compname ... in otherwords create the array elements with unique compname ..avoid elements with same compname... -Original Message- From: Peter Cnops [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 12:00 PM To: [EMAIL PROTECTED] Subject: conditional iterate (3) Hi, I made a typo in my request (closing the bean tag), but thas is not the main problem. What I want to do is: 1. iterate through some orderlines 2. if 'compname' of this orderline is not equal to 'compname' of the previous orderline, write the compname, else do not. How do I realise this? Do I have to declare a variable? logic:iterate id=element name=orderlinebean type=com.test.Orderline logic:notEqual name=element property=compname value=--if the compname is the same as the previous line, don't write, else write the compname tr td width=23%nbsp;/td td width=18%bean:write name=element property=compname//td td width=59%bean:write name=element property=number//td /tr /logic:notEqual /logic:iterate Peter Cnops Project Management - MediaTower Digital Photography - PrePress - Digital Printing - Internet Services Veldkant 29, B-2550 Kontich Tel. 03 450 81 00 - Fax 03 450 81 09 http://www.mediatower.be -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The content of this e-mail is intended only for the confidential use of the person addressed. If you have received this message in error, please notify us immediately by electronic mail, by telephone or by fax at the above num- bers. E-mail communications are not secure and therefore we do not accept any res- ponsibility for the confidentiality or altered contents of this message. Please be aware that SIS Group and its subsidiary companies cannot accept any orders or other legally binding correspondence with a participant as part of an E-mail. The views expressed above are not necessarily those held by SIS Group and its subsidiary companies and not binding for them. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts 1.1b/log4j
I guess this doesn't answer the question then, because my question was specific to Struts 1.1 and had nothing to do with Struts 1.0. Logging changed quite a bit between 1.0.x and 1.1b. We used log4j in our Struts 1.0 applications, but I want to make sure that log4j has all the proper categories and everything for 1.1b. We haven't been able to get a Struts 1.1b application running in our development environment (JBuilder 6) and it's giving messages about logging problems, so I want to make sure I have it setup properly. Thanks anyway Jay On Wed, 10 Apr 2002, Zeltser, Mark wrote: Here is how I do it: 1. Extend ActionServlet and overwrite init method public void init( ServletConfig config ) throws ServletException { initAppLog( config ); super.init( config ); ...; } 2. Initialize log4j // Log4j Initialization private void initAppLog(ServletConfig config) { try { DOMConfigurator.configure( config.getServletContext().getRealPath( config.getInitParameter( logConfig ))); cat = Category.getInstance(this.getClass().getName()); cat.info( Logging Initialized ); } catch( Throwable t ) { this.log( t ); } } 3. In your action initianilize Category and start using it: cat = Category.getInstance(this.getClass().getName()); cat.info(...); etc. You have to make sure you have all necessary jars and property file in the appropriate places. Mark. P.S. I am running struts 1.01 with tiles -Original Message- From: Jay sissom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 2:53 PM To: Struts Users Mailing List Subject: RE: Struts 1.1b/log4j Can you please tell me the file in the log4j download tar.gz file that tells how to configure log4j to work with struts? I did a grep for struts in the whole log4j download and the only mention of it in the entire thing were links to http://jakarta.apache.org/struts (and a couple of email messages that have no documentation). I downloaded 1.1.3. Maybe it's in a different version. Please tell me what version to download also. I know how to use log4j, I just don't know which Categories struts 1.1b uses in log4j. I now know that one is org.apache.struts.action.ActionServlet. Is that the only one? Is this documented anywhere? Thank you very much for your help Jay On Wed, 10 Apr 2002, Zeltser, Mark wrote: Download log4j from jakarta.apache.org and read documentation on how to configure it with struts. Mark. -Original Message- From: Jay sissom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 2:23 PM To: Struts Users Mailing List Subject: Struts 1.1b/log4j Can someone please point me to (or send to the list) an example log4j.properties file that will work with Struts 1.1b? I'm not sure what appenders and categories to put in there and I haven't found any documentation about it. Also, do I have to start log4j or does Struts start it automatically? Thanks Jay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation
RE: Struts 1.1b/log4j
Here is how I do it: 1. Extend ActionServlet and overwrite init method public void init( ServletConfig config ) throws ServletException { initAppLog( config ); super.init( config ); ...; } 2. Initialize log4j // Log4j Initialization private void initAppLog(ServletConfig config) { try { DOMConfigurator.configure( config.getServletContext().getRealPath ( config.getInitParameter( logConfig ))); cat = Category.getInstance(this.getClass().getName()); cat.info( Logging Initialized ); } catch( Throwable t ) { this.log( t ); } } 3. In your action initianilize Category and start using it: cat = Category.getInstance(this.getClass().getName()); cat.info(...); etc. You have to make sure you have all necessary jars and property file in the appropriate places. Mark. P.S. I am running struts 1.01 with tiles -Original Message- From: Jay sissom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 2:53 PM To: Struts Users Mailing List Subject: RE: Struts 1.1b/log4j Can you please tell me the file in the log4j download tar.gz file that tells how to configure log4j to work with struts? I did a grep for struts in the whole log4j download and the only mention of it in the entire thing were links to http://jakarta.apache.org/struts (and a couple of email messages that have no documentation). I downloaded 1.1.3. Maybe it's in a different version. Please tell me what version to download also. I know how to use log4j, I just don't know which Categories struts 1.1b uses in log4j. I now know that one is org.apache.struts.action.ActionServlet. Is that the only one? Is this documented anywhere? Thank you very much for your help Jay On Wed, 10 Apr 2002, Zeltser, Mark wrote: Download log4j from jakarta.apache.org and read documentation on how to configure it with struts. Mark. -Original Message- From: Jay sissom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 2:23 PM To: Struts Users Mailing List Subject: Struts 1.1b/log4j Can someone please point me to (or send to the list) an example log4j.properties file that will work with Struts 1.1b? I'm not sure what appenders and categories to put in there and I haven't found any documentation about it. Also, do I have to start log4j or does Struts start it automatically? Thanks Jay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt
Subject: Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt From: Vic Cekvenich [EMAIL PROTECTED] === Access? Please don't use Access. My sample is using Sybase and the DB came with it. I even do date formating. Not sure what the issues is. My getDate gets a rowset date, formats it and returns the string. Not tricks. Make the Bean a main console app, and do a debug of the console app on the getter with a trace debug. Maybe Access wants a SQLdate? Vic Ken Holzer wrote: Yes, I do have the DB and master detail working. I am having one problem with the date conversion, it gives me the following error: U E:java.sql.SQLException: getDate Failed on value (03/28/2002) in column 7 I received the same error with the dates as 2002-03-28. I am using an Access database to retrieve the data. Thanks, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Do you have DB and master detail working as well? Send me private ([EMAIL PROTECTED]) e-mail with a mailing address if you want the t-shirt. Vic Ken Holzer wrote: Hi Vic, I was able to get the Struts-Tile example to run, after placing the xerces.jar in the lib directory. I did the same in the WebPIM and it is now working. Thanks for the help, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Do non-db sample from Struts run (Tiles, validator, struts-docs)?. I tested on Tomcat4, Resin 2.1, and OrionServer. Can you just get a hello world jsp? My first page is just a non struts jsp in webPIM. I want to help!!!. Vic Ken Holzer wrote: Hi Vic, I downloaded the latest version and am trying to run it using WebSphere 4.0. I am getting the following error when I start the server: [02.04.10 09:52:27:953 CDT] 2b31e7c1 WebGroup I SRVE0091I: [Servlet LOG]: action: init [02.04.10 09:52:28:421 CDT] 2b31e7c1 ServletInstan X SRVE0100E: Did not realize init() exception thrown by servlet action: javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/config/struts-config.xml at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j ava:780) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:417) at org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j ava:52) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja va:802) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe rvlet.java:137) at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl eServlet.java:243) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer vlet.java:103) at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java: 84) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet Manager.java:226) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA ppServletManager.java:357) at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001) at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133) at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234) at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139) at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:63 3) at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36) at com.ibm.ws.runtime.Server.startModule(Server.java:615) at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333) at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349 ) at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:882) at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158) at com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.ja va) I was able to run the Index.HTML and get to the First.JSP. The TestDAO runs OK but the tiles version fails (because of above error). Any help would be appreciated. Thanks, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I just placed a new version of the WebPIM on the downloads page. (It uses the latest build of Struts 1.1 beta). First 10 people that deploy it, get a FREE shirt (in continental US). 1. You must send at least one line to this newsgroup or MVC newsgroup on how to deploy tip. (MVC is on news.basebeans.com in a newsreader) 2. Send me ([EMAIL PROTECTED]) a screen shot of the app running (and your mailing address). Thanks, Vic Major changes include
Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt
Subject: Re: Struts 1.1 beta Sample DB app. = FREE T-Shirt From: Ken Holzer [EMAIL PROTECTED] === I had to change the data type of the date field to a date/time from text and all is working. I can now understand what is going on and try to incorporate some of this into the app I am working on. Thanks for the help, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Access? Please don't use Access. My sample is using Sybase and the DB came with it. I even do date formating. Not sure what the issues is. My getDate gets a rowset date, formats it and returns the string. Not tricks. Make the Bean a main console app, and do a debug of the console app on the getter with a trace debug. Maybe Access wants a SQLdate? Vic Ken Holzer wrote: Yes, I do have the DB and master detail working. I am having one problem with the date conversion, it gives me the following error: U E:java.sql.SQLException: getDate Failed on value (03/28/2002) in column 7 I received the same error with the dates as 2002-03-28. I am using an Access database to retrieve the data. Thanks, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Do you have DB and master detail working as well? Send me private ([EMAIL PROTECTED]) e-mail with a mailing address if you want the t-shirt. Vic Ken Holzer wrote: Hi Vic, I was able to get the Struts-Tile example to run, after placing the xerces.jar in the lib directory. I did the same in the WebPIM and it is now working. Thanks for the help, Ken Vic Cekvenich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Do non-db sample from Struts run (Tiles, validator, struts-docs)?. I tested on Tomcat4, Resin 2.1, and OrionServer. Can you just get a hello world jsp? My first page is just a non struts jsp in webPIM. I want to help!!!. Vic Ken Holzer wrote: Hi Vic, I downloaded the latest version and am trying to run it using WebSphere 4.0. I am getting the following error when I start the server: [02.04.10 09:52:27:953 CDT] 2b31e7c1 WebGroup I SRVE0091I: [Servlet LOG]: action: init [02.04.10 09:52:28:421 CDT] 2b31e7c1 ServletInstan X SRVE0100E: Did not realize init() exception thrown by servlet action: javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/config/struts-config.xml at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j ava:780) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:417) at org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j ava:52) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja va:802) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe rvlet.java:137) at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl eServlet.java:243) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer vlet.java:103) at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java: 84) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet Manager.java:226) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA ppServletManager.java:357) at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001) at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133) at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234) at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139) at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:63 3) at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36) at com.ibm.ws.runtime.Server.startModule(Server.java:615) at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333) at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349 ) at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:882) at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158) at com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.ja va) I was able to run the Index.HTML and get to the First.JSP. The TestDAO runs OK but the tiles version fails (because of above error). Any help would be appreciated. Thanks, Ken Vic Cekvenich [EMAIL
What do I need to migrate from Tomcat to (oc4j)Oracle9ias
Everything is working fine on my machine under Tomcat. I've moved everything in the appropriate directories under Oracle9ias and the pages work and submit except Validation is not occuring. Do I need to move some of the files in Tomcat's lib over to the oc4j container in order to get things to work smoothly? Should I maybe move over the parsers being used under Tomcat, etc? (using 1.1beta). Thanks for any help. -- Rick mailto:[EMAIL PROTECTED] If I had a mine shaft, I don't think I would just abandon it. There's got to be a better way. -Jack Handey -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
question on getting values from popup
hi, i have a controller from which i am populating ,lets say http://localhost:8080/action.do.The jsp page is set.jsp when a button is clicked in set.jsp.it calls a popup window.now the problem is how to get the values from the popup window to the controller. please reply back thanx narasimha -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuration Changes for Action extension??
Sorry about the delay, Mark - I'm very busy today. I'll take a look at your code ASAP. Mark -Original Message- From: Struts Developer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 2:57 PM To: [EMAIL PROTECTED] Subject: Configuration Changes for Action extension?? I am still unable to get my application to work using a subclass of Action as my base action. If I create a BaseAction class that subclasses org.apache.struts.action.Action, what configuration changes (if any) do I need to make to web.xml, struts-config.xml, or elsewhere? I am running struts 1.0.2. Thanks... From: Struts Developer [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Really Dumb Newbie Question about Extending Action Date: Wed, 10 Apr 2002 08:19:36 -0500 Some days it just doesn't pay to chew through the leather straps and come to work... I would like to add a layer of inheritance between the org.apache.struts.action.Action class and my application's Action subclasses. IE: MyAction extends ORGAction extends Action. Seems simple enough, however when I set this up and run my applicaiton it doesn't work. No error messages, no compile errors, no nothing. When MyAction extends Action directly the application runs as expected and I get the proper output and log messages, like so: start of copied log [02.04.10 07:28:43:630 CDT] 7f9895eb WebGroup I SRVE0091I: [Servlet LOG]: action: Process servletName=action, urlPattern=*.do [02.04.10 07:28:43:660 CDT] 7f9895eb WebGroup I SRVE0091I: [Servlet LOG]: action: Mapping for servlet 'action' = '*.do' [02.04.10 07:28:59:923 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Processing a GET for /enterVisitorDisplay [02.04.10 07:29:00:184 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Setting locale 'en_US' [02.04.10 07:29:00:194 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Looking for ActionForm bean under attribute '' [02.04.10 07:29:00:214 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Creating new ActionForm instance of class 'dhs.vcm.vis.form.SuccessContentForm' [02.04.10 07:29:00:794 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Storing instance under attribute '' in scope 'session' [02.04.10 07:29:00:804 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Populating bean properties from this request [02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Validating input form properties [02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Looking for Action instance for class dhs.vcm.vis.action.EnterVisitorActionDisplay [02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Double checking for Action instance already there [02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Creating new Action instance [02.04.10 07:29:01:706 CDT] 6572d5f7 SystemOut U EnterVisitorActionDisplay : perform : entered [02.04.10 07:29:01:826 CDT] 6572d5f7 SystemOut U EnterVisitorActionDisplay : perform : posting message [02.04.10 07:29:01:856 CDT] 6572d5f7 SystemOut U MessageRouting : postMessageToQueue : enterVisitor [02.04.10 07:29:01:866 CDT] 6572d5f7 SystemOut U EnterVisitorActionDisplay : perform : leaving now end of copied log When I have MyAction extending ORGAction, which extends Action I get this: start of copied log [02.04.10 07:32:02:396 CDT] 7a45d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Process servletName=action, urlPattern=*.do [02.04.10 07:32:02:416 CDT] 7a45d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Mapping for servlet 'action' = '*.do' [02.04.10 07:32:35:794 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Processing a GET for /enterVisitorDisplay [02.04.10 07:32:35:954 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Setting locale 'en_US' [02.04.10 07:32:35:974 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Looking for ActionForm bean under attribute '' [02.04.10 07:32:35:984 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Creating new ActionForm instance of class 'dhs.vcm.vis.form.SuccessContentForm' [02.04.10 07:32:36:675 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Storing instance under attribute '' in scope 'session' [02.04.10 07:32:36:685 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Populating bean properties from this request [02.04.10 07:32:37:075 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Validating input form properties [02.04.10 07:32:37:116 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action: Looking for Action instance for class dhs.vcm.vis.action.EnterVisitorActionDisplay [02.04.10 07:32:37:126 CDT] 6572d5f7 WebGroup I SRVE0091I: [Servlet LOG]: action:
RE: [OT] precompiling jsp with ant (prev 'RE: New Site')
In build.xml: target name=jsp depends=web java classname = JSPC fork = yes failonerror = yes classpath=${antclasspath} arg line=-n -v -a ${jrun.app} -s ${jrun.server} -j ${jrun.dir} -w ${server.dir}\${jrun.app} ${jsp.dirs}/ /java /target You have to plug in the utility and arguments for your particularly container. Mark -Original Message- From: Fabien Modoux [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: [OT] precompiling jsp with ant (prev 'RE: New Site') Mark, Would you mind providing a sample ant code that does the JSP precompiling? I am currently doing that through a servlet, but using ANT would be much better... I looked on the ANT and Tomcat archives but I could not any info on how to do that. Thanks in advance, Fabien - Fabien Modoux, Voicemate - http://www.voicemate.com -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 9:08 AM To: 'Struts Users Mailing List' Subject: RE: New Site Thanks for the suggestion - and it's a good one that everyone should heed if they have heavy-weight JSPs. But ours are very light, and we have ANT precompile them on every deploy. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 8:36 AM To: Struts Users Mailing List Subject: Re: New Site I would also check that your JSP's are pre-compiled. The JSP's are compiled as servlets wen they are first called after changes. That can take some time as well. We have been getting excellent performance across a T1 over the Atlantic that goes from Philly to Raleigh to the UK and back aain. Jim Berg Sr. Software Specialist PSCI 610-270-4158 [EMAIL PROTECTED] Pete Carapetyan pete@datafundamentals .com To: Struts Users Mailing List 10-Apr-2002 08:10cc: Please respond toSubject: Re: New Site Struts Users Mailing List [EMAIL PROTECTED] pache.org Galbreath, Mark wrote: This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? No. I would look for a bug in your code, not in Struts. Have you run a profiler on it to see where it is spending it's time? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Newbie question
Hello everyone, Can anyone help me with the following questions: How do i instantiate a DynaBean ? How do i copy a HashMap to DynaBean (if possible using PropertyUtils.copyProperties) ? There is no documentation that i could find about this and I am really lost in this... Thank very much, Cornelius
RE: [OT] precompiling jsp with ant (prev 'RE: New Site')
Thanks a lot, this is very helpful. Fabien - Fabien Modoux, Voicemate - http://www.voicemate.com -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 4:59 PM To: 'Struts Users Mailing List' Subject: RE: [OT] precompiling jsp with ant (prev 'RE: New Site') In build.xml: target name=jsp depends=web java classname = JSPC fork = yes failonerror = yes classpath=${antclasspath} arg line=-n -v -a ${jrun.app} -s ${jrun.server} -j ${jrun.dir} -w ${server.dir}\${jrun.app} ${jsp.dirs}/ /java /target You have to plug in the utility and arguments for your particularly container. Mark -Original Message- From: Fabien Modoux [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: [OT] precompiling jsp with ant (prev 'RE: New Site') Mark, Would you mind providing a sample ant code that does the JSP precompiling? I am currently doing that through a servlet, but using ANT would be much better... I looked on the ANT and Tomcat archives but I could not any info on how to do that. Thanks in advance, Fabien - Fabien Modoux, Voicemate - http://www.voicemate.com -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 9:08 AM To: 'Struts Users Mailing List' Subject: RE: New Site Thanks for the suggestion - and it's a good one that everyone should heed if they have heavy-weight JSPs. But ours are very light, and we have ANT precompile them on every deploy. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 8:36 AM To: Struts Users Mailing List Subject: Re: New Site I would also check that your JSP's are pre-compiled. The JSP's are compiled as servlets wen they are first called after changes. That can take some time as well. We have been getting excellent performance across a T1 over the Atlantic that goes from Philly to Raleigh to the UK and back aain. Jim Berg Sr. Software Specialist PSCI 610-270-4158 [EMAIL PROTECTED] Pete Carapetyan pete@datafundamentals .com To: Struts Users Mailing List 10-Apr-2002 08:10cc: Please respond toSubject: Re: New Site Struts Users Mailing List [EMAIL PROTECTED] pache.org Galbreath, Mark wrote: This is not very encouraging. At 6:30 AM EST on a T-1 I finally gave up when the page had not fully loaded after 3 minutes(!!). My personal experience with Struts (we are committed to it at this point for VoiceStream Global Wireless's new ecommerce sites) is that it slows processing and page deleivery considerably. Anyone else notice this? No. I would look for a bug in your code, not in Struts. Have you run a profiler on it to see where it is spending it's time? Mark -Original Message- From: Martin Samm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: New Site Just thought i'd another 'Powered By Struts' site to the list - www.peoplenews.com. Its a showbiz / gossip site which until recently ran on Vignette (yuk) . While the content may not be to everyone's taste, it is popular, about 19M hits last month. It's been running for 2 days, so may have a couple of teething problems, but it does seem to have scaled well. -- Martin Samm [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Iterate update
Subject: Iterate update From: J.Davis [EMAIL PROTECTED] === When Iterating to display, it works great. We go to next row, a display say 10 rows with say 5 colums each. On an update ... what to do? How do you iterate back, and apply each setter 10 times (once for each row). Help... JD -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts vs. other Framworks.....
I hope this is a proper question for this group... Were in the process of choosing a presentation-tier framework. Were debating between Struts and WebWorks. I would like to get your opinions and thoughts on which one is better and why? This is a large company and the application is pretty UI-intensive. We will be writing new code and converting old code into this framwork. The general understand is that the underlying implementation of WebWorks is slightly better and less complex, but you dont get as much support and awareness using WebWorks. Your thoughts? __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
html:radio can't find bean property
Hello, The html:radio element in my form can't find its property, yet other elements don't have this trouble. For instance, this works html:text property=fundsVerified id=fundsVerified value=NO/ but this doesn't html:radio property=fundsVerified id=fundsVerified value=NO/ The error I get is: javax.servlet.jsp.JspException: No getter method available for property fundsVerified for bean under name org.apache.struts.taglib.html.BEAN Has anyone seen this? What the heck is going on? This is Struts 1.0.2. Thanks! David David A. Ventimiglia Wells Fargo Private Client Services (415) 396-0414 (work)
RE: Struts vs. other Framworks.....
I don't use Struts or Webwork but I've got a collection of mailing list notes on a bunch of products including these in an Excel file. Let me know if you'd like a copy. -Dan -Original Message- From: K J [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 2:56 PM To: Struts Users Mailing List Subject: Struts vs. other Framworks. I hope this is a proper question for this group... We're in the process of choosing a presentation-tier framework. We're debating between Struts and WebWorks. I would like to get your opinions and thoughts on which one is better and why? This is a large company and the application is pretty UI-intensive. We will be writing new code and converting old code into this framwork. The general understand is that the underlying implementation of WebWorks is slightly better and less complex, but you don't get as much support and awareness using WebWorks. Your thoughts? __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Really Dumb Newbie Question about Extending Action
Substitute dhs.struts.action.ORGAction for org.apache.struts.action.ActionServlet. Mark -Original Message- From: Struts Developer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 10:45 AM To: [EMAIL PROTECTED] Subject: RE: Really Dumb Newbie Question about Extending Action servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
problems: struts1.1, oc4j, oracle9ias, validation
If someone could help I'd really appreciate it. I'm trying to set up a struts app (1.1beta) to work correctly on Oracle9ias(OC4J). No matter what parsers I seem to try and use, I keep getting this error in the console window when the page loads up: Web-App utilities:web (0.0.0.0/0.0.0.0:/utilities) started... org.xml.sax.SAXParseException: Element struts-config allows no further input; message-resources is not allo wed. void org.apache.crimson.parser.Parser2.error(java.lang.String, java.lang.Object[]) void org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(java.lang.String) { then long list of others } The jsp page is displaying but no validation takes place whenever the form sumbits and whenever I refresh the page the above errors occur. Everything is working fine under Tomcat, so I'm not sure what the deal is. I would love any suggestions. Thanks -- Rick mailto:[EMAIL PROTECTED] Here's a good trick: Get a job as a judge at the Olympics. Then, if some guy sets a world record, pretend that you didn't see it and go, 'Okay, is everybody ready to start now?'. -Jack Handey -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]