I haven't used the validator in a while but I have a 3 questions for you:
1. If, as you say, the Javascript tag isn't being enclosed in
.. tags, then you need to verify that your validation file
is loaded AND that you have the correct form name in your . I've had that problem before when the file
Ok, I found the problem ... I did some more searching on the Internet,
and it was a previouus, much older message which I did not see at first:
The first Action-Mapping in order to set-up the MemberAddressForm was
defined as:
type="com.tjh.csaa.beans.MemberAddressAction"
name="MemberAdd
I've done a lot more research on this issue and the I found the
web-site: http://husted.com/struts/catalog.html
which proved to be an invaluable aid in the best practices of how to
create a Struts-based wab-application.
I also found this site which seemed to give me all the answers I needed
or
OK I think I must be spreading confusion - thats what you get, arrays of
beans, not strings.
For LazyValidatorForm the default for an indexed property is an ArrayList of
LazyDynaBean - and it populates the LazyDynaBean for you automatically.
For LazyDynaBean the default indexed property is an Arr
Aside from form field definition, which isn't needed for a lazy form
bean, having a FormDef-backed form would take care of the
formatting/parsing of the data, even i18n. The form definition &
validation config combo is actually just optional.
My understanding of the question on the user list was
I experienced the same with commons fileupload. Parsing the request
returns an empty list of fileitems
Wolfgang
Ivan Vasquez wrote:
Hi,
Our users need to upload a file as part of a form submission. First we
used struts-upload FormFile as one of the fields of the ActionForm. It
worked well until we
OK yall, I'm running into a nasty situation where i have a a content
tile and a navigation tile inside of a layout tile which extends a
layout tile. The problem is im doing some puts inside the various
content tiles that the nav tile cant see when i use tiles:importAttribute.
Here is the tiles
I believe I understand the principle of FormDef - you're combining the form
definition with the validation rules. So is that why you want to nest
indexed ActionForms rather than any old type of DynaBean? Are you then
calling the validate() method on each of the indexed ActionForms?
You're right if
You're right. I want to do '1-800-Struts-Help' or '1-111-'
I was very confused about the mask values in struts validation.
clear now... Thanks.
--M
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beal
Sent: Friday, October 01, 2004 3:26 PM
To: [EMAIL PROTECT
I don't use the nested tags, but the problem is that the way you've code
them its just going to generate a whole load of tags with the same
name...
(You can verify this easily by looking at the source of the generated html
page)
which means struts will simply try to populate all the values
But if I need it to be a DynaActionForm subclass, then I'd just use
LazyValidatorForm or its subclass, right? In which case, wouldn't I
have to worry about it being properly initialized, as indicated in
http://struts.apache.org/userGuide/building_controller.html#dyna_action_form_classes
?
Someone
Peng, Meimin wrote:
Thanks.
I just make it work by doing this.
^[0-9a-zA-Z-\-]*$
I couldn't find info on any strut books. But, here is the original
validation package. Cheers!
http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html
That will allow any number of '-' signs to be valid:
'--
Well, you could try to use and if it works, then your container
supports it :) else
robert
> -Original Message-
> From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 01, 2004 3:21 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Format Date Question
>
>
> I en
It could, although there is no need for it to be an ActionForm - could just
be a LazyDynaBean. Having said that, you would probably want to override the
default "indexed" type to be a LazyDynaBean array rather than ArrayList as
LazyDynaBean doesn't populate Lists, but it does Arrays.
public class
From: "Anna Kerekes" <[EMAIL PROTECTED]>
> Just the "select" list information is gone, all the textbox information is
preserved on the form.
Thanks for confirming that.
If you want Struts to "remember" the selected items, then you MUST use
Struts tags to display those items, and in this
case.
Hi,
Our users need to upload a file as part of a form submission. First we
used struts-upload FormFile as one of the fields of the ActionForm. It
worked well until we tested it in a Tomcat cluster.
Since the form is session-scoped, the FormFile has to be serialized for
sessions to be replicated.
Just the "select" list information is gone, all the textbox information is preserved
on the form.
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Fri 01/10/2004 3:38 PM
To: Struts Users Mailing List
Subject: Re: populate html:select
From: "Anna Kerekes" <[EM
From: "Anna Kerekes" <[EMAIL PROTECTED]>
> This case is different from the regular use of html:option because this
> information is never saved to a Collection (since the validation
failed)..
> so this information about the dropdown menu needs has to be retrieved
> from the request scope or som
I ended up grabbing the strings taglib and wrapped it as follows:
This works great. I don't think we're using the JSTL library yet that
includes the fn:toUpperCase functionality... How can I verify that?
Thanks
Chris
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED
In JSP2.0 you could use JSTL fn:toUpperCase() after you format the date.
robert
> -Original Message-
> From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 01, 2004 2:50 PM
> To: '[EMAIL PROTECTED]'
> Subject: Format Date Question
>
>
> I am using the fmt:formateDat
Daniel H. F. e Silva wrote:
Hi Gabriel,
When posting to the struts-users list, please, don't use any language other than english.
It is unpolite as just a few dudes here understand portuguese.
If you and all other Struts dudes (hey, i'm brazilian too) need help with Struts, join the
funkiest irc
This case is different from the regular use of html:option because this information is
never saved to a Collection (since the validation failed)..
so this information about the dropdown menu needs has to be retrieved from the request
scope or some other place
In 2.3 of StrutsCatalogLazyList, it uses a Lazy*Form flavor to hold an
indexed property. Can the indexed property itself an array or list of
Lazy*Form objects?
On Fri, 1 Oct 2004 00:17:40 +0100, Niall Pemberton
<[EMAIL PROTECTED]> wrote:
> I've set up this wiki page showing how to use indexed
I am using the fmt:formateDate taglib with a pattern in order to present
dates in a specified format. Ideally we'd like to output our dates as such
02-APR-2004 instead of 02-Apr-2004. Is there any pattern or way I could
force format date to output the date in uppercase?
_
Thanks.
I just make it work by doing this.
^[0-9a-zA-Z-\-]*$
I couldn't find info on any strut books. But, here is the original
validation package. Cheers!
http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Beh
Normally I would think of it as the root folder of your web archive. For
instance if I have the following
/
---WEB-INF
---classes
---lib
/images
/docs
/ would be my web-root.
I think that is what Exadel is using. I haven't used it in over 6 months as
I prefer to just use some basics to do
From: "Anna Kerekes" <[EMAIL PROTECTED]>
Hello,
1
...
> The problem is that the value selected from the drop-down menu (i.e.
html:select)
> before the "submit" button was hit is NOT preserved on the form
You need to use Struts tags for the options if you expect the framework to
pre-fill the form.
Hello,
I am using struts validation to validate an input form. In my jsp I have:
1
2
3
4
The form is filled out. After I hit the "submit" button Struts validation is run and
the input form is displayed again with the errors on the form. The problem is that
the value selected from t
Peng, Meimin wrote:
Hi,
Please help.
I want to use strut's validation to validate a form field called number.
This field allows to input text, number and -.
The code bellows right now is only to validate text and number without
space.
How can I make it work with '-'?
Thanks.
From: "joe a." <[EMAIL PROTECTED]>
> I am in need of a document covering how to use xml as a data source
> with struts. If someone could post a link I would appreciate it.
> Also, what are the benefits to using xml as a datasource instead of a
> db like mysql?
I don't know that I'd do it in a pro
I agree. At a minimum, use HSSQLDB or something similar.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "Ivan Vasquez" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Frida
> Also, what are the benefits to using xml as a datasource instead of a
> db like mysql?
Unless you have existing data that cannot be migrated to a relational DB
(or other good reason to keep it as XML), I would advise against using
XML as data source. Simply put, parsing XML is always comparative
Yes, thanks very much, that worked out great! Anna:)
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: Fri 01/10/2004 10:58 AM
To: Struts Users Mailing List
Subject: Re: validator-rules.xml behaviour
In your validateDate method, are you doing an errors.add
Yeah. I know.
But, I can't do anything about it.
It attaches to all my outgoing emails automatically.
-Original Message-
From: Brantley Hobbs [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 12:54 PM
To: Struts Users Mailing List
Subject: OT - RE: validation - mask help
> CONFIDE
Thanks for the info.
"membership_address.do" is the Action from the JSP page when I do my
submit. If I call the this Action with validate=true, then it's going
to call the FormBean Validate method first, and if anything is required,
then it would get errors and return to the calling page with a
I am in need of a document covering how to use xml as a data source
with struts. If someone could post a link I would appreciate it.
Also, what are the benefits to using xml as a datasource instead of a
db like mysql?
Thanks,
Joe
-
> CONFIDENTIALITY NOTICE: The information in this e-mail is privileged
and
> confidential. Any use, copying or dissemination of any portion of
this
> e-mail by or to anyone other than the intended recipient(s) is
> unauthorized.
> If you have received this e-mail in error, please reply to sender
Hi,
Please help.
I want to use strut's validation to validate a form field called number.
This field allows to input text, number and -.
The code bellows right now is only to validate text and number without
space.
How can I make it work with '-'?
Thanks.
From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
> So, the way I started to handle this is call the JSP page directly with
> the form. I got the 'member' object from session and I populated the
> value field as follows:
>
> Would this be appropriate? It works except for my checkboxes.
No. Set those
I'm a newbie struts, but I am making progress. As I've worked on my
application, I am learning more and it also causes me to ask more questions.
So, I have a login form, a loginAction, LoginBean, and it all works
great. The LoginBean calls out to the database, passing in a username
to the dat
Mark,
Thanks but I thogth of redirect. Below I am now including the action
mappings.
*
Ruben Cepeda
[EMAIL PROTECTED]
*
Original Message Follows
From: Mark Lowe <[EMAIL PROTECTED]>
Repl
I believe, Wendy, he is asking how LookupDispatchAction gets the name of
his button if he does not somehow assign some value to a name, such as
"method=button.delete" or "method=delete".
I gave you the answer to this, Gabriel. There is a "huge" structure
built around LookupDispatchAction whic
From: "Gabriel França Campolina" <[EMAIL PROTECTED]>
> I'd like know more about this, if I don't set a value to variable
> method, what method will call in my action???
> ex in my url:
> if I do:
> .../produto.do?method= //how call my methods to
> lookupdispachaction(method=button.delete o
Hi Folks,
I'd like know more about this, if I don't set a value to variable
method, what method will call in my action???
ex in my url:
if I do:
.../produto.do?method= //how call my methods to
lookupdispachaction(method=button.delete or method=delete)
I do not use Exadel, but it sounds fairly similar to what MyEclipse does.
Default using 'New Project' will give you something like this...
+-/myproject
+-/Java Source
+-/Web Root
+-/images
+-/WEB-INF
+-lib
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech
My apologies to those who tried to get to www.michaelmcgrady.com since
last night. (I was amazed at the volume, actually.) The host,
www.lunarpages.com, was having JSP issues and now has the issues resolved.
Michael McGrady
-
hello,
this is a part of getting start with Struts with Exadel, any can tell me
what the hell WEB-ROOT is?
i dont find any folder with this name.
Thanks.
Sako.
---
Creating JSP Page Placeholders
Next, let's create three
Try Quartz. I posted yesterday regarding Quartz and Struts. Weibe de Jong
replied with some excellent ideas on how to use the Quartz scheduler with
Struts and included some nice code to get you started.
-Original Message-
From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
Sent: Friday, October
Hi, Gabriel,
In order to cover multiple images on submits, LookupDispatchAction does
the following in order:
1 Find the mapping attirbute parameter in order to find the value of
the visual representation, e.g. "Delete It". This requires, of course
that this be the value of the name attribute
Turn off validation in struts-config by setting validate="false". Then you
call validate manually in your save method, which is typically where you
would want validation code.
-struts-config snippet-
-save method in acti
Hi folks,
How inicialized the DynaValidatorForm with a LookUpDispachAction?can't?
--
Gabriel França Campolina
Tel: 9202-8320
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
In your validateDate method, are you doing an errors.add before
returning false? If not, no message will be put into the errors object
to be printed out.
In my custom validators, I have the methodParams looks like this:
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAct
>
> $2,900 or $29.00 ?
>
try googling for references to I18N.
__
This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive this
e-mail in e
Take a look in FieldChecks to see how other validators work:
http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/validator/
Having said that, returning "false" just stops the validation from
proceeding for that field, you need to add an error message - looks to me
like y
I try to get multichoice options value by a select form.And in y struts-config I use
DynaActionForm getting an array of String as parameter property.But It's always give
me null.
How to map it?
Libero ADSL: navighi gratis a 1.2 Mega
Hello,
I am trying to add my own custom validation method to my validator-rules.xml file.
Here's the new snippet I am adding (Validator is a utility class I wrote to perform
extra validation):
I have tried debugging my code, the validator does indeed go into my validateDate
method and retur
$2,900 or $29.00 ?
-Original Message-
From: Sandro Duarte [mailto:[EMAIL PROTECTED]
Sent: 01 October 2004 15:33
To: Struts Users Mailing List
Subject: Re: new to Struts
I use MyEclipse, wich costs me $29,00 a year and do the job beautifully
Sandro
On Fri, 1 Oct 2004 15:57:12 +0200, WO
I use MyEclipse, wich costs me $29,00 a year and do the job beautifully
Sandro
On Fri, 1 Oct 2004 15:57:12 +0200, WOLips <[EMAIL PROTECTED]> wrote:
> Hello,
>
> is Exadel Struts Studio plug-in for Eclipse a good tool?
>
> do you use another one?
>
> Exadel Pro costs $400 what is the good free
Try
Mark
On 1 Oct 2004, at 15:38, Ruben Cepeda wrote:
Hello everyone,
I am adding new information to a table and the redirecting via an
action forward to an action that display the content of the table.
This work perfectly the first time I add something to the table.
After the first adding wh
Thanks for your help. The explanation is very clear.
--- Matt Bathje <[EMAIL PROTECTED]> wrote:
> I've never used the attribute myself, but I
> think when you do, you
> need to specify the key, and a name attribute for
> which validation the
> message applies to. So in your case it would be:
>
Factor the business logic out of your Actions into some generic business classes
and run a separate process to handle this type of automation. There is no
need to have it coupled to your web application.
Look into Quarts, Timer/TimerTask, etc...
robert
> -Original Message-
> From: Ciar
Hello,
is Exadel Struts Studio plug-in for Eclipse a good tool?
do you use another one?
Exadel Pro costs $400 what is the good free alternative?
Regards.
Sako.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
http://java-source.net/open-source/job-schedulers
Dennis
"Ciaran Hanley"
<[EMAIL PROTECTED]>
10/01/2004 08:49 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"Struts User Mailing
List" <[EMAIL PROTECTED]>
cc
Subject
OT: Scheduling Actions
Hi,
There might be some debate about this, but a daemon thread would be my suggestion.
I know the rule about no spawning threads in a servlet container, but I've always
thought that rule was a bit nebulous... Does it literally mean don't spwan any
threads, or does it mean don't spawn any threads to
Hello everyone,
I am adding new information to a table and the redirecting via an action
forward to an action that display the content of the table. This work
perfectly the first time I add something to the table. After the first
adding when I am forward to view all the entry to the table I am
you might want to look at Timer objects ...
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Timer.html
havn't used them, but if they are there ...
Your other solutions are awesome. I use the "hand crank..." one since I
didn't know of the lazylist at the time. The code looks right.
Thanks for posting the other "lazy" solutions, I'll try them in the
future.
Regards...djsuarez
-Original Message-
From: Niall Pemberton [mailto:[EMAIL
Hi,
I have several actions in my struts webapp that require a user to manually
click a form button to carry out the action, e.g. update database. I want to
be able to schedule these actions to be carried out at a set time daily
without any user intervention. I am looking for suggestions on what
Test
This e-mail is confidential. If you have received it in error, you are on notice
of its status. Please notify us immediately by reply e-mail and then delete this
message from your system. Please do not copy it or use it for any purposes, or
disclose its contents to any other person; to do s
Hi Folks,
I have a action-mapping that mapping a Action named ProdutoAction that
extends LookupDispachAction and have 3 methods into: start, delete,
save. I'd like inicialized my form with values of my dataBase request
the method start. With ActionForm I can do, but I was used the
DynaValidatorFo
Good! Just so you know, I discovered that in my haste I had made a few
mistakes on the last option. They are fixed. I will now change the
source code to reflect that.
Ben wrote:
Thanks Michael. I believe I have all the necessary information to move forward.
Thanks again.
-Ben
On Fri, 01 Oct 2
Hi folks,
i got some problems with ActionErrors from Struts. If i tried to add some
Error, i will get a blank page without some error msg.
code snipplet:
ActionErrors errors = validate(form,request,mapping);
errors.add("foobar", new ActionError("abc12345"));
System.out.println("error status -
Thanks Michael. I believe I have all the necessary information to move forward.
Thanks again.
-Ben
On Fri, 01 Oct 2004 01:01:21 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
> Hi, Ben,
>
> If you follow the link I gave you, all the source code is available at
> the demonstration page under
Just to avoid future issue (in case of a change in your
authorization/authentication system) , may i suggest to use standards in
your interface implementation (whatever is your final system)...
I'm thinking about JAAS.
Have a look on this paper :
http://theserverside.com/news/thread.tss?thread_i
Hi,
Why don't you use for the same We are using it for similar
functionality.
Ratnakar
Wendy Smoak <[EMAIL PROTECTED]> wrote:
From: "Shabada, Gnaneshwer"
> You are right. But like I did in my previous snippet, if I setup my
> deleteAction mapping to deleteForm in my config file I would
Hi All
I try to get multichoice options by a select box.I'm using DynaActionForm and I
declared a String array as a trasfering form parameter in struts-config.
But actually in the Action class I cannot see it.
What is the correct syntax to declare action and form mapping in struts-config for
thi
Hi, Ben,
If you follow the link I gave you, all the source code is available at
the demonstration page under the link (in a light green) called "view
code". It is just to the right of the CRUD options in each of the four
solutions. If that is not enough, please let me know. That solution
has
Can you show me the source code for the LogonDispatchUtilAction?
Thanks
On Fri, 01 Oct 2004 00:03:36 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
> If you want to try out a war that I just created on this, with the code
> that is running, try
> http://wiki.apache.org/struts/StrutsCatalogVar
Thanks everyone, especially Mike for providing me with a very
comprehensive answer. I am evaluating the suggested solutions.
On Thu, 30 Sep 2004 09:03:39 -0600, Carlos Cajina - Hotmail
<[EMAIL PROTECTED]> wrote:
> Hi Ben.
>
> I see that Mike McGrady already pointed you in the right direction
If you want to try out a war that I just created on this, with the code
that is running, try
http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions , Ben.
Ben wrote:
Thanks everyone, especially Mike for providing me with a very
comprehensive answer. I am evaluating the suggested solut
80 matches
Mail list logo