Re: tile: including one layout .jsp inside another?

2004-09-01 Thread brenmcguire
Whoops! in point 4) I meant: definition name=main.usable extends=main put name=body value=myBody / /definition Sorry for the mistake. Ciao Antonio Petrelli [EMAIL PROTECTED] wrote: Mmm... I think there is some misunderstanding in your use of Tiles. If I understood, maybe you want to

RE: ActionForm: simply calling reset() or have to recreate one ?

2004-09-01 Thread lixin chu
I see. Checked API doc, saw getServlet() call for Action. Guess this is what I need to use. thanks ! --- Paul McCulloch [EMAIL PROTECTED] wrote: I think it was me who pointed you down that route to destroy recreate a form bean to clear any data in it. reset() is not used for this purpose

Re: How long is Action's scope?

2004-09-01 Thread Brett Connor
Leandro Melo wrote: Hi, for how long will an Action be in memory? Here's the point. I have a situation where the user register his/her company in my application. He/she uses a wizard of 4 jsp pages, as he/she submits one, he/she is redirected to the other one. In this situation i keep a reference

RE: Dots in form names creates problems with Javascript Validator function names

2004-09-01 Thread Amit Kumar Sharma
Hi, Instead of using for names in that case use. This should not give any problem := Documet.forms[0].elements[0] When formname and somename has dots in between. Accessing elements in this fashion will give problem := Documet.formname.getElementsById(somename) I mean to say access the

RE: ActionForm: simply calling reset() or have to recreate one ?

2004-09-01 Thread Paul McCulloch
You don't event need that. As I said - servlet is a protected instance variable of Action, so you can just use 'servlet' in code in your Action desdendants. Paul -Original Message- From: lixin chu [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 8:29 AM To: Struts Users

Re: ActionForm: simply calling reset() or have to recreate one ?

2004-09-01 Thread Shinobu Kawai
Hi Paul, You don't event need that. As I said - servlet is a protected instance variable of Action, so you can just use 'servlet' in code in your Action desdendants. I wonder why it's not private? Not very encapsulated... Best regards, -- Shinobu Kawai -- Shinobu Kawai [EMAIL PROTECTED],

RE: Identifying the 'clicked' line when iterating over collection

2004-09-01 Thread andy wix
Hi, I am trying to follow the advice given yesterday but am now baffled by the basic jstl stuff. I have cut it down to basics and still get no output actually written to the page. I've tried all variations on the theme (have the arraylist in the session, use c:outs in the TD tags etc). The

Re: ActionForm: simply calling reset() or have to recreate one ?

2004-09-01 Thread Yves Sy
Probably to discourage subclasses from creating/maintaining their own instance of ActionServlet... But then it doesn't make any sense to do that anyway, although you'll never believe what some users end up coming up with. I'd be very interested to hear the answer to this one. -Yves- On Wed, 01

Action Class Reusable

2004-09-01 Thread Jitesh Sinha
Hi All, Is there a way we can make our Action Classes reusable across different modules? Generally we have one Action class for every module.Maybe,if we put our business logic in different business classes (particular to a module) and make these business classes implement a common interface? I

Where Do I Download the Artimus Source Code?

2004-09-01 Thread Caroline Jen
I want to download the Artimus example source code in the Struts in Action. Where (what is the URL) do I find the download? __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail

Re: Action Class Reusable

2004-09-01 Thread Yves Sy
Hi, Some action classes can be made reusable, such as actions that add attachments. You have to try to make your code as generic as possible in these actions and simply define a different path in the forward of the corresponding ActionMapping. But these are generally rare cases. Often times, its

Re: [OT] Enter key listener for form submittal

2004-09-01 Thread Erik Weber
And, now I will repost the code which was omitted in a reply: Erik Weber wrote: I found this JavaScript, which is supposed to listen for the Enter key on any browser (and submit the form on keypress). However, it doesn't seem to be working in IE: script language=JavaScript if (document.layers)

[OT] Funny phone call from my Dad:)

2004-09-01 Thread Rick Reumann
This should give most of you a good chuckle so I figued I'd share.. My dad has never used a computer until about a week ago, when I convinced him to check out going online so he can pick up golf news and scores. I decided to set up a yahoo account for him and I e-mailed him the username and

Re: [OT] Enter key listener for form submittal

2004-09-01 Thread Rick Reumann
Erik Weber wrote: I need it because I have multiple buttons. On some screens, the Enter key triggers the Cancel button, which is not desirable. The Cancel button appears before the Submit button. I would think making an extra submit button that was hidden (using css) would be easier. -- Rick

RE: [OT] Funny phone call from my Dad:)

2004-09-01 Thread Matthias Wessendorf
:) have you never asked yourself the same ?!? ;-) -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 4:09 PM To: Struts Users Mailing List Subject: [OT] Funny phone call from my Dad:) This should give most of you a good

RE: [OT] Funny phone call from my Dad:)

2004-09-01 Thread Jitesh Sinha
That is VERY natural Rick...I think that will hapeen in 100% of the cases for people absolutely new to computers. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 7:39 PM To: Struts Users Mailing List Subject: [OT] Funny phone call

Re: [OT] Enter key listener for form submittal

2004-09-01 Thread Christoph Kutzinski
Slattery, Tim - BLS wrote: I found this JavaScript, which is supposed to listen for the Enter key on any browser (and submit the form on keypress). However, it doesn't seem to be working in IE: I don't think you need this. By default, pushing the Enter key is equivalent to clicking the Submit

Re: [OT] Funny phone call from my Dad:)

2004-09-01 Thread Michael McGrady
Jitesh Sinha wrote: That is VERY natural Rick...I think that will hapeen in 100% of the cases for people absolutely new to computers. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 7:39 PM To: Struts Users Mailing List Subject: [OT]

Re: [OT] Funny phone call from my Dad:)

2004-09-01 Thread Rick Reumann
Jitesh Sinha wrote: That is VERY natural Rick...I think that will hapeen in 100% of the cases for people absolutely new to computers. True, although I think you get the same asterisks at the ATM machine when you enter your password -- then again I think those machines scare my dad also - I

Re: [OT] Funny phone call from my Dad:)

2004-09-01 Thread Yves Sy
We all laugh now but we might just end up like that ourselves someday :) I myself have been stuck with the grunge music of the early 90's already. I try to keep up with the new stuff but... its just different! :( On Wed, 01 Sep 2004 10:25:32 -0400, Rick Reumann [EMAIL PROTECTED] wrote: Jitesh

Re: [OT] Funny phone call from my Dad:)

2004-09-01 Thread Michael McGrady
Yves Sy wrote: We all laugh now but we might just end up like that ourselves someday :) I myself have been stuck with the grunge music of the early 90's already. I try to keep up with the new stuff but... its just different! :( On Wed, 01 Sep 2004 10:25:32 -0400, Rick Reumann [EMAIL PROTECTED]

Re: [OT] Enter key listener for form submittal

2004-09-01 Thread Erik Weber
Rick, this is a new concept to me. Is the strategy to make this button the first one in line on each screen, and therefore it will be the target of the Enter key? Would this button then need an onclick to submit the form, or is that not necessary? Thanks, Erik Rick Reumann wrote: Erik Weber

Re: [OT] Funny phone call from my Dad:)

2004-09-01 Thread Erik Weber
To quote Homer Simpson (when he was attempting to use a computer): Whew! This is hard work. Where's my Tab? :D Erik Rick Reumann wrote: Jitesh Sinha wrote: That is VERY natural Rick...I think that will hapeen in 100% of the cases for people absolutely new to computers. True, although I

How to specify which resource file to use in validation.xml?

2004-09-01 Thread PC Leung
I have two resources files. How can I specify which resource file to use in validation.xml? message-resources parameter=com.erp.quotation.ApplicationResources key=quotation null=false / message-resources key=user

Re: [OT] Enter key listener for form submittal

2004-09-01 Thread Rick Reumann
Erik Weber wrote: Would this button then need an onclick to submit the form, or is that not necessary? I haven't had to use the approach but I don't think it would be necessary to add an onclick. Just make it's a regular submit button and make sure it's hidden after the html:form tag -- Rick

Re: [OT] Funny phone call from my Dad:)

2004-09-01 Thread Susan Bradeen
Rick Reumann [EMAIL PROTECTED] wrote on 09/01/2004 10:25:32 AM: Jitesh Sinha wrote: That is VERY natural Rick...I think that will hapeen in 100% of the cases for people absolutely new to computers. True, although I think you get the same asterisks at the ATM machine when you

Re: Basic JSTL c:forEach not working

2004-09-01 Thread Bill Siggelkow
Okay, Andy -- JSTL operates on scoped variables not scripting variables. You are trying to access scripting variables. I found this good primer on JSTL that explains this at http://www-106.ibm.com/developerworks/java/library/j-jstl0211.html andy wix wrote: Hi, In trying to resolve another

Re: [OT] Enter key listener for form submittal

2004-09-01 Thread Erik Weber
David Durham wrote: Erik Weber wrote: I found this JavaScript, which is supposed to listen for the Enter key on any browser (and submit the form on keypress). However, it doesn't seem to be working in IE: script language=JavaScript if (document.layers) document.captureEvents(Event.KEYDOWN);

Re: How to specify which resource file to use in validation.xml?

2004-09-01 Thread Bill Siggelkow
IIRC, the Validator can only pull from the default message resources -- that is the one configured without a key. Bill Siggelkow PC Leung wrote: I have two resources files. How can I specify which resource file to use in validation.xml? message-resources

Re: [OT] Enter key listener for form submittal

2004-09-01 Thread David Durham
Erik Weber wrote: Also, does document.forms[0].submit() trigger the submit with a submit value of cancel? Does that make since? Hmm, would it not fail also on Mozilla if that were true? Perhaps. I just glanced at the thread, so I have a cursory understanding of the problem. - Dave

RE: [OT] Enter key listener for form submittal

2004-09-01 Thread Barnett, Brian W.
Out of curiosity, why is an enter key listener necessary in order to submit a form? -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 9:18 AM To: Struts Users Mailing List Subject: Re: [OT] Enter key listener for form submittal David

RE: Is Tiles the right way to go?

2004-09-01 Thread Jim Barrows
-Original Message- From: PC Leung [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 5:55 PM To: Struts Users Mailing List Subject: Re: Is Tiles the right way to go? How about other tools such as sitemesh or other? Do I get paid? Yes. Most of the time clients don't

RE: Action Class Reusable

2004-09-01 Thread Jim Barrows
-Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 5:43 AM To: Struts Users Mailing List Subject: Action Class Reusable Hi All, Is there a way we can make our Action Classes reusable across different modules? Generally we

ActionForm.validate() Help

2004-09-01 Thread Matthew J. Vincent
Hello all, I just downloaded the latest stable build of Struts 1.2. What is a best practice approach of handling validation in the ActionForm's validate method since ActionError was deprecated? Also, how should one display the messages in the JSP? Currently I use: logic:messagesPresent

Re: [OT] Funny phone call from my Dad:)

2004-09-01 Thread struts lover
Hey how did your dad get the username and password you emailed, without logging into the account --- Rick Reumann [EMAIL PROTECTED] wrote: This should give most of you a good chuckle so I figued I'd share.. My dad has never used a computer until about a week ago, when I convinced

Re: [OT] Funny phone call from my Dad:)

2004-09-01 Thread Rick Reumann
struts lover wrote: Hey how did your dad get the username and password you emailed, without logging into the account Oh, I was able to talk my mom through setting up a pop account for him using a reumann.net e-mail. She showed him to get his mail using Thunderbird. The yahoo account was

dispatch action / validation

2004-09-01 Thread andmer
Is there a way for dispatch actions to have unique validation requirements based on the parameter? So for instance I could have the action.do?method=view dispatch skip validation, but the action.do?method=edit do the validation? Do dispatch actions and validation allow for this degree of

RE: ActionForm.validate() Help

2004-09-01 Thread Matthias Wessendorf
hi, I use this in ActionForms: snip public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if( (this.nachname==null) || (this.nachname.length()1) )

Re: Action Class Reusable

2004-09-01 Thread Craig McClanahan
On Wed, 1 Sep 2004 18:13:08 +0530, Jitesh Sinha [EMAIL PROTECTED] wrote: Hi All, Is there a way we can make our Action Classes reusable across different modules? Generally we have one Action class for every module.Maybe,if we put our business logic in different business classes (particular

Re: dispatch action / validation

2004-09-01 Thread Rick Reumann
[EMAIL PROTECTED] wrote: Is there a way for dispatch actions to have unique validation requirements based on the parameter? It's easiest to just provide different action mapping names (which could still refer to the same DispatchAction class) and then use one of the ValidatorActionForms which

RE: dispatch action / validation

2004-09-01 Thread Jim Barrows
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 10:29 AM To: [EMAIL PROTECTED] Subject: dispatch action / validation Is there a way for dispatch actions to have unique validation requirements based on the parameter?

To Show Web Home Page That Consists of Tiles

2004-09-01 Thread Caroline Jen
How do I specify the action mapping in the struts-config.xml to show a web home page that consists of tiles? The problem is with the action mapping part. My index.jsp in the root directory has these two lines: %@ taglib uri=/tags/struts-logic prefix=logic % logic:redirect forward=welcome/ and

RE: dispatch action / validation

2004-09-01 Thread andmer
Nevermind, looks like MappingDispatchAction in 1.2.2 allows for what I want. http://struts.apache.org/api/org/apache/struts/actions/MappingDispatchAction .html Thanks, -Andre -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 1:38 PM

RE: To Show Web Home Page That Consists of Tiles

2004-09-01 Thread Jim Barrows
-Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 10:47 AM To: [EMAIL PROTECTED] Subject: To Show Web Home Page That Consists of Tiles snip/ .frame.Validation is a piece of tile. The error message I got is: No

RE: WARNING: Struts 1.2.2 Problems

2004-09-01 Thread andmer
Is there going to be a quick 1.2.3 update for these issues? Thanks, -Andre -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 12:19 AM To: Struts Users Mailing List Subject: WARNING: Struts 1.2.2 Problems The new Struts 1.2.2

RE: To Show Web Home Page That Consists of Tiles

2004-09-01 Thread Caroline Jen
Hi, I have the following tags in my struts.config.xml: plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ set-property property=definitions-debug value=1 / set-property

RE: To Show Web Home Page That Consists of Tiles

2004-09-01 Thread Jim Barrows
-Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 11:09 AM To: Struts Users Mailing List Subject: RE: To Show Web Home Page That Consists of Tiles Hi, I have the following tags in my struts.config.xml: plug-in

Re: WARNING: Struts 1.2.2 Problems

2004-09-01 Thread James Mitchell
Yes, very soon. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 2:04 PM Subject: RE: WARNING: Struts 1.2.2 Problems Is there

skipping validation rules file from '/WEB-INF/validation.xml'

2004-09-01 Thread Caroline Jen
When I start my Tomcat 5.0.27, I saw the following message in the console: SEVERE: skipping validation rules file from '/WEB-INF/validation.xml'. No stream could be opened. What is going on? Something is wrong with the validation.xml? or something is wrong with the validation plug-in that I

RE: skipping validation rules file from '/WEB-INF/validation.xml'

2004-09-01 Thread David Friedman
Jen, What is the entry in your struts-config.xml for validation? Is there a WEB-INF/validation.xml or WEB-INF/validations.xml? Regards, David -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 2:16 PM To: [EMAIL PROTECTED] Subject:

RE: To Show Web Home Page That Consists of Tiles

2004-09-01 Thread Caroline Jen
I followed your instruction and changed the action mapping accordingly. Now, I got this error: javax.servlet.jsp.JspException: Cannot create rewrite URL: java.net.MalformedURLException: Cannot retrieve ActionForward named baseStyle I searched my entire struts-config.xml, I do not see anything

RE: skipping validation rules file from '/WEB-INF/validation.xml'

2004-09-01 Thread Caroline Jen
Thanks for replying to my question. The validation entry in my struts-config.xml looks like: plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in

RE: To Show Web Home Page That Consists of Tiles

2004-09-01 Thread Jim Barrows
-Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 11:27 AM To: Struts Users Mailing List Subject: RE: To Show Web Home Page That Consists of Tiles I followed your instruction and changed the action mapping accordingly. Now, I

RE: skipping validation rules file from '/WEB-INF/validation.xml'

2004-09-01 Thread David Friedman
Jen/Caroline, Why are you listing a plugIn in your struts-config.xml when the files described within the plugIn config don't exist? If course you'll get error messages. The validation-rules.xml describes to the plugIn how to configure Javascript and server-side validation while the

RE: form validation

2004-09-01 Thread Jim Barrows
-Original Message- From: Leung, Albert [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 11:56 AM To: Struts Users Mailing List Subject: form validation For some reason I can't get form validation to work for a particular project. If I take the same ValidatorForm,

RE: form validation

2004-09-01 Thread Leung, Albert
For some reason I can't get form validation to work for a particular project. If I take the same ValidatorForm, use the same validation entry in formset, and update the struts-config to use the same form bean and action it works fine in another project. The project that has problems

RE: validate in ActionForm not working for errors

2004-09-01 Thread David Friedman
Are you sure the URL of the submit (when there are errors) isn't redirectly somewhere? Have you verified that the url is still /login.do when an error is submitted in your browser's URL location bar? Regards, David -Original Message- From: Saurabh Bhatla [mailto:[EMAIL PROTECTED] Sent:

Re: form validation

2004-09-01 Thread Bill Siggelkow
Leung, Albert wrote: For some reason I can't get form validation to work for a particular project. If I take the same ValidatorForm, use the same validation entry in formset, and update the struts-config to use the same form bean and action it works fine in another project. The project that has

RE: form validation

2004-09-01 Thread Leung, Albert
The action definition is exactly the same in both projects. Albert, The action ... has an input parameter which the validate=true will go to if any validation fails. That should be a JSP (/index.jsp), tile (.some.Tile.Name), or action (/index). Regards, David -Original

RE: form validation

2004-09-01 Thread Leung, Albert
It definitely exists. The action definition, the input forms, form beans definition, validation entries are exactly the same in both projects. -Original Message- From: Bill Siggelkow [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 3:14 PM To: [EMAIL PROTECTED] Subject: Re:

RE: form validation

2004-09-01 Thread Jim Barrows
-Original Message- From: Leung, Albert [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 12:13 PM To: Struts Users Mailing List Subject: RE: form validation For some reason I can't get form validation to work for a particular project. If I take the same

RE: form validation

2004-09-01 Thread Leung, Albert
Yes they are exactly the same. So 1, 2, and 3 are ok. For some reason I can't get form validation to work for a particular project. If I take the same ValidatorForm, use the same validation entry in formset, and update the struts-config to use the same form bean and action it

RE: form validation

2004-09-01 Thread David Friedman
Albert, When all that is correctly setup, I've only ever had problems with a misspelled forward inside my action or missing JSP/html/other pages. I've had a blank page show up when the forward was intup and I meant input. Have you checked the code in your action? Have you turned on the logging

RE: form validation

2004-09-01 Thread Jim Barrows
-Original Message- From: Leung, Albert [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 12:31 PM To: Struts Users Mailing List Subject: RE: form validation Yes they are exactly the same. So 1, 2, and 3 are ok. Does the jsp/action/tile actually exist? If it

RE: form validation

2004-09-01 Thread Leung, Albert
David, I've checked everything thoroughly. I've eliminated spelling errors and missing references. It would be a great help if you could show me how to turn on debugging and commons logging. Regards, Albert -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent:

RE: form validation

2004-09-01 Thread Susan Bradeen
Jim Barrows [EMAIL PROTECTED] wrote on 09/01/2004 03:35:14 PM: -Original Message- From: Leung, Albert [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 12:31 PM To: Struts Users Mailing List Subject: RE: form validation Yes they are exactly the same. So

RE: form validation (How to setup commons-logging to debug)

2004-09-01 Thread David Friedman
I haven't done this (manually - I've been copying my blank setup) in a while, but the basic steps are: a) Make sure you have a commons-logging jar in WEB-INF/lib I use commons-logging-1.0.3.jar (Struts v1.1) [Note: there is now a 1.0.4 version at http://jakarta.apache.org/commons b) Create the

Hibernate VS ibatis, which is better?

2004-09-01 Thread struts Dude
Hello Just want some feedback from ppl who know both. Which one is more powerful and easier to use? Personally I only know iBatis but seeing so many web app built on hibernate and even a book on hibernate to be published, just wandering if it's worth my time to learn hibernate. Thanks

Re: Hibernate VS ibatis, which is better?

2004-09-01 Thread dhay
Just started using Hibernate, and it is VERY cool! Tie that in with Spring, and Struts, and you have quite a combination. |-+ | | struts Dude| | | [EMAIL PROTECTED]| | | o.nz| |

RE: Hibernate VS ibatis, which is better?

2004-09-01 Thread Joe Hertz
I love Hibernate. Really do. Only bad thing about it is that I find is that I get better Hibernate help here than I do in the Hibernate forum. Which well...you see what that doesn't bother me :-) Apparently Spring fixes my gripe with Hibernate/Struts about constantly opening

Re: Hibernate VS ibatis, which is better?

2004-09-01 Thread Jason King
This is very much a YMMV type question. If your background/experience/expertise is in database then ibatis (where the sql is all clearly deliniated) is a fine choice. If you're a java person, then having a wrapper like Hibernate to shield you from the SQL may be more to your liking. Ask

RE: Hibernate VS ibatis, which is better?

2004-09-01 Thread Jim Barrows
-Original Message- From: struts Dude [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 1:37 PM To: Struts Users Mailing List Subject: Hibernate VS ibatis, which is better? Hello Just want some feedback from ppl who know both. Which one is more powerful and

RE: Hibernate VS ibatis, which is better?

2004-09-01 Thread David Friedman
+1 on the Why should I use Spring and beat me over the head until I use it statement. :) -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 4:47 PM To: 'Struts Users Mailing List' Subject: RE: Hibernate VS ibatis, which is better? I love

RE: Hibernate VS ibatis, which is better?

2004-09-01 Thread Nail, Evan Burke
I've just looked at Hibernate a little so I am no expert, but it was pretty powerful. But we really didn't need most of what it did, so we went with iBatis. Although I doubt I am pronouncing it right even now. We just wanted something to map beans to sql and didn't want to worry about a new QL

RE: Hibernate VS ibatis, which is better?

2004-09-01 Thread dhay
In my limited experience of it, it produces much cleaner code, and seperates concerns very well. For example, NONE (yep, none) of my code has any transaction information in it! It is abstracted out using Spring's AOP, and instead is defined in Spring's xml file (very easily) and seamlessly

RE: form validation (How to setup commons-logging to debug)

2004-09-01 Thread Leung, Albert
I'm sorry. I've check the documentation at the Jakarta site and I still don't know what you mean by org.apache.commons.logging.simplelog.log.SOMECLASS=LEVEL What is the SOMECLASS? -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 4:23

RE: form validation (How to setup commons-logging to debug)

2004-09-01 Thread Jim Barrows
-Original Message- From: Leung, Albert [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 2:03 PM To: Struts Users Mailing List Subject: RE: form validation (How to setup commons-logging to debug) I'm sorry. I've check the documentation at the Jakarta site and I

RE: form validation (How to setup commons-logging to debug)

2004-09-01 Thread Leung, Albert
I'm going to give that a try. Thanks. -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 5:07 PM To: Struts Users Mailing List Subject: RE: form validation (How to setup commons-logging to debug) -Original Message- From: Leung,

RE: Hibernate VS ibatis, which is better?

2004-09-01 Thread Joe Hertz
I go for Hibernate for one reason: IMHO: If you *really* want to use SQL, and make youre life easy, you'd avoid thinking in terms of persisting specific objects. You'd create one ultimately reusable object. Every app would use the same object model: at the top, there'd be an object which mimic'd

RE: form validation (How to setup commons-logging to debug)

2004-09-01 Thread David Friedman
Jim said it well by writing: com.yourcompany.youraplication.package1.yourclass The FQN of the class you want to debug. But, I'm feeling wordy today (day off) so I'll explain even more (yap yap yap, yeah, I know ... I'll be quiet after today ends) By SOMECLASS or SOMEPACKAGE,

[OT] Why should I use Spring (RE: Hibernate VS ibatis, which is better?)

2004-09-01 Thread Joe Germuska
At 4:50 PM -0400 9/1/04, David Friedman wrote: +1 on the Why should I use Spring and beat me over the head until I use it statement. The Spring framework is a lot of things, and I'm not even interested in using most of them at all. However, I find that the base framework provides a nice way to

RE: Hibernate VS ibatis, which is better?

2004-09-01 Thread David Friedman
What is this? You can use both now? I thought I'd skim over IBatis and downloaded their PDF for their DAO and it mentions being able to use Hibernate sessions and transactions. Amusing. :) -David, going speed crazy with a new home DSL line. -Original Message- From: Rick Reumann

RE: form validation (How to setup commons-logging to debug)

2004-09-01 Thread Leung, Albert
Thanks. You wouldn't mind telling where the output goes? Is it going to STDOUT? -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 5:12 PM To: Struts Users Mailing List Subject: RE: form validation (How to setup commons-logging to debug)

RE: form validation (How to setup commons-logging to debug)

2004-09-01 Thread Jim Barrows
-Original Message- From: Leung, Albert [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 2:27 PM To: Struts Users Mailing List Subject: RE: form validation (How to setup commons-logging to debug) Thanks. You wouldn't mind telling where the output goes? Is it going

RE: form validation (How to setup commons-logging to debug)

2004-09-01 Thread Leung, Albert
Anywhere for now is fine with me. -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 5:26 PM To: Struts Users Mailing List Subject: RE: form validation (How to setup commons-logging to debug) -Original Message- From: Leung,

RE: form validation (How to setup commons-logging to debug)

2004-09-01 Thread Jim Barrows
-Original Message- From: Leung, Albert [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 2:31 PM To: Struts Users Mailing List Subject: RE: form validation (How to setup commons-logging to debug) Anywhere for now is fine with me. The very nice log4j manuals will be

Log4j output

2004-09-01 Thread andy wix
Hi, I am using Log4j for my web app logging. Does anyone know how to set it up such that the Struts output goes to one file and my own log statements go to another file. Thanks, Andy _ Want to block unwanted pop-ups? Download the

RE: form validation (How to setup commons-logging to debug)

2004-09-01 Thread Leung, Albert
Thanks Jim. I'll take a look. -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 5:33 PM To: Struts Users Mailing List Subject: RE: form validation (How to setup commons-logging to debug) -Original Message- From: Leung, Albert

Re: How long is Action's scope?

2004-09-01 Thread Leandro Melo
I could save the reference to stateful session ejb and jsessionid in a map in HttpSession. This way, things wouldn't get counfusing, am i right? --- Brett Connor [EMAIL PROTECTED] escreveu: Leandro Melo wrote: Hi, for how long will an Action be in memory? Here's the point. I have a

Re: Hibernate VS ibatis, which is better?

2004-09-01 Thread Pedro Salgado
1. I think all of you are missing one big feature of iBatis: the Dao framework. Even though, you like Hibernate, JDBC, SQL maps or any other kind/package for persistence, in my opinion iBatis is always present (maybe not for EJBs... but I cant talk of what I havent studied). The Dao

Re: Hibernate VS ibatis, which is better?

2004-09-01 Thread Pedro Salgado
On 1/9/04 11:31 pm, Pedro Salgado [EMAIL PROTECTED] wrote: 1. I think all of you are missing one big feature of iBatis: the Dao framework. Well this aint exactly true... David Friedman pointed that already... sorry :( Even though, you like Hibernate, JDBC, SQL maps or any other

Re: Hibernate VS ibatis, which is better?

2004-09-01 Thread struts Dude
Thanks guys. Seeing so many support for either side, I might as well flip a coin to decide whether or not to learn hibernate. ;) - Original Message - From: struts Dude [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, September 02, 2004 8:36 AM Subject:

RE: Hibernate VS ibatis, which is better?

2004-09-01 Thread Jim Barrows
-Original Message- From: struts Dude [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 3:45 PM To: Struts Users Mailing List Subject: Re: Hibernate VS ibatis, which is better? Thanks guys. Seeing so many support for either side, I might as well flip a coin to

RE: Hibernate VS ibatis, which is better?

2004-09-01 Thread David Friedman
FYI... Hibernate has a createSQLQuery method in the Session class plus allows for named SQL Queries from a configuration file so you can have it fill in the ?'d (question marked) parameters. Regards, David -Original Message- From: Nail, Evan Burke [mailto:[EMAIL PROTECTED] Sent:

html:multibox problem!!

2004-09-01 Thread RamKumar
Hi, I have a question and 4 choices.You can select multiple answers for single question. I want to do skiplogic for this question .i.e. when the users selects choices 1 3 go to 5th page.Like this there will be multiple combinations(we limited to 4 combinations for 4 choices question) I am