I finally figured this out. It was a stupid mistake. I had html:text property=username value= /. The value=
overrides what was in the bean. Once I removed this, problem solved.
Paul Barry wrote:
If validate fails, your action won't even be processed. You can't use
any of the forwards
If validate fails, your action won't even be processed. You can't use any of the forwards that you may set up for your
action, because your action never executes, you can't do a mapping.findForward(failure). Once validate fails, it
forwards to the input. The struts example has validate=false
I feel bad asking this question because I know it has been asked 1 million times in this group, but I still haven't
found the answer so I am asking it again. How do you get a form to re-populate if validation fails? Here is what I am
trying.
I have 2 actions:
action path=/myaccount/login
I can't test this right now, but if I have an ActionMapping with validate=true and no input, won't that result in an
error when validate fails? My understanding is that if validate fails, the request processor forwards the request to
the input.
will deal with
this problem (I haven't tested this so I don't know). Are you using a
file upload component?
Paul Barry wrote:
I am using Struts 1.1 in an application that needs to support the
UTF-8 character set. I am using Resin 2.1.10 with
character-encoding=UTF-8, and on most of my forms
http://www.reumann.net/do/struts/main
Hines, John wrote:
Is there a place where I can see a ***very*** simple struts example that I
can compile and run without too much typing? (I have in mind something as
simple as two jsps, one red background and submit button, one blue
background with submit
to tell the browser explicitly that your
pages are in UTF-8. For some reason that I've never fully understood, that
causes the browser to use UTF-8 when it submits subsequent requests from
that page. Make sure that you use a meta element in your head to specify
UTF-8.
--
Martin Cooper
Paul Barry [EMAIL
I am using Struts 1.1 in an application that needs to support the UTF-8 character set. I am using Resin 2.1.10 with
character-encoding=UTF-8, and on most of my forms this seems to work just fine. I am having problems with forms that
have to use the multipart/form-data enctype for handling
with a upload form like yours, but its a shot !
Regards
Jos Gustavo Zagato Rosa
System Analyst - Atos Origin
[EMAIL PROTECTED]
-Original Message-
From: Paul Barry [mailto:[EMAIL PROTECTED]
Sent: tera-feira, 28 de outubro de 2003 12:07
To: [EMAIL PROTECTED]
Subject: Problem with UTF-8
: Paul Barry [mailto:[EMAIL PROTECTED]
Sent: tera-feira, 28 de outubro de 2003 12:26
To: Struts Users Mailing List
Subject: Re: Problem with UTF-8 characters in a mutlipart/form-data
encoded form
Does it work with multipart/form-data encoding? It seems to me that
this problem is happening before
10 matches
Mail list logo