Re: Re: struts validator

2003-06-06 Thread Chuck Cavaness
Obviously I can only speak for the multiple projects (both my own and those I've consulted on), various articles and presentations that I've written on the Validator and of course the work that I've done with it while writing the Struts books, but the fact is that the Validator does work.

[ANNOUNCE] Jakarta Struts Pocket Reference Available

2003-06-04 Thread Chuck Cavaness
I wanted to let everyone know that the Jakarta Struts Pocket Reference published by O’Reilly is now available. This purpose of this small (144 pages) book is to provide a quick way of looking up often-used information and have it small enough to shove in your back pocket. Information like

Validator Presentation

2003-06-04 Thread Chuck Cavaness
To anyone who might need it, I gave a presentation on the Validator at the Struts Atlanta group last week. The presentation has been posted on the Struts resource page: http://jakarta.apache.org/struts/resources/articles.html (Thanks James!). It's also available from the Struts Atlanta Site.

RE: Re: Specifying comma-delimted Struts Config Files

2003-03-13 Thread Chuck Cavaness
-param Thanks. -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 1:41 PM To: Struts Users Mailing List Subject: Re: Re: Specifying comma-delimted Struts Config Files As embarassing as it is to admit, the error was a pure

Specifying comma-delimted Struts Config Files

2003-03-12 Thread Chuck Cavaness
Is anyone using the feature of the framework where you can specify multiple configuration files in the web.xml: init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml,/WEB-INF/struts-config2.xml/param-value /init-param I'm using the latest nightly build and

Re: Re: Specifying comma-delimted Struts Config Files

2003-03-12 Thread Chuck Cavaness
comma-delimted Struts Config Files On Wed, 12 Mar 2003 16:00:46 -0500 Chuck Cavaness [EMAIL PROTECTED] wrote: Is anyone using the feature of the framework where you can specify multiple configuration files in the web.xml: Sorry I can't help Chuck, since I'm not using multiple config.xml's

Re: struts banking example

2003-02-28 Thread Chuck Cavaness
If it's the one that I'm thinking of, try 1234 as the access number and 5678 as the pin. chuck From: joni santoso [EMAIL PROTECTED] Date: 2003/02/26 Wed PM 11:10:47 EST To: Struts Users Mailing List [EMAIL PROTECTED] Subject: struts banking example hi, i got a struts banking app

Re: Re: struts banking example

2003-02-28 Thread Chuck Cavaness
Yes, This example app is from chapter 3 of my book. It was a very simple example. It was essentially the proverbial Hello World of Struts examples. The Storefront, which is used from chapter 4 on, was more complete. chuck From: Richard Raquepo [EMAIL PROTECTED] Date: 2003/02/27 Thu AM

DataSourceConfig - className property

2003-02-16 Thread Chuck Cavaness
Can someone tell me if the disappearance of the className property from the DataSourceConfig class was intentional or not? The 1.1 dtd still shows it as an attribute, but I don’t see the property in the class anymore. Thanks, Chuck

Re: Prevent Cache.

2003-01-24 Thread Chuck Cavaness
Just out of curiosity, are you using a proxy server? chuck From: carlos list [EMAIL PROTECTED] Date: 2003/01/24 Fri PM 06:09:53 EST To: [EMAIL PROTECTED] Subject: Prevent Cache. Hello List, i'm dealing with the old problem of preventing browser chache. I've tried all the

Re: Oreilly Banking example - Login

2002-12-05 Thread Chuck Cavaness
Eric, The messages you see are the result of validation errors and exceptions being thrown by the security service. In the banking example, the LoginForm performs the validation to ensure that both fields have been populated by the user. If not, the application doesn't even bother attempting

Re: Huge Files Intended for Chuck Cavaness

2002-12-04 Thread Chuck Cavaness
Micael, What kind of files are they and who are they from? I'm not sure what's going on but if you find out, please let me know! Chuck From: micael [EMAIL PROTECTED] Date: 2002/12/04 Wed PM 08:58:31 EST To: [EMAIL PROTECTED] Subject: Huge Files Intended for Chuck Cavaness I am

Re: Re: Huge Files Intended for Chuck Cavaness

2002-12-04 Thread Chuck Cavaness
Files Intended for Chuck Cavaness Storefront wars and sourcecode. Says you were sending them to yourself, and I got them. I have been waiting for your book and complained to Amazon about it. Think they are out to get me? Micael At 09:09 PM 12/4/2002 -0500, you wrote: Micael

Re: did anyone run beer4all successfully?

2002-12-03 Thread Chuck Cavaness
by Chuck Cavaness from http://jakarta.apache.org/struts/resources/projects.html and failed to run it? I am running struts 1.1b2 and tomcat4.1.12, jdk1.3.1. The exception I got is [org.apache.ojb.broker.accesslayer.JdbcAccess] ERROR: SQLException during the ex ecution of materializeObject: Table

Re: FW: struts with ojb, multiple repositories

2002-11-29 Thread Chuck Cavaness
, multiple repositories I'm using an application scoped 'service' which uses ojb's odmg implementation as done in Chuck Cavaness' Struts Model Components chapter. Works well with one repository. I now need to use two repositories. I've worked out the configuration for multiple

Re: RE: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-26 Thread Chuck Cavaness
The book is now available on Safari. I worked with them to get it up yesterday. Here's a link to Safari - http://safari.oreilly.com Chuck From: Andy Kriger [EMAIL PROTECTED] Date: 2002/11/26 Tue AM 10:48:34 EST To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: [ANNOUNCE]

Re: RE: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-26 Thread Chuck Cavaness
I'm sorry the copy hasn't been shipped by bookpool yet. I noticed they are still saying not yet published yesterday. If it's any consolation, I haven't got my copies yet either. I haven't even seen the finished product yet :( chuck From: Paananen, Tero [EMAIL PROTECTED] Date: 2002/11/26

Re: RE: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-25 Thread Chuck Cavaness
Wendy, That's a great question that I don't know the answer to. I would direct that question directly to O'Reilly at [EMAIL PROTECTED] Chuck From: Wendy Smoak [EMAIL PROTECTED] Date: 2002/11/24 Sun PM 10:20:27 EST To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE:

Re: Re: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-25 Thread Chuck Cavaness
company'd pay for it too! ) Martyn Chuck Cavaness wrote: Wendy, That's a great question that I don't know the answer to. I would direct that question directly to O'Reilly at [EMAIL PROTECTED] Chuck From: Wendy Smoak [EMAIL PROTECTED] Date: 2002/11/24 Sun PM 10:20:27 EST

Re: RE: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-24 Thread Chuck Cavaness
and negative. As Craig and Ted have said many times, the Struts mailing list is very unique and full of really great people. I hope it adds value to the community. Thanks to all, Chuck Cavaness Author - Programming Jakarta Struts ISBN: 0596003285 Amazon http://www.amazon.com/exec/obidos/ASIN

O'Reilly Struts Cover

2002-07-24 Thread Chuck Cavaness
For all of those guessing and suggesting earlier this week on an animal for the Struts book, I've finally seen it and it's NONE of the ones suggested so far. It's really good though and does the framework proud. I'm told that the book will be available for pre-orders this week or next and the

Re: struts book

2002-07-23 Thread Chuck Cavaness
It's not going to be available for review, but it will be in the book. I'm still rewriting this very moment :) chuck At 09:14 AM 7/23/2002 -0500, you wrote: Is chapter 8 of the O'Reilly struts book not going to be up for review? Jose Casas E-Commerce Applications (501) 277-3112 [EMAIL

RE: Struts Persistence

2002-07-23 Thread Chuck Cavaness
I used this on the Storefront application including in several chapters as if my memory serves me correctly, you can plugin different sequence manager implementations in the ojb.properties class. Something like this I think:

RE: [ANN] Chapter 18 of the O'Reilly Struts book now available

2002-07-18 Thread Chuck Cavaness
Simon, I have to be finished by the end of the month. O'Reilly has done a good thing and forced me to finish the book this month. What this means is that several chapters will not make it into this first edition. They will be covered in the 2nd edition, which I've already had discussions

Re: Help with enabling Struts logging

2002-07-16 Thread Chuck Cavaness
My chapter on Logging with Struts Applications should be posted on theserverside.com tonight or tomorrow. When it shows up, download it and read it and see if it helps. That will be a good test on how effective it is. Any feedback you can provide will be very helpful. You can find it (when

RE: getting nested tags to work with DynaActionForm???

2002-07-16 Thread Chuck Cavaness
In answer to this question, take a look at several of the chapters from my upcoming O'Reilly book on Struts, especially chapter 5 where I cover the steps that the controller goes through while processing a request. http://www.theserverside.com/resources/strutsreview.jsp chuck This is

Re: [ANN] Chapter 11 of the O'Reilly Struts book now available

2002-07-10 Thread Chuck Cavaness
William, It just wasn't one of the topics that developers seemed to ask about. If you think it's worth discussing, send feedback for this or other suggestions to the email listed in the chapter: [EMAIL PROTECTED] and I'll try to add it to the material. I don't want to tie up the mailing

Re: DynaActionForm and Nested property -- (to Craig)

2002-07-05 Thread Chuck Cavaness
Raveendra, I was reading your email and just thought I would mention something that I saw that may be a hard bug to find later. When using dynamic forms, you have to set the dynamic attribute to true, like this: form-bean name=addPCCompanyForm dynamic=true

Re: DynaActionForm and Nested property -- (to Craig)

2002-07-05 Thread Chuck Cavaness
Thanks for catching me on that. I looked at the form-bean element twice and still thought there was a custom impl there, but that was actually the type attribute. Sorry for the confusion. chuck At 12:42 PM 7/5/2002 -0700, you wrote: On Fri, 5 Jul 2002, Chuck Cavaness wrote: Date: Fri, 05

Re: Just how cooked is Struts Validation at this point?

2002-07-03 Thread Chuck Cavaness
I've used it in 1.1b quite a bit and find it very stable and have used it in more than just trivial examples. I also know or several large projects using it, both within Struts and in the business components. No issues. I would recommend using it. For what that's worth, Chuck At 06:30 PM

Re: Struts Examples

2002-07-01 Thread Chuck Cavaness
Glen, Thanks for mentioning my example in chapter 3. In the chapter on packaging, I mention the different ways that you might want to package your classes and the pros and cons of each way. That chapter is finished, just not posted yet. I wanted to provide an example of each way. As you said,

Re: users guide(s) for DynaActionForm et al?

2002-06-25 Thread Chuck Cavaness
One source is chapter 7 of my Struts book at http://www.theserverside.com/resources/strutsreview.jsp Chuck At 03:30 PM 6/25/2002 -0400, you wrote: I've been doing wizards for Action's, ActionForm's, and action mappings, as part of a group doing Struts tooling for WSED, an Eclipse-based IDE. So

Re: Starter Action? Where to find Plugin Documentation?

2002-06-14 Thread Chuck Cavaness
I know it doesn't help you now, but Chapter 9 of my book will cover plugins and show how to use them. Chapter 9 is finished and will be published very shortly at http://www.theserverside.com/resources/strutsreview.jsp. Chuck At 08:37 AM 6/14/2002 -0800, you wrote: Can someone give me a hint

Re: Struts book bug?

2002-06-11 Thread Chuck Cavaness
Adolfo, It is required according to the DTD and the source code, because there is not default specified. However, I think I may know how it's working for you. I'm just guessing here however. Do you have the properties file specified in the web.xml? Version 1.1 supports

O'Reilly Struts Chapter 7 Posted

2002-06-07 Thread Chuck Cavaness
Just a note for everyone that I've posted Chapter 7 on theserverside.com. Here's the link: http://www.theserverside.com/resources/strutsreview.jsp I've included an .rtf version with the ZIP file for those w/o MS Word. As always, I appreciate any feedback on the material. Enjoy, Chuck -- To

Re: Where do I find documentation an examples about the new tags in the struts-config 1.1 dtd?

2002-06-06 Thread Chuck Cavaness
I cover them in my chapter 4 from here: http://www.theserverside.com/resources/strutsreview.jsp Chuck At 06:52 AM 6/6/2002 -0500, you wrote: - Original Message - From: Dirk Storck [EMAIL PROTECTED] To: Struts User (E-Mail) [EMAIL PROTECTED] Sent: Thursday, June 06, 2002 4:00 AM

RE: related to: Re: #2 - Use DispatchAction to organize related operations

2002-06-04 Thread Chuck Cavaness
, too am overriding processPreprocess and it works beautifully. Besides increasing security, it cuts down on unnecessary CPU bandwidth. Mark -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 10:58 PM Rick, catch this earlier. I had implemented

Re: related to: Re: #2 - Use DispatchAction to organize related operations

2002-06-03 Thread Chuck Cavaness
Rick, Let me mention something. One potential problem with this approach is that by the time the action is called, may be too late. You really need to catch this earlier. I had implemented something along these lines awhile back and soon remembered that the ActionForm is populated and the

Re[2]: related to: Re: #2 - Use DispatchAction to organize related operations

2002-06-03 Thread Chuck Cavaness
, for example. Chuck At 11:04 PM 6/3/2002 -0400, you wrote: On Monday, June 3, 2002, 10:58:07 PM, Chuck Cavaness wrote: CC What I suggest is to look at the processPreprocess() method in the CC RequestProcessor and possibly override this to do your checks. It's called CC for every request and long before

Re: related to: Re: #2 - Use DispatchAction to organize related

2002-06-03 Thread Chuck Cavaness
Vic/Rick, This has been my experience with container-managed security. If your application doesn't need to execute any special business logic as part of the login process, yes it works fine. However, if I've got to authenticate with LDAP, or check how many failed login attempts this usedid

Re: Why separate form bean to collect form data?

2002-05-28 Thread Chuck Cavaness
Ryan, If you're using 1.1B, look into the Dynamic forms. Along with the validator, this is probably your best bet. Chuck At 05:00 PM 5/28/2002 -0700, you wrote: Hi, I am Norman. Instead of creating a new form bean for each form, can we create a generic form class that can collect all the

Re: Struts Validator

2002-05-27 Thread Chuck Cavaness
This may be of no help, but I didn't see that you had the dynamic attribute to true like this: form-bean dynamic=true name=loginForm type=org.apache.struts.action.DynaActionForm Chuck At 02:42 PM 5/27/2002 -0300, you wrote: Hi, Has anyone used the server-side validation with

Re: Struts User Group

2002-05-24 Thread Chuck Cavaness
Depending on how far north, count me in. Chuck At 03:09 PM 5/24/2002 -0400, you wrote: Are there any Struts Users Group(s) that meet in the Atlanta, GA area? I am aware of (and attend when possible) the AJUG (http://www.ajug.org/) meetings, but I mean specifically for Web Development using the

RE: Small Complaint - Struts Impl.

2002-05-18 Thread Chuck Cavaness
Mark and all, I was working on the View chapter today and I noticed that reset() is called on an ActionForm, regardless of the scope. This is done at the very end of the createActionForm() method in the RequestUtils. The createActionForm() method is called for every request in the

RE: Iterator Simple

2002-05-18 Thread Chuck Cavaness
I also just noticed that reset is called again immediately after the processActionForm() method in the RequestProcessor during the processPopulate() method. It doesn't check scope at all here either. So, the reset() is actually being called twice here during the same request; once during the

Re: Problem with Resin 2.1.0 and Struts 1.1b (from CVS)

2002-05-18 Thread Chuck Cavaness
Post the part of your mainMenu.jsp that is setting the encodiing. Chuck At 03:43 PM 5/18/2002 +0400, you wrote: when accessing struts-example/logon.do i've got this 500 Servlet Exception java.lang.NullPointerException at com.caucho.vfs.ReadStream.setEncoding(Compiled Code) at

ActionForm-reset() method

2002-05-18 Thread Chuck Cavaness
Thanks for the insight on the reset() method. Chuck At 09:40 AM 5/18/2002 -0700, you wrote: On Sat, 18 May 2002, Galbreath, Mark wrote: Date: Sat, 18 May 2002 11:27:15 -0400 From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts

RE: Application State == View or Business Logic

2002-05-15 Thread Chuck Cavaness
My thinking is that the data transfer objects (also referred to as value objects) are still part of the model. The view components do access these as JavaBeans to help render the dynamic data. Here's a linke from the Struts user guide:

RE: xml-xslt v jsp

2002-05-10 Thread Chuck Cavaness
Interesting digression, Brett is the editor for my Struts book. He's an awesome editor! Chuck At 01:42 PM 5/10/2002 -0700, you wrote: Brett Mclaughlin is the man. JDOM rules. my .02 peace, Joe -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday,

RE: [ANN] Chapters 5 and 6 of the O'Reilly Struts book are now available

2002-05-10 Thread Chuck Cavaness
Joe, Thanks for the comments. The reason that we went with WL was at the time we started writing it (long before the EJB 2.0 spec became public), it was the most complete 2.0 EJB container. We looked at some of the others, JBoss, Orion, and a few others, but they didn't implement the

Re: [ERROR] Digester

2002-04-29 Thread Chuck Cavaness
Not sure if you are still having this problem, but I believe the answer is that it's using the 1.0 DTD and not 1.1. Look at the top of the config file and see if it's referencing the 1.0 DTD. Chuck At 10:04 AM 4/29/2002 -0700, you wrote: No ideas at all? I've even rebuilt the project based

Re: Exception handling by radhika

2002-04-28 Thread Chuck Cavaness
I'm not sure of your reasons for not wanting to ActionErrors or ActionMessages, but that is only a fraction of what might be considered the exception handling framework in Struts. The Exception Handling Chapter is one of the chapters that many have asked me about and I'm working hard to get

Re: Action + Session Beans + JMS

2002-04-26 Thread Chuck Cavaness
- unless you modified how struts itself works (you have the source code - go ahead of you want!). Chuck Cavaness [EMAIL PROTECTED] on 04/25/2002 10:08:21 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject

Re: DynaActionForm problem with non-string objects

2002-04-25 Thread Chuck Cavaness
the FormPropertyConfig class, rather than the DynaActionForm. The DynaActionForm uses a Map already and should be capable of dealing with Objects. It's the initialization portion of the process that you need to override and I believe that starts in the FormPropertyConfig class. Chuck Cavaness At 11:38

Re: Struts 1.1 b1 and how to set form-property initial value for java.util.List

2002-04-25 Thread Chuck Cavaness
in the book, eh? Chuck Cavaness At 04:34 PM 4/25/2002 +1000, you wrote: Hi, I have not located too many examples on setting the intial bean value for types in the form-property tag other than java.lang.String. I would like to set the initial value in a java.util.List. Is this possible? if so, how do I

Re: Action + Session Beans + JMS

2002-04-25 Thread Chuck Cavaness
I think I understand your design and I really think you need to stick to a synchronous call, instead of the asynchronous JMS call. By its very nature, the client publishing the message will not get an immediate response, other than an acknowledgement for the message itself. I think you're

Re: requestDispatcher.include rather than requestDispatcher.forward

2002-04-22 Thread Chuck Cavaness
Take a look at the org.apache.struts.actions.IncludeAction. It may be just what you need. Chuck At 12:42 PM 4/23/2002 +1000, you wrote: Team, I'm fairly new to Struts and would like to know if the following is possible. When returning an ActionForward object from the perfom method of a

Re: Internationalization and html:submit

2002-04-19 Thread Chuck Cavaness
Although I'm not real found of this action, I would look at the org.apache.struts.actons.LookupDispatchAction. This is a pre-built action that can be used exactly for what you are trying to do. Chuck At 04:30 PM 4/19/2002 +0200, you wrote: Hi, we are developing an application that uses the

RE: [ANN] First two beta chapters of O'Reilly Struts book are available

2002-04-18 Thread Chuck Cavaness
Just the doc is fine. If you have comments relating to the source and other files, just add it to the doc where appropriate. I look forward to your input, I think :) Chuck At 08:51 AM 4/18/2002 -0500, you wrote: Chuck, This is looking good! I'm reading through chapter 3 and making notes,

Re: Warning when extending ActionMapping.

2002-04-17 Thread Chuck Cavaness
The struts DTD, whose job it is to make sure the struts-config.xml is valid, doesn't know about the screen attribute. You'll need to modify the DTD, or turn parsing off. Chuck At 05:09 PM 4/17/2002 +0200, you wrote: Hi, In struts-config.xml, I've added a property to the default struts

Re: No action instance for path [/path] could be created

2002-04-15 Thread Chuck Cavaness
Look at the processActionCreate() method in the RequestProcessor. This is where the problem surfaces. Here's a fragment: try { instance = (Action)RequestUtils.applicationInstance(className); instance.setServlet(this.servlet); actions.put(className, instance); } catch

Re: Configuring sub-applications

2002-04-12 Thread Chuck Cavaness
I had the same realization as I was trying to use the new multi-app features. Although I haven't tried it yet, take a look at the org.apache.struts.actions.SwitchAction. Craig added it recently. It may be the rest of what you need, not sure however. Chuck [...ripped earlier messages ...]

Re: Preview OReilly Struts Chapters Online - Soon

2002-04-11 Thread Chuck Cavaness
If not, I'll make them available here. Keep in mind that this is only chapters 3 and 4 to begin with and get this started. They are Overview of the Struts Framework and Configuring the Struts Application. Others will following accordingly. Chuck At 12:00 PM 4/11/2002 +0530, you wrote: will

Re: Tomcat error log: Element struts-config does not allow message-resource here

2002-04-11 Thread Chuck Cavaness
It's message-resources. I think that yoy're missing the s according to the error message. Chuck At 12:16 PM 4/11/2002 +, you wrote: Hi, Tomcat3.2.3+JBoss2.4.1 on JDK1.3.1_01 on SuSE7.2 (2.4.13) Struts1.0.2 I am getting the following error message on startup of my containers(only

Re: Struts 1.1 beta Exception Handling

2002-04-11 Thread Chuck Cavaness
That's one of the most requested Chapters for me to put out and I'm working hard to get that one out next. In the meantime, take a look at the findException() method in the ActionMapping class. This is where it loops up the superclass chain of the Exception class looking for a ExceptionConfig

Re: Preview OReilly Struts Chapters Online - Soon

2002-04-10 Thread Chuck Cavaness
Everything has been approved by OReilly. I'm working with the folks at theserverside.com right now to get the first chapters online. In fact, I was writing the introductory information for the page when I saw this email. It may take several days for them to be mae available over there,

Re: NoClassDefFoundError - Weblogic 6.1

2002-04-08 Thread Chuck Cavaness
I had this problem recently with our WL installation. I can't remember the exact cause. Obviously it's all about class loaders. The difference between the parent class loader and the one that is used to load the web app. One thing to check, see if you have the WEB-INF classes directory in the

Re: Struts1.1-b1 - generated buttons tags has wierd default titles and alt attributes

2002-04-05 Thread Chuck Cavaness
I'm pretty sure that it's related to this bug I submitted last week. It's in the BaseHandlerTag, so many tags are probably affected by this. Here's the bug report link: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7411 chuck At 10:06 AM 4/5/2002 -0300, you wrote: I had the same

Re: Nested properties

2002-04-05 Thread Chuck Cavaness
Have you defined a getLoanDetailBean() method in the ActionForm? Also, the LoanDetailBean must have a getLoanSummaryBean() method as well. Chuck At 04:28 PM 4/5/2002 -0500, you wrote: Hi, my form bean contains another form bean which in turn contains a property that I want to access in my

Re: Problem with logic:equal tag

2002-04-04 Thread Chuck Cavaness
One time I had this problem. Double check to make sure that you have the %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % at the top of the page. Chuck At 11:41 AM 4/4/2002 +0900, you wrote: I have some code in a jsp page logic:equal name=pageBean property=picExists value=false/

Re: Where can I do some application initialize work?

2002-04-04 Thread Chuck Cavaness
If you're using 1.1, you can setup a plugin for it. If you're using a 2.3 container and don't need to support 2.2, you can setup a event listener on the servlet context creation for the application. Or you could just put initialize it in the init() method of the ActionServlet. Chuck At

Re: DynaActionForm / DynaBean

2002-04-03 Thread Chuck Cavaness
I doubt this will be enough, but I'll offer it up to get you started. Suppose I have the following form-bean: form-beans form-bean name=itemDetailForm dynamic=true type=org.apache.struts.action.DynaActionForm form-property name=view

Re: DynaActionForm / DynaBean

2002-04-03 Thread Chuck Cavaness
I doubt this will be enough, but I'll offer it up to get you started. Suppose I have the following form-bean: form-beans form-bean name=itemDetailForm dynamic=true type=org.apache.struts.action.DynaActionForm form-property name=view

Re: AW: Preview OReilly Struts Chapters Online - Soon

2002-04-02 Thread Chuck Cavaness
Although I would like to write a chapter on that topic, I believe that the plate is so full and this topic is so broad, that I couldn't do it justice in the book. There are so many directions it could go. Using ORM frameworks like TopLink or Cocobase, to things such as JDO. Then you have to

Re: Preview OReilly Struts Chapters Online - Soon - TILES???

2002-04-02 Thread Chuck Cavaness
As it stands right now, it's chapter 15. Chuck At 05:39 PM 4/2/2002 +0200, you wrote: Hi Which chapter contains Tiles??? - Original Message - From: Honman Lee [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, March 29, 2002 7:00 PM Subject: RE: Preview

Re: are there any good tag usage examples anywhere online?

2002-04-02 Thread Chuck Cavaness
I know this doesn't help you at all right now, but I'll be covering all of them in Chapter 8 of the OReilly Struts book. Hopefully that will be one of the early chapters that I put out for review, as many people have asked me for it. Again, sorry it's still a couple of weeks away, but I just

Re: JSP optimiser that works with Struts

2002-04-02 Thread Chuck Cavaness
Not sure if I'm the first, but I have to ask (in a polite voice) why? Chuck p.s. Not sure if JPretty does JSP also, but here's the link: http://www.mmsindia.com/JPretty.html At 02:08 PM 3/27/2002 +1100, you wrote: Hi list, I'm looking for a jsp optimiser (open source/free) that will strip

RE: Preview OReilly Struts Chapters Online - Soon

2002-03-28 Thread Chuck Cavaness
feature in it. Let me know what everyone thinks. Chuck Cavaness -- Sent via jApache.org -- 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

RE: OReilly Struts book

2002-03-19 Thread Chuck Cavaness
to have it out right now. Chuck Cavaness At 06:10 PM 3/18/2002 -0500, you wrote: When is the book due out? -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 10:31 AM To: 'Struts Users Mailing List' Subject: RE: OReilly Struts book I'm

RE: OReilly Struts book

2002-03-19 Thread Chuck Cavaness
AM 3/19/2002 -0500, you wrote: Nothing like a little preemptive peer review! Come on! Share! Mark -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 6:11 AM Half of the Chapters are finished right now. Once I finish all of them, it then goes

RE: OReilly Struts book

2002-03-19 Thread Chuck Cavaness
I hope Tim sees it that way as well. I will post something to the serverside. Thanks, Chuck At 10:51 AM 3/12/2002 -0500, you wrote: I am sure you can convince Tim O'Reilly that community review does help to sell J2EE hot topic books - just take a look at The Middleware Company's EJB-related

Re: I'm bagging my head on the keyboard on this one: Cannot retrieve definition for form bean PlayerMessageForm

2002-03-10 Thread Chuck Cavaness
The exception gets thrown from the FormTag in the following code: // Look up the form bean definition FormBeanConfig formBeanConfig = appConfig.findFormBeanConfig(mapping.getName()); if (formBeanConfig == null) { JspException e = new JspException

RE: validate() and session expiry

2002-03-05 Thread Chuck Cavaness
=false idea very much. Thanks, Matt. -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 03:01 To: Struts Users Mailing List Subject: RE: validate() and session expiry Your problem is slightly different than ours. In our application, the user had

RE: validate() and session expiry

2002-03-05 Thread Chuck Cavaness
do like the idea of being able to configure this in struts-config.xml though. Maybe it could be implemented as requiresSession=true? Matt. -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 12:57 To: Struts Users Mailing List Subject: RE: validate

RE: validate() and session expiry

2002-03-05 Thread Chuck Cavaness
, since the RequestProcessor is where all of the meat is now, you can just use the Struts ActionServlet as is and there's usually no need to subclass it. Chuck Cavaness -Original Message- From: Matt Read [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 1:22 PM To: [EMAIL PROTECTED

RE: validate() and session expiry

2002-03-05 Thread Chuck Cavaness
- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 1:44 PM To: 'Struts Users Mailing List' Subject: RE: validate() and session expiry Remember, the RequestProcessor is a 1.1 thing. You'll have to be using the nightly build for it. Of course, the beta is just around

Re: validate() and session expiry

2002-03-04 Thread Chuck Cavaness
to the RequestProcessor class, but it works the same way. I'm sure there are other solutions, but this is one approach. Chuck Cavaness At 02:20 AM 3/5/2002 +, you wrote: I've got a problem and I'm not sure whether it's my poor design or a struts limitation. I'd appreciate it if someone can shed some light

RE: validate() and session expiry

2002-03-04 Thread Chuck Cavaness
. My only reservation is that in processPreprocess() you'd have to effectively hard-code a list of the request paths that require a user to login. I suppose you have to do it somewhere though. Matt. -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 02:34

RE: The message during startup

2002-02-27 Thread Chuck Cavaness
init-param in web.xml? I set the debug value to 0. The message still came out. Regards, Vincent -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 11:59 AM To: Struts Users Mailing List Subject: Re: The message during startup Set

Re: The message during startup

2002-02-26 Thread Chuck Cavaness
Set the debug and detail parameters in the web.xml (if you're using 1.0) to 0. If there are none there, add init-param elements with values of 0. Chuck At 11:40 AM 2/27/2002 +0800, you wrote: Everytime the web server start, a lot of message shows in std out or startup log. How can I disable

Re: RE: Controller and security

2002-02-08 Thread Chuck Cavaness
I've seen this solution work very well. When you extend the ActionServlet, you can override the processPreprocess method to determine if the user has the neccessary permissions, if the user has a valid session, etc... long before ever getting to the Action class (If you're using the 1.1

RE: OReilly Struts book

2002-02-05 Thread Chuck Cavaness
I'm definitely going to cover some design patterns/strategies related to Struts and EJB. I've been working on an a Struts/EJB application for over a year now and have learned a great deal about how to approach this, so this should be valuable to others. Brian Keeton and I just finished an EJB 2.0

Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-02-01 Thread Chuck Cavaness
That's sort of what I was saying. In the second action, the one that is called after the user sees the form data and makes some choices, does the scope equal to request or session? If you have both of these actions defined as session scope, then I don't believe a new ActionForm would be

Re: AW: Are Vectors in a FormAction set to null after a user has subm itted a form?

2002-02-01 Thread Chuck Cavaness
You are absolutely correct. That was my blurry-eyed mistake at 2am. Here's the code that shows that if nothing is defined, it's session scope: if (request.equals(mapping.getScope())) { request.setAttribute(mapping.getAttribute(), instance); }else{ HttpSession session = request.getSession();

Re: RE: Are Vectors in a FormAction set to null after a user has subm itted a form?

2002-02-01 Thread Chuck Cavaness
I agree total with you on that. However, I didn't think he was trying to repopulate from the page. I read it as he wondered why the Vector wasn't still present in the form on the next go-around. I typically use a Collection for something like the iterate tag. I don't expect (and wouldn't do it

Re: log4j and weblogic

2002-02-01 Thread Chuck Cavaness
It seems that maybe you're trying to instantiate a log4j Logger in one of your actions or ActionServlet like this: Logger.getInstance( String or class ); and the class (Logger) can't be found by the class loader. Here's a couple of things to try: 1) Is the log4j.jar in your WEB-INF/lib

Re: RE: Are Vectors in a FormAction set to null after a user has subm itted a form?

2002-02-01 Thread Chuck Cavaness
Boris is right of course. That's the main reason that I was thinking when I said that. There's definitely no need for the overhead of synchronization in the case that we were discussing. Another reason that I was thinking about, but didn't elude to very well is that you should always try to

Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-01-31 Thread Chuck Cavaness
Just guessing, but the reason the Vectors are null is probably because the action that is being called is configured as request scope and not session in the Struts configuration file. Therefore, after the HTML page is drawn (using the Vectors to populate the drop-down boxes), the ActionForm is

Re: about struts

2002-01-31 Thread Chuck Cavaness
Not to be a smart aleck about it, but there's a decent set of installation instructions off the Struts main web site. There might be additional steps that you need to take based on which version of Tomcat that you're using. Here's the URL: http://jakarta.apache.org/struts/installation-1.0.html

Re: opening with MS-EXCEL

2002-01-30 Thread Chuck Cavaness
Here's a code sample that I pulled from one of our actions that does that very thing. I didn't write, but I know that it works fine. Chuck // create the label and value StringBuffers StringBuffer labels = new StringBuffer(); StringBuffer values = new StringBuffer(); // This calls a local

  1   2   >