RE: i18n and nbsp;

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: 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: 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: 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 there

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: input form

2004-10-05 Thread Freddy Villalba A.
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- From: Freddy Villalba A. [mailto:[EMAIL PROTECTED] Sent

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. logic:iterate id=aBean name=search_results tr td input type=checkbox name=elementsId value='bean:write name=aBean property=id/' / /td td bean:write name=aBean

RE: Struts not mapping checkboxes into String[] property

2004-10-06 Thread Freddy Villalba A.
- De: Wendy Smoak [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 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

RE: Struts not mapping checkboxes into String[] property

2004-10-06 Thread Freddy Villalba A.
, 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 inside my actionForm class. I've even added

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 by

RE: cleaning session

2004-10-07 Thread Freddy Villalba A.
) that isn't needed anymore. It could 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 Villalba A. wrote: Hi, I have never

RE: cleaning session

2004-10-07 Thread Freddy Villalba A.
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, although on the same direction you are pointing to, I do believe though that the more framework-independent

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

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 property correctly processed

RE: cleaning session

2004-10-08 Thread Freddy Villalba A.
, 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 some point, shouldn't it be better

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

RE: Localization

2004-10-09 Thread Freddy Villalba A.
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. The problem: I'm passing values

RE: Error handling basics

2004-10-25 Thread Freddy Villalba A.
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 validate method. The problem is that I'm not being redirected to the jsp I

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: 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 forms).

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

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

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

RE: non-HTML attributes

2004-12-23 Thread Freddy Villalba A.
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, in this case, that would mean I'd have to rebuild views (JSP) which

read-only fields

2004-10-12 Thread Freddy Villalba A.
Hello everybody, I want some of the fields in my FORM 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

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

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

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

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 what

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

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 assure

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: [OT] JTA, JDBC and data persistence

2004-03-29 Thread Freddy Villalba Arias
- From: Freddy Villalba Arias [mailto:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 2:34 AM To: Struts Users Mailing List Subject: RE: [OT] JTA, JDBC and data persistence Hi everybody, Yes, I'm aware that this is the typical scenario for a O/R mapping tool (Hibernate, OJB... you

RE: Filters..

2004-04-06 Thread Freddy Villalba Arias
Whoa, talk about general questions!!! :) I suppose it depends on what you want them for and the overall context... Could you be more specific? Cheers, Freddy. -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviado el: martes, 06 de abril de 2004 16:23 Para: [EMAIL

RE: Filters..

2004-04-06 Thread Freddy Villalba Arias
:) -Original Message- From: Freddy Villalba Arias [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 7:53 PM To: Struts Users Mailing List Subject: RE: Filters.. Whoa, talk about general questions!!! :) I suppose it depends on what you want them for and the overall context... Could you

RE: [slightly OT] defensive strategy

2004-04-13 Thread Freddy Villalba Arias
Hi, Just a thought since I have never implemented something like this... I'd prevent users from submitting more than 1 vote from the same IP during a (configurable) period of time. I'd store all votes received in a DB. I'd implement some kind of police-entity, like, for instance, a

RE: Struts, Business Logic, DAOs

2004-04-15 Thread Freddy Villalba Arias
Hi Paul, I would implement BusinessRules (make that UseCases?) objects that encapsulate the BL behind your app. Then, in an upper layer, I would implement TransactionalOperations objects that define a transactional operation (thus encapsulating the begin and the end of your transaction), where

RE: [OT] Job-Posting

2004-05-06 Thread Freddy Villalba Arias
Does it require moving there or is distance working a possibility? What's the job description / responsabilities? Salary? (Euros, please) -Mensaje original- De: Oliver Thiel [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 05 de mayo de 2004 19:35 Para: Struts Users Mailing List CC:

Job

2004-05-06 Thread Freddy Villalba Arias
Sorry for the spam, everybody. Didn't mean to reply to all of you. Regards, Freddy.

RE: Caching data from resultset

2004-06-14 Thread Freddy Villalba Arias
Hi Leon, I suppose that, since you're talking about caching the ResultSet, you've already given a thought to the amount of data that you'd be handling, consider it to be feasible and reasonable to cache it. This said, why don't you take a look at CachedRowSet?

RE: Caching data from resultset

2004-06-14 Thread Freddy Villalba Arias
I'm sorry, my reply should have been directed to Chris, not Leon. My apologies, Leon. Regards, Freddy. -Mensaje original- De: Freddy Villalba Arias Enviado el: lunes, 14 de junio de 2004 14:22 Para: Struts Users Mailing List Asunto: RE: Caching data from resultset Hi Leon, I suppose

RE: Caching data from resultset

2004-06-16 Thread Freddy Villalba Arias
Hi, Yes, indeed. Postgres has something similar. Regards, Freddy. -Mensaje original- De: Pilgrim, Peter [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 16 de junio de 2004 11:51 Para: 'Struts Users Mailing List' Asunto: RE: Caching data from resultset -Original Message-