RE: what's wrong?? ---Connection with MySQL database

2006-03-14 Thread Zheng Wen Zhe
HaaThanks for all reply. It seems google is every thing. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 14 March 2006 14:24 To: Struts Users Mailing List Subject: Re: what's wrong?? ---Connection with MySQL database Zheng Wen Zhe wrote: > Why I

[OT] Re: what's wrong?? ---Connection with MySQL database

2006-03-14 Thread Antonio Petrelli
Dave Newton ha scritto: Total time spent (not including typing this email): about 1 minute, 45 seconds. Time spent typing the email: 2 minutes. Time you'll wait to read a response on the newsgroup: 5-15 minutes. Ability to debug your own app: priceless. There are things that you cannot buy, f

Re: what's wrong?? ---Connection with MySQL database

2006-03-14 Thread Dave Newton
Zheng Wen Zhe wrote: > Why I got this error when initialize web server > Well, let's take a look: > ERROR <14-Mar-2006 13:52:17> Initializing application data source userDB > > org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of > class '' for connect URL 'jdbc:mysql:

Re: what's wrong?? ---Connection with MySQL database

2006-03-14 Thread chuanjiang lo
did you include the mysql jdbc jar in your classpath? On 3/14/06, Zheng Wen Zhe <[EMAIL PROTECTED]> wrote: > > Hi, > > Why I got this error when initialize web server > > > > ERROR <14-Mar-2006 13:52:17> Initializing application data source userDB > > org.apache.commons.dbcp.SQLNestedException

Re: what's wrong?? ---Connection with MySQL database

2006-03-14 Thread ALEX HYDE
I use Tomcat and I've only ever created datasources in web.xml. Have u tried that? Zheng Wen Zhe <[EMAIL PROTECTED]> wrote: Hi, Why I got this error when initialize web server ERROR <14-Mar-2006 13:52:17> Initializing application data source userDB org.apache.commons.dbcp.SQLNestedExc

Re: What's wrong

2005-11-21 Thread Rahul Akolkar
On 11/21/05, Fulgencio Comendeiro, Eduardo <[EMAIL PROTECTED]> wrote: > <% > { > java.util.ArrayList list = new java.util.ArrayList(); > list.add("textouno.texto1"); > list.add("textouno.texto2"); > list.add("textouno.texto3"); > list.add("textouno.texto4"); > pageContext.setAttribute("list",

Re: What's wrong with DTOs?

2005-10-19 Thread Frank W. Zammetti
Let it never be said that the myriad OT discussions on the Struts mailing list aren't worth something :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Wed, October 19, 2005 8:50 am,

RE: What's wrong with DTOs?

2005-10-19 Thread George.Dinwiddie
> From: Leon Rosenberg > > On 10/19/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > > George > > Could you explain on how MVC patterns are fractal? > > Thanks, > > Martin- > > I think there are no fractal patterns, but fractal > architectures, which follows same pattern in different > levels. E

Re: What's wrong with DTOs?

2005-10-19 Thread Ted Husted
On 10/19/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > I think there are no fractal patterns, but fractal architectures, > which follows same pattern in different levels. Example: > a typical 3-tier can be considered MVC > the presentation layer in the 3-tier could itself be an MVC too (jsp > the

Re: What's wrong with DTOs?

2005-10-19 Thread bjester_2004
Thanks to all who responded. I am so much wiser now..:) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Music Unlimite

Re: What's wrong with DTOs?

2005-10-19 Thread Leon Rosenberg
To: > Sent: Tuesday, October 18, 2005 4:49 PM > Subject: RE: What's wrong with DTOs? > > > > From: Leon Rosenberg > > > > P.S. Have you ever considered, that the View itself can be an > > MVC as well? > > Yes, patterns are fractal. > >

Re: What's wrong with DTOs?

2005-10-19 Thread Borislav Sabev
[EMAIL PROTECTED] wrote: Hi Bob, I'll try to give my 1 cent to the topic and also to answer you more concrete because I believe you want some concrete answers, not theoretical conversations. Background: I just started a Struts project with Hibernate. I have chosen to use the Data Access Ob

Re: What's wrong with DTOs?

2005-10-18 Thread Martin Gainty
George Could you explain on how MVC patterns are fractal? Thanks, Martin- - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Tuesday, October 18, 2005 4:49 PM Subject: RE: What's wrong with DTOs? From: Leon Rosenberg P.S. Have you ever considered, that the View it

RE: What's wrong with DTOs?

2005-10-18 Thread George.Dinwiddie
> From: Leon Rosenberg > > P.S. Have you ever considered, that the View itself can be an > MVC as well? Yes, patterns are fractal. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[OT] Re: What's wrong with DTOs?

2005-10-18 Thread Frank W. Zammetti
Only fair to mark this thread OT by now, hope no one minds... Talking about the view that considers what goes on in Struts Actions to be part of the view, here's why I don't agree with that perception... In that view, if I have a webapp and later want to make it a Swing-based app, I would be thro

Re: What's wrong with DTOs?

2005-10-18 Thread Vic Cekvenich
+1. .V Christian Bollmeyer wrote: [EMAIL PROTECTED] schrieb: +1. The first thing I always preach new developers on my team is that they should think the entire web tier away and replace it (mentally) with a Swing or whatever client, without changing anything in the subsequent layers, and the

Re: What's wrong with DTOs?

2005-10-18 Thread Leon Rosenberg
On 10/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I can't answer for Ted, but I consider *all* of MVC to be > > part of the > > > view tier. The Model is just the presentation layer's view of the > > > business system. It should be abstract and opaque and > > contain all of > > > th

Re: What's wrong with DTOs?

2005-10-18 Thread Christian Bollmeyer
[EMAIL PROTECTED] schrieb: +1. The first thing I always preach new developers on my team is that they should think the entire web tier away and replace it (mentally) with a Swing or whatever client, without changing anything in the subsequent layers, and the application still has to work as usual

RE: What's wrong with DTOs?

2005-10-18 Thread George.Dinwiddie
> -Original Message- > From: Dave Newton > I'm still not clear on how the entirety of MVC is the V It's not. MVC is a View Tier pattern, though. Within the pattern it separates the Model, an abstraction of the business logic, the View, which displays a representation of the Model, and th

Re: What's wrong with DTOs?

2005-10-18 Thread Dave Newton
[EMAIL PROTECTED] wrote: On 10/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I can't answer for Ted, but I consider *all* of MVC to be part of the view tier. The Model is just the presentation layer's view of the business system. It should be abstract and opaque and contain all o

RE: What's wrong with DTOs?

2005-10-18 Thread George.Dinwiddie
> From: Leon Rosenberg > On 10/18/05, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > > -Original Message- > > > From: Frank W. Zammetti > > [snip] > > > > > > Ted, this seems to be saying that you consider the Actions to be > > > part of the view... is that what you intended?

Re: What's wrong with DTOs?

2005-10-18 Thread Leon Rosenberg
On 10/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Frank W. Zammetti > [snip] > > > > Ted, this seems to be saying that you consider the Actions to > > be part of the view... is that what you intended? > > I can't answer for Ted, but I conside

RE: What's wrong with DTOs?

2005-10-18 Thread George.Dinwiddie
> -Original Message- > From: Frank W. Zammetti [snip] > > Ted, this seems to be saying that you consider the Actions to > be part of the view... is that what you intended? I can't answer for Ted, but I consider *all* of MVC to be part of the view tier. The Model is just the pres

Re: What's wrong with DTOs?

2005-10-18 Thread Frank W. Zammetti
On Tue, October 18, 2005 11:05 am, Ted Husted said: > The question is whether we want to stop transfering the data when we > get to the servlet (or filter or Action), or continue to transfer the > data on to the model. If we stop at the Action layer, and start > making model calls there, we elimin

Re: What's wrong with DTOs?

2005-10-18 Thread Ted Husted
On 10/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > You may ask now what's the place for HttpServletRequest and its company. I > think its natural place is inside the document itself, hidden inside its > code, so that the interface is independent from the use of servlet > technology. In fac

Re: What's wrong with DTOs?

2005-10-18 Thread brenmcguire
I wish to tell you a story, to show because I changed my mind about DTOs. Once upon a time I used to write GUIs (i.e. Swing GUIs). I have to tell that I used to mix controller code with model. But when I think about that "era" I noticed that it was pretty easy to write code. Why now is it so diffic

Re: What's wrong with DTOs?

2005-10-17 Thread Ted Husted
The original idea was that one Data Transfer Object could be used to represent many domain objects. Perhaps even *all* the domain objects. The view tier could then ferry back and forth this one object instead of having to deal with a plethora of finely grained objects. All the view layer sees is a

Re: What's wrong with DTOs?

2005-10-17 Thread Frank W. Zammetti
On Mon, October 17, 2005 1:15 pm, Dave Newton said: > My only response would be that ultimately, I still prefer to have less > coupling: with a POJO bean and a DAO it gives me one more place I can > change implementation. That said, if you added a "setDao" or whatever to > the above Customer I migh

Re: What's wrong with DTOs?

2005-10-17 Thread Dave Newton
Frank W. Zammetti wrote: So, is another way of saying what your saying is that you feel that DTO+DAO=Something Good(tm)? So, if instead of having: class CustomerDTO { public setFirstName(String); public setLastName(String); public getFirstName(String); public getLastName(String); } class C

Re: What's wrong with DTOs?

2005-10-17 Thread Rafael Nami
What I agree is that objects have to be rich in information AND associations. I don´t like(it´s just my opinion) reflecting my tables in my Objects. Like, if I have a Category and a Product, I like to associate these two objects, not just add productId in Category. About the methods, I had all the

Re: What's wrong with DTOs?

2005-10-17 Thread Frank W. Zammetti
So, is another way of saying what your saying is that you feel that DTO+DAO=Something Good(tm)? So, if instead of having: class CustomerDTO { private String firstName; private String lastName; private String id; public setFirstName(String); public setLastName(String); public setId(Str

Re: What's wrong with DTOs?

2005-10-17 Thread Rafael Nami
[EMAIL PROTECTED] said: *"I think it is best to use directly domain objects, i.e. ye old (but good) OOP with "real" objects."* ** +1 :) Best Regards Rafael Mauricio Nami 2005/10/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > I'm not a guru but... > Once I thought that DTOs are a nice way to se

Re: What's wrong with DTOs?

2005-10-17 Thread brenmcguire
I'm not a guru but... Once I thought that DTOs are a nice way to separate the webapp's layers, just because they are simply data containers and have no logic. But now I think they are completely useless, because they have no logic! I know it is stupid to use the same answer for two opposite points

Re: What's wrong with DTOs?

2005-10-17 Thread Aldo Vadillo Batista
I think DTOs is the best solution. However, is tedious to copy properties. Yes, I know that you can use BeanUtils but sometimes you need a DTO that is a combinations of two model objects and you have to use getters and setters. 2005/10/17, Vic Cekvenich <[EMAIL PROTECTED]>: > > I don't think anyt

Re: What's wrong with DTOs?

2005-10-17 Thread Vic Cekvenich
I don't think anything wrong w/ DTO. You have your DAO, your model... in my case I use collections as DTO, but beanutils is fine. .V [EMAIL PROTECTED] wrote: Hi, Gurus, Background: I just started a Struts project with Hibernate. I have chosen to use the Data Access Object with (Abstract F

Re: What's wrong in ApplicationResources.properties?

2005-09-26 Thread Laurie Harper
What error do you get when you change the key? Most likely you're missing the corresponding entries in your resource bundle (MessageResources.properties or whatever you have configured in struts-config.xml). L. 梁炳場 wrote: I change to bean key to main.welcome, the webpage can be displayed. If

RE: What's wrong in ApplicationResources.properties?

2005-09-26 Thread David G. Friedman
Is the problem when you display this page (a message resources problem) or when you click on one of the links to this page that the new page does not show properly (an Action path mapping problem) ? Regards, David -Original Message- From: ±ç¬±³õ [mailto:[EMAIL PROTECTED] Sent: Monday, Sep

Re: What's wrong? [prepopulating a form...]

2005-07-10 Thread lk
Gotcha Oh poor man :-) The problem was in the form: I used the attribute value="" for the html:text tag from an old form ByE If I try to print on that form the bean polizza_newForm the properties are correct: gives: DynaActionForm[dynaClass=polizza_newForm,nome=test] My form is