Re: valid email addresses

2003-06-13 Thread David Graham
AFAIK, common-validator's email validation is correct except maybe for the one open bug against it. David I remember there was a recent discussion about the Struts validation framework invalidating email addresses that were considered to be valid according to some RFC (I can't remember which

RE: valid email addresses

2003-06-13 Thread David Graham
Try, if the common-validator correctly lets users use: [EMAIL PROTECTED] I just ran that address through the test cases and it passed. I'll add it to the tests permanently later. David If it doesn't, then there's an issue. -TPP - This email may

Re: [OT] MVC / Model 2 for Microsoft ???

2003-06-13 Thread David Graham
My understanding is that J# is only included in .NET to allow a transition path from Java to C#. It's definitely not one of the more supported .NET languages and it's *not* Java. David Whoa... MS Has released J#... that would be .NET Java. Anybody used this? Maybe I could just build an app

Re: [OT] MVC / Model 2 for Microsoft ???

2003-06-13 Thread David Graham
But this makes complete sense, in a sick way. In a MS environment, portability probably isn't as big a concern, It's no concern at all because you have nothing to port to. and while there are certainly other reasons to use MVC, it strikes me that the biggest is to maintain abstractions between

Re: OT FRIDAY: Take a break with struts users

2003-06-13 Thread David Graham
No can do. I'm so far removed from the network operations group here, that I don't even know who they are. They block every available port except web, ftp, and telnet. It demonstrates an extra special form of incompetence when 2 of 3 open ports are completely insecure protocols. David I used

Re: OT FRIDAY: Take a break with struts users

2003-06-13 Thread David Graham
Developer/Struts Evangelist http://www.struts-atlanta.org 770-822-3359 AIM:jmitchtx - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 13, 2003 11:32 AM Subject: Re: OT FRIDAY: Take a break with struts users No can do. I'm so far removed from

Re: [OT] MVC / Model 2 for Microsoft ???

2003-06-13 Thread David Graham
The enforcement is the key I see lots of MS Developers do sloppy things because they can. Now let's be fair. MS developers aren't the only sloppy ones out there. David _ The new MSN 8: advanced junk mail protection and 2

Re: [OT] Java Trivia

2003-06-12 Thread David Graham
That won't compile. length() is a method on String not a property. David Anybody know why the length of a String is a property of the String when used as a logical qualifier in a for{} block but a function of the String in a conditional if{} statement? for( int i = 0; i string.length; i++ )

RE: [OT] Java Trivia

2003-06-12 Thread David Graham
Here's my code - it compiles just fine. Note the string.length in the for{} and the string.length() in the if{}: I'm sure it does but not because you magically found a way to reference string.length. Look at your code more closely, you're using an array not a String. David test =

RE: [OT] Java Trivia

2003-06-12 Thread David Graham
String is a final class so you can't subclass it. David and here I thought it was a trick question, where you had subclassed String as string class and added a public member length. .. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003

Re: [OT] - dos file

2003-06-12 Thread David Graham
I think there's a dos2unix program that converts the file. David Download Textpad, it's free (sort of). It will do everything you need. -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org 770-822-3359 AIM:jmitchtx - Original Message - From: Ray Madigan

RE: Struts Action Scripting

2003-06-12 Thread David Graham
One of the stated benefits is that you don't have to reload your app to see changes in actions. I think the idea is neat but would never use it because Tomcat reloads my app in 3 seconds. David Then you get back to a spageti application ... :) José. -Original Message- From: [EMAIL

RE: Struts Action Scripting

2003-06-12 Thread David Graham
Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: RE: Struts Action Scripting One of the stated benefits is that you don't have to reload your app to see changes in actions. I think the idea is neat but would never

RE: Struts Action Scripting

2003-06-12 Thread David Graham
Administrator), Advanced Solutions Group, Physics Dept., University of South Carolina, Columbia, SC 29208 Office (803)777-8831, FAX (803)777-8833, Email [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 1:06 PM To: [EMAIL

Re: validator mask expression language

2003-06-11 Thread David Graham
The regular expressions are run through 2 different regex systems: JavaScript's engine for client side validation and Jakarta ORO for server side (which is Perl compatible). So, to learn about the regex language you should learn Perl's regex syntax (and Javascript but I think they're largely

RE: Correct validator DTD

2003-06-11 Thread David Graham
This one seems to work for me: Because it's backwards compatible with 1.0.2. Struts 1.1 will ship with commons-validator 1.0.2 not 1.1. David !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN

Re: Odd Validator Error Message with 1.1RC2

2003-06-11 Thread David Graham
This is a bug in commons-validator 1.1-dev. Struts 1.1 final will ship with validator 1.0.2 but I will fix this ASAP. David I upgraded to Struts 1.1 RC2 from RC1, and have began seeing the error below when Tomcat starts up. Any ideas as to how to fix this? Validation seems to work just

Re: Final word on amp problem in html:link with multiple parameters?

2003-06-11 Thread David Graham
Encoding to amp; is the correct behavior as documented by the W3C. What browser are you using? David I've seen this mentioned in the mailing list archives, but couldn't find a definitive answer. I'm actually using the IBM Websphere Portal Struts Portlet Framework. I believe they're using

Re: [RETRACTION] PHP version of Struts

2003-06-11 Thread David Graham
IMNSHO I think that it makes things more convoluted and aimless when we are able to shove any 'ol scripting language we want into the mix. Why not ECMA, VB or Perl. Then again, if you don't want it... don't use it :-D I disagree with your last statement. If you're coding a project yourself, you

RE: [RETRACTION] PHP version of Struts

2003-06-11 Thread David Graham
start a project thinking I'll build my web pages with php and my logic with java. That would be foolish. But, I can see where this would be handy in tightening the performance of legacy interaction as systems upgrade. Don't you think? Brandon Goodin -Original Message- From: David Graham

Re: PHP version of Struts

2003-06-11 Thread David Graham
The real advantage of PHP is the number of people that know PHP. The number of people that know jsp/velocity is dwarfed by those that know PHP, thus you can hire cheaper labor and the company saves money. In my experience, cheaper labor = higher cost because you have to rip out all of those

RE: Why is dbcp / pool removed?

2003-06-10 Thread David Graham
Isn't GenericDataSource deprecated? Yes, it will be removed in 1.2 but is included in 1.1 for backward compatibility. The one included is not the same as what is in RC1, though, correct? I'm just trying to figure out exactly what is changed and what I need to start experimenting with... I'm not

Re: Reasonable to use EJBs for validation in ActionForm validate method?

2003-06-10 Thread David Graham
For validation that can only be done against the database, should this go in the validate method or in the execute method? I usually do it in execute() and keep basic validations in the Validator framework. For example checking that a customer doesn't alerady exist before inserting it, or

RE: Why is dbcp / pool removed?

2003-06-10 Thread David Graham
Is there a list of the problems that DBCP has? I've started using the BasicDataSource in some of my applications, and am wondering if some of the really wierd behaviour I'm seeing is due to the problems that DBCP has Search bugzilla for open problem tickets. David Thanks. Jerry Jalenak

Re: Why is dbcp / pool removed?

2003-06-10 Thread David Graham
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html David Ed Yu wrote: You are better off using JNDI lookup to get the datasource. This is suppose to be universal (Tomcat and Jrun seems to work identical) although I've found a couple of differences among

RE: Why is dbcp / pool removed?

2003-06-10 Thread David Graham
So, I don't want to use DBCP anymore, but I want to continue using struts-config to define my db so as not to disrupt the current state of the app too much. So I'm learning how the DBCP-independent RC2 handles the db connections all internally, and trying to figure out if that will work and what

Re: Struts Dependencies

2003-06-10 Thread David Graham
commons-validator uses ORO but Struts doesn't use it directly. David I really dont know, for my case I use SecurityFilter which requires ORO. Why dont you take ORO out of your deployment and see if your app chokes? -Dan - Original Message - From: Doyle, Michael J [EMAIL PROTECTED] To:

Re: Correct validator DTD

2003-06-10 Thread David Graham
commons-validator 1.1 has not been released yet, it is the development version. You should use the 1_0 or 1_0_2 dtd. David Which is the correct DTD for the Validator: !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN

Re: Validator Problen

2003-06-10 Thread David Graham
You also need to subclass ValidatorForm or use DynaValidatorForm. David Hai I am new to struts.I have created one appplication similar to the one struts-example.ear. when javascript validation tags are added it show one script error --object requiredand then the form submits. ActionForm

Re: strange problem setting up struts

2003-06-09 Thread David Graham
In some versions of struts, you must have an internet connection in order to the validation XML files to validate. I have the problem in 1.1RC1, but I read that it is fixed in the nightly build. In your validator XML files, you can change the URL of the DTD to point to a local disk file, and that

Re: Using Bean Tag inside html Tag. Urgent

2003-06-09 Thread David Graham
You can't use a tag in another tag's attribute. David Hi, I am facing problem in using bean:write / tag inside html:text /. What I am trying to do is something like this html:text property=userName styleClass=bean:write name=\loginAF\ property=\useStyleClass\ / /

Re: strange problem setting up struts

2003-06-09 Thread David Graham
I've updated the struts-examples.war with commons-validator-1.0.2 and still get the problem Then you've configured something incorrectly because it works for me. Make sure your DTD declaration in your xml file is correct. David From: David Graham [EMAIL PROTECTED] Reply-To: Struts Users

Re: Why is dbcp / pool removed?

2003-06-09 Thread David Graham
Just wondering why dbcp/pool is removed from RC2, will they be back for the final release? I have lots of apps that use them and wanted to know what direction this is going. Because no one was willing to fix DBCP. It's really a one man show over there and he was busy doing other things. I

Re: Running Struts in Eclipse w/ Sysdeo Plugin: Digester Error on Startup

2003-06-09 Thread David Graham
I'm using the same setup as you with no problems. Install Tomcat again and don't touch any of its directories. In the Sysdeo Tomcat plugin setup, don't put any of your projects on Tomcat's classpath. David Apologies if this has been answered, but I've already searched the archives and have

RE: Why is dbcp / pool removed?

2003-06-09 Thread David Graham
Struts 1.1 includes its trusty old GenericDataSource but you can always plugin DBCP if you want. Hold on a second... Isn't GenericDataSource deprecated? Yes, it will be removed in 1.2 but is included in 1.1 for backward compatibility. I just recently switched from using GenericDataSource in my

Re: Why is dbcp / pool removed?

2003-06-09 Thread David Graham
im using tomcat. what is included in tomcat then? thanks. Tomcat uses DBCP. Interestingly, no one from Tomcat seems interested in maintaining DBCP. David I recommend using the package distributed with either your container or your database. David - Original Message - From: David

Re: Validator and Tiles...Problem Solved

2003-06-08 Thread David Graham
look at the code; the [silly!] problem was that I declared a DynaValidatorActionForm in the struts-config.xml file and used a DynaValidatorForm in my action. Now I declared both to be DynaValidatorForm and it works. Thanks, Marco - Original Message - From: David Graham [EMAIL PROTECTED

Re: Question about maxlength with Validator

2003-06-08 Thread David Graham
This may be do to an arg problem in recent commons-validator nightly builds. I fixed this last night so it should show up in today or tommorrow's commons-validator build. You could also download commons-validator-1.0.2.jar and use that. You should also be aware that Struts will not generate

Re: Validation Problem

2003-06-08 Thread David Graham
Well, these validations have already been coded for you and can be configured in an xml file by using the Validator. I highly recommend you look into using the validator because it will save you a bunch of time. Your problem may have something to do with setting the fields = in reset. I

Re: Validation Problem

2003-06-08 Thread David Graham
The author is incorrect. Check out http://jakarta.apache.org/struts/faqs/newbie.html#reset for more info. David Well, these validations have already been coded for you and can be configured in an xml file by using the Validator. I highly recommend you look into using the validator because

RE: [validator] arg0-arg3 elements need name attribute to display message?

2003-06-08 Thread David Graham
validation. I'm comfortable enough with the current changes to cut a commons-validator-1.1 release after Struts 1.1 goes final. All help and contributions are welcome! David Thanks, John -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Sunday, June 08, 2003 4:52

Re: Adding server-side validation when using DispatchAction

2003-06-08 Thread David Graham
You need to use either DynaValidatorForm or DynaValidatorActionForm for the Struts validator to work. If you've already configured the validations in the xml files then all you should need to do is use the right Dyna classes. David Ok, maybe I don't understand the Validator system well yet. I

Re: [validator] arg0-arg3 elements need name attribute to display message?

2003-06-08 Thread David Graham
Does that mean that future struts-1.x releases will be unable to use commons-validator 2.x without changing the Struts base requirements to 1.4? Struts would not use commons-validator 2.x in the 1.x series. I have no timeline for changing commons-validator to 2.x anyways. David Gareth. -

Re: using struts token

2003-06-08 Thread David Graham
i want to use struts tokens to (un)process duplicate submissions. however, i could not find out anything about using tokens in any of the sample apps that come with struts. 1) is there a sample application which demonstrates using tokens in struts? struts-example uses tokens. You can also look

Re: [OT] Logging.. when to use it

2003-06-08 Thread David Graham
Hi All, I wish to know when to use the logging. What are the application senarios where logging will be useful. I mean to say that what will be the ideal situations where logging can be used. Logging is extremely useful when debugging problems in production applications. I normally setup

Re: Validator and Tiles

2003-06-07 Thread David Graham
I use Tiles and Validator together with no problems. You should never use Javascript as your sole form of validation, it's merely a convenience for the client. Did you subclass ValidatorForm? I've forgotten to do that once or twice and wondered why no validation was happening. David From:

Re: struts validator

2003-06-06 Thread David Graham
Struts Studio - IDE for Struts http://www.exadel.com/strutsStudio - - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 6:32 PM Subject: RE: struts validator Beats me, dude. I struggled

RE: struts validator

2003-06-06 Thread David Graham
This was caused by a bug in commons-validator that was fixed some time ago. David hi, Can you please let me know of how do you get rid of this issuse ( i mean setting up the validator so that i need not be connected to the net ) ... Thanks Guru -Original Message- From: Brian

Re: struts validator

2003-06-06 Thread David Graham
Not sure all this talk of validator is that justifiable. I've had no issues generating both the client side and server side validation, and its saved me a lot of work. Like others i think it would be nice to define form beans and validation rules in the same place but I like it as it is,

Re: Handling ServletException

2003-06-06 Thread David Graham
The Struts exception handling mechanism only handles exceptions thrown from Action.execute() methods. Your JSP is probably throwing an exception so you need to setup error-page elements in web.xml to point to a friendlier error page. David Hi. I've followed everyones advice and written a

Re: question about struts

2003-06-06 Thread David Graham
You can use a Struts PlugIn to initialize your components and store them in the ServletContext. David hi all, i have been working with JSP model 2 for few years, and now i want to move to struts. i am starting to get acquainted with it, and i need help to face this situation. in my mvc, i am

[OT] Re: switch statement

2003-06-06 Thread David Graham
You can't use Strings in switch statements. AFAIK, only ints and chars are allowed David Hey everyone, This is more of a Java question than a Struts question, I hope you all don't mind. I'm just wondering if there is any way to use a String for a switch statement, or if you are restricted to

[OT] RE: switch statement

2003-06-06 Thread David Graham
If the parameter values all have different first characters you could extract the first char and use that in your switch. David The reason I wanted to do this was to make my Action classes cleaner. I send a parameter to the Action to determine which item to pull from a database, then forward

[OT] RE: switch statement

2003-06-06 Thread David Graham
If the value you're looking up in the database is ultimately an int and you're just using String names to make the code maintainable, you could use a Map to map the names to the ints. That would get rid of all the switches and ifs. David Because having descriptive values for parameters helps

Re: [OT] web.xml error-page configuration problem

2003-06-06 Thread David Graham
Is this at the top of your jsp? %@ page errorPage=/jsp/error.jsp % David From: Hohlen, John C [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User (E-mail) [EMAIL PROTECTED] Subject: [OT] web.xml error-page configuration problem Date: Thu, 5 Jun 2003 12:59:26

Re: Action Form: HashMap

2003-06-06 Thread David Graham
Read the mapped properties section here: http://jakarta.apache.org/struts/faqs/indexedprops.html David From: Ray Madigan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Action Form: HashMap Date: Thu, 5 Jun 2003

RE: [OT] web.xml error-page configuration problem

2003-06-06 Thread David Graham
%@ page errorPage=error.jsp % This is what I'm trying to avoid. I would prefer to only specify this via a single configuration setting in the web.xml. I think that's required. I created a header.jsp file that has all my taglib declarations and the error page declaration and then I include

RE: [OT] web.xml error-page configuration problem

2003-06-06 Thread David Graham
is actually an inner tile on my screen. The functionality that I'm looking for is the ability to forward to separate error screen which doesn't display the stack trace to the user. Thanks, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:12 PM

RE: [OT] web.xml error-page configuration problem

2003-06-06 Thread David Graham
=/displaySystemError.do % I don't see why that wouldn't work either. David Thanks, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:33 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem You could point your error-page

RE: [OT] web.xml error-page configuration problem

2003-06-06 Thread David Graham
, -Tim -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:32 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem %@ page errorPage=error.jsp % This is what I'm trying to avoid. I would prefer to only specify

RE: [OT] web.xml error-page configuration problem

2003-06-06 Thread David Graham
committed (from the earlier Tiles -- servlets that executed). I think that's right. So, just set it up in error-page. David JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 1:33 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error

RE: [OT] web.xml error-page configuration problem

2003-06-06 Thread David Graham
to square 1. Let me know if you have any other ideas. Thanks a lot, JOHN -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:19 PM To: [EMAIL PROTECTED] Subject: RE: [OT] web.xml error-page configuration problem Actually, that doesn't work. I'm

Re: Client-side validation is not working - rich

2003-06-06 Thread David Graham
What happens with that setup? Is any javascript output? David I am having problems enabling client side (JavaScript) validation in struts 1.1rc I have added these lines in my jsp: ... %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % ... html:javascript

Re: Tiles memory leak

2003-06-06 Thread David Graham
Tiles doesn't leak memory, it consumes a lot of memory under certain conditions. There is a bug report on it in bugzilla. It will not be fixed for 1.1. David Has the tiles memory leak issue been properly rectified in the latest struts release? BAL

Re: Tiles memory leak

2003-06-06 Thread David Graham
it in bugzilla (searching for all bugs for the Tiles Controller). Thanks, BAL From: David Graham [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Tiles memory leak Date: Fri, 06 Jun 2003 07:59:34 -0600 Tiles doesn't leak memory, it consumes a lot

RE: Client-side validation is not working - rich

2003-06-06 Thread David Graham
. Is there anything else that you need to know that would help solve this problem? Rich -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 5:57 PM To: [EMAIL PROTECTED] Subject: Re: Client-side validation is not working - rich What happens

Re: [Tiles] Forwarding To JSP Error Page From Within Tiles (Help!)

2003-06-06 Thread David Graham
yesterday as an off topic subject entiled: [OT] web.xml error-page configuration problem (Special thanks to David Graham for his many replies): Currently, this isn't showing up in the archives so I couldn't provide a link. However, I feel this is no longer an off topic, but rather a Tiles/JSP

Re: Exception handling question

2003-06-05 Thread David Graham
How do you get access to the exception that was thrown when your action is called by the container (i.e. from the error-page directive in web.xml)? for example: a custom tag throws an exception, it is caught by the container and the container forwards to my action. so where is the exception

RE: struts validator

2003-06-05 Thread David Graham
Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. That's one reason I

RE: struts (and JSTL) expression language questions

2003-06-05 Thread David Graham
It is a hard (nearly impossible) task to convince some management teams that in order to use this new (and I think better) technology, we will have to adopt an entirely new paradigm where taglibs perform operations and EL accesses data. I wouldn't say it's a new paradigm. It's faster, easier, and

Re: using struts tag libraries outside of struts

2003-06-04 Thread David Graham
You should be using the JSTL for many of your custom tags anyways. I think the Struts html taglib is only useful with Struts but I've never tried using it outside of Struts. David Hello. I have to evaluate what we're going to use, Struts, OpenCMS, some other system... I don't have much

Re: [OT] data layer, try-catch-finally, connections

2003-06-04 Thread David Graham
Setting the conn, rs, and s pointers to null in this method is pointless and confuses Java newbies. David public static void closeconn (java.sql.Connection conn, java.sql.Statement s, java.sql.ResultSet rs) throws java.sql.SQLException { try { if (rs != null) {

Re: [OT] data layer, try-catch-finally, connections

2003-06-04 Thread David Graham
Everything is pass by value, even pointers :-). David OK, so Java isn't my first language, busted... - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 10:25 AM Subject: Re: [OT] data layer, try-catch-finally, connections

Re: validator with password fields

2003-06-04 Thread David Graham
Javascript for password fields is intentionally limited for security reasons. The only javascript validation that runs on password fields is the required check. What version are you using? David Hi all, when trying to make a password field required using the validator, the javascript

Re: Possible Bug in FieldChecks.validateRequiredIf(...)

2003-06-04 Thread David Graham
Thanks for catching this! Please file a bug report so we don't forget to fix it. Thanks, David I have a validation that should be failing (under certain conditions), but is not. I've double checked and triple checked to make sure the setup is correct, and it's still not working correctly. So,

Re: Exception handling question

2003-06-04 Thread David Graham
Ideally I would like to log all exceptions that occur, and I can create an ExceptionHandler to do this, but it will only catch exceptions that get thrown from within one of my Actions, anything thrown from JSP pages or custom tags won't get caught. (right?) How do most people deal with this?

Re: Struts 1.1

2003-06-03 Thread David Graham
Meanwhile, most of the Struts committers are using the Release Candidate in production. We do trust it in our own companies. I am using Struts 1.1 RC1 in production with no problems. The 1.1 release problems are well known and this discussion has been rehashed over and over again. We can only

Re: Collection Implementation

2003-06-03 Thread David Graham
Vector was a poorly designed class that has been replaced by ArrayList. New code should not use Vector. If you need a synchronized list do this instead: List myList = Collections.synchronizedList(new ArrayList()); David Without checking the archives for specific references, I'm still sure

Re: Collection Implementation

2003-06-03 Thread David Graham
Gee, isn't thread safty an issue with Struts? I thought I should use synchronized Objects in my Actions. Yes, Struts Actions should be thread safe. The approach I suggested is the best practice for creating synchronized Lists. David --- David Graham [EMAIL PROTECTED] wrote: Vector

Re: ValidatorUtil deprecated?

2003-06-03 Thread David Graham
commons-validator has undergone a fairly major overhaul. Struts does not use the new methods because it's based on commons-validator 1.0.2. However, the nightlies are built with nightlies from commons so you're getting the deprecation warnings. David I just downloaded and installed Struts

Re: tomcat config?

2003-06-03 Thread David Graham
Make sure struts.jar isn't in any of Tomcat's common directories. It should only be in your app's /WEB-INF/lib directory. David From: Frances Aleah Z. de Guzman [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject:

Re: struts tags vs jstl

2003-06-03 Thread David Graham
I only use the struts html taglib and the JSTL for everything else. The struts-el taglib in the /contrib folder implements the Struts custom tags with EL support so you can use the same language you use in the JSTL. David From: Nathan Coast [EMAIL PROTECTED] Reply-To: Struts Users Mailing

Re: struts tags vs jstl

2003-06-03 Thread David Graham
I'm pretty sure that the latest release of Struts includes a subset of Struts tags that have been configured to support the EL Expression language. So would that be the ELEL ;-) ? I once saw a sign advertising a seminar on the FTP Protocol. Acronyms have officially lost all meaning. David

Re: Struts IRC online

2003-06-02 Thread David Graham
For the record, I, and every other committer that I've spoken to about this agree that we will never discuss struts-related decisions unless done so on the struts-users or struts-dev lists. I have my reasons and I'm sure others have theirs. It's cool that IRC is setup for those that want to use

Re: Struts 1.1

2003-06-02 Thread David Graham
Struts RC 2 should be coming out this week. After that, people will have a chance to test their apps with it and we'll incorporate any show stopping bug fixes. Struts 1.1 final is not far off after that :-). David I'm not going to ask when Struts 1.1 will be released because I know the

Re: Basic CRUD

2003-06-01 Thread David Graham
The html taglib would not evaluate a bean:write tag within the onclick event. That's why I had to add the bean:define and a setKey() javascript function. Do you mean something like this didn't work: html:form onclick=bean:write.../... ? That's invalid JSP syntax and is not a defect in the html

Re: 281177: Struts 1.1

2003-05-30 Thread David Graham
1) Is it mandatory to restart the application if I hav changed one action class or form ? With Tomcat I've found that most code changes require an app reload but some do not. I believe it has something to do with adding methods vs. changing the internals of a method but I could certainly be

Re: Justifying Struts

2003-05-30 Thread David Graham
1) I think the separation of presentation (view) from the model and controller has gone too far (or probably is not done well in Struts). For example, I like to have my front end developers do form (field) validation. These developers should not have to write beans to do this (all examples

Re: Action Chaining - how to avoid?

2003-05-30 Thread David Graham
does not necessarily map to one HTML form. You can split up the view however you like but store all the data in one form object. David m --- David Graham [EMAIL PROTECTED] wrote: So if I understand what you're suggesting, I put multiple html forms into editPage.jsp, one of which maps

Re: A question long not raised....

2003-05-30 Thread David Graham
There's a vote underway now on struts-dev for releasing 1.1 RC2. So far there are 3 binding +1 votes (including mine :-). David Hi All Just want to raise a question that does not seem to have been asked for a while When should we be expecting official release Struts 1.1? Hope we don't

Re: Action Chaining - how to avoid?

2003-05-30 Thread David Graham
a new jsp, or make a jsp with some really nasty scriptlet in it to handle different forms. Right? --- David Graham [EMAIL PROTECTED] wrote: There are, however, situations where the second screen really has nothing to do with the first. For example, an Order screen and an OrderItem screen. When

Re: Form validation over multiple pages

2003-05-30 Thread David Graham
With a little further investigation I see that the page value does not get set in the validationForm using html:hidden approach as outlined below. Ie, this doen't work: html:hidden name=validateForm property=page value=1 / When I print out the value of the page field in the action, it is

Re: URGENT: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread David Graham
FYI, marking posts as URGENT is generally considered rude as it implies your question is more important than everyone elses. The error message indicates a problem populating your form bean from the request parameters. Are having the problem when submitting the form or displaying it? Is your

Re: Action Chaining - how to avoid?

2003-05-30 Thread David Graham
My jsps currently assume use of the form specified in the mapping from html:form action=mapping. I suppose it's not a problem to always include the name property in my tags, and assign that the generic form bean name. It's a little bothersome though that the action writer needs to know what kind

Re: [OT] Logging per class or system?

2003-05-30 Thread David Graham
I have seen in the archives, details about how to specify debug for, say Digester, but info for xerces. I have only seen examples of lines to add, but not sure where to add them, or examples of them. Does anyone have an example of commons logging that will set different levels for different

Re: javax.servlet.ServletException: BeanUtils.populate

2003-05-30 Thread David Graham
, I have started to remove items from the form, like the multi-select, but that did not seem to help. From: David Graham [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: URGENT: javax.servlet.ServletException: BeanUtils.populate Date: Thu

Re: [WAY OT] Hashtable implementation

2003-05-30 Thread David Graham
Hashtable is a legacy collection that has been replaced by the HashMap class. You might check commons-collections for such a class and if it's not there you could contribute the code. David Hey, I know this is probably a really stupid question but i am looking for a Hashtable (or similar)

Re: [ANN] Barracuda 1.2.0 Released!

2003-05-27 Thread David Graham
I normally wouldn't post this type of info to the Struts list, but since a number of you have asked to be kept abreast of Barracuda develpments, I figured I would let you know that the long awaited stable release of Barracuda 1.2.0 is finally here! IMO, people interested in Barracuda developments

RE: [ANN] Barracuda 1.2.0 Released!

2003-05-27 Thread David Graham
-Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 12:09 PM To: [EMAIL PROTECTED] Subject: Re: [ANN] Barracuda 1.2.0 Released! I normally wouldn't post this type of info to the Struts list, but since a number of you have asked to be kept abreast

Re: Struts Performance - Any Benchmarks?

2003-05-27 Thread David Graham
They seem to be itching for benchmarks though, so I'll give it to them by building a single, then multi-servlet app and using Introscope with some load test simulators. I was hoping somebody in a situation such as myself already had done it. It's a shame that you're required to do this because an

<    1   2   3   4   5   6   7   8   9   10   >