Proper way to do it

2005-03-18 Thread Hond4
Hallo list members! I'm looking for best practise how to implement password change for my appliaction. I'm using securityfilter for auth, problem is that i would like to create forward to password change page if user password == "default". Is it possible to put some logic into ActionServlet's ser

Free Struts ebook

2005-03-18 Thread Srikanth Shenoy
Hi All, Back in 2003, I wrote the book "Struts Survival Guide - Basics to Best Practices" and subsequently published it. The book was wildly successful and I sold off all the copies of the book. I don't have any intention of reprinting it. Hence I am giving away the ebook in PDF format free of co

Relative URLs

2005-03-18 Thread tarek.nabil
Hi everyone, Can someone please explain how to build relative URLs that are higher in the file hierarchy than the module. For example / /images/some-image.gif /some-action.do /folder/some-jsp.jsp I'm building this application inside an existing application that does not use Struts. I can not cha

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Vamsee Kanakala
Joe Germuska wrote: I don't know if we've all landed on most people's kill-filters or what, but one gets the sense that what some of us are interested in arguing thoroughly about is of little import to regular users. I'm as 'regular' a user as you can get, but I thoroughly enjoy these technical

Re: what do you suggest me? iBatis or Hibernate

2005-03-18 Thread Tak Yoshida
Oops, sorry third one is usually not happend, so could be out of selection. What about first tow? I did couple of enterprise application, which consists of Web front end, and many backend programs in both PL/SQL and java. The same SQLs must be appplied for different events from both front end and

Re: what do you suggest me? iBatis or Hibernate

2005-03-18 Thread David Haynes
Hibernate uses the database as a reliable data store for serialized objects. It does not exploit the higher level capabilities of the database to assist with referential integrity or the benefits of a more normalized form. (At least it looks that way in examining the results of its UML to data

Re: what do you suggest me? iBatis or Hibernate

2005-03-18 Thread Diego Espada
I disagree with you in some of those points. If you don't know SQL, don't go with Hibernate. You'll have terrible performance problems if you do so. Hibernate has very complete features to tweak performance and optimize queries, and to make use of that you have to know SQL. I don't know iBATIS, s

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Dakota Jack
I for one am more than interested in honest, informed, opinion such as yours, David. Thanks! To be fair, Struts presently is in a bit of a transition with things a bit in the air. On the one hand, the origional architect is hired on another competing project and is trying to pull a heist on the

Re: what do you suggest me? iBatis or Hibernate

2005-03-18 Thread Tak Yoshida
I think, If you don't have to work with DBA to tune up your application's SQL or if you don't have to work with or share SQLs to any backend PL/SQL programmer or you don't know SQL very much The answer could be Hibernate. If yes, as usual enterprise applications, iBATIS could be the answer. Tak

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Dakota Jack
The thing, for me, Frank, is that I like to reuse code as much as possible. So, I treat most aspects of coding in Struts not unlike coding an application which is good for any environment, and any framework. This is also true of validation for me. I don't want to be tied to any particular soluti

Re: help needed on ActionForm and ActionForward behaviour

2005-03-18 Thread Diego Espada
Did you check the scope configuration parameter ? Bye On Fri, 18 Mar 2005 16:21:23 +0100, Gaet <[EMAIL PROTECTED]> wrote: > In other words, I would like to implemnt a button "Save and display next > employee" > > How to do this? > > > - Original Message - > From: "Gaet" <[EMAIL PROTECT

Re: html: tags part2

2005-03-18 Thread Diego Espada
You could just use wrote: > Scott Purcell wrote the following on 3/18/2005 1:29 PM: > > > Can I create a image that is a src for a submit, or cancel, or js function? > > Why not just use a regular image wrapped with an href and use javascript? > > example... > > > > > > -- > Rick > >

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Diego Espada
I do all my validations in the action, and it works great for me. I built a layer upon the action that allows me to activate / deactivate validation for some actions. So i turned my actions into page controllers. I suppose some people would argue that this "resists" the framework, but i think that

Re: what do you suggest me? iBatis or Hibernate

2005-03-18 Thread Diego Espada
I haven't used iBatis to tell the truth, but I've used Hibernate extensively (even in a critic project) and it is really a great product. It has an amazing set of features and a big base of users. The learning curve is a bit high, though. If you use Hibernate, you should plan taking into account t

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread David Kennedy
Sorry, this is going to be a fairly off-topic reaction post, but Lawrie's comments struck a chord with me. Lawrie Gallardo wrote: I'm relatively new to Struts and I have to say that I've found it to have a realtively steep learning curve. And the only reason for this is that there are so many d

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Frank W. Zammetti
Interesting approach Jack. It seems like a somewhat unnecassery layer though... But then again, as with all architectural decisions, if you had a reason for it, then it's a good solution (unless it's a bad solution! :) ) I suppose it comes down to what is actually in an Action... If it is abs

Re: Struts Menu

2005-03-18 Thread Matt Raible
Good to know - thanks for reporting back with the solution. Matt On Mar 18, 2005, at 2:57 AM, Vijaya S wrote: Hi Matt, I solved the menu problem I was having. The problem was that I was missing log4j and commons_lang jar files in my web app lib. Thanks, Vijaya -Original Message- From: Mat

RE: what do you suggest me? iBatis or Hibernate

2005-03-18 Thread Ken Robinson
I don't know about iBatis, but I was able to get Hibernate up and running in about 2 - 3 days, I'm a novice at this as well. I found a really great site: http://www.laliluna.de/struts-hibernate-integration-tutorial-en.html -Original Message- From: Milson Cardona [mailto:[EMAIL PROTECTED]

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Joe Germuska
However, even sticking to the current multithreaded Action model, why would this cause problems with validation? The ActionForm is currently passed by the ActionServlet as a parameter to the Action's execute() method - surely the ActionServlet could similarly pass the ActionFrom as a parameter

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Hubert Rabago
I was waiting for another period where tons of commits were happening. That's when I'd sneak in this one and see if anybody notices. :) Now before somebody thinks I was serious (about the sneaking in part) -- this actually is on my radar. I plan on digging up the arguments around it. Speaking

Re: Validating Nested DynaValidator Forms

2005-03-18 Thread jelything
Thanks for the feedback. Why wouldn't I want to nest forms? Its entirely possible I missed the point, but I thought that was what was for? Everything but the validating works just fine. I'm sure that I could write my own validation method, but I'm trying to KISS and use the nice validation.xm

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Dakota Jack
You don't have to have a large file. I use the dispatching to organize in a sort of "controller" fashion delegating processing to other files. I do this when I have an AdministrativeAction, for example. I use separate classes not unlike the way you use instantiations of Action subclasses in your

[OR] Re: Interesting problem...

2005-03-18 Thread Dakota Jack
///;-) On Fri, 18 Mar 2005 13:22:01 -0500 (EST), Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I've wanted a nickname all my life (aside from the explicitives some would > use!)... never thought it's be Radar :) > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technol

Re: Validating Nested DynaValidator Forms

2005-03-18 Thread Rick Reumann
jelything wrote the following on 3/18/2005 1:40 PM: I have a DynaValidatorForm that holds many items, including an ArrayList of DynaValidatorForms. Calling validate() on the main form works just fine, but how do I get the nested forms to validate? If I iterate through the ArrayList, and cast them

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Joe Germuska
Hubert Rabago wrote: > >That certainly is one practice. Personally I don't use that. I >mostly use my own Action subclasses, or if I want dispatch >functionality, I used to use MappingDispatchAction. Now I use the > >ActionDispatcher class in >http://issues.apache.org/bugzilla/show_bug.cgi?

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Lawrie Gallardo
From: Joe Germuska <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Lawrie Gallardo" <[EMAIL PROTECTED]>, user@struts.apache.org Subject: Re: Wouldn't validation be better performed by Actions rather than ActionForms? Date: Fri, 18 Mar 2005 14:00:30 -0600 At 7:35 PM + 3/18/05,

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Hubert Rabago
(I almost missed the questions you had inline, thinking that the message you had at the top was all there was.) > Could you give any example reasons why (/ situations when) you would use multiple individual Action classes in favour of an Action with dispatching functionality? I am still learning

Problem with extending TilesRequestProcessor

2005-03-18 Thread Schuster Joel M Contr ESC/NDC
I've been working with a custom RequestProcessor extention for awhile that works great for my needs to validate and verify login and session for each request. I have now added in tiles configuration and am trying to get it working. So one part of that conversion was to now extend from TilesReques

RE: what do you suggest me? iBatis or Hibernate

2005-03-18 Thread Schuster Joel M Contr ESC/NDC
Hibernate by proxy: ejb 3.0 via Jboss ;) > -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED] > Sent: Friday, March 18, 2005 1:53 PM > To: Struts Users Mailing List > Subject: Re: what do you suggest me? iBatis or Hibernate > > Milson Cardona wrote the following on 3/18/2

Re: what do you suggest me? iBatis or Hibernate

2005-03-18 Thread Rick Reumann
Milson Cardona wrote the following on 3/18/2005 3:38 PM: I am novice in J2EE. I have been working with JDBC (SQL statements within of business class), but now desire to work with persitence objects. I know that this are different, Hibernate is then biggest, but iBatis have a knowledge curve very sh

Re: Present formbean value on jsp page.

2005-03-18 Thread Rick Reumann
Rick Reumann wrote the following on 3/18/2005 3:48 PM: Using struts tags: Correction, I think Jay's use of bean:write is the correct way: It's been a long time since I used bean:write so I'm not sure if the way I described it would work? -- Rick -

Re: Present formbean value on jsp page.

2005-03-18 Thread Rick Reumann
Scott Purcell wrote the following on 3/18/2005 3:32 PM: Well, as normal, I have once again ran into a new snag while building my app. Up until today, I have pulled out my form-param values in my jsp like so into a textfield. And this is great if you want to display it in a text field. But

RE: Present formbean value on jsp page.

2005-03-18 Thread java
Can you use bean:write to accomplish what you're after e.g. Jay Vertical Technology Group http://www.vtgroup.com/ -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 2:32 PM To: Struts Users Mailing List Subject: Present formbean value on js

what do you suggest me? iBatis or Hibernate

2005-03-18 Thread Milson Cardona
Hi I am novice in J2EE. I have been working with JDBC (SQL statements within of business class), but now desire to work with persitence objects. I know that this are different, Hibernate is then biggest, but iBatis have a knowledge curve very short what do you suggest me? iBatis or Hiberna

Present formbean value on jsp page.

2005-03-18 Thread Scott Purcell
Well, as normal, I have once again ran into a new snag while building my app. Up until today, I have pulled out my form-param values in my jsp like so into a textfield. And this is great if you want to display it in a text field. But how can I just display it in html. I have some fiel

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Joe Germuska
At 7:35 PM + 3/18/05, Lawrie Gallardo wrote: Thanks for your detailed answers, Joe. Just a few queries though: Now, if my understanding is correct: 1. There is always a one-to-one mapping between an ActionForm and an ActionMapping, Often not true. Earlier today on the dev-list Ted H. describe

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Lawrie Gallardo
Thanks Rick, From what I have read so far it seems that Struts requires you to know quite a few "work-arounds" in order to get it to do what you want. In fact, while I feel I have gained a pretty good idea of the Struts architecture and all the different ways of doing things, I still feel like I

RE: Problems using JSTL with struts

2005-03-18 Thread Karr, David
I'm not sure what you mean by JSTL 2.0. Did you mean JSP 2.0? If you're really trying to use Struts in a JSP 2.0 container, then don't use Struts-EL. In that environment, the Struts tags will use the EL natively, and you'd use the JSTL version compatible with JSP 2.0 (not the one compatible w

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Lawrie Gallardo
Thanks for your detailed answers, Joe. Just a few queries though: Now, if my understanding is correct: 1. There is always a one-to-one mapping between an ActionForm and an ActionMapping, Often not true. Earlier today on the dev-list Ted H. described a case where you might have a long form compos

Re: html: tags part2

2005-03-18 Thread Rick Reumann
Scott Purcell wrote the following on 3/18/2005 1:29 PM: Can I create a image that is a src for a submit, or cancel, or js function? Why not just use a regular image wrapped with an href and use javascript? example... -- Rick -

Re: Interesting problem...

2005-03-18 Thread Rick Reumann
I posed your question to a colleague of mine, because this problem is way beyond my puny knowledge. Anyway, his response, for what it's worth: > My first instinct is to call this a Supremely Bad Idea. There WILL be conflicts. You can bet on it. Best to have a single "maintenance" process o

RE: How to search this list?

2005-03-18 Thread Justin Morgan
Another option: http://desktop.google.com/ (if you're using Outlook or other mail client with a search plugin available) -Justin -Original Message- From: jelything [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 1:36 PM To: struts-user@jakarta.apache.org Subject: How to search t

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Rick Reumann
Lawrie Gallardo wrote the following on 3/18/2005 12:17 PM: Now if this is the case, would it not be better to have the ActionForm as basically a dum data holder and have the validation method in the Action classes instead? The strus-config.xml file could contain all the required declarative vali

Re: How to search this list?

2005-03-18 Thread jelything
Thanks! That's exactly what I was looking for! J --- In [EMAIL PROTECTED], Hubert Rabago <[EMAIL PROTECTED]> wrote: > I still use http://marc.theaimsgroup.com/?l=struts-user > Some prefer http://news.gmane.org/gmane.comp.jakarta.struts.user > Others like http://www.mail-archive.com/user%40strut

[MASSIVELY OT AT THIS POINT] Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 1:46 pm, Kris Schneider said: > Actually, I was thinking more along the lines of Radar's precog abilities. > So, > if you weren't aware the nick was coming, then it obviously doesn't fit > ;-). > Anyway, for better or worse, you've already got a namesake from the show. > All

Re: How to search this list?

2005-03-18 Thread Hubert Rabago
I still use http://marc.theaimsgroup.com/?l=struts-user Some prefer http://news.gmane.org/gmane.comp.jakarta.struts.user Others like http://www.mail-archive.com/user%40struts.apache.org/ Hubert On Fri, 18 Mar 2005 18:36:18 -, jelything <[EMAIL PROTECTED]> wrote: > > Hi there, > > What is th

RE: ActionForm problem

2005-03-18 Thread Hyrum
Props to Rick as well. You were dead on. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 9:42 AM To: Struts Users Mailing List Subject: Re: ActionForm problem Just curious, is your boolean getter autogenerated? It might be set up as isSsnOnF

RE: ActionForm problem

2005-03-18 Thread Hyrum
Props to Rick as well. You were dead on. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 9:42 AM To: Struts Users Mailing List Subject: Re: ActionForm problem Just curious, is your boolean getter autogenerated? It might be set up as isSsnOnF

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Hubert Rabago
As to "whether this is the right thing to do", I would say yes, IMHO. I understand why you may not like it, though. For the customization you want, you can override the RequestProcessor (or implement your own ComposableRequestProcessor commands if you're using 1.3) and change how validation is pe

Re: Interesting problem...

2005-03-18 Thread Kris Schneider
Quoting "Frank W. Zammetti" <[EMAIL PROTECTED]>: > On Fri, March 18, 2005 1:30 pm, Kris Schneider said: > > Quoting "Frank W. Zammetti" <[EMAIL PROTECTED]>: > > > >> I've wanted a nickname all my life (aside from the explicitives some > >> would > >> use!)... never thought it's be Radar :) > > > >

Validating Nested DynaValidator Forms

2005-03-18 Thread jelything
I have a DynaValidatorForm that holds many items, including an ArrayList of DynaValidatorForms. Calling validate() on the main form works just fine, but how do I get the nested forms to validate? If I iterate through the ArrayList, and cast them back to a DynaValidatorForm and then simply call v

Re: How to search this list?

2005-03-18 Thread PA
On Mar 18, 2005, at 19:36, jelything wrote: What is the best way to access this list if you wanted to search it? http://zoe.nu/ Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

How to search this list?

2005-03-18 Thread jelything
Hi there, What is the best way to access this list if you wanted to search it? My old method stopped working and the other sites I use to access it don't seem to search at or or well. Thanks, J - To unsubscribe, e-mail: [EM

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 1:30 pm, Kris Schneider said: > Quoting "Frank W. Zammetti" <[EMAIL PROTECTED]>: > >> I've wanted a nickname all my life (aside from the explicitives some >> would >> use!)... never thought it's be Radar :) > > Then it probably shouldn't be ;-) Oh no, I opened my mouth with

Re: Interesting problem...

2005-03-18 Thread Kris Schneider
Quoting "Frank W. Zammetti" <[EMAIL PROTECTED]>: > I've wanted a nickname all my life (aside from the explicitives some would > use!)... never thought it's be Radar :) Then it probably shouldn't be ;-) > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http

html: tags part2

2005-03-18 Thread Scott Purcell
Hello, Sorry these tags are killing me today, I have the html: docs up, but they are long, and things are not clicking today. I am trying to replace the following two buttons (one submits and one cancels the form) with html: tags, so my whole site is consistent. current config has a hreflink wi

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
I've wanted a nickname all my life (aside from the explicitives some would use!)... never thought it's be Radar :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Fri, March 18, 2005 1:09 pm, Dakota Jack said: > The class works, but I don'

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Frank W. Zammetti
I've always felt that class sizes should be reduced wherever possible. Even when the code is extremely simplistic, as should be the case in Actions generally, it's still more difficult to look through a higher volume of code (this is in fact a known metric that most code analysis tools use). Disp

Re: [Shale] Resource initialisation best practice

2005-03-18 Thread Duncan Mills
Right, this is more or less what I've gone for in the end, but the managed bean I'm creating was not referenced directly in the page, and it would have been a little artificial in that case to put it in. So I've resorted to a createValueBinding in the Shale init() method which bootstraps the be

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Dakota Jack
This is probably obvious, but you can choose to validate other than in the ActionForm, which I do, and not validate in the Action as well, which I also do. I leave validation to a validation application which sits between the business logic and the view for me. Jack On Fri, 18 Mar 2005 11:33:08

Re: Interesting problem...

2005-03-18 Thread Dakota Jack
The class works, but I don't think it is what you want. Maybe it is. Just don't have high expectations. I did and was disappointed. Just trying to help you out, Radar! ///;-) Jack On Fri, 18 Mar 2005 12:21:28 -0500 (EST), Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Why do you think it wo

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Dakota Jack
Where did you get this idea, Frank? This seems out of the blue on a thread about validation. I personally like the "new" dispatch action at http://www.michaelmcgrady.com/button/jsp/dispatch_action.jsp a lot. ///;-) Jack On Fri, 18 Mar 2005 12:25:00 -0500 (EST), Frank W. Zammetti <[EMAIL PROTEC

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Lawrie Gallardo
This was just my perception from reading Struts in Action and it was also explicitly stated in a couple of "Struts Best Practices" articles I found on the web. Personally, I found it a little bit disconcerting that Action classes, that I thought were supposed to be an implentation of the Comman

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 12:42 pm, Joe Germuska said: > I don't know if dispatch style is "best practice." It's my preferred > approach, but many experienced Struts developers don't like it much > at all. And then you've got wackos like Frank Z who like to write > more code just to show off their t

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
Commons ID has been in the sandbox for a year already? Ugh, someone get a release out! :) I think the solution I used is going to suffice nicely. I mean, in a cluster each machine still has a unique IP address anyway, so that in and of itself would have been enough. But, adding in the VMID and

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Hubert Rabago
It allows you to handle simple validations outside of the Action class, which would only be called when there's data that can be passed to the business tier (which may, among other things, perform business validation). Also, as the Validator plugin shows, it enabled declarative validation. So now

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Joe Germuska
At 5:17 PM + 3/18/05, Lawrie Gallardo wrote: I'm still relatively new to Struts, but I can't help but feel that validation would be better performed by Action classes rather than ActionForm classes. It seems to me that, ideally, you want 1. Validation, 2. Transformations (ie convert separate

Re: Interesting problem...

2005-03-18 Thread Martin Wegner
Frank, I was a little hinky myself about using Common ID in production. But I've been using it or over a year and it has performed admirably. We haven't seen any problems with the package. As for getting the MAC address I had to solve that problem about six months ago. I had to resort to Runti

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
In the interest of giving back, here's what I wound up doing: import java.net.InetAddress; import java.rmi.dgc.VMID; import java.util.GregorianCalendar; int vmidHash = new VMID().hashCode(); long currentTime = new GregorianCalendar().getTimeInMillis(); int ipHash = InetAddress.getLocalHost().hashC

RE: Wouldn't validation be better performed by Actions rather tha n ActionForms?

2005-03-18 Thread "Treviño De la Garza, Isidoro"
Another aproach is to generate your ActionForms using Xdoclet so you don't waste time generating them. Also, I think it is a great idea to do sintactic validation using the Commons Validator and then have some business/semantic validation in another layer, the commons validator (combined with xdoc

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Hubert Rabago
Inline. On Fri, 18 Mar 2005 17:17:39 +, Lawrie Gallardo <[EMAIL PROTECTED]> wrote: > I'm still relatively new to Struts, but I can't help but feel that > validation would be better performed by Action classes rather than > ActionForm classes. > > It seems to me that, ideally, you want > 1. Va

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Joe Germuska
Hijack alert! At 11:09 AM -0500 3/18/05, Rick Reumann wrote: Well, actually I like to have my own validate() method in each of my Dispatch Actions. I don't like having the framework call validate for me. One of the main reason is that if I'm in my action and I manually call my own action's valid

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Lawrie Gallardo
I'm not sure that I follow you... What I meant was that automatic declarative validation using Struts Validator should be invoked by a "ValidatingAction" baseclass validate() method, rather than DynaValidatorForm (or similar) baseclass validate() method. And that you could put any validation tha

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Hubert Rabago
You raise a lot of points, and I admit I won't be able to respond to all of them in one email (due mostly to time constraints). Besides, there are others who could respond, so I'll leave some out for them. :) There are/can be different levels of validation. Some validation you perform before oth

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Frank W. Zammetti
Is it really true that DispatchAction is now the accepted "best practice"? If so I have to say I disagree with that standard (if not, ignore me!) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Fri, March 18, 2005 12:17 pm, Lawrie Gallard

Re: [Shale] Resource initialisation best practice

2005-03-18 Thread Craig McClanahan
A technique I like (and is actually used in the Use Cases example) is to make your reference data into an application-scoped managed bean (for stuff common to all users; use session scope if it is user specific). Then, the first use of a value binding that needs to load the reference data will cau

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
Why do you think it wouldn't work? Does it sometimes return incorrect information in some setups? I thought of doing some kind of mini-browser-type thing, but before I go down that road I wanted to explore some simpler solutions. The Commons ID thing is very nice, but I'm not so sure I'm comfort

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Dakota Jack
I don't think you want an Action doing the validation, but I am with you that validation does not belong to ActionForm. You don't have to do it there, by the way. Jack On Fri, 18 Mar 2005 17:17:39 +, Lawrie Gallardo <[EMAIL PROTECTED]> wrote: > I'm still relatively new to Struts, but I can'

RE: ActionForm problem

2005-03-18 Thread Hyrum
Kudos to Jeff for the solution. I had overlooked renaming the getter method from isSsnOnFile() to getSsnOnFile(). Little details will kill you every time. Even though I'm leaving it as a boolean, I still appreciate knowing why it bombed in the first place. Thanks for the rest of the input, y'al

RE: ActionForm problem

2005-03-18 Thread Hyrum
Kudos to Jeff for the solution. I had overlooked renaming the getter method from isSsnOnFile() to getSsnOnFile(). Little details will kill you every time. Even though I'm leaving it as a boolean, I still appreciate knowing why it bombed in the first place. Thanks for the rest of the input, y'al

Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Lawrie Gallardo
I'm still relatively new to Struts, but I can't help but feel that validation would be better performed by Action classes rather than ActionForm classes. It seems to me that, ideally, you want 1. Validation, 2. Transformations (ie convert separate day, month and year HTML fields to Java Date ob

Re: Interesting problem...

2005-03-18 Thread Dakota Jack
InetAddress might not get the answer for you, Frank. I don't know what your setup is, but you can go to any ip address service outside your system and get a unique return address for your machines with a mini-browser. Jack On Fri, 18 Mar 2005 11:36:10 -0500 (EST), Frank W. Zammetti <[EMAIL PROT

Re: Tomcat 5.5.7 + Connection Pool

2005-03-18 Thread Alex Rodrigues da Silva
continue, i see this error : org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'. -- Alex Rodrigues da Silva Irigon Imóveis Analista de Sistemas tel.: 55 21 2522-0042 [EMAIL PROTECTED] -

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Dakota Jack
There are a "jillion" solutions, of course. I still think, and maybe I am stating it too much, that the solution should be framework and definitely should not be in a session object. I do think that application data should be handled and have suggested a StrutsState application in application sco

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
Oh, that is sweet! I was totally unaware of that. Thanks Martin! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Fri, March 18, 2005 11:52 am, Martin Wegner said: > > You can also use the Jakarta Commons ID packageto generate a GUID whic

Re: [OT] Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 11:46 am, Rick Reumann said: > Frank W. Zammetti wrote the following on 3/18/2005 11:34 AM: > >> At one point in time, and it might still stand, I don't >> know, I had the record in the Army for typing speed. I'm pretty quick >> :) > > I'll have to start calling you Radar:)

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Niall Pemberton
- Original Message - From: "Frank W. Zammetti" <[EMAIL PROTECTED]> Sent: Friday, March 18, 2005 4:34 PM > Good question about what happens with setupItems when validation fails... > I didn't think of that situation when I did it... Looking at the code, > NONE of the setupItems would be ex

Re: Best way to cancel

2005-03-18 Thread Rick Reumann
Abdullah Jibaly wrote the following on 3/17/2005 5:55 PM: Is there a way to press cancel on a display page and not have Struts populate the ActionForm with the values that were entered? If not what are some common workarounds to this? I basically want to be able to retrieve the old values in that c

RE: Tomcat 5.5.7 + Connection Pool

2005-03-18 Thread Abdullah Jibaly
Alex, Try using only the Resource element like this: Regards, Abdullah -Original Message- From: Alex Rodrigues da Silva [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 6:58 AM To: user@struts.apache.org Subject: Tomcat 5.5.7 + Connection Pool Hi, i'm trying to use a datasource

Re: Interesting problem...

2005-03-18 Thread Martin Wegner
You can also use the Jakarta Commons ID packageto generate a GUID which is guaranteed to be unique in the universe. You could then convert the GUID to your seed. --- Kris Schneider <[EMAIL PROTECTED]> wrote: > Will InetAddress.getLocalHost() work for you? > NetworkInterface.getNetworkInterface

[OT] Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Rick Reumann
Frank W. Zammetti wrote the following on 3/18/2005 11:34 AM: At one point in time, and it might still stand, I don't know, I had the record in the Army for typing speed. I'm pretty quick :) I'll have to start calling you Radar:) Although I think he was probably a pretty slow typist (faster than K

Re: ActionForm problem

2005-03-18 Thread Rick Reumann
Just curious, is your boolean getter autogenerated? It might be set up as isSsnOnFile which will work fine for booleans, but when you change to String it needs to find getSsnOnFile. My guess is maybe you changed the type but didn't change the syntax of the getter? Hyrum wrote the following on 3/

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
Yes, I think InetAddress just might do the trick. Thank you Kris! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Fri, March 18, 2005 11:24 am, Kris Schneider said: > Will InetAddress.getLocalHost() work for you? > NetworkInterface.getNet

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 11:09 am, Rick Reumann said: > Ok, not going down that road..wacko:) > But seriously > though, you said you had about 2000 lines of code between your > ActionForms. How much time do you think it takes you type out all those > getters and setters for all those properties?

Re: Interesting problem...

2005-03-18 Thread Kris Schneider
Will InetAddress.getLocalHost() work for you? NetworkInterface.getNetworkInterfaces() might also be of interest. Or, you might want to create yourself an instance of java.rmi.dgc.VMID... Quoting "Frank W. Zammetti" <[EMAIL PROTECTED]>: > Oh boy, I got a good one! It's only related to Struts in t

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Rick Reumann
Frank W. Zammetti wrote the following on 3/18/2005 10:42 AM: I'm not a believer in auto-generated code under any circumstance, even something as clearly mundane as getters and setters. Ok, not going down that road..wacko:) But seriously though, you said you had about 2000 lines of code between yo

Tomcat 5.5.7 + Connection Pool

2005-03-18 Thread Alex Rodrigues da Silva
Hi, i'm trying to use a datasource, to connect to postgresql, but i didn't do it. my server.xml have this lines then i added above : factoryorg.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory maxActive20 maxIdle10

Re: ActionForm problem

2005-03-18 Thread Jeff Beal
Did you change the types on both the getter and the setter methods? Did you keep a setter with the boolean type? I don't remember all of the details, but I don't think that the following is a valid bean property: public String getSsnOnFile() { return ssnOnFile ? "Y" : "N"; } public void setS

Re: html:XXXXXX question

2005-03-18 Thread Rick Reumann
Scott Purcell wrote the following on 3/18/2005 10:27 AM: I need to show an image (used to use ) This image does not need to be a url or anything. Use html:img for this and not html:image. Then you get set the height and width as above. html:image is for when you want the img to become (If you d

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 10:42 am, Rick Reumann said: > No, you are correct and sorry for the confusion. No worries mate! :) > Yes there is some over head if you have to forward to the setup of > another action (vs going right to the JSP), but to me that's a small > price to pay for having a clean

  1   2   >