Re: Validator later rather than sooner?

2002-10-24 Thread Dave Derry
You can also validate based on the action rather than the form. Just use the action type rather than the form name, and be sure to extend ValidatorActionForm rather than ValidatorForm. Dave Derry - Original Message - From: "bachan s" <[EMAIL PROTECTED]> > > Instea

Re: Validator later rather than sooner?

2002-10-24 Thread Dave Derry
uot;/> > resource="false"/> > > maxlength > 16 > > > minlength > 3 > >

Re: JavaScript Validation: MinLength & MaxLength Functions Don't Work

2002-10-24 Thread Dave Derry
nd 30 characters in length" that would provide that information. Dave Derry - Original Message - From: "bachan s" <[EMAIL PROTECTED]> > > Can you try removing the required from the depends for password and give minlength and maxlength. Since minLength is me

Re: nested:text not being evaluated

2002-10-23 Thread Dave Derry
short answer is that embedding a scriptlet as a portion of an attribute value (part of an RTEXPR) is illegal according to the JSP spec. You will need to rewrite your scriplet so that is composes the entire value. Dave Derry - Original Message - From: "Zeitlin, Mike" <[EMAIL PROT

Re: Any Web Development Environments that incorporate Struts?

2002-10-23 Thread Dave Derry
The Perforce plugin is also real useful (if you're using Perforce that is). - Original Message - From: "Haseltine, Celeste" <[EMAIL PROTECTED]> > OK, here are the web sites for Eclipse and the Eclipse Plugins, and a list > of the ones we are using. Make sure you check out the entire pl

Re: direct acess to Action

2002-10-23 Thread Dave Derry
No. The closing tag for the action follow the input attribute: > type="GetAlaskaGroupsAction" > name="getAlaskaGroupsForm" > scope="request" > input="/index.jsp"> < closing tag here > > validate="false"> <-- an orphan!! This is not valid!!! > Dave - Original

Re: direct acess to Action

2002-10-23 Thread Dave Derry
Andrew, I appears that you missed one glaring error. In the getAlaskaGroups action, the vlaidate="false" is seriously out of place. It also has a '>' without a '<'. Using a utility to validate the file is definately a GOOD idea. Dave D - Original Message - From: "Andrew Hill" <[EMAIL P

Re: how do i get a Field object in Validator?

2002-10-22 Thread Dave Derry
} return true; } And this is the entry from validation.xml dateBefore finalDate The finalDate referenced by var-value is another attribute of my ValidatorForm. Does this help? Dave Derry - Original Message ---

Re: [ANNOUNCE] SVT 0.5.0-beta released

2002-10-21 Thread Dave Derry
them change I only have to edit one file, and restart struts; without needing to recompile my application. Please explain how this framework provides any added value. Dave Derry -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Re: How to add a pre-action

2002-10-21 Thread Dave Derry
ing.getParameter().equals( 'someParameter' ) ) { doSomethingSpecial(); } ). Dave Derry - Original Message - From: "Mohan Radhakrishnan" <[EMAIL PROTECTED]> > Hi, > > Flow : > login.jsp -> mainscreen.jsp[ jsp:includes a left panel showing report >

Re: help please: Validator basic use

2002-10-18 Thread Dave Derry
Is your form derived from ValidatorForm rather than ActionForm? - Original Message - From: "Clayson, Jim" <[EMAIL PROTECTED]> > Hi I am attempting to use the date validation provided by the framework - I > am using struts1.1b2. > > I think I must be missing something fairly fundamental

[OT - BRITISH HUMOUR?]

2002-10-15 Thread Dave Derry
Monty Python was great..but SOAP was absolutely FABULOUS!!! Dave D - Original Message - From: "Chappell, Simon P" <[EMAIL PROTECTED]> When America can compete with Monty Python, America may have an opinion on humour! :-P Simon >-Original Message- >From: Ad

Re: Link tag and jsp expressions

2002-10-15 Thread Dave Derry
='<%= "/do/showprojectdetails?" + project.getProjectId() %>'><%=project.getName()%> !'m assuming that you really do want just a value following the '?' and not the typical 'XXX=YYY'. Otherwias you probably need to use paramName and paramValue

Re: trying to use bean:message with arg0

2002-10-09 Thread Dave Derry
One obvious problem is that you haven't closed your bean:message tag. Try Also, have you included the directive for the bean tld? Dave Derry - Original Message - From: "Avishai Weissberg" <[EMAIL PROTECTED]> > I apologize for the previous html-format mail.

Re: ActionErrors

2002-10-09 Thread Dave Derry
Another solution is to define a generic message key in the properties file. Something like error.generic={0}. Then create your ActionError as new ActionError( "error.generic", "My specific error message" ); Dave Derry - Original Message - From: "Andrew Hill"

Re: Whats the best way to use Struts?

2002-10-08 Thread Dave Derry
One other thing to consider.what are the changes that this app will grow? How many times have you coded a quick and dirty solution because it was just a simple little app, and lived to regret it as the app grew? Dave - Original Message - From: "ChangQing Zhou" <[EMAIL PROTECTED]>

Re: Using friendly names for application entry points

2002-10-04 Thread Dave Derry
Try Notice the '.do'; it has to do with the servlet mapping. You apparently have *.do mapped to the the Struts ActionServlet, but Jasper doesn't know what to do with performLogin. Dave Derry - Original Message - From: "K Br" <[EMAIL PROTECTED]> >

Re: Accessing another action's form from within an action?

2002-10-04 Thread Dave Derry
You could attach the form to the request in Action A and retrieve in in Action B. Action A: request.setAttribute( "ActionAForm", theFormForActionA ); Action B: ActionAForm theForm = (ActionAForm)request.getAttribute( "ActionAForm" ); Would that work for you? Dave De

Re: [FRIDAY] More coffee needed!!

2002-10-04 Thread Dave Derry
OK..Just got another cup of coffee. Want to pass the bagels and lox?? ;-} Dave Derry - Original Message - From: "Galbreath, Mark" <[EMAIL PROTECTED]> > Mine was a reference to yesterday (as I'm sure your changing the subject > line is) and was int

[FRIDAY] More coffee needed!!

2002-10-04 Thread Dave Derry
That's still Derry.Dave Derry! But I guess if it's easier for you...you can call be Jerry ;-) Dave Derry - Original Message - From: "Galbreath, Mark" <[EMAIL PROTECTED]> > Thanks a lot, Jerry. > > ;-) &g

[OT] CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Dave Derry
He's doing it as a service for those who are filtering you Mark!;-)) - Original Message - From: "Galbreath, Mark" <[EMAIL PROTECTED]> > Hey man! RU refactoring my messages? ;-) > > -Original Message- > From: Andrew Hill [mailto:[EMAIL PROTECTED]] > > > For multiple, you a

Re: threading question

2002-10-03 Thread Dave Derry
U...that's Dave...but that's all right. Go get that second cup of coffee! ;-)) Dave Derry - Original Message - From: "Galbreath, Mark" <[EMAIL PROTECTED]> > Absolutely right, Jerry! Ironically, I was just writing a non-Struts helper

Re: Pre-populating ActionForms

2002-09-30 Thread Dave Derry
f the form and forward to the appropriate view component. In our current system, we are closly following this model; presentation is seperate from behavior, and it is working out very nicely. Dave Derry - Original Message - From: "Mohan Radhakrishnan" <[EMAIL PROTECTED]>

Re: [FRIDAY] [OT] Best misunderstanding of an acronym?

2002-09-27 Thread Dave Derry
YKMV ?? ;-} - Original Message - From: "Andrew Hill" <[EMAIL PROTECTED]> > Ah! > No wonder I didnt recognise it. > We use kilometres here. > > -Original Message- > From: Kevin A. Smith [mailto:[EMAIL PROTECTED]] > > > I think it stands for Your Mileage May Vary. > > AFAIK

Re: [OT] Commons Validator JavaDoc

2002-09-25 Thread Dave Derry
hod. I'm trying to see if I can directly access additional form fields > without having to specify each on as a ... in my > application-rules.xml. > > Jerry > > > -Original Message- > > From: Dave Derry [mailto:[EMAIL PROTECTED]] > > > >

Re: [OT] Commons Validator JavaDoc

2002-09-25 Thread Dave Derry
Jerry, Did you see this? http://home.earthlink.net/~dwinterfeldt/overview.html#comparingTwoFields This helped me in writing a validator to check that one entered date was later than another entered date. Dave Derry - Original Message - From: "Jerry Jalenak" <[EM

Re: [OT] Commons Validator JavaDoc

2002-09-25 Thread Dave Derry
I haven't managed to find any. - Original Message - From: "Jerry Jalenak" <[EMAIL PROTECTED]> > Does anyone have the URL for the Validator JavaDoc on jakarta.apache.org? > > Jerry Jalenak > Web Publishing > LabOne, Inc. > 10101 Renner Blvd. > Lenexa, KS 66219 > (913) 577-1496 > [EMAIL

Unable to resolve Validator DTD

2002-09-25 Thread Dave Derry
to false? Would it be acceptable for me to patch the Validator code (ValidatorResourcesInitializer) to register the DTD? I'm not totally sure how to do this, but I'm sure I could figure it out from the Struts core code. I would of course submit my patch into Bugzilla for inclusion, if t

Re: [42] Real Programmers

2002-09-20 Thread Dave Derry
Ball-Park Franks - Original Message - From: "Chappell, Simon P" <[EMAIL PROTECTED]> Personally I eat neither Jellied Eels or Black Pudding. And it always amuses me when Americans get on their high-horses about food, because what have they ever given the world? McDonalds! Simon

Re: [STRUTS] Cleasing form fields fields

2002-09-19 Thread Dave Derry
The action mappings store the form fields in the session by default. You can specify that they be stored in the request. This will give you a 'fresh' ActionForm for each request. Is this what you needed? Dave Derry - Original Message - From: "kiuma" <[EMAI

Re: jsp-to-action-to-action: when does the request die

2002-09-19 Thread Dave Derry
The second action has access to it; if you mean save.do is 1 & edit.do is 2. If edit .do forwards to somethingelse.do, it also has access to it. The request 'dies' when the action sends the response to the client. Dave Derry - Original Message - From: <[EMAIL PROTECTE

Re: How can I implement session time out control in struts

2002-09-18 Thread Dave Derry
;t happen. Every time the server receives a request in a session it restarts the timer. As long as your users are interacting with the system, their session will not time-out. Of course, I realize that requirements are requirements, and they sometimes DO have to be implemented even when they m

Re: A couple of Newbie questions

2002-09-18 Thread Dave Derry
A couple of Newbie questionsAdd a hidden field to your jsp page, and a page attribute to your ActionForm. . . . Then you can query your form for the page that was submitted (form.getPage()). - Original Message - From: Kevin Roast Hi, I am currently working with Struts fo

Re: [validator]

2002-09-17 Thread Dave Derry
Add the resource="false" attribute i.e. Not sure how this translates into ActionErrors 'cause we're not using Struts for presentation, but it does tell Validator to use the key as a String and not a look-up key. Hope this helps, Dave Derry - Original Message

Re: [FormBean] Question concerning memory / casting

2002-09-13 Thread Dave Derry
Agree with your assesment re: 1 should be ProductFB prodFB = (ProductFB)form; As written I wouldn't expect to get much usefull info. ;-} I don't understand why you think 2 would be more efficient tho'. In 1, prodFB is merely an alias for form. I wouldn't expect any runtime difference. But since 1

Re: [OT] XML Configuration Files

2002-09-13 Thread Dave Derry
go with OJB for O/R mapping), but I have used Castor to retrieve data from mySQL and write it to an XML file. If that's what you wanted to know. No problem using both the O/R and XML capabilities of Castor in the same app. I think you can even do it with just one mapping file. Hope this hel

Re: ActionError question

2002-09-10 Thread Dave Derry
You could have an entry in your properties file like "error.generic={0}" Then use "new ActionError( "error.generic", "The legacy error message" );" That what you were looking for? Dave Derry - Original Message - From: "Ashish Kulkarni&qu

Re: [FRIDAY] SOMEONE SAVE OUR LIST!!!!

2002-09-06 Thread Dave Derry
Only in our dreams.. .. - Original Message - From: "Sri Sankaran" <[EMAIL PROTECTED]> Humor in bodily functions (of dysfunctions) is so slapstick. What are we ... teenagers? -- To unsubscribe, e-mail:

Re: Validating DATE field

2002-09-06 Thread Dave Derry
This is a problem that has been brought up several times. I don't know about b1 since I've just started using Validator (with b2), but I do know that the problem has been fixed in CVS. It is a very simple patch, that you can easily make yourself if you don't want to get a nightly build. Check the

Re: [TGIF] RE: [Friday] Re: [VOTE] Should this list discontinueit's long, treasured heritage

2002-09-06 Thread Dave Derry
are to lazy to a)check the archives, b)read the docs, or c)try something before asking "Will this work?". You won't get far in this business by taking the easy way out, or expecting someone else to give you the answer/solution to easy questions/problems. Sorry for the long post. Da

Re: [Tag Protocol] How to let newbies know?

2002-08-29 Thread Dave Derry
He's also easily encouragable ;-)) - Original Message - From: "John Owen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, August 29, 2002 1:44 PM Subject: Re: [Tag Protocol] How to let newbies know? > I think you mean incorrigible... ;) >

Re: EJB

2002-08-16 Thread Dave Derry
- Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> > For input, you can definitely use DynaActionForms. The reasons you want > this (whether you're using EJBs or something else for the model tier is > not relevant) has to do with why a form bean exists in the first place

Re: Friday (almost funny) Humor

2002-08-16 Thread Dave Derry
James that is the funniest thing I have read in a long while!! Happy Friday to you! > Its funny what a little 'search and replace' can do..LOL > > > *** HEADLINE NEWS *** > > Microsoft Bashing Now Considered a Hate Crime > > Washington DC - George W. Bush signed into law yesterday legisla

Re: Newbie: pass ResultSet to JSP?

2002-06-21 Thread Dave Derry
As you found, you cannot pass the ResultSet back to your JSP. This would not be a good thing if you could. That would be coupling your data layer too closely with your view layer. A better solution is to populate a Collection object with the data in your ResultSet, and pass that back to your JSP (

Re: blank page

2002-06-21 Thread Dave Derry
- Original Message - From: "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]> Subject: RE: blank page > Next time you're not sure if the Action got hit, it's easy to test it by > putting a System.out.println in the class. Watch for the message in the > server console. It's a good t

Re: ScanMail Message: To Sender, sensitive content found and action taken.

2002-06-10 Thread Dave Derry
- Original Message - From: "James Mitchell" <[EMAIL PROTECTED]> Subject: RE: ScanMail Message: To Sender, sensitive content found and action taken. > I'd like to know which words were considered "Dirty". > > Perhaps it was the sexual overtones about "taking advantage of Struts". > Or ma

Re: SQL STatements in a Properties file.

2002-06-07 Thread Dave Derry
- Original Message - From: "James Mitchell" <[EMAIL PROTECTED]> > The framework knows nothing of sql. > > However, I have also pondered the using the message resources for something > like this. > I guess if your data layer had access to the message resourcesyou could > do something li

Re: Please recommend a IDE

2002-06-05 Thread Dave Derry
ughnuts for everyone on the list. (Or buy several shirts from my employer! :-) >-----Original Message- >From: Dave Derry [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, June 05, 2002 4:30 PM >To: Struts Users Mailing List >Subject: Re: Please recommend a IDE > > >My deepest a

Re: Please recommend a IDE

2002-06-05 Thread Dave Derry
I NEVER pay!! - Original Message - From: "Galbreath, Mark" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 5:28 PM Subject: RE: Please recommend a IDE > Did you have to pay? >

Re: Please recommend a IDE

2002-06-05 Thread Dave Derry
ent: Wednesday, June 05, 2002 4:43 PM Subject: RE: Please recommend a IDE Sorry. You're late to the party. This was a mini-flamewar only for the early risers on the list! :-) >-Original Message- >From: Dave Derry [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, June 05, 2002 3:42 PM

Re: Please recommend a IDE

2002-06-05 Thread Dave Derry
I prefer xemacs myself - Original Message - From: "Galbreath, Mark" <[EMAIL PROTECTED]> > vi > > -Original Message- > From: Chiming Huang [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 2002 8:21 AM > > > Hi, > > Can you please recommend a IDE for working on Tomcat 4.0.3

Re: javax.servlet.jsp.JspException: No getter method for property name ofbeanorg.apache.struts.taglib.html.BEAN

2002-05-30 Thread Dave Derry
- Original Message - From: <[EMAIL PROTECTED]> > Just started off with Struts.. > I had a doubt though. the action attribute on form points to checkLogin.do > which i entered just for namesake. > am not planning to submit this form. > So i have something like this > >t

Re: javax.servlet.jsp.JspException: No getter method for property name of beanorg.apache.struts.taglib.html.BEAN

2002-05-30 Thread Dave Derry
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 30, 2002 7:23 AM Subject: javax.servlet.jsp.JspException: No getter method for property name of beanorg.apache.struts.taglib.html.BEAN > > > > Results page > > > > > > > > > >

Re: Struts User Group

2002-05-25 Thread Dave Derry
Jim, I'd probably have some interest, and I know several other people who might as well. Dave D [EMAIL PROTECTED] - Original Message - From: "JM" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, May 24, 2002 3:09 PM Subject: Struts User Group > Are

Re: Auto-Replies

2002-05-10 Thread Dave Derry
Probably should check for any legal ramifications first. I'm not a lawyer, but I've seen some on TV! - Original Message - From: "Eddie Bush" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, May 10, 2002 1:29 PM Subject: Auto-Replies Suggestion: Why

Re: Mail System Error - Returned Mail

2002-05-10 Thread Dave Derry
In what country is it a crime to phone someone on a published phone number? I would really like to know..perhaps I could do something about all those D**N telemarketers who woun't leave me alone!! Dave D - Original Message - From: "Micael Padraig Og mac Grene" <[EMAIL PROTECTED]> To

Re: [Resend]Too Slow: Debug Struts + Torque project using JBuilder5

2002-04-13 Thread Dave Derry
Perhaps less of a waste of time than waiting on the debugger (the problem that started this thread) then stepping through lots of code. Much quicker, and more enlightening, to think about the problem (as someone else suggested) then insert a println in a strategic location. Also, using xemacs to