Re: Filter for Expired Sessions

2005-01-21 Thread Dakota Jack
On Thu, 20 Jan 2005 23:19:39 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote: > Leading by example is good, except when you give a poor example. It's > generally considered POOR ETIQUETTE to post code, stack traces, or > anything else that adds significant size to a message. Put it on a > site somew

Struts Source Code Compilation Error - MultipartRequestWrapper.java

2005-01-21 Thread puneet . a
I get following error while trying to compile Struts 1.2.4 source code. I am using eclipse and I have included j2ee.jar from J2EE 1.4 version which I downloaded from java.sun.com I also tried by copying the jar file that is bundeled with JBoss 4.0.1 but to no rescue...!!! Any help...? Regards

Re: Struts Source Code Compilation Error - MultipartRequestWrapper.java

2005-01-21 Thread puneet . a
I misses to attach the error...: here it is: please see the attached mail for details; Class must implement the inherited abstract method ServletRequest.getLocalAddr() MultipartRequestWrapper.java Class must implement the inherited abstract method ServletRequest.getLocalName() MultipartReq

Re: Struts Source Code Compilation Error - MultipartRequestWrapper.java

2005-01-21 Thread puneet . a
Since I was not using the MultiPart Form, I deleted this Java file from my source code keeping the struts.jar in my classpath, I could proceed. But I still wonder how the Struts 1.2.4 binary version was prepared if it does not compile with J2EE 1.4 jars. Regards, Puneet Agarwal Tata Consultanc

Re: Filter for Expired Sessions

2005-01-21 Thread Frank W. Zammetti
I never thought I'd be saying this, but I agree with Jack. :) I would say that starting a new thread along the lines of "Hey, look at this neat code I wrote" MIGHT be bad etiquette, and even then it's arguable. But Jack posted code within the context of a discussion that is specifically about c

Re: Session Strategy (here's a filter)

2005-01-21 Thread john . chesher
Sorry about posting code to the list if that is poor etiquette. I didn't know of that one. What's the reason for it? My code wasn't too lengthy and the email can easily be deleted by those that don't care. I just thought some other newbies (not unlike myself) might find it useful or thought

Re: JDBC Driver

2005-01-21 Thread Vic
Writing own JDBC is not Struts-like and less effective imo. I am sure some shops write their own MVC so that they don't code to servlet. I say use Struts, it's got docs. Back to the 2 choices I mentioned as more effective. .V Eddie Bush wrote: I agree with your premise. However, some shops like

Re: Struts token doesn't work problem

2005-01-21 Thread Will Stranathan
Just include a hidden element with the token name and value. Like: You'll have to look in the session to get the token value. I *think* the session key this is under is org.apache.struts.action.TOKEN (looking at the javadoc for that). w On Fri, 21 Jan 2005 09:21:44 +0800 Anthony Hong <[EMAI

Re: Session Strategy (here's a filter)

2005-01-21 Thread Jim Barrows
On Fri, 21 Jan 2005 08:59:59 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Sorry about posting code to the list if that is poor etiquette. I didn't > know of that one. What's the reason for it? My code wasn't too lengthy > and the email can easily be deleted by those that don't care. I

Re: JDBC Driver

2005-01-21 Thread Jim Barrows
On Thu, 20 Jan 2005 22:47:03 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote: > I agree with your premise. However, some shops like to keep things > elementary -- like to cook their own dog food so they know what it's > made of. In my expreience, every shop that has done that has failed entirely to a

Re: JDBC Driver

2005-01-21 Thread Erik Weber
Eddie, Eddie, Eddie, what shall we do with you? You know the rules. Here, in the Open Source Nation, we cannot tolerate this sort of thing -- independent thinking, experimentation, competition among the ranks -- and you know this! Stop it at once! Here, we only worship Struts, iBatis and Hiberna

Re: Filter for Expired Sessions

2005-01-21 Thread Dakota Jack
On Fri, 21 Jan 2005 08:36:14 -0500, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I never thought I'd be saying this, but I agree with Jack. :) Heh! Wonders never cease! Heck, even Craig agreed with me once. Don't be embarrassed! Step right up there and join the majority! LOL ;-) Jack -

Re: JDBC Driver

2005-01-21 Thread Larry Meadors
On Fri, 21 Jan 2005 10:20:33 -0500, Erik Weber <[EMAIL PROTECTED]> wrote: > Here, we only worship Struts, iBatis and Hibernate -- the Sacred Frameworks. Is it friday already? Dang, it is! Well, as a iBATIS guy, it is good to be in the big three mentioned there. :-D Larry --

Re: [FRIDAY] JDBC Driver

2005-01-21 Thread Hubert Rabago
On Fri, 21 Jan 2005 08:49:17 -0700, Larry Meadors <[EMAIL PROTECTED]> wrote: > On Fri, 21 Jan 2005 10:20:33 -0500, Erik Weber <[EMAIL PROTECTED]> wrote: > > Here, we only worship Struts, iBatis and Hibernate -- the Sacred Frameworks. > > Is it friday already? > > Dang, it is! > How could you no

Re: Referencing the Local DTD rather than the http:// one

2005-01-21 Thread Lukas Bradley
What I find particularly annoying about this problem is references to local Struts Configuration files work correctly, which in turn load the Tiles Definitions. /WEB-INF/struts-config.xml /WEB-INF/tiles-defs.xml /WEB-INF/dtd/(all here) An example of my Struts Config definition, that works correc

[OT] thank you all

2005-01-21 Thread Matt Bathje
Hey all - As of today I will no longer be a full time Struts user, and will be unsubscribing from the list. I have gotten a new job where I won't be doing any programming, and therefore have no further need for Struts. I just wanted to say thank you all for the support you have given since I j

Re: [FRIDAY] JDBC Driver

2005-01-21 Thread Jim Barrows
On Fri, 21 Jan 2005 09:53:39 -0600, Hubert Rabago <[EMAIL PROTECTED]> wrote: > On Fri, 21 Jan 2005 08:49:17 -0700, Larry Meadors > <[EMAIL PROTECTED]> wrote: > > On Fri, 21 Jan 2005 10:20:33 -0500, Erik Weber <[EMAIL PROTECTED]> wrote: > > > Here, we only worship Struts, iBatis and Hibernate -- the

Re: [OT] thank you all

2005-01-21 Thread Jim Barrows
On Fri, 21 Jan 2005 10:39:17 -0600, Matt Bathje <[EMAIL PROTECTED]> wrote: > Hey all - > > As of today I will no longer be a full time Struts user, and will be > unsubscribing from the list. I have gotten a new job where I won't be > doing any programming, and therefore have no further need for S

Re: [OT] thank you all

2005-01-21 Thread Matt Bathje
Jim Barrows wrote: On Fri, 21 Jan 2005 10:39:17 -0600, Matt Bathje <[EMAIL PROTECTED]> wrote: Hey all - As of today I will no longer be a full time Struts user, and will be unsubscribing from the list. I have gotten a new job where I won't be doing any programming, and therefore have no further ne

Re: [FRIDAY] JDBC Driver

2005-01-21 Thread Hubert Rabago
Yes, in fact just after I sent it, I suddenly remembered those times. heck, i've been on projects where we'd go two to three weeks of every day being in the office, banging out code. The only thing that'd tell you it was a weekend was the fact that there were no bosses around. hey Matt, aren't you

Re: [FRIDAY] JDBC Driver

2005-01-21 Thread Matt Bathje
Hubert Rabago wrote: Yes, in fact just after I sent it, I suddenly remembered those times. heck, i've been on projects where we'd go two to three weeks of every day being in the office, banging out code. The only thing that'd tell you it was a weekend was the fact that there were no bosses around.

Re: Referencing the Local DTD rather than the http:// one

2005-01-21 Thread Joe Germuska
This is the literal public ID which must be used: "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN" Yours do not include the version number. If the ID above is used, the Digester instance used by Tiles will retrieve the DTD from the classpath location "/org/apache/struts/resource

Re: [OT] thank you all

2005-01-21 Thread Jim Barrows
On Fri, 21 Jan 2005 10:43:50 -0600, Matt Bathje <[EMAIL PROTECTED]> wrote: > Jim Barrows wrote: > > On Fri, 21 Jan 2005 10:39:17 -0600, Matt Bathje <[EMAIL PROTECTED]> wrote: > > > >>Hey all - > >> > >>As of today I will no longer be a full time Struts user, and will be > >>unsubscribing from the l

Re: Referencing the Local DTD rather than the http:// one

2005-01-21 Thread Lukas Bradley
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN" Yours do not include the version number. If the ID above is used, the In this case, the URL specified for the DTD should be completely ignored. Fantastic. Thanks Joe. The following works. Lukas ---

Re: Filter for Expired Sessions

2005-01-21 Thread Craig McClanahan
On Fri, 21 Jan 2005 07:29:05 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > > On Fri, 21 Jan 2005 08:36:14 -0500, Frank W. Zammetti > <[EMAIL PROTECTED]> wrote: > > I never thought I'd be saying this, but I agree with Jack. :) > > > Heh! Wonders never cease! Heck, even Craig agreed with me on

Re: [FRIDAY] JDBC Driver

2005-01-21 Thread Jim Barrows
On Fri, 21 Jan 2005 10:53:50 -0600, Matt Bathje <[EMAIL PROTECTED]> wrote: > Hubert Rabago wrote: > > Yes, in fact just after I sent it, I suddenly remembered those times. > > heck, i've been on projects where we'd go two to three weeks of every > > day being in the office, banging out code. > > Th

Re: [OT] thank you all

2005-01-21 Thread Erik Weber
So long. I wish you the best in your endeavors. Erik Matt Bathje wrote: Hey all - As of today I will no longer be a full time Struts user, and will be unsubscribing from the list. I have gotten a new job where I won't be doing any programming, and therefore have no further need for Struts. I ju

[OT] Re: Session Strategy (here's a filter)

2005-01-21 Thread Erik Weber
Jim Barrows wrote: On Fri, 21 Jan 2005 08:59:59 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Sorry about posting code to the list if that is poor etiquette. I didn't know of that one. What's the reason for it? My code wasn't too lengthy and the email can easily be deleted by those that

Re: Filter for Expired Sessions

2005-01-21 Thread Hubert Rabago
On Fri, 21 Jan 2005 09:03:33 -0800, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > While posting code and stack traces where you're having a problem is > part of the purpose of a user list, posting code examples is not > really the main point of why were here. This particular posting was > on to

Re: Referencing the Local DTD rather than the http:// one

2005-01-21 Thread Tim
Thank you Lukas, Thank you Joe, thanks to the others who tried to help. It works now. I just couldnt figure out that you still use the PUBLIC keyword with Local SYSTEM references. - Original Message - From: "Lukas Bradley" <[EMAIL PROTECTED]> To: Sent: Friday, January 21, 2005 9:02 AM S

Re: Referencing the Local DTD rather than the http:// one

2005-01-21 Thread Joe Germuska
At 10:29 AM -0800 1/21/05, Tim wrote: Thank you Lukas, Thank you Joe, thanks to the others who tried to help. It works now. I just couldnt figure out that you still use the PUBLIC keyword with Local SYSTEM references. Since we're on it, note that when you use the PUBLIC keyword with the correct p

Re: Filter for Expired Sessions

2005-01-21 Thread Dakota Jack
I find this all very humorous. See within: On Fri, 21 Jan 2005 09:03:33 -0800, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On Fri, 21 Jan 2005 07:29:05 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > > > > On Fri, 21 Jan 2005 08:36:14 -0500, Frank W. Zammetti > > <[EMAIL PROTECTED]> wrote: >

Re: [OT] Re: Session Strategy (here's a filter)

2005-01-21 Thread Dakota Jack
Frankly, I think that this thread was, until the sardonic and biting interjection about "very poor etiquette", one of the better ones I've seen recently. It is interesting that anyone could defend this objection. (I should say that Hubert's offering is not seen as a "defense" but as informative.)

Re: Referencing the Local DTD rather than the http:// one

2005-01-21 Thread Craig McClanahan
On Fri, 21 Jan 2005 12:44:51 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote: > At 10:29 AM -0800 1/21/05, Tim wrote: > >Thank you Lukas, Thank you Joe, thanks to the others who tried to help. > >It works now. I just couldnt figure out that you still use the > >PUBLIC keyword with Local SYSTEM refere

Re: Referencing the Local DTD rather than the http:// one

2005-01-21 Thread Niall Pemberton
Why do you need to have local copies of these DTDs in the WEB-INF? Whats wrong with just letting struts pick the "standard" DTDs shipped in the struts.jar? Niall - Original Message - From: "Lukas Bradley" <[EMAIL PROTECTED]> To: Sent: Friday, January 21, 2005 3:52 PM Subject: Re: Refere

Re: Referencing the Local DTD rather than the http:// one

2005-01-21 Thread Tim
that would be great, but couldnt figure it out. I've included struts.jar in the WEB-INF/lib but still doesnt solve it. is there anything else needs to be done? - Original Message - From: "Niall Pemberton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, January 21, 2005

RE: Referencing the Local DTD rather than the http:// one

2005-01-21 Thread Benedict, Paul C
If you're migrating to Struts 1.2, make sure you update all your DOCTYPEs. I believe I once had a problem where I was mixing a few DOCTYPEs and that didn't work so well. Also, if the web container cannot find the DTDs, it may be because your DOCTYPE is wrong. This happened to me. This is the DOCT

Database Pooling

2005-01-21 Thread Scott Purcell
Hello, I am just getting underway with Struts, but have done quite a bit of homework before submitting this query. Before starting with struts, I configured my Tomcat server to handle DBCP through the server.xml for a web-app I configured. But now with struts, I notice that there is a eleme

Re: Database Pooling

2005-01-21 Thread Craig McClanahan
Struts support for the element (which, by the way, is pooled) is deprecated -- the recommended practice is to use your container's ability to configure a JNDI based data source, and then access it using standard JNDI APIs. Examples of that (which are portable to all JNDI based servers) can be fou

Re: Database Pooling

2005-01-21 Thread Vic
Use your container for data source(Tomcat) The data source element in sturts should not be used. Can you point out where in docs or on Struts page it says to use .V Scott Purcell wrote: Hello, I am just getting underway with Struts, but have done quite a bit of homework before submitting this

commons-logging

2005-01-21 Thread Alex Kravets
Couple of question about logging in Struts. I included commons-logging.jar in my classpath, imported Log and LogFactory in my class and have the following: public final class ExecuteQueryForm extends ActionForm { private static Log log = LogFactory.getLog(ExecuteQueryForm.class); public voi

Re: commons-logging

2005-01-21 Thread Will Stranathan
You have to configure the underlying logging package - such as Log4j if you're using that or Java 1.4 logging if you're using that. w On Fri, 21 Jan 2005 16:02:39 -0500 Alex Kravets <[EMAIL PROTECTED]> wrote: Couple of question about logging in Struts. I included commons-logging.jar in my classp

Re: commons-logging

2005-01-21 Thread Alex Kravets
But how do I configure these, I've googled for it, but can't find any specific details. Will Stranathan wrote: You have to configure the underlying logging package - such as Log4j if you're using that or Java 1.4 logging if you're using that. w On Fri, 21 Jan 2005 16:02:39 -0500 Alex Kravets <

html:checkbox or html:multibox- question in implementation

2005-01-21 Thread Rosemary Philip
Hi, I have a jsp which shows a drop down combobox, a text box and submit cancel buttons. the drop down combo box is a collection of objects. to be exact an arraylist which is placed in session in the action class. The object is a technique object which has the following attributes: techCd : type

run two applications where action classes have same names

2005-01-21 Thread Mena Schmid
Hi, I'm trying to run multiple war files, each representing a different version of the same Struts application, under the same JBoss webserver instance (i.e., application_v1.war and application_v2.war both in jboss\server\name\deploy). Because these are two versions of the same application, the ac

Where to send !isTokenValid(request)

2005-01-21 Thread snekse
I have a Best Practices type question. Where should I send the user if isValidToken returns FALSE? Here is the flow we have for this application. 1. User searches for a profile 2. List of matching profiles is displayed 3. User clicks the EDIT link for the profile they want to update 4. Profile i

Re: Action Returning to previous page

2005-01-21 Thread Brandon Mercer
Will Stranathan wrote: Hello again, I've found this interesting and seemingly useful piece of information in a struts book I recently obtained. Dynamic Forwards ActionForward forward = new ActionForward("/do/itemEdit?action=edit"); Then it goes on to tell me to use the runtime parameter technique

RE: Where to send !isTokenValid(request)

2005-01-21 Thread Karr, David
I haven't had a lot of opportunity to validate this strategy, but I believe you have the right idea. Conceptually, the result from a double submit should just look as if it was a single submit. So, the second submit would bypass the processing logic and just forward to view the results that were

Re: Where to send !isTokenValid(request)

2005-01-21 Thread Kishore Senji
On Fri, 21 Jan 2005 16:26:51 -0600, snekse <[EMAIL PROTECTED]> wrote: > I have a Best Practices type question. Where should I send the user > if isValidToken returns FALSE? This is the sort of question you should be asking yourself or probably your business analyst. What do you want to do when th

Re: JDBC Driver

2005-01-21 Thread Eddie Bush
You're preaching to the choir, Erik! LOL dude ... that's a lovely post :-) I'm going to print it and hang it outside my pod for all to see :-) I do agree there's a better way. I fully-acknowledge my lack of expertise to design a "full-featured" solution. I've already raised the level a lot tho

String[5] trunc'ed to String[1]

2005-01-21 Thread Dave Bender
I'm having a problem passing a set of checkbox values from an ActionForm to our database. When I transfer the values of the String[] array, such as a String[5] array, using BeanUtils.populate in my Action, the array gets truncated and comes out as a single String value, actually a String[1]. What

Re: [OT] Re: Session Strategy (here's a filter)

2005-01-21 Thread Eddie Bush
On Fri, 21 Jan 2005 11:04:23 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > Frankly, I think that this thread was, until the sardonic and biting > interjection about "very poor etiquette", one of the better ones I've > seen recently. It is interesting that anyone could defend this > objection. (

Re: [OT] Re: Session Strategy (here's a filter)

2005-01-21 Thread Craig McClanahan
On Fri, 21 Jan 2005 22:03:24 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote: > Perhaps nowadays it is commonplace for people to make such posts, but > it has not always been the case - and it really should not be done. I > didn't invent the custom, I just follow it. Besides being a little overwrough

Re: Filter for Expired Sessions

2005-01-21 Thread Eddie Bush
On Fri, 21 Jan 2005 10:57:02 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > This piece of code and this discussion is CLEARLY not appropriate to > the WIKI and is CLEARLY appropriate right where it is. This is just > more committer hybris and puffery. There should be MORE CODE on the > list. Th

Re: String[5] trunc'ed to String[1]

2005-01-21 Thread Kishore Senji
On Fri, 21 Jan 2005 21:22:23 -0600, Dave Bender <[EMAIL PROTECTED]> wrote: > I'm having a problem passing a set of checkbox values from an ActionForm to > our database. When I transfer the values of the String[] array, such as a > String[5] array, using BeanUtils.populate in my Action, the array g

Re: commons-logging

2005-01-21 Thread Eddie Bush
There are a couple of fine spots to look for information on this: - Javadocs for commons-logging (jakarta.apache.org/commons/logging) Look at the javadoc for the top-level package - Tiles' documentation talks about it. http://struts.apache.org/userGuide/dev_tiles.html#setup (scroll

Struts Web Service project on SF.net

2005-01-21 Thread Frank W. Zammetti
Just wanted to drop a note to let everyone know that I've set up my first SourceForge project... SF will now be the home of my Struts Web Services project. http://sourceforge.net/projects/strutsws/ For those of you that don't know about this project... it's basically a way of allowing you to ta

comparing password and confirm password

2005-01-21 Thread Kalluru Uma. Maheswar
Hi, How do I validate if the user has entered password and confirm password the same? How to do this in validate.xml file? Thanks Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: comparing password and confirm password

2005-01-21 Thread Mike Deegan
validwhen - validator for checking one field against another. see section titled Designing "Complex Validations with validwhen". http://struts.apache.org/userGuide/dev_validator.html "[Since Struts 1.2.0] A frequent requirement in validation design is to validate one field against another (for exa

Re: comparing password and confirm password

2005-01-21 Thread Kishore Senji
Use "validWhen" and you conditional can be (*this* == password) to evaluate whether password2 is equal to password always ((password == null) or (*this* == password)) to evaluate whether password2 is equal to password only when password is not empty Please take a look http://struts.apache.org/use