Re: Any good Open source project using Struts2 + Hibernate+Spring I can learn from ?

2009-10-02 Thread Rafael Nami
Appfuse 2 (http://appfuse.org)

2009/10/2 Antonio Petrelli antonio.petre...@gmail.com

 2009/10/2 BlackKnight ar3...@gmail.com:
  Are there any good open sourced project using SSH?

 Well, in fact I mean something else for SSH, anyway the Roller
 weblogger uses it:
 http://roller.apache.org/

 Antonio

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-01 Thread Rafael Nami

You can choose to maintain the value from this select in a hidden field,
that will be submitted with your page. I was used to use another approach,
making the select enabled in the submit, but it was a great meal to hackers.

2006/11/1, Mississippi John Hurt [EMAIL PROTECTED]:


Help, I can make html:text readonly by setting readonly=true which
works.
html:select has no readonly attribute, only a disabled. If I use
disabled
attribute, then the value of the select is no longer recognized and my
form
validation says its required.  How can I make the html:select disabled
or
readonly while keeping the values it has passing back to the action when
form is submitted. Thanks.




Re: [FRIDAY] No mercy

2006-06-16 Thread Rafael Nami

Don't know about the news in your country, folks, but here in Brazil,
the press just bomb us with meaninful news like Ronaldo went to bathroom,
Ronaldo had a fever this morning, Ronaldo ate onions and bread at lunch,
Ronaldo will start the game versus Australia.
Seems like the press are trying to hide every single absolution that the
National Congress made for the members of the house of representatives that
stole millions of dollars from health, education and other government
investiments. Yeah dudes, MILLIONS OF DOLLARS. And here in Brazil it's
MANDATORY to pay taxes (38% of our payroll - MONTHLY) to be stolen. It's
like burning our own money.
I think all this thing about Ronaldo in brazillian press are because of the
presidential elections this year...

So - World Cup - Great
Brazil is the only country that is 5 times world cup champion. Don't know
if we have THE BEST TEAM, but we sure have very good players.
I'm just sad that 5 world cups didn't make my beautiful country a better
place to live and work.

Cheers

Rafael Mauricio Nami

2006/6/16, Frank W. Zammetti [EMAIL PROTECTED]:


Leon Rosenberg wrote:
 On 6/16/06, Frank W. Zammetti [EMAIL PROTECTED] wrote:
 I don't like Soccer... It reminds me of high school too much: a bunch
 of guys running around like maniacs not scoring very much :)

 actually it's called Football! :-)
 only because some americans have another game which they also call
 football (and which is played more by hand than foot), doesn't mean
 that we have to rename ours, do we? ;-)

We are America, bow to our will!  You wouldn't want us to invade just
because of the name of a game, would you?  And we will, oh yes, we will!
So, you can go change the name of your game, Football is ours nw!

Sorry, was in Bush administration mode for a moment... back to
normality...

Yes, I agree with you completely :)

 Leon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: MVC Dilemma

2006-04-07 Thread Rafael Nami
This is a very specific situation - you have 2 heterogeneous databases, that
can't be joined, right? I'm talking by my own little experience with this
type of thing, it's best to you work with a search engine in a heterogeneous
environment like yours. Something like Lucene is good (both Hibernate and
Spring support it). Because, if you have to keep SQL to query this 2
databases, you'll have to write a DAO for each (TicketDAO and EmployeeDAO),
and do the transactional stuff in your Business Object.

I hope that it could help you

Rafael Mauricio Nami
2006/4/7, olonga henry [EMAIL PROTECTED]:

 Rick, I am not trying to be an a**ss, but what he talked about is the most
 basic stuff to any programmer. That's what I was pointing towards.  Even
 you
 admitted later that you were replying without getting complete hold of the
 subject matter.
 ... although I wasn't following the thread that closely and missed about
 the different databases. I'll just shut up and let smarter people
 answer. (I will almost bet though that hibernate isn't helping the
 situation.)
 Just wanted to know if other fellow programmers know of any good design
 patters regarding this.


 On 4/7/06, Rick Reumann [EMAIL PROTECTED] wrote:
 
  olonga henry wrote the following on 4/7/2006 11:33 AM:
   Larry, person who talks about Spring, Hibernate and struts and know
  about
   JTA certainly knows that a database is a collection of tables.
 
  You don't have to be an a**ss when someone is just trying to get
  clarification. Good luck getting help from people here.
 
  Man, what has this list come to these days:)
 
  --
  Rick
  http://www.learntechnology.net
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




Re: Difference between DispatchAction and LookupDispatchAction

2006-03-30 Thread Rafael Nami
God, if I had this in my project a year ago :(

2006/3/30, Michael Jouravlev [EMAIL PROTECTED]:

 On 3/30/06, vasumathi [EMAIL PROTECTED] wrote:
  Hi
i like to know the difference between DispatchAction and
  LookupDispatchAction in struts 1.2. anyone can help me...

 They both have their deficiencies. If you are looking for a good
 dispatching action, use EventActionDispatcher from Struts 1.2.9:
 http://wiki.apache.org/struts/EventActionDispatcher

 Michael.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: How i can make a servlet that return an image ? (image will produce by jfree)

2006-01-24 Thread Rafael Nami
You can use Cewolf, that is a Servlet and a Taglib that uses JFreeChart to
produce graphics.
http://cewolf.sourceforge.net/

Best Regards

Rafael Mauricio Nami

2006/1/24, Legolas Woodland [EMAIL PROTECTED]:

 Hi
 Thank you for reading my post.
 How i can make a servlet that return an image ?
 Indeed i want to make a servlet and inside the servlet I want to use
 JfreeChart to produce a chart .
 and in final stage i want to return that chart (image) to output.

 Thank you

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: What JDK version are you using?

2006-01-23 Thread Rafael Nami
[X] JDK 1.4
[X] JDK 1.5 (or JDK 5)

Best Regards

Rafael Mauricio Nami

2006/1/23, Frank W. Zammetti [EMAIL PROTECTED]:


 1.4(.2) here.  Likely to be on that for at least another year, quite
 possibly more.

 Libraries I use on a regular basis:

 Beanutils, Digester, Lang, Code, Collections, FileUpload, HTTPClient,
 Logging and Net (and soon EMail as well).

 Sticking with Struts 1.2.4 for a while (very slow to upgrade versions of
 anything around here).

 Frank

 On 1/23/06, Niall Pemberton [EMAIL PROTECTED] wrote:
  What JDK version are you using?
 
  -
  [ ] JDK 1.2
  [ ] JDK 1.3
  [ ] JDK 1.4
  [ ] JDK 1.5 (or JDK 5)
  -
 
  I'm mainly interested in the impact of moving Commons Valdator to a
  minimum dependency of JDK 1.4 to use the RegExp support rather than
  depending on ORO, so it would be useful if you could indicate whether
  you are using Validator or not.
 
  tia
 
  Niall
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  The greatest tyrannies are always perpetrated in the name of the
  noblest causes. Thomas Paine
  Those who would give up essential Liberty, to purchase a little
  temporary Safety, deserve neither Liberty nor Safety - Benjamin
  Franklin
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: [FRIDAY] How to RTFM

2006-01-06 Thread Rafael Nami
HUAHUAHHAUHAUHAHUAHUAHUAHAU.

2006/1/6, Niall Pemberton [EMAIL PROTECTED]:

 LOL, brilliant :-)

 Niall

 - Original Message -
 From: Dave Newton [EMAIL PROTECTED]
 Sent: Friday, January 06, 2006 12:32 PM


  http://uncyclopedia.org/wiki/RTFM
 
  Dave



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: [FRIDAY] You might be a Struts User if ...

2006-01-06 Thread Rafael Nami
... if you are typing an email with html enabled on, and you type
instinctively something like bean:write, ${message}, c:out,
html:text...
Rafael Mauricio Nami

2006/1/6, Ted Husted [EMAIL PROTECTED]:

 ... you write your New Year resolutions on the back of a page from
 your 2006 page-a-day Dilbert desk calendar, and every one ends with
 dot-do.

 * GetMoreExcercise.do
 * TakeYourVitamins.do
 * DrinkLightBeer.do

 -Ted.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: [FRIDAY] You might be a geek if ...

2006-01-02 Thread Rafael Nami
Yes Legolas, Oracle donated ADF-Faces to MyFaces project. This was announced
in ApacheCon. You can see more info in this link :
http://www.it-eye.nl/weblog/2005/12/12/apache-myfaces-and-apache-faces-cherokee/

Best Regards

Rafael Mauricio Nami

2006/1/1, Legolas Woodland [EMAIL PROTECTED]:

 Rafael Nami wrote:
  If you try to seek something about Apache Cherokee(Oracle Donated JSF
  Components) in the new year's eve.
 
 BTW , i heared that Oracle donate its ADF faces to Apache , is it true ?
 will Oracle ADF faces merge with Myfaces ?

 Thank you
  Best All to everyone, and Happy New Year
 
  Rafael Mauricio Nami
 
  2006/1/1, Dakota Jack [EMAIL PROTECTED]:
 
  You refer to your youngest as Son number 0.  May you all have a great
  2006.  Bless you all, eveyone.
 
  On 12/30/05, Ted Husted [EMAIL PROTECTED] wrote:
 
  ... for Christmas, Santa brings you all six Star Wars movies, so you
  can watch them in order, from The Phantom Menace through Revenge of
  the Jedi.
 
  Happy New Year's, every one!
 
  -Ted.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  You can lead a horse to water but you cannot make it float on its
 back.
  ~Dakota Jack~
 
 
 
 
 





Re: [FRIDAY] You might be a geek if ...

2006-01-01 Thread Rafael Nami
If you try to seek something about Apache Cherokee(Oracle Donated JSF
Components) in the new year's eve.
Best All to everyone, and Happy New Year

Rafael Mauricio Nami

2006/1/1, Dakota Jack [EMAIL PROTECTED]:

 You refer to your youngest as Son number 0.  May you all have a great
 2006.  Bless you all, eveyone.

 On 12/30/05, Ted Husted [EMAIL PROTECTED] wrote:
 
  ... for Christmas, Santa brings you all six Star Wars movies, so you
  can watch them in order, from The Phantom Menace through Revenge of
  the Jedi.
 
  Happy New Year's, every one!
 
  -Ted.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 You can lead a horse to water but you cannot make it float on its back.
 ~Dakota Jack~




Re: OT: Best AJAX framework

2005-11-11 Thread Rafael Nami
http://dojotoolkit.org/~alex/dojo/trunk/demos/widget/Fisheye.htmlhttp://dojotoolkit.org/%7Ealex/dojo/trunk/demos/widget/Fisheye.html

WOW!

2005/11/11, Martin Cooper [EMAIL PROTECTED]:

 netsql wrote:
  Just to be diferent, there are alternatives to Ajax:
 
 http://msdn.microsoft.com/smartclient/understanding/definition/default.aspx

 Ooh! Isomorphic is not going to like that. They've had an Ajax toolkit
 product named SmartClient for quite a few years now.

 http://www.smartclient.com/

 --
 Martin Cooper


  .V
 
  Rafael Nami wrote:
 
  Super, I tested ajaxtags and really liked it, but that's how I said
  before -
  The team arged that before using a framework, they have to understand
  what
  Ajax is.
 
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: OT: Best AJAX framework

2005-11-11 Thread Rafael Nami
Dave Newton wrote:
But it's
Friday, my brain hurts.

My brain hurts becoz it's friday and becoz I have to work tomorrow (ow god,
finally the sun came, and I can't go to the beach ;p).

Cheers and Best All

Rafael Mauricio Nami

2005/11/11, Frank W. Zammetti [EMAIL PROTECTED]:

 I have to admit I just quickly glanced at the code and it wasn't
 immediately clear to me how it worked. I saw PNGs, but I also saw
 reference to SVG's (Scalable Vector Graphics for anyone that might not
 know). It makes sense that the growing and shrinking be done with SVGs,
 it's tailor-made for such an application. I'm not sure where the PNGs
 come in to play either.

 It still is cool as hell though :)

 Frank

 Dave Newton wrote:
  Dave Newton wrote:
 
  Frank W. Zammetti wrote:
 
  That *IS* very cool, although I'm not sure how truly useful (that
  wouldn't stop me from using it though, it just LOOKS so cool!)... but
  it's worth noting that it is really more a demonstration of cool
  DHTML and SVG than AJAX.
 
 
  I think the images are PNGs?
 
 
  I'm confused now, actually, after starting to look at it. But it's
  Friday, my brain hurts.
 
  Dave
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 AIM: fzammetti
 Yahoo: fzammetti
 MSN: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: OT: Best AJAX framework

2005-11-10 Thread Rafael Nami
Well, we are using here plain ol' XMLHttpRequest, but it's a pain in the ass
writing jsps that creates xmls to use with xmlHttpRequest. We want to
improve our knowledge in AJAX, to later move to a AJAX framework.
What're the best practices using AJAX?

Thanks in advance

Rafael Mauricio Nami

2005/11/10, Frank W. Zammetti [EMAIL PROTECTED]:

 The original Struts-only version of AjaxTags is somewhat close to this...

 http://struts.sourceforge.net/ajaxtags/index.html

 It isn't exactly what your looking for, but it could be a start... It
 won't bind directly to beans, but it should be pretty trivial to write an
 Action to do that part. Make it generic enough and you could probably get
 what you want out of it. Note that this version is superceeded by the
 much better version in Java Web Parts, so there won't be new versions
 coming out (not from me anyway).

 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 AIM: fzammetti
 Yahoo: fzammetti
 MSN: [EMAIL PROTECTED]

 On Thu, November 10, 2005 12:02 pm, Bill Schneider said:
  There seems to be a ton of AJAX stuff out there now. But what I'm
  looking for is a JSP/Struts tag library that handles bindings between
  the Javascript calls and the beans in request scope, so I can just drop
  a JSP tag in and get my widget all hooked up. Kind of like DisplayTag,
  or the stuff with MyFaces/Tomahawk--but with Struts instead of JSF.
 
  Any suggestions?
 
 
  At 10:36 AM +0200 11/10/05, Ovidiu EFTIMIE wrote:
 
  You should also take a look at www.openrico.orghttp://www.openrico.org
 
 
  Rico builds upon prototype.js and so is subject to the same warning:as
  prototype. If you don't use html:javascript in your Struts app, it's no
  problem, but if you want to add AJAX to your app while still using
  Struts' client-side validation, you will have a problem with Rico,
  prototype.js, JSON, and any other library which modifies the base
  javascript Object class.
 
 
  --
  Bill Schneider
  Chief Architect
 
  Vecna Technologies
  5004 Lehigh Rd.
  College Park, MD 20740
  [EMAIL PROTECTED]
  t: 301-864-7253 x1140
  f: 301-699-3180
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: OT: Best AJAX framework

2005-11-10 Thread Rafael Nami
Super, I tested ajaxtags and really liked it, but that's how I said before -
The team arged that before using a framework, they have to understand what
Ajax is.
So like, I don't have to supply xml to xmlHttpRequest? How can I do it?

Thanks in advance

Rafael Mauricio Nami

2005/11/10, Frank W. Zammetti [EMAIL PROTECTED]:

 I'm not sure there are any at this point. I'm sure some have been
 proposed by someone somewhere, but I'm not aware of them.

 You might want to have a look at my AjaxTags if your finding what your
 doing now to be a bit of a pain... http://javawebparts.sourceforge.net...
 go to the javadocs and find the ajaxtags package. The package docs should
 give you a pretty good idea what they offer. They may or may not suite
 your needs, but if they do I think they will make your life quite a bit
 easier.

 Remember too that just because XML is in the name, it IS NOT a requirement
 or AJAX. I'm not sure people realize this sometimes :) You can actually
 save a lot of time and effort (not to mention improve performance) by not
 bothering with XML. I'm NOT saying that's the right answer in every case,
 but it's a question worth asking yourself.

 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 AIM: fzammetti
 Yahoo: fzammetti
 MSN: [EMAIL PROTECTED]

 On Thu, November 10, 2005 1:17 pm, Rafael Nami said:
  Well, we are using here plain ol' XMLHttpRequest, but it's a pain in the
  ass
  writing jsps that creates xmls to use with xmlHttpRequest. We want to
  improve our knowledge in AJAX, to later move to a AJAX framework.
  What're the best practices using AJAX?
 
  Thanks in advance
 
  Rafael Mauricio Nami
 
  2005/11/10, Frank W. Zammetti [EMAIL PROTECTED]:
 
  The original Struts-only version of AjaxTags is somewhat close to
  this...
 
  http://struts.sourceforge.net/ajaxtags/index.html
 
  It isn't exactly what your looking for, but it could be a start... It
  won't bind directly to beans, but it should be pretty trivial to write
  an
  Action to do that part. Make it generic enough and you could probably
  get
  what you want out of it. Note that this version is superceeded by the
  much better version in Java Web Parts, so there won't be new versions
  coming out (not from me anyway).
 
  --
  Frank W. Zammetti
  Founder and Chief Software Architect
  Omnytex Technologies
  http://www.omnytex.com
  AIM: fzammetti
  Yahoo: fzammetti
  MSN: [EMAIL PROTECTED]
 
  On Thu, November 10, 2005 12:02 pm, Bill Schneider said:
   There seems to be a ton of AJAX stuff out there now. But what I'm
   looking for is a JSP/Struts tag library that handles bindings between
   the Javascript calls and the beans in request scope, so I can just
  drop
   a JSP tag in and get my widget all hooked up. Kind of like
 DisplayTag,
   or the stuff with MyFaces/Tomahawk--but with Struts instead of JSF.
  
   Any suggestions?
  
  
   At 10:36 AM +0200 11/10/05, Ovidiu EFTIMIE wrote:
  
   You should also take a look at
  www.openrico.org http://www.openrico.orghttp://www.openrico.org
  
  
   Rico builds upon prototype.js and so is subject to the same
  warning:as
   prototype. If you don't use html:javascript in your Struts app, it's
  no
   problem, but if you want to add AJAX to your app while still using
   Struts' client-side validation, you will have a problem with Rico,
   prototype.js, JSON, and any other library which modifies the base
   javascript Object class.
  
  
   --
   Bill Schneider
   Chief Architect
  
   Vecna Technologies
   5004 Lehigh Rd.
   College Park, MD 20740
   [EMAIL PROTECTED]
   t: 301-864-7253 x1140
   f: 301-699-3180
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Commons Validator or Struts Validator?

2005-11-03 Thread Rafael Nami
Just for the record, I've tried to search about Validator in Struts docs
yesterday, and it wasn't finding the page(405 error), but today is working
fine. The link is
http://struts.apache.org/struts-doc-1.2.x/userGuide/dev_validator.html.

Best Regards

Rafael Mauricio Nami

2005/11/3, Jim Reynolds [EMAIL PROTECTED]:

 I am a bit confused between the commons validator and the struts
 validator.

 I am trying to incorporate javascript:validations within some JSP
 files, and I am having a hard time deciding what to configure. I found
 a struts-validtor.tld, but it appears old, and when I search google
 for struts validators, I get links to the common validator.

 Does anyone have a handle on this?

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




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 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 of view.
 The cause of my change-of-mind is the so-called anhemic programming that
 DTOs promote.
 I think it is best to use directly domain objects, i.e. ye old (but good)
 OOP with real objects. Someone could say that this breaks security, but
 I don't think so, because security will be broken only with a misuse of
 these objects (e.g. calling business methods in JSPs).
 I am sure that many developers of the list agree with me, and many others
 don't.
 I think that the ease of code principle must be followed, then DTOs are
 simply a loss of time, IMO.
 Ciao
 Antonio Petrelli

 [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 Factory) design
 pattern because my client uses Oracle and I use Postgresql database. I am
 working with other teams remotely and they decided to use DTO.
 
 Problem: A few months ago, I recall a message thread on this list with a
 subject header of: 'DTOs are evil'. Since I am new to this, I am having
 problems understanding why. I thought that DTO are for data storage and
 data transfer between Business and Value Objects.
 
 Questions: I have the following questions:
 
 1. Why I shouldn't choose it?
 
 2. Should I be using the Apache Commons BeanUtils in my action? It has a
 method like BeanUtils.copyProperties(...).
 
 3. If not BeanUtils, then what do you recommend?
 
 
 Thanks,
 
 Bob
 
 __
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com
 



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




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 types of fights with teachers in my graduation becoz they liked to
teach persistent methods inside POJOs. :S. DAOs were made to persist data,
not POJOs.
 Best Regards
 Rafael Mauricio Nami

 2005/10/17, Frank W. Zammetti [EMAIL PROTECTED]:

 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(String);
 public getFirstName(String);
 public getLastName(String);
 public getId(String);
 }
 class CustomDAO {
 public createCustomer(CustomerDTO c);
 public getCustomer(String id);
 public updateCustomer(CustomerDTO c);
 public deleteCustomer(String id);
 }

 ...you instead have...

 class Customer {
 private String firstName;
 private String lastName;
 private String id;
 public setFirstName(String);
 public setLastName(String);
 public setId(String);
 public getFirstName(String);
 public getLastName(String);
 public getId(String);
 public createCustomer();
 public getCustomer(String);
 public updateCustomer();
 public deleteCustomer();
 }

 Is that roughly what your saying? If so, I don't think I disagree and
 would be interested to hear why anyone thinks it's NOT a good idea.

 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 AIM: fzammetti
 Yahoo: fzammetti
 MSN: [EMAIL PROTECTED]

 On Mon, October 17, 2005 12:00 pm, Rafael Nami said:
  [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 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 of
  view.
  The cause of my change-of-mind is the so-called anhemic programming
  that
  DTOs promote.
  I think it is best to use directly domain objects, i.e. ye old (but
  good)
  OOP with real objects. Someone could say that this breaks security,
  but
  I don't think so, because security will be broken only with a misuse of
  these objects (e.g. calling business methods in JSPs).
  I am sure that many developers of the list agree with me, and many
  others
  don't.
  I think that the ease of code principle must be followed, then DTOs
  are
  simply a loss of time, IMO.
  Ciao
  Antonio Petrelli
 
  [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 Factory) design
  pattern because my client uses Oracle and I use Postgresql database. I
  am
  working with other teams remotely and they decided to use DTO.
  
  Problem: A few months ago, I recall a message thread on this list with
  a
  subject header of: 'DTOs are evil'. Since I am new to this, I am having
  problems understanding why. I thought that DTO are for data storage and
  data transfer between Business and Value Objects.
  
  Questions: I have the following questions:
  
  1. Why I shouldn't choose it?
  
  2. Should I be using the Apache Commons BeanUtils in my action? It has
  a
  method like BeanUtils.copyProperties(...).
  
  3. If not BeanUtils, then what do you recommend?
  
  
  Thanks,
  
  Bob
  
  __
  Do You Yahoo!?
  Tired of spam? Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: OT: RE: Development philosophy and such

2005-10-10 Thread Rafael Nami
Sorry, my bad english was there: When I said I, that was the group ;).
Like I said, folks, I don't have ur experience YET, but someday I will ;).
(but of course you'll have MUCH MORE EXPERIENCE, but that's another OT
Thread ;)).

Best Regards and have a nice week everyone.

Rafael Mauricio Nami

2005/10/7, Leon Rosenberg [EMAIL PROTECTED]:

 year number four: I am the Lizard King, but noone else uses it anymore :-)

 On 10/7/05, Dave Newton [EMAIL PROTECTED] wrote:
  Rafael Nami wrote:
 
  If I can't learn it in 2 or 3 days, we don't adopt it.
  
  If you can learn new technologies in 2-3 days you can afford to learn
  most anything.
 
  2-3 hrs: Do I care about this technology (right now)?
  2-3 days: Can I implement a minimal example and get a feel for it?
  2-3 weeks: Should I use this technology for new projects?
  2-3 months: I am comfortable with this technology.
  2-3 years: I am the Lizard King.
 
  Dave
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Java - Assim no Server como no Palm
iJava - thus in the Server as it is in Palm


Re: OT: RE: Development philosophy and such (was: Base action class)

2005-10-07 Thread Rafael Nami
I think this philosophical topics are SUPERB, specially on fridays.
I don't have Ur xperience in development, but I'm a new tecnology skeptic.
If someone in my team tells me to use X tecnology, because it's brand new,
etc or if because it's a standard, I just tell him about the risks, the
standards, the market standard, the learning curve, the productivity,
etc... If I can't learn it in 2 or 3 days, we don't adopt it. The last one
that I burned my tongue about was JSF, that I was a TOTAL skeptical, but I
liked a lot.

Best regards, and have a nice weekend.

Rafael Mauricio Nami

2005/10/7, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Hi Frank,

 Sorry couldn't help but remark that... it seems some people are forgetting
 the software engineering basics.. :)

 There is no silver bullet!

 And you are absolutely right that there is no justification for using new
 technology just for the heck of it... (And there is a reason some of the
 banks still have those mainframes lying around!.) like they say if it ain't
 broken, don't fix it!.

 Here's wishing you Happy Friday!,

 Cheers!,

 Dharmendra
 ps: have a super day!
 -Original Message-
 From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 07, 2005 3:08 PM
 To: Struts Users Mailing List
 Cc: user@struts.apache.org; [EMAIL PROTECTED]
 Subject: Re: OT: RE: Development philosophy and such (was: Base action
 class)


 On Fri, October 7, 2005 2:33 pm, [EMAIL PROTECTED] said:
  Hi Frank,
 
  Here's the thing about technology, it *evolves*... and it comes as
  really odd that you *belive* that people introduce new technology
  solution, architecture, design changes, to just make them more
  market-able!!.

 It's not so much what I believe as I have seen a number of people who do
 exactly that. They are just trying to pad their resumes and not thinking
 about what solutions properly fit the requirements. I'm not talking about
 making a bad decision by the way, everyone does that on occassion. I'm
 talking about people that are constantly looking for situations to apply
 new technologies to, not because it will make things better but because
 they want to gain experience with those technologies.

 Gaining experience is a good goal, doing so with no vision of what makes a
 good solution isn't :)

  Further
  - it is not a bad thing to continously evaluate the solution/approach to
  see how well it could handle anticipated changes, scale to
  new/additional/changed requirements...

 If your talking about evaluation with each new project that comes along, I
 absolutely agree. What I'm talking about being a problem though is taking
 an existing application that is solid and robust and does everything it is
 required to do, and deciding to redo major parts of it just because some
 better technology comes along.

 From a technology standpoint, you always run the risk of making things
 worse when you refactor. That's not to imply that you shouldn't refactor,
 just that doing it on a whim to play with a new toy isn't the best
 motivation.

 From a business standpoint, why incur a risk that you don't have to? I
 have seen time and again where an application that worked well was deemed
 old, whatever that means, and was redone, and the result was worse. If
 you have a requirement that the application can't meet in its current
 form, *then* it is of course appropriate to rework it. But in the absence
 of such a requirement it seems to me very hard to justify that risk.

  - if you want you can always develop your apps for any particular
  platform say DOS or Win 3.1 (just to name some of the non-*nixes!) and
  then worry about the GPFs blowing the fuse!! ;), or, perhaps worry about
  the database getting corrupted (I have actually seen this!!), when, say
  the application's data grows substantially over time... or any other
  factors necessitating the change..too many to list them all..

 Again, if the requirements change, so to the application may have to, and
 so to may the underlying technology have to. I don't have any problem
 with this, as long as it's not taken to the extreme... I've seen cases
 where people say ok, we need to add X to the application to meet this new
 goal, so while we're at it let's add Y and Z because it scratches an
 itch. X is good, Y and Z aren't.

 Maybe that's how I should put it... change for the sake of scratching a
 technological issue isn't (usually) a good thing. Change for the sake of
 meeting a new requirement is.

  The point is that the applications need to grow and be adapted to
  changes, in innumerous ways possible, which impact it's
  usability/stability/maintainability/...
 
  I have seen OO Perl/CGI application written for three people grow to a
  user base of 600 in 3 years, at which point it just wasn't cutting it,
  as well as changes were much harder to make, taking more time, and to
  maintain bugs, at that point it was retired and redesigned from ground
  up and implemented in the latest and greatest 

Tiles standalone

2005-10-04 Thread Rafael Nami
Hi everyone.

I was trying to search some info about tiles standalone, but I
couldn't find anything in apache jakarta site. Where can i find such
info?
What is the compatibility with JSF/MyFaces?

Thanks in advance

Rafael Mauricio Nami

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT]OLAP web frontend in Java

2005-10-03 Thread Rafael Nami
Hi everyone.
Sorry for the OT question, but I just tried to google a web frontend
to OLAP in java, and it always return just JPivot and openI. Did you
guys know other web frontends for BI, that returns BSC like monitors
and decision cubes?

Thanks in advance

Rafael Mauricio Nami

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Rafael Nami
I usually prepopullate an ActionForm from the Action. Like, if I have
to save a Person object, I prepopullate the ActionForm in the edit()
method, setting the ActionForm again in the web context(request or
session). And then, return the according ActionForward.

Best Regards

Rafael Mauricio Nami

2005/9/22, ojay78 [EMAIL PROTECTED]:



 Hi @ all,



 I stuck on a problem. I don't now how to prepoulate a Actionform. What I'm
 doing is this:



 On my showFVKNAdminAction I receive a value from the previous ActionForm and
 put it in the request so that the next handleFVKNAction have this value.

 I also put a attribute in the request so that the handleFVKNAction knows
 that it has to act like a show action not like a update action. Then I
 get the my values that are relevant for me out of the database. I put this
 List into my Viewmodel and the handleFVKNForm. Then I forward to the jsp.



 In the JSP I get my Viewmodell and show my values on my page with the
 logic:iterate tag

 bean:define  id=fvknList

 name=FVKN

 property=fvknList

 scope=session

 type=java.util.List/









 html:form action=/handleFVKNAction method=post 

 logic:iterate name=fvknList id=line indexId=lineNo
 type=FVKN



   tr

 td%=lineNo.intValue()+1%/td

 tdbean:write name=line property=fieldName
 filter=true //td

 ..

 ..

 ..



 This works so far.



 But when I hit the submit button the handleFVKNForm is empty. Why is that
 so?

 What I want is to get my List from the database, display it on the jsp page
 and if the submit button will be pressed it should update this list in my
 database.

 I think my failure is, that this fvknList is from my Viewmodel but I should
 get it from my prepopulated form bean, right? But obviously I don't know how
 to do that



 Any suggestions for a better way to solve this problem?






--
Java - Assim no Server como no Palm
iJava - thus in the Server as it is in Palm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Rafael Nami
Sorry ojay, my codes are in the notebook, and right now I don't have
access to the internet with it(I don't have the ppoe program to run
this ADSL connection in my note). I can send you the code from my work
tomorrow.

Best Regards
Rafael Mauricio Nami

2005/9/22, Dave Newton [EMAIL PROTECTED]:
 Frank W. Zammetti wrote:

 Ok, got it working.  Ugh, took me 20 minutes to find a stupid typo in the
 blank Struts app I use to start a new project.  ARGH!
 
 
 Hey, does that mean you can bill clients for an extra 20 minutes for
 every project?

 That looks almost *exactly* like what I implemented although I suspect
 yours is substantially more robust.

 *sigh*

 Now I just use Spring. Except for my Struts-based CRUD that still uses
 its own config file. re-*sigh*

 Dave



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Java - Assim no Server como no Palm
iJava - thus in the Server as it is in Palm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts Development Tool

2005-09-13 Thread Rafael Nami
Here in Brazil we have egen and jCompany.

http://www.powerlogic.com.br - I think this portal is still only in
portuguese - an IDE made based in Eclipse.

http://www.egen.com.br/ - This is a very good IDE.

an opensource option is the Netbeans 5.0

Hope that it helps

Rafael Mauricio Nami

2005/9/13, Steve Beaver [EMAIL PROTECTED]:
 Raj.
 
 You can also download WWW.STRUTSBOX.DE for eclipse 3.1
 
 Regards
 
 Steve
 -Original Message-
 From: R Rajendran [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 13, 2005 12:09 AM
 To: Struts Users Mailing List
 Subject: RE: Struts Development Tool
 
 Thank you.
 
 
 
 From: Murray Collingwood [mailto:[EMAIL PROTECTED]
 Sent: Mon 9/12/2005 10:49 PM
 To: Struts Users Mailing List
 Subject: Re: Struts Development Tool
 
 
 
 Hi Raj
 
 The main one seems to be Eclipse.
 I'm using NetBeans which is a little behind what Eclipse is providing
 through plugins.
 Following somewhere is JBuilder.
 
 I know Eclipse and NetBeans are both free.
 Eclipse supports a plugin system and there are a number of plugins you can
 purchase
 to provide additional functionality (eg Struts support).
 NetBeans is implementing better Struts support in the next (imminent)
 release.
 
 I haven't heard much about JBuilder, I bought a copy and used it many years
 ago when
 I first started on Java.  It wasn't that great back then but may well have
 improved.
 
 If you want to really fit in you should probably use Eclipse - it seems to
 be the most
 popular on this Struts list.
 
 Kind regards
 mc
 
 
 On 12 Sep 2005 at 22:17, R Rajendran wrote:
 
  Hi everyone,
 
  Could anyone of you let me know the available Struts Development tools
 (IDE) for
 Windows environment.
 
  Thanks
  Raj
 
 
 
 
 
 FOCUS Computing
 Mob: 0415 24 26 24
 [EMAIL PROTECTED]
 http://www.focus-computing.com.au
 
 
 
 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.344 / Virus Database: 267.10.23/99 - Release Date: 12/09/2005
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Java - Assim no Server como no Palm
iJava - thus in the Server as it is in Palm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Eclipse 3.1 and struts 1.2.7

2005-09-09 Thread Rafael Nami
I think wtp is a very good choice, but it doesn't run for Struts. If
you want something that can simplify your development with Struts, I
think is better thinking on the purchase of MyEclipse(awesome plugin,
not too expensive), or if you want a free option, take a look at the
new NetBeans(5.0). It has Struts and JSF capabilities.

Hope that it could help

Rafael Mauricio Nami

2005/9/9, R Rajendran [EMAIL PROTECTED]:
 Go through the Wrox publication Book - Professional Jakarta Struts
 
 
 
 From: M. Imran [mailto:[EMAIL PROTECTED]
 Sent: Thu 9/8/2005 4:58 AM
 To: Struts Users Mailing List
 Subject: Re: Eclipse 3.1 and struts 1.2.7
 
 
 
 I was wondering if I can use Struts with Eclipse (3.1) or some free plugins.
 MyEclipse is a good option but its not free.
 
 Regards,
 Imran
 - Original Message -
 From: Ayusman dikshit [EMAIL PROTECTED]
 To: Struts Users Mailing List user@struts.apache.org
 Sent: Thursday, September 08, 2005 12:59 AM
 Subject: RE: Eclipse 3.1 and struts 1.2.7
 
 
 
  Hi Imran,
  Try to download latest MyEclipse (just google it and u will find it) and
  download this pdf
  http://www.eclipsekickstart.com/chapters/EclipseKickStart-ch11.pdf  this
  will guide you thru. , hope this helps.
 
  Regards
  Ayusman
 
  -Original Message-
  From: M. Imran [mailto:[EMAIL PROTECTED]
  Sent: Thursday, September 08, 2005 12:12 PM
  To: user@struts.apache.org
  Subject: Eclipse 3.1 and struts 1.2.7
 
  Dear all,
  I am trying to build my first application with Tomcat, Eclipse 3.1 
  Struts 1.2.7, can anyone tell me how to configure them? Any help link or
  example will be much appreciated?
 
  Thanks you,
  Imran
 
   CAUTION - Disclaimer *
  This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
 solely for the use of the addressee(s). If you are not the intended
 recipient, please notify the sender by e-mail and delete the original
 message. Further, you are not to copy, disclose, or distribute this e-mail
 or its contents to any other person and any such actions are unlawful. This
 e-mail may contain viruses. Infosys has taken every reasonable precaution to
 minimize this risk, but is not liable for any damage you may sustain as a
 result of any virus in this e-mail. You should carry out your own virus
 checks before opening the e-mail or attachment. Infosys reserves the right
 to monitor and review the content of all messages sent to or from this
 e-mail address. Messages sent to or from this e-mail address may be stored
 on the Infosys e-mail system.
  ***INFOSYS End of Disclaimer INFOSYS***
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Java - Assim no Server como no Palm
iJava - thus in the Server as it is in Palm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: test mail... can someone please reply to let me know it reached the Strtus User list Thanks!!

2005-09-02 Thread Rafael Nami
it reached.
Best Regards
Rafael Mauricio Nami

2005/9/2, [EMAIL PROTECTED] [EMAIL PROTECTED]:
 test mail... can someone please reply to let me know it reached the Strtus 
 User list Thanks!!
 
 Visit our website at http://www.ubs.com
 
 This message contains confidential information and is intended only
 for the individual named.  If you are not the named addressee you
 should not disseminate, distribute or copy this e-mail.  Please
 notify the sender immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your system.
 
 E-mail transmission cannot be guaranteed to be secure or error-free
 as information could be intercepted, corrupted, lost, destroyed,
 arrive late or incomplete, or contain viruses.  The sender therefore
 does not accept liability for any errors or omissions in the contents
 of this message which arise as a result of e-mail transmission.  If
 verification is required please request a hard-copy version.  This
 message is provided for informational purposes and should not be
 construed as a solicitation or offer to buy or sell any securities or
 related financial instruments.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Java - Assim no Server como no Palm
iJava - thus in the Server as it is in Palm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Win XP, Eclipse, and Struts

2005-09-02 Thread Rafael Nami
I think is a great help to use some plugins in Eclipse(MyEclipse is
the first that comes in my mind...). The WTP 0.7 is a great tool too.
You really don't need them, these plugins are just to improve the
development.

Best Regards

Rafael Mauricio Nami

2005/9/2, Steve Beaver [EMAIL PROTECTED]:
 Thank you
 
 
 
 Steve
 
 
 Live as if you were to die tomorrow, Learn as if you were to live forever
 
 
 
 -Original Message-
 From: R. Markham [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 02, 2005 3:15 PM
 To: 'Struts Users Mailing List'
 Subject: AW: Win XP, Eclipse, and Struts
 
 Hi Steve,
 
 In fact you need only
 
 Tomcat
 Eclipse
 JDK
 
 As I started with Struts I deliberately didn't use any design Tool, maybe
 you need more time at the beginning but you know at least what you are doing
 later when your project get more complicated you get the payoff.
 
 Regards
 
 Richard
 
 
 -Ursprüngliche Nachricht-
 Von: Steve1226 [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 2. September 2005 22:46
 An: user@struts.apache.org
 Betreff: Win XP, Eclipse, and Struts
 
 I have download www.strutsbox.de into
 eclipse 3.1.
 
 Is there anything else I need to download to
 begin developing Strtuts Applications.
 
 Thanjs
 
 
 
 ---
 Broadband interface (RIA) + mail box saftey = a
 href=http://Struts_User_List.roomity.com;Roomity.com/a
 *Your* clubs, no sign up to read, ad supported; try broadband internet.
 ~~1125693930947~~
 
 ---
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Java - Assim no Server como no Palm
iJava - thus in the Server as it is in Palm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Struts] - How to put a nested object inside a set, that's inside a ActionForm

2005-08-29 Thread Rafael Nami
Hi everyone

I'm trying to build a search, accessing a nested object, in a JSP,
that is inside a set nested in the a POJO, to perform a search in the
page.

For example, I have a 
PersonForm p - Set purchases - Product product - Brand brand - brand name

I was trying this approach:
td align=left
   appfuse:label key=personForm.purchases.product.brand.name/
/td  
td align=left
html:text property=purchases.product.brand.name size=15/
 (full or partial)
/td

How can I do it?

Best Regards

Rafael Mauricio Nami

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Struts] - How to put a nested object inside a set, that's inside a ActionForm

2005-08-29 Thread Rafael Nami
I've done this:
Added to PersonForm a brandName - now I just have to get the Hibernate
CriteriaQuery running.

Thanks Laurie

Rafael Mauricio Nami


2005/8/29, Laurie Harper [EMAIL PROTECTED]:
 Rafael Nami wrote:
  I'm trying to build a search, accessing a nested object, in a JSP,
  that is inside a set nested in the a POJO, to perform a search in the
  page.
 
  For example, I have a
  PersonForm p - Set purchases - Product product - Brand brand - brand 
  name
 
  I was trying this approach:
  [...]
  html:text property=purchases.product.brand.name size=15/
  [...]
  How can I do it?
 
 The short answer is, you can't: there's no way to access members of a set
 directly like this. You'll need to change your form bean to store your
 purchases as an indexed property so you can address them with something like
 
  html:text property=purchases[0].product.brand.name size=15/
 
 L.
 --
 Laurie Harper
 Open Source advocate, Java geek: http://www.holoweb.net/laurie
 Founder, Zotech Software: http://www.zotechsoftware.com/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Java - Assim no Server como no Palm
iJava - thus in the Server as it is in Palm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JasperReports issue

2005-08-16 Thread Rafael Nami
Hi everyone. What is the best approach to configure and manage reports
using jasperreports? I don't know if I have to implement a Controller,
or an extension point of DispatchAction, or if I have to implement it
on a servlet directly.

Best Regards

Rafael Mauricio Nami

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]