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
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
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
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
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
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
>
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
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
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
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
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
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 &
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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"
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
>
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
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-
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
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
35 matches
Mail list logo