Why Chain over Action?

2005-11-07 Thread Paul Benedict
Subject line says it all. I've been contemplating this topic. The best answer I can give here is that in Struts 1.3, you really don't have to ever deal with an Action class at all - use ChainAction as an entry point into your chains. But how would you model a real world application using the

RE: Lists within lists issue

2005-11-07 Thread Paul Benedict
Prabdoh, You are much better off using JSTL so you can write something like: html:textarea property=${form.object[i].subobject[j].property/ Once you go JSTL, you never go back :-) Which makes the nested object tags obsolete. Paul --- Deshmukh, Prabodh (P.) [EMAIL PROTECTED] wrote: Looks

Re: logic:match barfs if it's parameter is null

2005-11-07 Thread Paul Benedict
Have you tried JSTL? --- Mon Cab [EMAIL PROTECTED] wrote: Hi all... I.e any way of using the logic:match tag less strictly, so that logic:match parameter=var value=bla will not cause an exception if var is null. At the moment I am getting: javax.servlet.ServletException: Cannot

Re: Validator 1.2.0 RC3 now available for review

2005-11-06 Thread Paul Benedict
...as long as you don't have 12 betas like Tapestry :-) __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail:

Re: Passing an array of fields to ActionForm

2005-11-05 Thread Paul Benedict
Arrays (and collections for that matter) are just single objects with an unknown size. You can just specify a property to be a String[] and then a c:forEach loop to print out whatever you want. __ Yahoo! FareChase: Search multiple travel sites

Commons Validator 1.2

2005-11-02 Thread Paul Benedict
Don and Niall, I see RC3 of Commons Validator 1.2! Makes me excited as my favorite bugs (oxymoron) seem to be fixed. But besides fixes, can you detail what new features it contains? __ Yahoo! Mail - PC Magazine Editors' Choice 2005

Re: Question on http://displaytag.sourceforge.net/

2005-11-01 Thread Paul Benedict
Rick, I am using it now. There's a big 1.1 release plan, but I think with only one or two guys working on it, it will take years to release -- even longer than the 18 month Struts release cycle :-) Anyway, they have paging built-in for 1.1, but in the mean time, use the ValueLiist tag which is

Re: How to use Email Templates for struts?

2005-10-29 Thread Paul Benedict
You can also just use basic JSP technology. You can use a servlet include to retrieve the output from a JSP, which could your mail. __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com

Re: Default values for Multiple Select

2005-10-18 Thread Paul Benedict
Natalie, Your question isn't clear If you're dealing with multiple checkboxes, the property backing them should be a String[] so you can capture all the values selected. If you're dealing with multiple options of a radio group, only one option will ever be selected. Paul

Re: I am getting frustrated with LookupDispatchAction

2005-10-17 Thread Paul Benedict
Can someone save me from insanity? Questionable... But I get the following error in tomcat: javax.servlet.ServletException: Request[/mywizard1] does not contain handler parameter named 'method'. Do you have a method named 'method'? It should look like the typical Struts execute method.

Custom Struts code or 1.2.8?

2005-10-13 Thread Paul Benedict
Does anyone ever run any custom versions of Struts or the Commons library? The reason I ask is because the bug that I need fix (it is now fixed) in Commons Validator isn't released for the Struts 1.2.x branch, but most likely will be released with Struts 1.3 Well I don't like using release 1

Re: Why I Hate Struts Modules

2005-10-12 Thread Paul Benedict
Frank, I didn't know this. I thought the only way to chunk up the Struts config was to define modules, because only one XML could be specified. well now that I know I can have one (default) module that contain all my configurations, I am chucking the modules. :-) Paul --- Frank W. Zammetti

Why I Hate Struts Modules

2005-10-11 Thread Paul Benedict
Great subject line, isn't it? :) OK. I've been doing Struts for like 2-3 years now, and Struts Modules I loved for awhile but now I absolutely can't stand them First off, my initial appeal to modules was to split up the configuration files so different developers can work on the project

Re: When is Struts 1.2.8 and 1.3 coming out?

2005-10-10 Thread Paul Benedict
Ted, I saw javadoc changes that say @since 1.2.8. Will that code be ported to 1.3? See, I'd really like a 1.2.8 that fixes the URL validator bug. That's a big priority for me. Paul __ Yahoo! Mail - PC Magazine Editors' Choice 2005

When is Struts 1.2.8 and 1.3 coming out?

2005-10-09 Thread Paul Benedict
I see code for 1.2.8 and code for 1.3. Will anyone be releasing these soon? I look forward to 1.3 but it doesn't seem to exist on the Struts page as a downloadable kind of moving slow. I am just a patient waiter and eager for any version to make it out. Paul

DAOs in service methods

2005-09-01 Thread Paul Benedict
Hey guys. I have alot of service objects called from Struts, and each have a good deal of service methods. Service methods mainly do business logic and talk to DAO objects. Question: I've taken the approach of service methods having the responsibility of instantiating DAO objects locally and

Is Struts Dying?

2005-08-25 Thread Paul Benedict
The subject line asks it all. Is it true? I hope we see a version 1.2.8 and a 1.3 soon, but I am sorry to see all the innovation going into Spring (YEAH!) and Shale (YAWN!), with no one really wanting to continue growing the classic framework. Is it viable to evolve Struts Classic into Shale,

[OT] DAO Pattern in Struts

2005-08-23 Thread Paul Benedict
Guys, This is off-topic but I need your help. There are some good programmers here and I would like to receive some advice back. I am sure there's a simple answer to it. My Struts app is a multitier app (Web - Business - DAO) and it uses Jakarta Commons DbUtils for the DAO layer. My DAO methods

Re: [OT] DAO Pattern in Struts

2005-08-23 Thread Paul Benedict
Erik, Oh, I have worked on a project where that was the pattern I designed for myself!! One accepted a connection for transactions, the other for self-contained singleton executions. Yup, it's a great pattern. You raise an interesting point. I never thought about using a middle-man between my

RE: [STRUTS 2X]: Ideas

2005-08-01 Thread Paul Benedict
Peter writes: (2) Stubbing of abstract attributes for framework implementation like Tapestry. Are you talking abouting the ``jwcid'' attribute? No. When you create a Tapestry page, you don't have to implement the getters - or even write the setter methods for attributes (unless you want to

Re: [HELP] How can deny access to folders at web app root

2005-08-01 Thread Paul Benedict
Pham, Go into your Tomcat/conf directory and edit the default web.xml. You want to turn directory listings off from the default servlet: servlet servlet-namedefault/servlet-name servlet-class org.apache.catalina.servlets.DefaultServlet /servlet-class

[STRUTS 2X]: Ideas

2005-07-31 Thread Paul Benedict
Hi guys, I have some ideas for some enhancements for Struts. I am glad we are moving along with 1.2.x and 1.3, but are we allowed to have discussion about the revolution of it too? I like to think that Ted Husted's Struts Jericho could get going soon. We have Shale (although I think JSF is not

Re: [STRUTS 2X]: Ideas

2005-07-31 Thread Paul Benedict
Frank, I am fond of these two ideas (see following). Heck, I would be willing to even write them if I think there would be a chance of someone actually commiting them into the Trunk!! There are four things that I am very fond of and they are all tightly integrated: (1) POJO for forms (2)

Re: Cancel button and security

2005-07-16 Thread Paul Benedict
Przemyslaw, Thanks for pointing this out! I use dispatching actions in my application and each one has a cancelled method. Under this paradigm, I don't think there is any danger for me. Would you agree? Thanks, Paul Start

Re: Session Forms?

2005-07-10 Thread Paul Benedict
Why would not you stick *all* data including data that you are editing, into a form bean with session scope? Michael, This is a good question. I've thought about this methodology for years and, for the time being, I only put into the Form object what could be editable. All read only objects I

<    2   3   4   5   6   7