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
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
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
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
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
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
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
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
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).
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
) 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
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
-
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
, 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
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
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
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
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
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-
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?
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
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:
Sorry for the spam, everybody. Didn't mean to reply to all of you.
Regards,
Freddy.
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
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
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
:)
-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
-
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
42 matches
Mail list logo