RE: How to cancel a cancel

2005-07-23 Thread Kent Boogaart
the forward. 3. Subclass my base action from any cancelable action and include a cancel forward in the config for that cancelable action. If anyone wants code, I can post. Cheers, Kent -Original Message- From: Kent Boogaart [mailto:[EMAIL PROTECTED] Sent: Saturday, 23 July 2005 12:07 PM

How to cancel a cancel

2005-07-22 Thread Kent Boogaart
Hi, I have a form that can be cancelled via an html:cancel button. When it cancels it submits back to its parent action. The problem is, the parent action can also be cancelled and so it thinks it has been cancelled and submits back to its parent in turn. Maybe some ASCII art will help. This is

RE: How to cancel a cancel

2005-07-22 Thread Kent Boogaart
PROTECTED] wrote: Kent Boogaart wrote the following on 7/22/2005 5:49 AM: My actions for pages 2 and 3 have code like this in them: if (isCancelled(request)) { return mapping.findForward(FORWARD_CANCELLED); } My question is: is this the normal way to do it? If so

c:if and dyna form bean

2005-07-20 Thread Kent Boogaart
Hi people, I have a simple question for you. I'm trying to use a dynaform bean from within a c:if like this: bean:define id=form name=userform/ c:if test=${form.displayName == true} ... /c:if I'm getting an exception telling me Unable to find a value for 'displayName' in

Using the form bean

2005-07-08 Thread Kent Boogaart
Hello, I'm trying to set focus on the first enabled field in my form. The first field is disabled if the data is being edited. I thought this would work: bean:define id=form name=configuration.user/ bean:define id=focus value=userName/ logic:equal name=form property=edit scope=request

RE: Using the form bean

2005-07-08 Thread Kent Boogaart
? 'password' : 'userName'} Regards, Abdullah -Original Message- From: Kent Boogaart [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 7:59 AM To: 'Struts Users Mailing List' Subject: Using the form bean Hello, I'm trying to set focus on the first enabled field in my form. The first field

RE: Refresher for newbies (part 2)

2005-07-07 Thread Kent Boogaart
Thanks Rick for the example. It has really helped me as I am certainly a noob. I'd love it if you (or anyone) could clarify something for me. Firstly, some basic info on my system: I have system wide settings including an SMTP server and a list of users that can access the system. These are

Struts and Generics

2005-07-06 Thread Kent Boogaart
Hi there, I'm wondering whether it's possible to use generics with struts. Something like: form-bean name=test type=org.apache.struts.validator.DynaValidatorForm form-property name=users type=java.util.ArrayListtestpackage.User/ /form-bean I tried doing this (with my class names of

Question re html:select on the client

2005-07-06 Thread Kent Boogaart
Hello, I have an html:select populated from a collection. Alongside the select box I have links to add, edit and delete items. I'm just wondering what the best way is to handle passing the ID of the selected item to the edit and delete actions. For example, if the user selects the option with