RE: Using JSTL tags instead of Struts tags

2003-07-11 Thread David Graham
--- Davidson, Glenn [EMAIL PROTECTED] wrote: I recently saw the term Dog Food and found it amusing. I might not be using it correctly in this context ( I just might be eating some dog food with my prior email :-) ) . What I was trying to get across is that just because there are other

RE: Using JSTL tags instead of Struts tags

2003-07-11 Thread David Graham
-Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2003 4:07 PM To: Struts Users Mailing List Subject: RE: Using JSTL tags instead of Struts tags --- Davidson, Glenn [EMAIL PROTECTED] wrote: I recently saw the term Dog Food and found it amusing. I

RE: Using JSTL tags instead of Struts tags

2003-07-10 Thread David Graham
I don't have any documentation but the only Struts taglibs I use are html and tiles. I replaced my usage of the bean tags with the fmt:message tag and the Struts logic tags are all replaced with a combination of the c:if and c:forEach tags plus the expression language. The JSPs are remarkably

RE: Using JSTL tags instead of Struts tags

2003-07-10 Thread David Graham
it and you will :-). The expression language is the best thing since sliced bread. David - Keith -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 9:51 AM To: Struts Users Mailing List Subject: RE: Using JSTL tags instead of Struts tags

Re: JSTL and JSF What does the future hold?

2003-07-10 Thread David Graham
--- Davidson, Glenn [EMAIL PROTECTED] wrote: Many of us a new to Struts and have limited time to learn new technologies. I have heard some (not a lot) of hype for Java Server Faces. Being new and having to learn this technology what recommendation can you give? Should we skip JSTL? JSF is

Re: Using JSTL tags instead of Struts tags

2003-07-10 Thread David Graham
: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 9:51 AM To: Struts Users Mailing List Subject: RE: Using JSTL tags instead of Struts tags I don't have any documentation but the only Struts taglibs I use are html and tiles. I replaced my usage of the bean tags

Re: html spaces

2003-07-10 Thread David Graham
--- Ben Anderson [EMAIL PROTECTED] wrote: maybe this is a more genearl html/xml question - not really sure c:set var=link bean:message key=path/ bean:message key=file /c:set Why are you using the JSTL's c:set tag but not the

Re: Using JSTL tags instead of Struts tags

2003-07-10 Thread David Graham
--- Laurent PETIT [EMAIL PROTECTED] wrote: Hello, From: David Graham [EMAIL PROTECTED] No, it doesn't encourage poor programming. Anyone can abuse the tags but it's up to your designers to use them for view logic. If you provide beans that perform the business logic, the page

Re: Struts 1.1 Bug? PlugIn Objects Not Serializable

2003-07-10 Thread David Graham
--- Hohlen, John C [EMAIL PROTECTED] wrote: I'm encountering a serialization error due to Plug-In objects, in my case, the org.apache.struts.validator.ValidatorPlugIn not being serializable. An array of plug-ins are stored in application scope in the ActionServlet.initModulePlugIns() method.

RE: Struts 1.1 Bug? PlugIn Objects Not Serializable

2003-07-10 Thread David Graham
Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 10:47 AM To: Struts Users Mailing List Subject: Re: Struts 1.1 Bug? PlugIn Objects Not Serializable --- Hohlen, John C [EMAIL PROTECTED] wrote: I'm encountering a serialization error due to Plug

RE: Struts 1.1 Bug? PlugIn Objects Not Serializable

2003-07-10 Thread David Graham
--- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Thu, 10 Jul 2003, David Graham wrote: Date: Thu, 10 Jul 2003 09:24:15 -0700 (PDT) From: David Graham [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Struts Users Mailing List

Re: Using JSTL tags instead of Struts tags

2003-07-10 Thread David Graham
flexible. Jacob - Keith -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 9:51 AM To: Struts Users Mailing List Subject: RE: Using JSTL tags instead of Struts tags I don't have any documentation but the only Struts taglibs I

Re: Using JSTL tags instead of Struts tags

2003-07-10 Thread David Graham
--- David Geary [EMAIL PROTECTED] wrote: On Thursday, Jul 10, 2003, at 14:40 America/Denver, David Graham wrote: The work that you do with JSTL, and therefore in JSP pages instead of actions, involves activities like iterating over data, conditional tests, accessing URLs, i18n, xml

Re: [OT] JSTL

2003-07-09 Thread David Graham
--- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote: I apologize if this is a bit off topic, and if it is a bit of a newbie question. I've never used JSTL before, and I'm not sure exactly what it is. Is it built into standard JSP technology (thus usable without any add-ons), or is

RE: [OT] Use of Static Methods

2003-07-09 Thread David Graham
One of my programmers asked me whether or not it is OK to define helper methods as 'static' - and I realized that I didn't know the answer. So I guess the question is, in a web application, can common code be factored out to a helper class and marked as 'static'? Static methods are

RE: [OT] Use of Static Methods

2003-07-09 Thread David Graham
: David Graham [mailto:[EMAIL PROTECTED] Sent: July 9, 2003 10:22 AM To: Struts Users Mailing List Subject: RE: [OT] Use of Static Methods One of my programmers asked me whether or not it is OK to define helper methods as 'static' - and I realized that I didn't know the answer. So

Re: validator validwhen not working?

2003-07-09 Thread David Graham
Are you using a nightly build after 1.1 final? ValidWhen was not included with 1.1. David --- Poon, Johnny [EMAIL PROTECTED] wrote: Hi, I'm trying to use validwhen, so that it's only valid when either all three related fields are empty or are filled, it's valid; otherwise not. ssn_1,

Re: [OT] Use of Static Methods

2003-07-09 Thread David Graham
--- Erik Price [EMAIL PROTECTED] wrote: David Graham wrote: Static methods are evil for many reasons including philosophical (they're not OO) and practical (you can't override their behavior). You should use a Singleton class with non-static methods. And the generally accepted

RE: [OT] Use of Static Methods

2003-07-09 Thread David Graham
for 8 lousy bytes? OO programs should be made up of objects passing messages to other objects, not calling global functions. David Regards, Richard -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 9:22 AM To: Struts Users

RE: [OT] Use of Static Methods

2003-07-09 Thread David Graham
--- Paananen, Tero [EMAIL PROTECTED] wrote: OO programs should be made up of objects passing messages to other objects, not calling global functions. I would argue a Singleton is no better in this respect. The fact that they're instantiated into an object, don't make Singletons any less

RE: [OT] Use of Static Methods

2003-07-09 Thread David Graham
--- Brian Lee [EMAIL PROTECTED] wrote: From: David Graham [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] 2) It is not correct to say that static methods can't be overriden. They can be overridden with another static method. You can't

RE: [OT] Use of Static Methods

2003-07-09 Thread David Graham
=Chapters.html http://www.perl.com/pub/a/2003/06/13/design1.html Yes, technically, you can do OOP in Perl. I'm not interested in starting nor participating in a language debate but anyone using Perl for OOP is using the wrong tool. David José. -Original Message- From: David

RE: [OT] Use of Static Methods

2003-07-09 Thread David Graham
--- Paananen, Tero [EMAIL PROTECTED] wrote: OO programs should be made up of objects passing messages to other objects, not calling global functions. I would argue a Singleton is no better in this respect. The fact that they're instantiated into an object, don't make Singletons

Re: Tag inside a tag

2003-07-08 Thread David Graham
--- [EMAIL PROTECTED] wrote: Is it a limitation of HTML or struts tag implementation? Does struts 1.1 solve this issue (JSTL or otherwise). It has nothing to do with HTML or Struts. This is a syntax error according to the JSP spec which means that no tag library can use a tag as another

Re: generic SQL implementation

2003-07-07 Thread David Graham
There is a Mapper project in the commons sandbox that might help you. It allows you to store SQL in a properties file to remove it from your code. Also, it acts as a layer between your app and your persistence technology so you can swap in an O/R mapping tool, EJBs, etc if you decide against

Re: generic SQL implementation

2003-07-07 Thread David Graham
, this might be the one I am looking for ,even though I wanted to implement the API on my own. Thanks a lot VInay - Original Message - From: David Graham [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, July 07, 2003 11:35 AM Subject: Re: generic SQL

RE: generic SQL implementation

2003-07-07 Thread David Graham
( java.util.ArrayList, org.apache.commons.mapper.TestMapper); } -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: July 7, 2003 10:24 AM To: Struts Users Mailing List Subject: Re: generic SQL implementation Mapper doesn't have a real

Re: javascipt error in IE

2003-07-06 Thread David Graham
--- Adam Hardy [EMAIL PROTECTED] wrote: Well, I just upgraded to IE6 (SP1) and I don't get any errors for credit card nor required, nor in fact any errors at all. I just checked to make sure javascript errors were notified. I seem to have wiped out IE5.5, which I wanted to keep for

Re: validation doesn't validate

2003-07-03 Thread David Graham
--- Michael Muller [EMAIL PROTECTED] wrote: I can't get the validation framework to do anything. I'm speculating that the validation.xml file isn't being read; I tried putting a rule that doesn't exist and then some arbitrary syntactically incorrect text in the file, and I didn't get an

Re: [OT] CCValidation

2003-07-03 Thread David Graham
--- Denis Avdic [EMAIL PROTECTED] wrote: Hello, I am trying to validate credcard numbers entered by my customers. Most of them can be validated easily using Lunh method, but I am running into a problem when the customer tries to use a business credcard (or so the boss tells me). Should

Re: Big Javabean?

2003-07-03 Thread David Graham
--- Poon, Johnny [EMAIL PROTECTED] wrote: Hi There are 2 quick questions. 1) I'm considering making one huge javabean that will have 100+ fields. This bean will be share in the session across up to 23 different screen. I think this is probably the cleanest way, as the same field might

Re: More Validation Problems

2003-07-03 Thread David Graham
Kamholz, Keith (corp-staff) USX wrote: Does the required option of the validator check to see if the field is null or an empty string? The field is first stripped of all leading and trailing whitespace. If the field is null or the required validation will fail. David Maybe this is

Re: Is Action Instantiated Once?

2003-07-03 Thread David Graham
--- Billy Ng [EMAIL PROTECTED] wrote: Hi folks, I have a address book page that has the previous and next buttons. I notice if 2 different users try to access the address books, last one who clicks on the button always get what it should display. This sounds very like they are both are

Re: Validation Problems

2003-07-02 Thread David Graham
--- Adam Hardy [EMAIL PROTECTED] wrote: What is it about action mappings? People seem to think they cost money or something. Every struts project I've done had hundreds. If you need two action mappings, don't worry about it. I think somebody worked out once that tomcat would only start to

RE: Repost: Validator indexed property not working in Struts 1.1 Final Release

2003-07-02 Thread David Graham
to plug that piece into Strut 1.1? The reason I ask is because it will be much difficult for me to sell to the management the idea of delivering our project on nightly build than on Struts 1.1 final. Thanks a lot. Feng -Original Message- From: David Graham [mailto:[EMAIL

Re: FieldChecks.validateMinLengths()

2003-07-01 Thread David Graham
--- Adam Hardy [EMAIL PROTECTED] wrote: I started using struts validator. I just copied a bunch of stuff from the struts example and started using that, and found that the minlength validation actually returns true when the text field is blank. This was my first attempt and I was trying to

Re: FieldChecks.validateMinLengths()

2003-07-01 Thread David Graham
the static javascript and stored it in a file, make sure you regenerate it after upgrading to 1.1 final. David David Graham wrote: This is actually a good thing :-). Minlength will only fail if there is some text in the control and it's less than the minimum length. If you want

Re: Struts - subproject

2003-07-01 Thread David Graham
--- objectworlds [EMAIL PROTECTED] wrote: I have been informed that Jakarta Struts framework is a subproject of jakarta. Jakarta tomcat must also be a subproject of Jakarta. Does this mean that Tomcat is always current with Struts framework ? The similarities between Tomcat and Struts end

Re: FieldChecks.validateMinLengths()

2003-07-01 Thread David Graham
app David Graham wrote: What is your validation setup for that field and what are you entering into it? The struts-validator app seems to be working fine. David --- Adam Hardy [EMAIL PROTECTED] wrote: I shutdown and deleted my deploys and builds and recompiled

Re: Repost: Validator indexed property not working in Struts 1.1 Final Release

2003-07-01 Thread David Graham
--- Wu, Feng [EMAIL PROTECTED] wrote: Seems like my previous email to the list did not make it. Here it goes again. Thanks. By the way, I can work around the problem of nested:messagePresent not finding the ActionError by mannualy generating the property attribute like this:

Re: Struts - concepts - is it true ?

2003-06-29 Thread David Graham
--- objectworlds [EMAIL PROTECTED] wrote: Hi, I have some material on the struts framework and I want to check if what I have read is true. That way I will continue to follow the material I have on Struts framework. - The struts framework Model 2 is a variant of MVC software design

RE: [OT] Empty Result Set

2003-06-26 Thread David Graham
resultset without a problem. Confusing... I don't set any special properties on the ResultSet and it works fine. David - Keith -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 1:35 PM To: Struts Users Mailing List Subject: Re: [OT] Empty

Re: validwhen in the validation-rules?

2003-06-25 Thread David Graham
--- Mick Knutson [EMAIL PROTECTED] wrote: I can't find any examples of validwhen in the validation rules. Does anyone have a working example for me to use? validwhen is not included with Struts 1.1. It will be released with 1.2. David --- Thanks... Mick Knutson ---

Re: requiredif question

2003-06-25 Thread David Graham
--- Mick Knutson [EMAIL PROTECTED] wrote: I have the following code that does not seem to operate at all. I want phone1type to be a required field _if_ the phone1 attribute is _not_ field property=phone1type depends=requiredif arg0

Re: Validate Client side(Javascript) code shows up in the page

2003-06-25 Thread David Graham
What version are you using? This sounds like a bug that was fixed some time ago. David --- Mounagurusamy, Jayakumar (HAL) [EMAIL PROTECTED] wrote: Hello, I got the following configuration in the struts-config.xml, plug-in className=org.apache.struts.validator.ValidatorPlugIn

RE: Validate Client side(Javascript) code shows up in the page

2003-06-25 Thread David Graham
The javascript you posted is clearly within script tags. What appears on your screen? David --- Mounagurusamy, Jayakumar (HAL) [EMAIL PROTECTED] wrote: Struts version 1.1rc2 -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 9:29 AM

Re: [OT] Empty Result Set

2003-06-25 Thread David Graham
boolean isEmpty = !rs.next(); David --- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote: Hey everyone, This isn't really a struts question, but it's applicable. I'm just wondering how to find out if a ResultSet is empty or not after I execute my query. I've searched online, but

RE: Checking for a null property

2003-06-25 Thread David Graham
--- Jindal, Ashwini [EMAIL PROTECTED] wrote: Affan, Where does this C: tag come from??? The c tags are part of the JSTL. David ...AJ -Original Message- From: Affan Qureshi [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 4:18 AM To: Struts Users Mailing List

Re: Validation and internet wierdness

2003-06-25 Thread David Graham
This was a bug in commons-validator that was fixed a while back. It can't find a local DTD so it looks on the web. David --- Benjamin Stewart [EMAIL PROTECTED] wrote: Greetings, I am sending this to struts, as this is the context in which I found the issue I am having, but I suppose this

Re: Object-oriented encapsulation in Struts - merging Actions and ActionForms

2003-06-24 Thread David Graham
Specifically, what would you change? David --- Dan Jacobs [EMAIL PROTECTED] wrote: [ potentially controversial topic ] Hi all, I have noticed that most of my Struts applications end up being implemented like dismembered objects. I design the controller parts of my Struts applications

Re: Damn Validator...

2003-06-24 Thread David Graham
Can you post the relevant form definition in validation.xml? I'm having a hard time downloading the attachment. David --- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote: Hey everyone, I posted recently regarding my issues with the Validator plugin. There were a few suggestions,

RE: Object-oriented encapsulation in Struts - merging Actions and ActionForms

2003-06-24 Thread David Graham
that conform to some required interface. Does that make sense? Dan Jacobs JPlates Inc. http://www.jplates.com -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 8:46 AM To: Struts Users Mailing List Subject: Re: Object-oriented

RE: Damn Validator...

2003-06-24 Thread David Graham
-validation -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:14 AM To: Struts Users Mailing List Subject: Re: Damn Validator... Can you post the relevant form definition in validation.xml? I'm having a hard time downloading

RE: Damn Validator...

2003-06-24 Thread David Graham
property=typeDesc depends=required arg0 key=app.label.numberType/ /field /form /formset /form-validation -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent

RE: Validator

2003-06-23 Thread David Graham
Setting validate=true for an action means that the form bean's vaildate() method will be called. This will invoke the Struts Validator if you're using ValidatorForm. David Also, when using the validator, I have to set validate=true for each applicable action in my struts config.xml right? -

Re: using html:form from plain java code

2003-06-23 Thread David Graham
What is the best practice to generate html output equivalent to use html:form jsp tag. I need to use it in for example servlet (just example , in fact there is just plain java class that generates html output. It is very modular thing, so simple jsp isn't solution). This problem is touching some

RE: using html:form from plain java code

2003-06-23 Thread David Graham
? David -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 5:30 PM To: [EMAIL PROTECTED] Subject: Re: using html:form from plain java code What is the best practice to generate html output equivalent to use html:form jsp tag. I need

Re: JavaScript Date Validation Not Working Correctly

2003-06-22 Thread David Graham
There are a couple of date validation bugs open that may have something to do with your problem: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16810 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19161 David I am entering a valid date (10/14/66) but no matter what i type it alwasy gives

Re: [OT] Question About Second Pass Rendering

2003-06-22 Thread David Graham
Maybe you could pull out the content and pass it to the jsp compiler. You may have to write it to a new .jsp file first. Judging by the amount of time it takes jasper to compile my pages the first time I hit them this may be a slow solution. David Is it possible to do some kind of second

Re: ResultSet get closed before connection closes - Help!

2003-06-22 Thread David Graham
You can't store the ResultSet as an instance variable because multiple threads are overwriting it. David I am using a GenericDatasource to establish a connection to a mysql database. The connection get established all right, but when I try to walk the ResultSet, I do get an SQLException which

RE: JavaScript Date Validation Not Working Correctly

2003-06-22 Thread David Graham
-Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Sun 6/22/2003 12:53 PM To: [EMAIL PROTECTED] Cc: Subject: Re: JavaScript Date Validation Not Working Correctly There are a couple of date validation bugs open that may have

Re: [OT] Question About Second Pass Rendering

2003-06-22 Thread David Graham
Sure... I want to have a CMS that stores fragments of content in a database that can be inserted into templates. I want that content to include Java/JSTL bits, not just text/html... So the first pass renders the template and grabs the content bits and the second pass renders the parts of the

Re: Unable to Run Struts based JSPs in WSAD 5.0.

2003-06-20 Thread David Graham
NoClassDefFoundErrors indicate you have struts.jar on the server's classpath instead of *only* in your project's WEB-INF/lib directory. David Hi All, I'm currently using WSAD 5.0 and in my Web Project Struts jars are available and it compiles fine. But when i try to execute the same in a

Re: How much should Struts be aware of my persistence system

2003-06-20 Thread David Graham
I hide my persistence layer by using a project in the commons-sandbox called Mapper. My Actions don't know or care how the objects are persisted, they just pass them into the Mapper layer (I actually have a Service layer my Actions talk to but you could get rid of that for simplicity). I

Re: How much should Struts be aware of my persistence system

2003-06-20 Thread David Graham
the fully qualified class name of Person in your Map (ie. com.something.Person=com.something.PersonMapper). This gives you the separation of your persistence layer technology from your app. David Thanks --Alen - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED

Re: Validator

2003-06-20 Thread David Graham
Hey, I'm trying to put validation into my application using the validator plugin. However it doesn't seem like it's doing anything at all. I know it's a very general question, but what are some things I should look for? Are there any common mistakes in setting up that I should check for?

Re: Validator documentation

2003-06-19 Thread David Graham
Wednesday, June 18, 2003 3:46 PM , David Graham [EMAIL PROTECTED] a écrit : Hello, I'm looking for an exaustive documentation of the struts validator's rules defined in validator-rules.xml. Where can I find the name, values and meaning of heach variable the rules can take

Re: javascript validation

2003-06-19 Thread David Graham
You need this: onsubmit=return validateBillingParametersForm(this); David Hi, I have the following in my struts-config.xml action path=/admin/createContentType type=com.xdeep.pacific.servlet.admin.forms.ContentTypesAction name=BillingParametersForm scope=request

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread David Graham
I am starting a new app and trying to work out the best design approach. At the moment I want to get the app up and running, and so I'm just going to use tomcat and struts and achieve MVC by seperating out the database access into factory classes. At some point after I've got the project

Re: $ formatting in html options tag

2003-06-19 Thread David Graham
The JSTL's fmt tags have some of this capability. Why can't you use an option value=1$10,000/option to send back an unformatted value to the form? David in labelProperty getDescription i will get only amounts 1000,2000,3000 etc from database.at the presetation layer i need to display

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread David Graham
I can't find the Mapper project in the website, do you have an URL ? It doesn't have a website yet because I just committed it recently but you can get it out of cvs. I'm interested in any and all feedback. David Thanks, -- Laurent

RE: Struts and database

2003-06-19 Thread David Graham
A follow up to the J2EE DAO Pattern: I found that it helps a lot using externalized SQL statements, i.e., build SQL statements in an XML file with your own DTD. It's point #3 in that blueprint. However, to this date I haven't found any good examples online. Also I sent an email to the

RE: Struts and database

2003-06-19 Thread David Graham
I store all of my sql statements in a properties file and use ? for replacement parameters into PreparedStatement objects. That way I can support many databases by swapping in a different properties file. Even if you only need to support 1 database it's still useful because you don't need

RE: Struts and database

2003-06-19 Thread David Graham
What! You don't have to recompile when you make a change to your properties file? Compiling is only for Java code. Text files don't need to be compiled so you might be talking about rebuilding your app? David Man, I must've been doing something seriuosly wrong. Whenever I changed anything

RE: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread David Graham
Actually I wasn't referring to OLE as in M$ speak, Ole is just a short version of Old :) By short, do you mean the same amount of characters ;-) ? For some reason the POJO term really irritates me. I'm not sure why we need a special nomenclature for Java objects. David -Original

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread David Graham
); Of course, you also need to code the PersonMapper class to implement the Mapper interface. Step 3 is what you would use in your Action or business layer. David Adam David Graham wrote: I can't find the Mapper project in the website, do you have an URL ? It doesn't have a website yet because I just

Re: [OT] Using different JDK in Eclipse

2003-06-19 Thread David Graham
Is there a way to set up different JDK for different projects in Eclipse 2.1? I have to use a different version of JDK for certain projects, because of dependency on some old packages. Right click the project Properties Java Compiler David Thanks.

Re: Problem with RewriteTag RC2 and Websphere

2003-06-19 Thread David Graham
I am in the process of fixing this problem right now (and that comment was mine not Craig's :-). David There was a change to the implementation of the RewriteTag in RC2 regarding the way RequestUtils.computeURL() is called. Rather than passing redirect as false, redirect is now passed as

RE: Problem with RewriteTag RC2 and Websphere

2003-06-19 Thread David Graham
- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 11:31 PM To: [EMAIL PROTECTED] Subject: Re: Problem with RewriteTag RC2 and Websphere I am in the process of fixing this problem right now (and that comment was mine not Craig's :-). David There was a change

Re: Validator documentation

2003-06-18 Thread David Graham
Hello, I'm looking for an exaustive documentation of the struts validator's rules defined in validator-rules.xml. Where can I find the name, values and meaning of heach variable the rules can take ? Neither : http://jakarta.apache.org/struts/userGuide/dev_validator.html nor the javadoc

Re: Token in struts and session bean.... problem with the framework ?

2003-06-18 Thread David Graham
Hi all thanks for your answers. I was indeed talking about ActionForm (sorry we use to call that a bean here :-)). What I understand from our discussion is: -Thant I Can use javascript to avoid duplicate submit: Works well when deployed in a trusted environment like intranet. (But no server

Re: Best Practice [WAS: Logging in struts].

2003-06-18 Thread David Graham
Anyone have any comments on using the log( String, int ) method on the ActionServlet? i.e. in an action getServlet().log( This is for debug only, 2 ); will only log the message if the debug level is 2 or greater... However, now that I'm looking at this in the user Guide (which I've had little

RE: ActionErrors.add(..) no doing what I expect

2003-06-18 Thread David Graham
I am working on an e-commerce piece and am trying something new with the ActionErrors. Usually when I use add() I am pulling an key that exists in my properties file already. I see that ActonError has a couple of constructors one of which takes a key and a value and I since I do not know what the

Re: Validator problem with integers

2003-06-18 Thread David Graham
An integer validation is not the same as a are all characters numeric validation. I don't think the validator currently has a numeric check but patches are welcome. David Hi folks, Using struts-RC2, when using Validator with a dependency on integer validation, I have a problem with the

RE: Validator problem with integers

2003-06-18 Thread David Graham
There is a js function called isAllDigits(arg) in validator-rules.xml. It's used by validateInteger(). You can use that. No you can't because that function validates based on the type of number (int, octal, etc). David Yan -Original Message- From: David Graham [mailto:[EMAIL

Re: Struts FAILS to do a context-irrelative forward or redirect from Action

2003-06-17 Thread David Graham
What version are you using? This problem was fixed a while back. David It seems Struts ALWAYS prefix application context to the map target /myapp/http://www.cnn.com I am pretty sure there is a bug in Struts Action. I tried all possibilities and all failed. If you through action, Struts ALWAYS

Re: embedding multiple parameters and associated values in a html:link

2003-06-17 Thread David Graham
I am trying to use an html:link item to submit some data, but I need to send the value of 2 parameters. How do I assign multiple parameters within an html:link tag? http://jakarta.apache.org/struts/userGuide/struts-html.html#link But I prefer to use the JSTL's c:url tag for this functionality.

Re: Token in struts and session bean.... problem with the framework ?

2003-06-17 Thread David Graham
It's up to your Action to call the token methods to validate the token and forward the user to an appropriate page. David Hi all, If you have a session bean and you are using the token framework to protect yourself again multiple submit... Let say a request with a bad token is post to

Re: growable table in struts

2003-06-17 Thread David Graham
You can use the JSTL's c:forEach tag to loop over your collection of beans and then use the c:out tag to display the values. David Hi All. I am getting a collection of objects from some where. Each object has 6 fields. In my jsp, I want a table which has 4 columns and 4 fields out

Re: Token in struts and session bean.... problem with the framework ?

2003-06-17 Thread David Graham
It's up to your Action to call the token methods to validate the token and forward the user to an appropriate page. I know, maybe I wasn't clear enough .. sorry :-) What I'm saying is that if you use a session bean, the content is modified even though the token is invalid.. I thinks this

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

2003-06-17 Thread David Graham
I don't think that the current ASP .NET model is too far off of the MVC path. Mostly I think that MVC isn't enforced, but the foundation is inherently there. If I had to do a mapping from struts to ASP .NET I would put things like this: .jsp -- .aspx ActionForm -- Code behind page of

Re: Best method for Databae Access in Struts/Tomcat combo?

2003-06-17 Thread David Graham
David, That clears up quite a bit for me. So if I have a Resource setup in my container (Tomcat 4.1.24) I can use that resource in any class using JNDI and don't have to worry about specifying it inside my struts-configuration.xml file. Am I understanding you correct. That's exactly

Re: embedding multiple parameters and associated values in a html:link

2003-06-17 Thread David Graham
Personally, I think a custom tag would be overkill for something JSTL can handle pretty easily (assuming you're running in a JSP 1.2 container): jsp:useBean id=editParams class=java.util.HashMap/ c:set target=${editParams} property=action value=prepareEditForm/ c:set

Re: RC2 requiredif validation rule syntax change

2003-06-16 Thread David Graham
What's the point of that kind of change? The '-' character is not a valid javascript variable character so we removed it. David I read the release notes and couldn't find anything about this. That's the place where such kinds of changes ought to be listed! Reinhard Kevin Robair wrote: FYI:

Re: validation problem

2003-06-16 Thread David Graham
Post the relevant section of your validation xml file and more info about your form. David Hi there, this is my first post! I have inherited a web-based struts project that is frankly a mess... I have managed to straighten out most things except something that is driving me nuts - this is

Re: validation problem

2003-06-16 Thread David Graham
in-turn extends - ValidatorBaseForm These classes appear extremely messy and very long... Thanks, Alex. On Mon, 16 Jun 2003, David Graham wrote: Post the relevant section of your validation xml file and more info about your form. David Hi there, this is my first post! I have inherited

Re: ValidatorBaseForm - Re: validation problem

2003-06-16 Thread David Graham
=ontario.exports.events.struts.EventRegistrationForm /form-bean The EventRegistrationForm extends EventDetailsForm which in-turn extends - ValidatorBaseForm These classes appear extremely messy and very long... Thanks, Alex. On Mon, 16 Jun 2003, David Graham wrote

Re: Best method for Databae Access in Struts/Tomcat combo?

2003-06-16 Thread David Graham
Struts stores DataSources defined in struts-config.xml in the ServletContext so any class can access them. A more common approach is to define your DataSource in JNDI and have your business objects look it up from there. Both ways allow for MVC and the Struts configuration is provided as a

Re: Best method for Databae Access in Struts/Tomcat combo?

2003-06-16 Thread David Graham
David, That clears up quite a bit for me. So if I have a Resource setup in my container (Tomcat 4.1.24) I can use that resource in any class using JNDI and don't have to worry about specifying it inside my struts-configuration.xml file. Am I understanding you correct. That's exactly right.

Re: IBM ServletManager vs Struts

2003-06-14 Thread David Graham
ServletManager is posted on alphaWorks which means it's alpha level technology and not necessarily supported by IBM. IBM's WSAD (and many other IDEs) has Struts support built into it. Struts also has an active development team and users list for support. David hi, does anybody have

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