Hi all,
I am trying to validate a collection of objects, like:
mask
^[0-9]*$
My question is.. I have 5 sets of 'meansAddress', but the error message
is NOT able to tell w
Hi all,
My question is... if my form has a collection of fields called storing
multiple email, dynamically added by javascript, how would i define it
in validation.xml in a general way, so that it can accomodate any number
of email addresses?
That is,
i probably have hidden fields created as lon
.
See if html:text with configuration of attributes works for you
HTH
Manish Singla
Patrick Cheng wrote:
> Hi all,
>
> I guess it should be an easy question about logic:iterate.
>
> I can do this:
>
> indexId="ctr"> indexed="true"/>
>
>
Hi all,
I guess it should be an easy question about logic:iterate.
I can do this:
Question is. HOW can I just display the value, instead of setting it in
the hidden field? I mean, essentially I'm trying to do a bean write:
But the beanwrite doesn't support indexed. So, what's the right
validate. when page=n (fields from
page attr page=0..n validate)
-----Original Message-
From: Patrick Cheng [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 12:49 PM
To: Struts Users Mailing List
Subject: RE: Disable validator framework
If you want to do validation conditionally, you ca
Try BeanUtils.copyProperties(FormObject, DTO) maybe?
-Original Message-
From: Sudhakar G [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 10:04 PM
To: Struts Users Mailing List
Subject: RE: Add/Modify functionality in same jsp
Hi
Can anyone help me in my modify jsp page how to
Oops, I think I worded it incorrectly,
I mean, you can have separate property file for each locale you want.
-Original Message-
From: Patrick Cheng
Sent: Wednesday, January 21, 2004 10:28 AM
To: Struts Users Mailing List
Subject: RE: Using struts I18N fonctionnalities from an
just a thought. Most people use the Application Resource bundle to
handle internationalization issues, and it also works in action classes.
You may have multiple property files for each locale, with the
corresponding i18n labels.
Rgds,
Patrick
-Original Message-
From: TRE
If you want to do validation conditionally, you can disable validation
in struts-config, and call 'form.validate' explicitly in the Action
class.(base on your condition)
About the 'page' attribute, what I don't understand is, how does struts
know which fields are in page 1, which fields are in page
Hi,
A few other folks and I had a discussion on this topic in this list
archive, search for it.
I just hope that I have not misunderstand you.
Topic of the message thread is "Modules with Tiles Problem". See if it
helps.
(if you really can't find these messages, I can PM you)
Rgds,
Patrick.
-O
--Original Message-----
From: Patrick Cheng [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 7:34 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Mandatory use of form rather than request object
Hi,
I understand that the request.getParameter should not be used when the
info
Hi,
I understand that the request.getParameter should not be used when the
info is readily available in the 'form' object.
But can we really take it out? When I create a list of records in a
table, with links to each record details, I would be generating an
object with parameters attached, resulti
How about combining the two, and build basic superclass of CRUD, and
then extends them in specific use? Just a thought.
Patrick.
-Original Message-
From: David Liles [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 7:01 AM
To: [EMAIL PROTECTED]
Subject: design suggestion
I am c
Does it mean, we need to have a form element, probably an HTML:hidden
With name "addNewMode" to specify if we're adding or modifying?
Rgds.
Patrick.
-Original Message-
From: Brian Barnett [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 8:16 AM
To: Struts Users Mailing List
Subje
I think the id field is a variable used to store the page information.
Say,
Then you will out.write(mybar) later whenever you want to display it.
Just my understanding. Hope it helps.
-Original Message-
From: Lucas Gonzalez [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 7:38 A
Struts automatically append the 'CONTEXT' for you in preparing the link
url.
So use it with care. I had this problem before. For example, when the
tile (I'm not sure if you're using tile, but it's my case) belongs to
the root context (""), and you want to link to a page in another
context, say 'dcs
HURRAY!! you will get QueryString like str=navjot&b.str=singh
hope this helps
Navjot Singh
**
Wife sleeping in the middle of night suddenly wakes up and shout.
"Quick! My husband is back". Man get up and jumps out of window. Then
realizes "SHIT! I AM the husband.
BeanUtils gives you the way to populate a MAP object from a Bean. Now al
you need to do is iterate over keys, form a querystring with each
name-value pair separated by &.
HTH
Navjot SIngh
>-Original Message-
>From: Patrick Cheng [mailto:[EMAIL PROTECTED]
>Sent: Monday, Janu
formbean when the user
resumes.
Any tools?
Thanks a lot.
Patrick.
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 12:14 PM
To: Struts Users Mailing List
Subject: Re: Querystring builder
On Mon, 5 Jan 2004, Patrick Cheng wrote:
> Hi All,
&g
Hi All,
I have been trying to find helper class to build QueryString from
javabean.
Does anyone know of any tool like this?
Thanks,
Patrick.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
Hi All,
Is it true that when I submit a form, it will automatically go thru the
ConvertUtils Converters? Is there a way I can bypass that? I know I can
write my own Converters and register it to override the default
behaviour, but is there a way to bypass the whole thing once and for
all? (or is i
ty of type CHAR.?
Regards
Amanpreet
-Original Message-----
From: Patrick Cheng [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 8:26 AM
To: Struts Users Mailing List
Subject: Primitive type bean property
Hi All,
A quick question.
Has anyone tried to write the form with pro
Hi All,
A quick question.
Has anyone tried to write the form with property of a 'char' primitive
type?
That is:
public char getC(){...}
public void setC(char c){...}
Is it supposed to work normally? I was doing it and the value was never
set.
I just need to know that if anyone had done it this
ings in it,
right?
Rgds,
Patrick.
-Original Message-----
From: Patrick Cheng
Sent: Tuesday, December 30, 2003 3:50 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: array property in ActionForm ???
Hi all,
I would like to continue on this question, on the jsp sid
Hi all,
I would like to continue on this question, on the jsp side.
I tried:
0
1
... So on...
But then, this doesn't work.
<%for (int i=0;i<4;i++){%>
<%=i%>
<%}%>
Is that NOT supposed to
Hi all,
I know that Tiles support i18n by allowing multiple tiles definition
files with standard java language file extension such as _en_US , _fr
etc.
My Master Layout file contains other pages such as the navbars, body
etc. and the ONLY single piece of information it needs to show is the
TITL
odule switching:
What can I do about this?
Thanks a lot really.
Patrick.
-Original Message-
From: Hibbs, David [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 11:16 PM
To: Patrick Cheng; Struts Users Mailing List
Subject: RE: Modules with Tiles Problem
If you have compo
ing there must be a better way round right?
Can someone tell me if this is the way? Or there're smarter ways?
Rgds,
Patrick.
-----Original Message-
From: Patrick Cheng
Sent: Wednesday, December 17, 2003 10:12 AM
To: Struts Users Mailing List
Subject: Modules with Tiles Problem
Hi All,
Hi All,
I have a question on Tiles when using Modules(multiple
struts-config.xml's). As far as I know, switching between modules
requires more than providing different URLs. Either we use
ContextRelative forwards or using the struts Swiching Action class. But
in the situation of tiles, if the layo
29 matches
Mail list logo