Log4J and Struts
Hi, I am moving my current web application to struts and I am facing a problem. We use Log4J for our logging (Log4J version 1.2.8) If I have the log4j-1.2.8.jar in my WEB-INF/lib directory, the Action servlet does not initialize Tomcat log file says: javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 2) ... - Root Cause - java.lang.ExceptionInInitializerError Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:532) Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:432) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:525) ... 28 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.getConstructor(Class.java:1002) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:429) ... 29 more If I remove the log4J.jar from WEB-INF/lib, the ActionServlet initializes(but then my app. cant log). I searched the archive and implemented the solution provided by Sgarlata Matt http://www.mail-archive.com/[EMAIL PROTECTED]/msg79448.html Howeve, putting the commons-logging.properties in the WEB-INF/classes/ folder didnt help either. (note that our log4J config file has been kept in the WEB-INF folder. Even if I keep the commons-logging.properties in the WEB-INF folder, it doesnt work). Please help! Mahesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Log4J and Struts
Hi, Unfortunately this does not work for Tomcat 4.1.24 When I put log4j-1.2.8 in the jak*/common/lib or jak*/shared/lib I dont get the results desired. In the former, tomcat doesnt startup and in the latter struts does not initialize. Looks like I am missing something in the relationship between commons-logging and Log4J. Thanks! Mahesh - Original Message - From: "Abhijeet Mahalkar" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 2:39 AM Subject: Re: Log4J and Struts hi Mahesh, No u have to keep ur log4j-1.2.8.jar into websphere\appserver\lib dir not web-inf. here it will not give any error. I was working on the same kind of error an hr before but copy paste into websphere\appserver\lib solved my problem... regards abhijeet - Original Message - From: "Mahesh Joshi" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 2:59 PM Subject: Log4J and Struts Hi, I am moving my current web application to struts and I am facing a problem. We use Log4J for our logging (Log4J version 1.2.8) If I have the log4j-1.2.8.jar in my WEB-INF/lib directory, the Action servlet does not initialize Tomcat log file says: javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 2) ... - Root Cause - java.lang.ExceptionInInitializerError Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:532) Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3a5794 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:432) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:525) ... 28 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.getConstructor(Class.java:1002) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:429) ... 29 more If I remove the log4J.jar from WEB-INF/lib, the ActionServlet initializes(but then my app. cant log). I searched the archive and implemented the solution provided by Sgarlata Matt http://www.mail-archive.com/[EMAIL PROTECTED]/msg79448.html Howeve, putting the commons-logging.properties in the WEB-INF/classes/ folder didnt help either. (note that our log4J config file has been kept in the WEB-INF folder. Even if I keep the commons-logging.properties in the WEB-INF folder, it doesnt work). Please help! Mahesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Keeping Actions clean - separating actions from business mode l from persistence
Hi I have generally have done the following: In the Action: Use a DTO(data transfer object) to transform the ActionForm to a business layer data object Instantiate the business logic class of interest Call a method on the business logic passing the DTO object Depending on the status returned, do the appropriate actionForward call in the action. The action is a client of the business logic. (in case I am not using Struts, but vanilla Servlets, the Servlet replaces the action. the rest till applies). In the Business logic Layer: Apply the necessary business rules. In case of Database persistence, call the persistence manager. ask the persistence manager to persist the data. The business logic shouldn't care how the data is persisted. The standard persistence methods (create, save, findByPrimaryKey,remove,findBy...) are exposed to the Business Logic. The BusinessLogic passes to the Persistence layer objects in the businessdomain (e.g. standard data objects). Primary Keys are encapsulated in a PK class. In the persistence layer store to the datastore by the method of choice (JDBC/any other engine etc.) do the necessary transformation on business data as required by the persistence store. do the reverse when retrieving data from the persistence store. The persistence manager contains the actual classes that know how to store and retrieve data to the persistent store. I have always wondered where is the best place to do connection management with the dataStore. Should the business Logic do connectionManagement (e.g. opening a connection (via a connection pool or otherwise)) or should that be the responsibility of the persistence layer. Doing it in the latter(PersistenceLayer) frees up the BusinessLayer of connection Mgt code. If you are implementing connectionpool, the overhead is the time to return the connection to the pool and get it back. Thoughts are welcome! Mahesh -- Mahesh Joshi W- 408-543-7214 M- 408-829-8051 [EMAIL PROTECTED] >>-Original Message- >>From: Sasha Borodin [mailto:[EMAIL PROTECTED] >>Sent: Friday, October 10, 2003 5:33 PM >>To: Struts Users Mailing List >>Subject: Re: Keeping Actions clean - separating actions from business >>model from persistence >> >> >>Matt, thanks for your quick feedback. >> >>> I use my own framework because I don't know any better. >>> >>> public abstract class DaoManager { >>> public abstract IRecordDao createDao(Connection conn, >>String daoClassName) >>> throws DaoException; >> >>Which tier calls your DaoManager? It seems from your code >>that the caller >>of DaoManager is responsible to knowing the database configuration >>information, as well as the implementing DAO class. Is it the Action? >> >>In other words, who orchestrates the interaction of business and dao >>classes? Does the action instantiate a business class and >>populate it from >>your ActionForm, then get a dao instance from a factory, and >>pass it the >>business class? Or is there another pattern to this? >> >>Thanks. >> >>> Matt >> >>-Sasha >> >>> - Original Message - >>> From: "Sasha Borodin" <[EMAIL PROTECTED]> >>> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >>> Sent: Friday, October 10, 2003 6:44 PM >>> Subject: Keeping Actions clean - separating actions from >>business modelfrom >>> persistence >>> >>> >>>> Ted, Matt, Joe, and all the other helpful folks that >>chimed in earlier on >>>> persistence mechanisms: >>>> >>>> In trying to keep with best practices, I've managed to >>remove all "model" >>>> related code (business logic, and persistence) out of the Actions' >>> execute() >>>> method. Now I'd like to take it one step further and decouple the >>> business >>>> model classes from the implementing persistence technology >>(btw, settled >>> on >>>> OJB for now :). From Joe's post, it seems like the DAO >>pattern is called >>>> for to accomplish this. >>>> >>>> My (slightly off topic) question is this: who develops >>their own DAO >>>> framework (like the dao and dao factory interfaces), and >>who uses a 3rd >>>> party framework (like iBA
RE: [Semi OT] When does a servlet get a session?
You may want to look @ Jigsaw which is HTTP server that can be configured as a HTTP Client (by implementing it as a Proxy). I did this like 5-6 years ago and it served my purpose very well. The HTTP Client would generate the HTTP requests to the web server(s). The response would get cached to disk and processed/transformed to the business logic layer via a client side filter mechanism that Jigsaw has. Should save you from writing a lot of code.. A classic case for the Adapter pattern. Jigsaw is at: http://www.w3.org/Jigsaw/ Mahesh -- Mahesh Joshi W- 408-543-7214 M- 408-829-8051 [EMAIL PROTECTED] >>-Original Message- >>From: Chappell, Simon P [mailto:[EMAIL PROTECTED] >>Sent: Thursday, October 16, 2003 4:56 PM >>To: Struts Users Mailing List >>Subject: RE: [Semi OT] When does a servlet get a session? >> >> >>Funny you should suggest that. We're currently considering >>this as an option. >> >>The DF1 protocol is a stone-age protocol used by >>Allen-Bradley Programmable Logic Controllers and as such is >>very inflexible. >> >>While we work on this, we're gonna work with our load >>balancer and try to get our sessions to be extra-sticky so >>that the likelyhood of two different requests from a PLC >>going to different WAS servers is greatly reduced. It >>certainly is a pickle of a situation! >> >>Simon >> >>>-Original Message- >>>From: Joseph Fifield [mailto:[EMAIL PROTECTED] >>>Sent: Thursday, October 16, 2003 6:06 PM >>>To: Struts Users Mailing List >>>Subject: Re: [Semi OT] When does a servlet get a session? >>> >>> >>>I suppose you could fake the http requests yourself, couldn't >>>you? When the >>>DF1 request comes in, translate it to an http get or post >>>request and send >>>it off to your existing struts system. Translate the http >>response into >>>whatever is needed for the DF1 response. >>> >>>Also, does this DF1 protocol have any notion of a session? In >>>other words, >>>is there some unique identifier sent with each request to tie >>>it to other >>>requests, or are all requests basically global? Either way, >>>you would need >>>to send an appropriate jsessionid value back with your fake >>>http requests in >>>order to maintain the same http session. >>> >>>Joe >>> >>>- Original Message - >>>From: "Chappell, Simon P" <[EMAIL PROTECTED]> >>>To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >>>Sent: Thursday, October 16, 2003 5:31 PM >>>Subject: RE: [Semi OT] When does a servlet get a session? >>> >>> >>>Craig, >>> >>>>-Original Message- >>>>From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] >>>>Sent: Thursday, October 16, 2003 4:19 PM >>>>To: Struts Users Mailing List >>>>Subject: Re: [Semi OT] When does a servlet get a session? >>>> >>>> >>>>Chappell, Simon P wrote: >>>> >>>>>You're right that we'll never have an HTTP request, so I can >>>>see why you're confused as to why we'd want a session. The >>>>reason is for performance. We want to avoid the overhead of >>>>writing and reading a database. This is very short term >>>>information, but now that we're needing to run in a >>>>load-balanced cluster, we need to be able to handle the >>>>situation where requests could, in the worst case scenario, >>>>come into each server alternatively. IBM's WebSphere App. >>>>Server when running in a cluster will propogate the session to >>>>any server that needs it. Thus if we use a session, it'll >>>>propogate back and forth between the boxes. >>>>> >>>>> >>>>The problem you're going to have is that there is no such >>thing as an >>>>HttpSession without an HTTP request. >>> >>>We found that out! :-( >>> >>>>Even if you could do what you >>>>propose, it would only make the stored information available >>>>to a single >>>>user -- that doesn't seem like it will do what you want. >>> >>>Actually, it is exactly what we want. This servlet only exists >>>to start our >>>socket listener. This is a "certifiably awful hack", but they >>>wouldn't
RE: Forward Cannot Be Achieved In One Step
Hi, It may be that invalidating the session is causing your next Action to fail, which is why it does not return success and hence doesn't take you to the next page. I have used forwarding to another action and it has worked for me: My struts config looks like: Check the app log files, it will tell you why its failing. Hope that helps. Mahesh -- Mahesh Joshi W- 408-543-7214 M- 408-829-8051 [EMAIL PROTECTED] >>-Original Message- >>From: Caroline Jen [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, October 28, 2003 6:02 PM >>To: Struts Users Mailing List >>Subject: RE: Forward Cannot Be Achieved In One Step >> >> >>I have tried your suggestion. It still takes two >>steps to go back to the welcome page. >> >>As long as there are two actions in between, it does >>not seem that I can go directly from "clicking the >>LOGOUT buttion" to "have the welcome page displayed". >> >>I really wish to learn what people usually do - the >>first one of those two actions is Logoff.java in which >>I invalidate the session, ..., etc. and the second >>action upon success will lead the user to the welcome >>page in which choices available for unregistered >>members plus a LOGON buttion are provided. >> >>-Caroline >> >>--- Yansheng Lin <[EMAIL PROTECTED]> wrote: >>> At the end of your first action execute() method, do >>> >>> a redirect to the second action. Something like the >>> following: >>> return new ActionForward("secondAction.do"); >>> >>> Hope this helps! >>> >>> -Yan >>> >>> -Original Message- >>> From: Caroline Jen [mailto:[EMAIL PROTECTED] >>> Sent: October 28, 2003 2:51 PM >>> To: Struts Users Mailing List >>> Subject: RE: Forward Cannot Be Achieved In One Step >>> >>> >>> Let me re-phrase my question. >>> >>> Upon the user click on the LOGOUT buttion, I have >>> two >>> actions - the first one of the actions is >>> Logoff.java >>> in which I invalidate the session, ..., etc. and the >>> second action upon success will lead the user to the >>> welcome page in which choices for unregistered >>> member >>> plus a LOGON buttion is provided. >>> >>> As long as two actions are involved, the user does >>> not >>> get back to the welcome page by just click on the >>> LOGOFF button "only once". >>> >>> Need your guidance on how such a situation is >>> usually >>> handled? >>> >>> >>> --- Caroline Jen <[EMAIL PROTECTED]> wrote: >>> > Thanks for the reply. Now, I understand that I >>> have >>> > two actions. However, I do quite understand what >>> > you >>> > suggested. You said: >>> > >>> > u can also use >>> > logoff >>> > where logoff is ur global forward. >>> > logoff >>> > >>> > I still have two actions if I use >>> > logoff >>> > >>> > because I have >>> > >>> > >> >path="/Logoff" >>> > >>> > >>> type="org.NameOfOrganization.signoff.LogoffAction"> >>> > >> > name="success" >>> > path="/do/Menu"/> >>> > >>> > >>> > In the LogoffAction.java, I invalidate the session >>> > and I want the user to go back the welcome page. >>> > And >>> > >>> > >> > path="/Menu" >>> > name="menuForm" >>> > >>> >>type="org.apache.struts.scaffold.ExistsAttributeAction" >>> > parameter="application;HOURS"> >>> > >> > name="success" >>> > path=".article.Menu"/> >>> > >> > name="failure" >>> > path="/do/MenuCreate"/> >>> > >>> > The .article.Menu is my tile that displays the >>> > welcome >>> > page. >>> > >>> > >>> > >>> > --- [EMAIL PROTECTED] wrote: >>> > > u can also use >>> > > logoff >>> > > where logoff is ur global forward. >>>
RE: newbie session problem
Hi Geraldine, What application server are you using? I had a similar problem on Tomcat 4.1.24. I put in a simple filter to print out session information to debug the issue. Upgrading to 4.1.27 fixed the problem. Thanks! Mahesh -- Mahesh Joshi W- 408-543-7214 M- 408-829-8051 [EMAIL PROTECTED] >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >>Sent: Monday, October 27, 2003 1:51 AM >>To: U>>[EMAIL PROTECTED] >>Subject: newbie session problem >> >> >>My struts application has a link to another jsp. but >>everytime i click on this link, the jsp creates a new session. >> >>I've tried practically everything, , >><%response.encodeURL()%> and even manually appending the >>jsessionid to the end of the url to this jsp, but it just >>keeps on creating those new sessions. Is there something i'm >>missing out? the funny thing is that the rest of my links >>work fine (just this fiddly one) and the even cuter thing is >>that sometimes it works and sometimes it doesn't! i'm trying >>not to use cookies to store my session. am i missing >>something out here? >> >>thanks >> >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Application objects
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html tells you Who's on your site/application and what they are doing? Mahesh -- Mahesh Joshi W- 408-543-7214 M- 408-829-8051 [EMAIL PROTECTED] >>-Original Message- >>From: Mathieu Grimault [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, November 04, 2003 12:57 AM >>To: Struts Users Mailing List >>Subject: Application objects >> >> >>Hi all, >>I would like to display the number of users connected >>(number of session) to my application. Is there a way to do this ? >> >>Another question, Can we implements code in the session >>class (by extending the class) and can we store/access/ >>modify objects in the ServletContext during the execution of >>the application (not during initialisation) ? >> >>thx for help. Mathieu. >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mysql connection error in the morning
Put "?autoReconnect=true" in the url value. That will fix it. You might also want to look @ removeAbandoned, removeAbandonedTimeout properties of the data source. BTW: this is a mysql question and has nothting to do with Struts. Mahesh >>-Original Message- >>From: Mohamed Abu Zur [mailto:[EMAIL PROTECTED] >>Sent: Friday, November 21, 2003 5:17 PM >>To: [EMAIL PROTECTED] >>Subject: Mysql connection error in the morning >> >> >>Hi all: >> >> >>I have this configuration in my struts-config for the pool: >> >> >> >> > value="false"/> >> > value="Example Data Source Configuration"/> >> > value="org.gjt.mm.mysql.Driver"/> >> > value="4"/> >> > value="2"/> >> > value="***"/> >> > value="jdbc:mysql://localhost/database"/> >> > value="***"/> >> >> >> >>but every morning when I connect to the web page I have an >>error the first two times . when I refresh (F5) the page two >>or three times I get a connection and all gones fine >>accessing the database. >> >>the error is: >> >>java.sql.SQLException: Communication link failure: java.io.IOException >>at >>com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java(Compiled Code)) >>at >>com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java(Compiled Code)) >>at >>com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java(Compiled Code)) >>at >>com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java(Compiled Code)) >> >>what is the reason for this error? any body hasthis error before? >> >> >>thanks in advance >> >> >>- >> >> Antivirus * Filtros antispam * 6 MB gratis >> ¿Todavía no tienes un correo inteligente? >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] IE problem. stumped
This could be a display driver problem related to IE. I have the same issue sporadically on my machine (WinNT 4.0, IE 5.5 sp2) Our IT folks said its a driver problem and an upgrade could fix it. I am supposed to upgrade to Win2K one of these days. Mahesh >>-Original Message- >>From: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED] >>Sent: Friday, December 05, 2003 12:02 PM >>To: Struts Users Mailing List; [EMAIL PROTECTED] >>Subject: RE: [OT] IE problem. stumped >> >> >>I just ran the validator as was suggested by Jarnot... The >>HTML validates fine. >> >>What happens is sometimes, a heading from the middle of the >>page for some reason shifts to the top. And it is very >>random. Text beside a check-box doesn't show... and then when >>that region is highlighted it magically shows up. >> >>-Original Message- >>From: Joe Hertz [mailto:[EMAIL PROTECTED] >>Sent: Friday, December 05, 2003 2:47 PM >>To: 'Struts Users Mailing List' >>Subject: RE: [OT] IE problem. stumped >> >> >>IE 5.X and 6.0 are very different beasts. 6.0 in some ways is *less* >>compliant with the specs then 5.2. >> >>> -Original Message- >>> From: Jarnot Voytek Contr AU HQ/SC >>> [mailto:[EMAIL PROTECTED] >>> Sent: Friday, December 05, 2003 1:59 PM >>> To: 'Struts Users Mailing List' >>> Subject: RE: [OT] IE problem. stumped >>> >>> >>> > -Original Message- >>> > From: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED] >>> > Sent: Friday, December 05, 2003 12:57 PM >>> > To: [EMAIL PROTECTED] >>> > Subject: [OT] IE problem. stumped >>> > >>> > I'm wondering if anyone has come across this. >>> > >>> > We have this struts application that is about to be deployed >>> > and it works fine, shows all the HTML pages as expected in IE 6.0. >>> > >>> > As part of our final tests, we began testing the application >>> > on IE 5.01 SP1. This is where the application gets all messed >>> > up. Text gets displayed all over the page very randomly. We >>> > used HTML tables to layout pages and format content. >>> > >>> > Thoughts? >>> > >>> >>> Two thoughts, try this: http://validator.w3.org/ and do this >>> sort of testing earlier in your lifecycle... >>> >>> -- >>> Voytek Jarnot >>> Quantum materiae materietur marmota monax si marmota monax >>> materiam possit materiari? >>> >>> >>- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dealing with dates
Look at org.apache.commons.beanutils.converters.SqlDateConverter or org.apache.commons.beanutils.converters.DateConverter to convert the date from String to Dates. Of course, you will have to validate the String dates in your form's validate method (e.g. valid date, valid month, valid year). If its a simple application, you could even use client side Javascript validation to make sure that a valid date is passed. I always add some utility methods to my Data Access Object to transform the java.sql.Dates to their String value counterparts in the action form so that I can call BeanUtils.copyProperties() to populate the ActionForm from the DAO and vice versa. HTH Mahesh -- Mahesh Joshi W- 408-543-7214 M- 408-829-8051 [EMAIL PROTECTED] >>-Original Message- >>From: Manish Singla [mailto:[EMAIL PROTECTED] >>Sent: Monday, December 08, 2003 3:55 PM >>To: Struts Users Mailing List >>Subject: Re: Dealing with dates >> >> >> >> >>fredatwork wrote: >>> I guess this question has been asked many times. Sorry for >>raising the >>> issue once more . >>> >>> but, I would like to ask you about some guidelines how to deal with >>> dates using Struts. >>> >>> How should be input fields be validated if there are "Date" types ? >>> >>> Should the ActionForm include a String our a Date type for >>date input >>> fields ? >>> >>ActionForm will be String only. And after that you have to do >>validation. >> >>> Do you know about some documentation I could help for this purpose ? >>> >>> Fred >>> >> >>HTH >>Manish Singla >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]