RE: Using html:text with java.util.Date property

2005-05-20 Thread Freddy Villalba A.
Hello Nestor, Personally, I consider it a good practice - and simpler - to handle dates as String objects (in the presentation layer, that is). This will save you lots of server-side-headaches and ease your way, especially when you have to face internationalization issues (for instance, different

RE: How to get the ActionErrors object from the request

2005-05-12 Thread Freddy Villalba A.
Hello, There is the "nice" way (tags) - which I deduce from a previous posting you already know - and then there are many "dirty" ways. For instance, you can access it directly. However, in that case, you have to find out the key under which Struts stores that object. There is one, that I can assu

RE: Problems with ActionError

2005-05-12 Thread Freddy Villalba A.
Hi Nestor, This is a code snippet from a catch clause in an ActionForm class of mine: ... ActionErrors errors = new ActionErrors(); if (this.getValorPorcentual() == null) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("ERROR

RE: Actions and Action Mappings instantiated once?

2005-04-18 Thread Freddy Villalba A.
Hello, Nestor. I'm not sure what you mean exactly by "node". Anyway, according to Struts' online doc: "Write code for a multi-threaded environment - The controller servlet creates only one instance of your Action class, and uses this one instance to service all requests..." Not sure if this is w

RE: non-HTML attributes

2004-12-23 Thread Freddy Villalba A.
wledge. I didn't think it was... -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, December 22, 2004 3:47 pm, Freddy Villalba A. said: > Yes, Frank. Believe it or not, I know what u mean and I agree with u. ;) > > However, i

RE: non-HTML attributes

2004-12-22 Thread Freddy Villalba A.
event handler. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, December 22, 2004 2:38 pm, Freddy Villalba A. said: > Hello everybody, > > Since TEXTAREA doesn't have a MAXLENGTH attribute (which is quite useful, > by >

non-HTML attributes

2004-12-22 Thread Freddy Villalba A.
Hello everybody, Since TEXTAREA doesn't have a MAXLENGTH attribute (which is quite useful, by the way), I wanted to implement my own solution using behaviours (hfc) to alter the standard TEXTAREA element. However, I've realized that this is not compatible with Struts' tag, since TLD validation thr

Struts application

2004-12-13 Thread Freddy Villalba A.
Hello everyone, I'm facing some problems with Struts on a Tomcat server. I'm looking for my own answers. However, input from both groups would be appreciated. I just downloaded Tomcat v5.5 and installed on an XP Professional box. No problem. I've been running and testing without trouble a Struts

RE: Access to a database with a configuration file

2004-12-04 Thread Freddy Villalba A.
Hi, If you're looking for simplicity, I'd suggest you go for sql2java (sourceforge). It's absolutely independent and automatic. In a few words, it's a class generator. It analyzes your database and automatically generates the DAO classes (the Java source, and even the javadocs) for it, including t

RE: Multiple forms in JSP using struts

2004-11-05 Thread Freddy Villalba A.
I've never liked this since I've always thought that, if one uses this approach, as soon as one of those forms requires "remembering" its values, all (action)forms (including that one) are "forced" to having "session" scope (then you'd have to setup a garbage collection process for those session fo

RE: Error handling basics

2004-10-25 Thread Freddy Villalba A.
By the way... I was being sarcastic with my last comment, Bill. Second-read it and thought it could have been offensive / rude. Thanx again. -Mensaje original- De: Freddy Villalba A. [mailto:[EMAIL PROTECTED] Enviado el: lunes, 25 de octubre de 2004 20:01 Para: Struts Users Mailing List

RE: Error handling basics

2004-10-25 Thread Freddy Villalba A.
2004 19:13 Para: [EMAIL PROTECTED] Asunto: Re: Error handling basics Hmmm... it looks like you *didn't* specify the input attribute on the mapping. Freddy Villalba A. wrote: > Hello, > > I've made myself a small test application. I wanted to test error handling > within the &

Error handling basics

2004-10-25 Thread Freddy Villalba A.
Hello, I've made myself a small test application. I wanted to test error handling within the "validate" method. The problem is that I'm not being redirected to the jsp I have specified inside the "input" attribute. Instead, I'm getting a blank page (with no error messages at all inside). This is

RE: Exposing ActionForm and MVC fields

2004-10-15 Thread Freddy Villalba A.
Hi, I believe you shouldn't abuse neither from the MVC pattern or the Struts' framework. All the issues regarding buyer's actions as well as seller's are part of an specific area: workflow management. Implement a basic WF Management subsystem (or integrate one into your application), define the

RE: Exposing ActionForm and MVC fields

2004-10-15 Thread Freddy Villalba A.
Hi, I'd go for approach #2. After all, they are different VIEWS of the same Model. I've faced this situation in a couple of projects before, and in both cases buyer's and seller's views differed in the long run. The more complex your business rules / model gets, the higher is the chance for that

RE: i18n and  

2004-10-13 Thread Freddy Villalba A.
You're initiative sounds interesting... however, I'm not sure I've fully undestood what you express. Let's see: if what you want to translate are property names, then what's the problem? for a property "X" that reads "Y Z L" in another language, you could perfectly have an entry on each dictionary

RE: Disappearing request values

2004-10-13 Thread Freddy Villalba A.
Are you redirecting or just forwarding to the second action? -Mensaje original- De: Lee Harrington [mailto:[EMAIL PROTECTED] Enviado el: miercoles, 13 de octubre de 2004 18:06 Para: Struts Users Mailing List Asunto: Disappearing request values I have an action that forwards to a second a

RE: Help! Questions about Checkbox and multibox

2004-10-13 Thread Freddy Villalba A.
Hi t, I'm having my own problems with checkboxes / multiboxes. However, I think I can help u a bit with some of those questions. - When you check a box and submit it, the value that gets submitted is the one on the value attribute of that checkbox. - When you check more than one checkbox with th

Obtaining an array property

2004-10-12 Thread Freddy Villalba A.
Hello everybody, This is a very silly question, but I haven't been able to find the answer on the archives (perhaps because it's already past midnight and I should be sleeping by now). I have an actionForm with a Long[] property (and also a String[]) that I want to render from a JSP. How can I ac

read-only fields

2004-10-12 Thread Freddy Villalba A.
Hello everybody, I want some of the fields in my to be read-only. Usually, I accomplished this by doing one of these: (1) Use "disabled". (2) Use readonly. Now, I have a problem with this... I want to use Struts' XHTML tag. I believe it's the cause for the failing of both alternatives above. I

RE: Localization

2004-10-09 Thread Freddy Villalba A.
uot;comma") - I guess their English. Hermod -Opprinnelig melding- Fra: Freddy Villalba A. [mailto:[EMAIL PROTECTED] Sendt: 8. oktober 2004 13:49 Til: Struts Users Mailing List Emne: Localization Hi, I'm having troubles getting a Double property correctly processed by Struts.

RE: [OT] Request for comments on DAO pattern implementation

2004-10-08 Thread Freddy Villalba A.
Hi, Let me try to complicate it a bit more! ;) Have you thought about just not coding at all (the DAO implementation, that is)? Take a look at sql2java. With that, you'd have a nice DAO implementation and be able to implement just about anything you want over it. HTH, Freddy. -Mensaje orig

RE: cleaning session

2004-10-08 Thread Freddy Villalba A.
u guys, or at least I'll repost. Right now I'm working on Swing stuff, but I'll be doing another web app soon, and maybe I can try something better then. Erik Freddy Villalba A. wrote: >Ok guys, > >Don't want to be the party-booer, but since we have kind of agreed to

RE: Localization

2004-10-08 Thread Freddy Villalba A.
Oppss... make that: European = ',' US = '.' -Mensaje original- De: Freddy Villalba A. [mailto:[EMAIL PROTECTED] Enviado el: viernes, 08 de octubre de 2004 13:49 Para: Struts Users Mailing List Asunto: Localization Hi, I'm having troubles getting a Double pro

Localization

2004-10-08 Thread Freddy Villalba A.
Hi, I'm having troubles getting a Double property correctly processed by Struts. The problem: I'm passing values with European number format (decimal separator = '.') but Struts seems not to understand this. The bizarre part is that, instead of throwing an Exception, it assigns 0.0 to the property

RE: cleaning session

2004-10-07 Thread Freddy Villalba A.
sers Mailing List > Subject: Re: cleaning session > > Yes, that is a good example. > > My only requirement here is that no one from STANDARDS BANK > may ever make use of it. > > :) > > Erik > > > > Freddy Villalba A. wrote: > > >There is another ty

RE: cleaning session

2004-10-07 Thread Freddy Villalba A.
igured that the vendor was probably finished using the file upload area (such as when he returned "home"). Probably you guys have far better examples, but that's just one off the top of my head. And XML is almost always good. Erik Freddy Villalba A. wrote: >Well guys

RE: cleaning session

2004-10-07 Thread Freddy Villalba A.
uld be a filter or a custom request processor in the world >>of Struts. Since I most often use my own controller Servlet I >>have my own place to put it, but basically, it gets invoked >>before any request handlers. >> >>Erik >> >> >>Freddy Villalb

RE: cleaning session

2004-10-07 Thread Freddy Villalba A.
Hi, I have never implemented anything like this (with Struts), but this is the first thing I can think of... Assuming your wizard is one-way (by this, I mean you have a linear graph - 1<->2<->3... -, no bifurcations and /or intersections and / or parallelism), you could "define" your "workflow" b

RE: Struts not mapping checkboxes into String[] property

2004-10-06 Thread Freddy Villalba A.
les, 06 de octubre de 2004 1:37 Para: Struts Users Mailing List; [EMAIL PROTECTED] Asunto: Re: Struts not mapping checkboxes into String[] property From: "Freddy Villalba A." <[EMAIL PROTECTED]> > I've also created a String[] > property called "elementsId"

RE: Struts not mapping checkboxes into String[] property

2004-10-06 Thread Freddy Villalba A.
iling List; [EMAIL PROTECTED] Asunto: Re: Struts not mapping checkboxes into String[] property From: "Freddy Villalba A." <[EMAIL PROTECTED]> > I've also created a String[] > property called "elementsId" inside my actionForm class. I've even added the >

Struts not mapping checkboxes into String[] property

2004-10-05 Thread Freddy Villalba A.
Hello, I have the following piece of code in a jsp that generates a search results' table. € There is a delete button that invokes the "delete" action for deleting those elements whose checkbox was selected. In order

RE: input form

2004-10-05 Thread Freddy Villalba A.
in --submit> action2.do Action1.do is the initial action class above and action2.do is the action where you are going to act on the submitted data. Al p.s. if you need an example I can probably strip one down and send it to you direct, just let me know. -Original Message-

RE: input form

2004-10-05 Thread Freddy Villalba A.
Hi, Allen... I have a similar question: when you say create the action form and put it into request scope... I suppose you refer to the same ActionForm that will be used when, say, saving that prepopulated form again (the changes you've made). Right? Then, what I'm not really sure is this: should

RE: How To Display Checkboxes in a Table with an Additional Select All Box?

2004-10-04 Thread Freddy Villalba A.
Hi, If I understood your question, I guess the most simple solution is JavaScript: name all your checkboxes in a certain way (say, for instance, use a prefix like "memberSelector_") and create a JavaScript function that toggles on / off the elements whose name begin with that prefix. I guess ther