Re: Starting with struts again

2006-01-17 Thread Rick R
David Thielen wrote: Any books, online articles, etc. of what to use and how to structure the code? I have some examples here http://www.learntechnology.net/ If you've already coded some struts apps before, start with the CRUD lesson. -- Rick

Re: Wildcards in actionmapping and dodgey URLs

2006-01-12 Thread Rick R
Josh McDonald wrote: Quick question: When you've a wildcard in an actionmapping path, what will you get when the user makes something up that has no corresponding class? Will it give a 404, or an ugly stuts error? If it's an ugly error, how do you catch it? Somehow with the in struts-config.xml?

Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Rick R
Nevermind. I see that your last reply Karan somehow got knocked out of this thread. (Possibly you started a new message and just pasted in the subject? since it ended up with a different MessageID in the header which is what my Thunderbird client uses for threading). Rick R wrote: Gupta

Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Rick R
Gupta, Karan wrote: / CLASS IDefForm ***/ public class IDefForm extends ActionForm { private IDef iDef; Did you try renaming the property like Hubert suggested? If not, that iDef will DEFINITELY cause the problem that you mention. Change private IDef iDef; to something like IDef i

Re: double submit problem

2006-01-09 Thread Rick R
Rafael Taboada wrote: Thanks for ur replies... I'm interested in tokens method Please, do u know a site where I can find more information about this??? I have an example and lesson here on it: http://www.learntechnology.net/struts-token.do -- Rick

Re: Noob Q: "Failed to obtain specified collection"

2006-01-08 Thread Rick R
Josh McDonald wrote: Quick question - what's this _actually_ mean? It's obviously found the field, because if I change the reference in the JSP to something wrong, it gives me a different error ("No getter found" or something similar). Makes no real sense to me. Where should I look for my mistake

Re: Advice for Struts expert wanting to try Shale?

2006-01-06 Thread Rick R
Craig, do you have this posted anywhere other than here on this list? This is a great summary that I've actually been looking for, so I'm glad I peeked into this thread. Thanks. You should add this to your blog somewhere or it should be on JSF Central. I'd like to bookmark it. Craig McClanah

Re: move from PHP to Struts

2006-01-03 Thread Rick R
Bogdan Paduraru wrote: Any advice would be helpful, also when you recommend me something would be nice to point some links with tutorials too because I also want to train my programmers. I'm in the process of finishing up an upgrade to my old struts site which people have found helpful with

Re: Right way to handle compilcated form

2005-12-31 Thread Rick R
Konrad Billewicz wrote: Hello, I have a complicated form with mulit-level menu (several 's with onchange='submit()' ). I'm not sure how I should organize my Actions. Konrad, I don't have a lesson behind this app yet, but you might want to get this zip I have and look at the struts-crud examp

Re: [FRIDAY] You might be a geek if ...

2005-12-30 Thread Rick R
...The waitress asks you what you want on your burger and you reply "What's the default?" I sadly said that at lunch one day after a tough morning at work:) -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: New to Struts

2005-12-29 Thread Rick R
[EMAIL PROTECTED] wrote: Hello Struts world ! I am new to Struts and was wondering if there is any good short Struts Tutorial which will help me get jump started with Struts The stuff I have here http://www.reumann.net/struts/main.do is sort of old, but I'm in the process of updatin

Re: problem with example code at StrutsCatalogLazyList

2005-12-29 Thread Rick R
Priya Saloni wrote: > Hi Rick, > > Iam getting problem while iam trying to use the following code in my JSP > > > > > > I got that code from the article > > http://wiki.apache.org/struts/StrutsCatalogLazyList > Priya, I created this as a new message since it really doesn't belong

Re: [solved] Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread Rick R
Frank W. Zammetti wrote: I'm still though thinking about your question regarding how I would do it... I've never used LazyList, although I can see why you did. Using the reset() method in this way has been nagging me though because I typically would never use it except when dealing with checkb

Re: [solved] Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread Rick R
Tamas Szabo wrote: You will have to use a PhoneNumber object so you will have a reference to employee[idx1].phoneNumbers[idx2].number in your html:text. Thanks Tamas! That was exactly the problem. Typically I do exactly that and use lists of beans, but this time I thought I'd make the demo

Re: Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread Rick R
Tamas Szabo wrote: public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { employees = ListUtils.lazyList(new java.util.ArrayList(), new Factory() { public Object create() { return buildEmployee(); } }); } private Emplo

Re: Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-28 Thread Rick R
Frank W. Zammetti wrote: Rick, what is the real problem here? I ask because what your trying to do seems reasonable to me and I'd probably do something similar, although I probably wouldn't use LazyList (I'd probably build the list manually), but that doesn't really matter. I would *not* use

Re: pre-populating form fields when called in edit mode.

2005-12-27 Thread Rick R
Vikrama Sanjeeva wrote: Having separate Actions for insert, update and delete is better. Why? Do you make separate DAO objects? ie UpdateDao, InsertDao, RetrieveDao? I'm guessing you don't. So, it would help if you backed up your claim that separate Actions are better than a Dispatch a

Re: Input validation and repair

2005-12-18 Thread Rick R
On 12/18/05, Josh McDonald <[EMAIL PROTECTED]> wrote: > > What's the best place to put input validation and possible repair? I actually prefer to do the validation checks in my DispatchAction. The reason being is that, inevitably, you'll end up with a case where you'll have some Lists you'll wan

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-17 Thread Rick R
On 12/17/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > > Good Morning Rick > > I liked Niall Pemberton's Nested Lazy validation form solution found here > http://www.niallp.pwp.blueyonder.co.uk/lazyactionform.html I knew Niall would have some good stuff! Now I just have to mess around with it...

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-17 Thread Rick R
he duplication of property names and the mess involved in conversions to the nested business objects that you need to tranform them into that is the real annoyance. I think I'm going to try all this with DynaForms and see how that alleviates some of the headache. Thanks though for your thoughts.

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-17 Thread Rick R
oops ... don't try to tab while using gmail :) I was trying to indent my code by instinct using tab and hit tab and 'end' to the end of the line an enter:) caused a send. I'l continue in another email. On 12/17/05, Rick R <[EMAIL PROTECTED]> wrote: > > On

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-17 Thread Rick R
On 12/16/05, Paul Benedict <[EMAIL PROTECTED]> wrote: > > > I am not suggestign you create a new business object. I am suggesting you > create a new object for input purposes. You need a transport layer between > your model and the web; thus you have an ActionForm. But you need to pad > your Action

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-16 Thread Rick R
On 12/16/05, Paul Benedict <[EMAIL PROTECTED]> wrote: > > Rick, > > Do you control the requirements? It's going to be an ugly screen with that > :) Agreed. For that example it was more so to exaggerate a problem that does come up when dealing with more specific situations. In regard to the solu

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Rick R
Ok, this might be lengthy, but hopefully you will get my point after reading it:) This hypothetical I'm proposing isn't my actual use case, I'm creating an example that is easier to work with even if not totally realistic. The business requirement is the user needs to select a letter of alphabet

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Rick R
On 12/15/05, Paul Benedict <[EMAIL PROTECTED]> wrote: > > > As I said, the problem is you're using model objects for input. Don't do > that. Your "load" action > should convert the specific and limit poritions of your intended user > input into the Form; > probably a list of Strings. In your "save"

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Rick R
On 12/15/05, Paul Benedict <[EMAIL PROTECTED]> wrote: > > Action Forms are DTO objects. They are not your model/domain/business > objects. Struts is the only > framework (historical design) that forces you to use String objects in the > Form/DTO, but that's > not a bad thing. It's a container to ac

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Rick R
", "create employeeForm and give it the same > fields as my Employee object, plus a 'selectedButton' field. Oh, and > use the 'addressForm' definition for the 'address' field", and the > same essentially for the "companyForm", exce

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Rick R
On 12/15/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > > I've always used String values. But that above is the problem - you can't always have String values returned to you in nested objects from the domain-layer, backend, mid-tier, etc. When you query the backend for value objects that have nes

The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Rick R
Cutting right to the chase... I'm curious on how others handle the age-old struts problem of: "How do you handle nested objects in an ActionForm that have non String properties that might be editable by a user on a JSP?" To provide a watered down example... Imagine you go to the DB to get a List

Re: Online Struts Tutorial

2005-12-08 Thread Rick R
Ha I was just going to say that is definitely outdated:) I'll get around to updating it... I keep saying that I know:) (By the way, I just started using gmail for my struts stuff now.. why does it include the sender also when I click reply and not just the [EMAIL PROTECTED] address? Does that ha