Hello, I'm trying to iterate through a collection of beans and call a custom
tag for each bean.
logic:iterate id=dezeSchaal name=%=Risc.BEREKENING%
property=profielSchalen /
risc:staaf
schaal_nummer=bean:write name=dezeSchaal
property=schaalNummer/
risc:staaf
schaal_nummer=bean:write name=dezeSchaal
property=schaalNummer/
This is a standard tag nesting error. You can't put tags inside of tag
attributes. You CAN put scriptlets, such as your first tag...
logic:iterate id=dezeSchaal
that indexed properties for the validator do not work in
javascript? Or am I
doing something wrong?
Thanks,
Craig
tataryn:craig/
tataryn:craig/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
I am trying to configure properties in my ActionForm using the struts-config
file as follows.
form-bean name=myForm type=com.myCompany.MyForm
set-property property=foo value=bar /
/form-bean
public Class MyForm extends ActionForm
{
private String foo;
public void
set-property is not a sub-tag of form-bean, form-property is though. If you're
not using dynamic form bean, you don't need to define the properties in the
form-bean tag.
HTH,
Saul
- Original Message -
From: Chan, Jim
To: '[EMAIL PROTECTED]'
Sent: Monday, March 22, 2004 8:27
[mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 6:28 PM
To: Struts Users Mailing List
Subject: Re: Using struts-config to configure properties in action form
set-property is not a sub-tag of form-bean, form-property is though.
If you're not using dynamic form bean, you don't need to define
haven't been able to hook it up to my form yet.
-Original Message-
From: Saul Q Yuan [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 6:28 PM
To: Struts Users Mailing List
Subject: Re: Using struts-config to configure properties in action form
set-property is not a sub-tag of form-bean
) {
if (bCancel)
return true;
else
return validateRequired(form);
}
function required () {
}
So does this mean that indexed properties for the validator do not work in javascript?
Or am I
doing something wrong?
Thanks,
Craig
html:submit property=submitValueSubmit Changes/html:submit
/html:form
I searched online about the meaning of these properties only fail to find
any clear descritpions, the api of struts says little about them, can
anyone tell me the meanings of them?
by the way, for this jsp file ,can any
I have the below jsp file needs help
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
html
body
html:form action=indexedtest5.do
logic:iterate name=stringbean property=stringArray id=foo
indexId=ctr
!--what do
sorry, the last mail doesnt display correctly, but when I tried to write a
new one, I saw it displays correctly as the below
ThanksRegards
From: Mu Mike [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: help me about indexed properties
Date
well,sorry again, my qeustion is the below
I have the below jsp file needs help
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
html
body
html:form action=indexedtest5.do
logic:iterate name=stringbean property=stringArray id=foo
--- Mu Mike [EMAIL PROTECTED] wrote:
(QUESTION: what do name property ,id ,indexID mean here? what value can
I set to them?)
I searched online only fail to find any doc that give detailed
explaination about these proeprties
html:text name=stringbean
Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: help me about indexed properties
Date: Fri, 12 Mar 2004 02:49:47 +
I have the below jsp file needs help
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic
property='%= labelValue[ + ctr + ].label %' /
(QUESTION: WHAT DO name,property MEAN HERE? WHAT VALUES CAN I SET TO
THEM?)
/logic:iterate
html:submit property=submitValueSubmit Changes/html:submit
/html:form
I searched online about the meaning of these properties only fail to find
any clear
Changes/html:submit
/html:form
I searched online about the meaning of these properties only fail to
find
any clear descritpions, the api of struts says little about them, can
anyone tell me the meanings of them?
by the way, for this jsp file ,can any one give me the related bean
:
And mvnplugin_mvnforum_MVNForumConfig is a
properties file. Please advice regarding the
directory in which this properties file is supposed to
be.
It goes in the same place as your *.java code files. As you have it,
there is no directory for it, so it would go in the root directory of
your
PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: help me about indexed properties
Date: Thu, 11 Mar 2004 21:11:42 -0600 (CST)
Hi Mike, the attributes for logic iterate are all explained here:
http://jakarta.apache.org/struts/userGuide/struts-logic.html
/html:form
I searched online about the meaning of these properties only fail to find
any clear descritpions, the api of struts says little about them, can
anyone tell me the meanings of them?
by the way, for this jsp file ,can any one give me the related bean files
that can be used in it?
ThanksRegards
: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Friday, March 05, 2004 2:38 PM
To: Struts Users Mailing List
Subject: Header for errors (no HTML in the .properties file)
I'm using this to display errors:
div class=error
ul
html-el:messages id=msg message=false
lic:out value
On 03/05/2004 05:16 AM Caroline Jen wrote:
And mvnplugin_mvnforum_MVNForumConfig is a
properties file. Please advice regarding the
directory in which this properties file is supposed to
be.
It goes in the same place as your *.java code files. As you have it,
there is no directory for it, so
I'm using this to display errors:
div class=error
ul
html-el:messages id=msg message=false
lic:out value=${msg}//li
/html-el:messages
/ul
/div
How do I put the old Validation ErrorYou must correct the following
error(s) before proceeding: text at the top if
Check the logic:messagesPresent and logic:messagesNotPresent and see if
they do the trick for you.
- Hubert
--- Wendy Smoak [EMAIL PROTECTED] wrote:
I'm using this to display errors:
div class=error
ul
html-el:messages id=msg message=false
lic:out value=${msg}//li
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Check the logic:messagesPresent and
logic:messagesNotPresent and see if
they do the trick for you.
Yes, logic-el:messagesPresent did the trick. Thanks!
But I still think it should be possible with JSTL...
--
Wendy Smoak
Application Systems
(no HTML in the .properties file)
I'm using this to display errors:
div class=error
ul
html-el:messages id=msg message=false
lic:out value=${msg}//li
/html-el:messages
/ul
/div
How do I put the old Validation ErrorYou must correct the following
error(s) before
I am using Struts and internationalization. I have
code like:
private static final String OPTION_FILE_NAME =
mvnplugin_mvnforum_MVNForumConfig;
static
{
ResourceBundle res =
ResourceBundle.getBundle(OPTION_FILE_NAME);
}
And mvnplugin_mvnforum_MVNForumConfig is a
properties
I would like to do something like this:
key.name= b my message in bold /b
is there any way to get the messages tag to output escaped hmtl?
-john
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
, February 29, 2004 7:49 PM
To: Struts (E-mail)
Subject: is there any way to include HTML in message properties file?
I would like to do something like this:
key.name= b my message in bold /b
is there any way to get the messages tag to output escaped hmtl?
-john
: is there any way to include HTML in message properties
file?
If its just for messages,
We do the following
This defines the header and footer for a message, IE, we set
the color and an unordered list
!-- error HTML header and footer (note: errors. is required by struts) --
errors.header=p align
to
NullException.
Any ideas, about how to name the getters/setters for the indexed
properties (in my case is a bean with Strings).
java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Threre is a way for test if my resource properties file is in memory , because my
application can't read any key of that file, and I made other application (for test),
I used the way and works ok.
I'm use easyStruts an eclipse and I have this message: Faltal error on loading
sounds interesting and I'm up for a bit of collaboration.
Niall
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 17, 2004 7:31 PM
Subject: Re: Problem Dynamically creating form properties
I meant to say I
Hi,
In my case I still declare properties in
Struts-config, so the validator still validates (as I have seen
From the errors received :-)
I was curious 'bout Guillermo approach coz I was trying
To explore ways so that a change in parameters from
Backend layers will lead to as small
Users Mailing List
Subject: Re: Problem Dynamically creating form properties
As long as we're sharing... =)
I wrote a plug-in which defines my DynaActionForms based on my DTOs. So
if I
have an employee DTO, it will define a DynaActionForm for me with the
fields
from my employee DTO. It helps me
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: 17 February 2004 19:24
To: Struts Users Mailing List
Subject: Re: Problem Dynamically creating form properties
As long as we're sharing... =)
I wrote a plug-in which defines my DynaActionForms based on my DTOs
I would be interested int his, Niall.
At 10:46 AM 2/17/2004, you wrote:
I have a version of DynaBean based on the MutableDynaClass interface which
allows properties to be added dynamically - which anyone would be free to
use (I tried to attach here but struts-user rejected the mail saying we
properties
I would be interested int his, Niall.
At 10:46 AM 2/17/2004, you wrote:
I have a version of DynaBean based on the MutableDynaClass interface
which
allows properties to be added dynamically - which anyone would be free to
use (I tried to attach here but struts-user rejected the mail saying
with the correct
number of properties
2. accessing these form fields in the action class.
Normally, form property definitions need to be
defined at compile time (whether you use Action Forms
or DynaForms)
Ideally, I'd like to use the struts framework to avail
of Validator,etc,etc. Also, I would like to use
to be a holder
of DynamicBean (somethind like this: ((DynamicForm)form).getModel()
returns a DynamicBean with all properties.)
So, we add html:text fields to the JSP and these are populated to this
DynamicForm without the need of declaring this property anywhere. And we
have optionall Contract asserter
respond to Struts Users Mailing List
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
cc:
Subject:RE: Problem Dynamically creating form properties
I previuosly posted a mail to this list asking why DynaForms are called
Dynamic if you have to declare them
Mailing List
Subject: RE: Problem Dynamically creating form properties
That sounds excellent, is it available for use?
Paul
Global Equity Derivatives Technology
Deutsche Bank
Hi Guillermo,
I have one question: will 'your trick' work also if I have
properties of type, for example, Short, or Integer, or java.sql.Date?
Thanx and regards
marco
-Original Message-
From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
Sent: 17 February 2004 12:43
DynamicBean can have it's properties typed:
Example:
DynamicBean db = DynamicBeanFactory.create();
db.setCalendar(date, Calendar.getInstance());
db.setLong(idXX, 123);
db.setString(prop, Hello World);
db.setObject(objPropName, new Object());
db.add(collectionPropName, Item1); //this creates
Should java.sql.Date belong in an form bean?
On 17 Feb 2004, at 16:15, Marco Mistroni wrote:
Hi Guillermo,
I have one question: will 'your trick' work also if I have
properties of type, for example, Short, or Integer, or java.sql.Date?
Thanx and regards
marco
-Original
) Persistence framework persists this object in the database.
Regards.
Guillermo.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Martes, 17 de Febrero de 2004 12:34 p.m.
To: Struts Users Mailing List
Subject: Re: Problem Dynamically creating form properties
Should
[mailto:[EMAIL PROTECTED]
Sent: Martes, 17 de Febrero de 2004 12:34 p.m.
To: Struts Users Mailing List
Subject: Re: Problem Dynamically creating form properties
Should java.sql.Date belong in an form bean?
On 17 Feb 2004, at 16:15, Marco Mistroni wrote:
Hi Guillermo,
I have one question
properties stored in the DynaBean..
Regards
marco
-Original Message-
From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
Sent: 17 February 2004 15:44
To: 'Struts Users Mailing List'
Subject: RE: Problem Dynamically creating form properties
Our DynamicBean holds java.util.Calendar
.
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: Problem Dynamically creating form properties
That sounds great (I hate write lot of set/get methods.. :-) )!
One further enquiry: so the actual DynaBean TO PersistenceObject
'transformation' is done where the DynaBean is 'created
'transformation' is done where the DynaBean is 'created' (persistence
layer
I guess)?
Since as far as I understood that is the only place that knows about
properties stored in the DynaBean..
Regards
marco
-Original Message-
From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
Sent: 17
: Problem Dynamically creating form properties
The cost of the getters and setters IMO usually don't outweigh the
benefits of the validation framework, and having something in the
middle of the form submission and the action.
Before struts validator action forms provided a convenient place
I have a version of DynaBean based on the MutableDynaClass interface which
allows properties to be added dynamically - which anyone would be free to
use (I tried to attach here but struts-user rejected the mail saying we
don't accept executable content ). We have also equivalent versions
allows properties to be added dynamically - which anyone would be free to
use (I tried to attach here but struts-user rejected the mail saying we
don't accept executable content ). We have also equivalent versions of the
DynaValidatorForm and DynaValidatorActionForm based on this dynamic
. I'm finishing up unit
tests and docs for it.
- Hubert
--- Niall Pemberton [EMAIL PROTECTED] wrote:
I have a version of DynaBean based on the MutableDynaClass interface
which
allows properties to be added dynamically - which anyone would be free to
use (I tried to attach here but struts
on the MutableDynaClass interface
which
allows properties to be added dynamically - which anyone would be free
to
use (I tried to attach here but struts-user rejected the mail saying
we
don't accept executable content ). We have also equivalent versions of
the
DynaValidatorForm
form properties
I meant to say I wonder if we can combine what we have.
--- Hubert Rabago [EMAIL PROTECTED] wrote:
Niall,
I wonder if we can what we have.
I wonder what that would look like.
Could be interesting.
Hubert
--- Hubert Rabago [EMAIL PROTECTED] wrote:
As long as we're
, 17 de Febrero de 2004 02:23 p.m.
To: Struts Users Mailing List
Subject: Re: Problem Dynamically creating form properties
The cost of the getters and setters IMO usually don't outweigh the
benefits of the validation framework, and having something in the
middle of the form submission and the action
Your stuff sounds interesting and I'm up for a bit of collaboration.
Niall
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 17, 2004 7:31 PM
Subject: Re: Problem Dynamically creating form properties
I
Febrero de 2004 04:31 p.m.
To: Struts Users Mailing List
Subject: Re: Problem Dynamically creating form properties
I meant to say I wonder if we can combine what we have.
--- Hubert Rabago [EMAIL PROTECTED] wrote:
Niall,
I wonder if we can what we have.
I wonder what that would
PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 17, 2004 7:31 PM
Subject: Re: Problem Dynamically creating form properties
I meant to say I wonder if we can combine what we have.
--- Hubert Rabago [EMAIL PROTECTED] wrote:
Niall,
I wonder if we
Hi,
We want to copy from one bean to another by using BeanUtils.copyProperties.
There are some differences between the properties of these two beans.
Is there any way that we can send, for example a HasMap, to this method (or
similar method), and define the relation of properties of these beans
were not retained.
To work around that, I'm trying indexed properties,
but it has not helped my cause, only added to my
woes:(
With indexed properties, I don't seem to get the
values of the textfields in the form bean(I get a
NullPointerException on form submission). Also, the
values
to understand whats goign on...
HTH.
regards,
Shirish
-Original Message-
From: Shyam A [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 4:04 PM
To: Struts Users Mailing List
Subject: problem with indexed properties
Hello,
I'm trying to use indexed propeties in my form bean
(ActionForm
were not retained.
To work around that, I'm trying indexed properties,
but it has not helped my cause, only added to my
woes:(
With indexed properties, I don't seem to get the
values of the textfields in the form bean(I get a
NullPointerException on form submission). Also, the
values
OK, this isn't real easy to explain, but it's got me stumped at the moment.
I am working on an application that will display hundreds of different
beans. To cut down on there being hundreds of value beans, I have created a
generic value bean that uses getters and setters like so:
public String
folder structureHi Folks...
I have a situation where I have this model:
Customer
- name : String
- phone : String
- addr1 : String:
- addr2 : String
- sales: Vector (of following classe)
Sales
- date: Date
- paymentMethod: String
- value: Double
How can I present the properties from sales
will be appreciated.
regards
Edgar Silva
- Original Message -
From: Edgar Silva [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, February 05, 2004 11:08 AM
Subject: Printing nested properties
folder structureHi Folks...
I have a situation where I have
that there is a nested tag library, and I've tried to utilise this, but
with no success.
How do you successfully nest iterators and display properties in the nested iterator?
I don't want to use a scriptlet.
Read our disclaimer at: http://www.picknpay.co.za/email-disclaimer.htm
If you don't have web
=subElement property=orderNo/
I get a No getter method for property orderNoof bean subElement exception.
I noticed that there is a nested tag library, and I've tried to utilise this, but
with no success.
How do you successfully nest iterators and display properties in the nested iterator?
I
properties
I Thought I'd reply to my own message with our solution to this issue.
Feedback is most welcome.
Here are the changes we made:
1) We have an indexed getter and setter exactly as per the JavaBean spec
2) A non-indexed List getter and setter as supported by BeanUtils
3) Using our own
Good evening...
i'm trying to use set-property on my action, in struts-config.xml i have:
action path=/BillPayment
type=com.elixonline.TECO.ivr.CustomerInformation.BillPayment
set-property property=noTransferDays value=MONDAY/
/action
and my class defines
public void setNoTransferDays(String
set-property refers to a property of the *action-mapping*, not the
*action*. The class which needs to define noTransferDays should
extend org.apache.struts.action.ActionMapping, and is specified in
the XML using the className attribute (as opposed to type).
Then in your Action, cast the
To: 'Struts Users Mailing List'
Subject: RE: Conventions for indexed properties
Thanks for the responses guys. Does that mean the following
getter (given at
http://jakarta.apache.org/struts/faqs/indexedprops.html) is
incorrect? It
doesn't seem to follow the javabean spec for indexed
Hi,
i wonder to kno if its possible to access the ApplicationResources properties on
another way than using a bean like :
bean:message key=my.property/
A generate a part of code in a JSP class. and this code has to use some properties
available in ApplicationResources.
If i use bean:message
You can use a work around way...
take a look at: java.util.Properties
Properties p = new Properties().load(InputStream inStream);
/* The InputStream will be your ApplicationResources properties file.
than you just need to get the properties you need... */
p.get(my.property)
Tiago Henrique C. R
-TAHMASSEB Marc [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 5:24 AM
To: [EMAIL PROTECTED]
Subject: How to retreive ApplicationResources properties ?
Hi,
i wonder to kno if its possible to access the
ApplicationResources properties on another way than using a
bean like
Hi - could someone please point me to a definitive guide to get() and set()
conventions for indexed properties in Struts? I've seen and tried plenty of
variations; there doesn't seem to be one standard solution that works every
time.
E.g. for the property
List books = new ArrayList(); // assume
I don't have a definitive guide, but here are some examples that could
be helpful.
Here's a slice of the guts of a form with int indexed properties that
works for me. The use of simple arrays is a serious shortcoming, but
the interface works with the JSP below:
public void reset
Actually, this is the definitive guide:
http://jakarta.apache.org/struts/faqs/indexedprops.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
for indexed properties -- one that has
the getter and setter methods taking an array, and one that has the getter and
setter methods taking an additional argument for the index.
There's lots of other useful info about what it means to be a JavaBean here as
well. Just as one example, did you know
Thanks for the responses guys. Does that mean the following getter (given at
http://jakarta.apache.org/struts/faqs/indexedprops.html) is incorrect? It
doesn't seem to follow the javabean spec for indexed properties:
public java.util.List getStringIndexed(int index) {
return
I have some trouble using a boolean (the primitive type) property inside
an ActionForm. What I'd like to know is if Struts looks for a
getProperty method or isProperty method... It seems Struts always calls
the getProperty, but as I know it should call the isProperty!!
Is the behavior with a
properties - Newbie question
I have some trouble using a boolean (the primitive type) property inside
an ActionForm. What I'd like to know is if Struts looks for a
getProperty method or isProperty method... It seems Struts always calls
the getProperty, but as I know it should call the isProperty
=${accountMap[accountForm.map.calendarYear]}
var=account
html-el:checkbox property=accounts indexed=true
I lied, that doesn't work at all. It produces HTML like this:
input type=checkbox
name=org.apache.struts.taglib.html.BEAN[0].accounts
value=on10_U_FADA0001
I read that indexed properties
=org.apache.struts.taglib.html.BEAN[0].accounts
value=on10_U_FADA0001
I read that indexed properties only work with logic:iterate, so I'm
trying to change over from logic:forEach. Can someone help me sort this
out?
This works to generate HTML, but BeanUtils can't populate the ArrayList
that is the 'accounts
I lied, that doesn't work at all. It produces HTML like this:
input type=checkbox
name=org.apache.struts.taglib.html.BEAN[0].accounts
value=on10_U_FADA0001
I read that indexed properties only work with logic:iterate, so I'm
trying to change over from logic:forEach. Can someone help me sort
the accounts name.
Struts will reset your form and them populate the accounts property of your
form with the String array.
Unless I've missed something, I don't see the need to using indexed
properties here if the selected value is single String and order doesn't
matter.
robert
-Original
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Unless I've missed something, I don't see the need to using indexed
properties here if the selected value is single String and
order doesn't matter.
After much consideration, neither do I! I thought ArrayList would be
easier to deal
]
Unless I've missed something, I don't see the need to using indexed
properties here if the selected value is single String and
order doesn't matter.
After much consideration, neither do I! I thought ArrayList would be
easier to deal with, but it turns out that String[] is the right type
to
use
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Using arrayList as a form property works fine with action
forms dyna or
otherwise. In fact IMO it makes like simpler. As i recall you were
trying to iterate through a map of forms not an arraylist.
The iterator goes through a Map, yes, but that
fair enough ..
i'm having a bad day with multiple, select menus and bean utils not
dealing with life every well.
java.lang.IllegalArgumentException: argument type mismatch
bean utils seems to be complaining that the types in my form and those
in the form bean are somehow different, i cant see
From: Mark Lowe [mailto:[EMAIL PROTECTED]
It was working, until i rearranged a few things. A few
questions/suggestions in help me problem solve would be greatly
appreciated if you have the time.
I also don't see why BeanUtils can't handle turning multiple request
parameters with the same
For a resizable list from an array, try:
List stringList = new ArrayList(Arrays.asList(stringArray));
Quoting Wendy Smoak [EMAIL PROTECTED]:
From: Mark Lowe [mailto:[EMAIL PROTECTED]
It was working, until i rearranged a few things. A few
questions/suggestions in help me problem solve
The only issue with using arraylist as a form property is to scope to
session so you can change the size when required. I tend to use them
for nesting beans rather then just storing strings.
My form parameters are in an arraylist. I just think beanUtils hates me
or something rational like
Hi, Wendy,
Just do this or whatever is similar that you like. This is what I do.
public class ArrayListWrapper
extends ArrayList {
private ArrayListWrapper(Object [] param) {
for(int i = 0; i param.length; i++) {
this.add(param[i]);
}
}
public static ArrayList
I have some configuration properties for my structs app that I am thinking
of moving to properties and creating a singleton objects to hold this
property values. Is there any reason not to to this with struts? does
anyone know if there is an example of this somewhere? my recent search have
been
You could simply store the loaded Properties object in the ServletContext
where the
same instance would be available to the entire web application thus acting
as a singleton
of sorts without necessarily implementing the pattern.
robert
-Original Message-
From: jay andrews [mailto
HTML like this:
input type=checkbox
name=org.apache.struts.taglib.html.BEAN[0].accounts
value=on10_U_FADA0001
I read that indexed properties only work with logic:iterate, so I'm
trying to change over from logic:forEach. Can someone help me sort this
out?
This works to generate HTML
I have a String[] property in a DynaValidatorForm. It works fine with
multiple checkboxes and accepts multiple selections.
Now I need to do an advanced user interface, where the user can enter
the information in text boxes and click 'Add'. Behind the scenes I need
to populate that String[]
I think your multibox needs to be index=true or be a checkbox with
index=true.
On 9 Jan 2004, at 21:46, Wendy Smoak wrote:
I have a String[] property in a DynaValidatorForm. It works fine with
multiple checkboxes and accepts multiple selections.
Now I need to do an advanced user interface,
Robert, I followed your advices. Your code works
very well. I have successfully inserted all the
values of my bean properties into the database. Thank
you very much.
--- Robert Taylor [EMAIL PROTECTED] wrote:
The same problem exists, you are calling getters on
a ThreadBean instance
which
1 - 100 of 1065 matches
Mail list logo