t the name of the property is 'paymentAmount' yet in the form
> definition
> it states the name as 'payments'?
>
> Christopher Marsh-Bourdon
> www.marsh-bourdon.com
>
>
> -Original Message-
> From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
&
Subject: RE: DynaActionForm values problem after submit
Is it the name of the property is 'paymentAmount' yet in the form definition
it states the name as 'payments'?
Christopher Marsh-Bourdon
www.marsh-bourdon.com
-Original Message-
From: Ciaran Hanley [mailto:[EMAI
Can anybody help me with the problem below please. I've hit a brick wall
with it! :)
-Original Message-
From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
Sent: 28 June 2005 20:02
To: 'Struts User Mailing List'
Subject: Unable to read DynaForm array values
I have the following
I have the following DynaActionForm bean (where EditPaymentForm extends
DynaActionForm so I can use custom validations) and corresponding action
mapping
I pre-populate this form in my Action class for display on a JSP for
editing. The values show up fine in the JSP text b
Attaching the answer John had given me for indexed properties.
Hope this would help...
- Original Message -
From: "Ciaran Hanley" <[EMAIL PROTECTED]>
To: "'Struts User Mailing List'"
Sent: Thursday, June 23, 2005 3:01 PM
Subject: How to create form rows
Can somebody help me or propose a solution to the following please.
I wish to create a form dynamically. Depending on the business logic there
could be 0 to N rows in the form. I tried to use a form with an array of
strings and use the indexed="true" setting in the html:text boxes but as I
was
Can somebody please explain why properties of a bean appear on a JSP like
this when the indexed="true" property is set
org.apache.struts.taglib.html.BEAN[0].propertyName
org.apache.struts.taglib.html.BEAN[1].propertyName
org.apache.struts.taglib.html.BEAN[2].propertyName
instead of propertyName[0
I'm having trouble using indexed select. I need to create several select
boxes dynamically but I also need to be able to manipulate the data with
client side JavaScript.
The values I want to change with JavaScript are coming up on the JSP as
follows:
org.apache.struts.taglib.html.BEAN[0].fo
I am trying to reuse ActionForms within an application but I am unsure how
to deal with validation. What I have at the moment is an ActionForm1 which
contains a second form ActionForm2. In validation.xml, how do I use the
validation for ActionForm2 within the ActionForm1 validation? Can I use it
wi
Hi,
I am using the struts validator plug-in in my webapp. I have observed that
sometimes on JSPs that use form validation that the javascript generated by
html:javascript tag comes out on the generated html page. It happens very
irregularly so its hard to spot what is causing it. Anybody have a
Look at the parameters on your Action's execute. There is a
"ActionForm form" -- you cast that form to your form's type:
MyFormClass myform = (MyFormClass) form;
then you manipulate it's properties. You don't have to put it back in
the session -- it exists in the reque
created. Any ideas why this
happens?
Thanks
-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: 01 December 2004 19:52
To: Struts Users Mailing List
Subject: RE: Checking radio button based on object value
> -Original Message-
> From: Ciaran Hanley [
getting your values from the database, but rather from
a session variable -- then replace step 2 with "populate form bean
with values from session object"
Lee
On Wed, 1 Dec 2004 18:50:20 -, Ciaran Hanley
<[EMAIL PROTECTED]> wrote:
> optionOne, optionTwo are two groups consisting
default values:
Suppose I have a group (group1) of radio buttons, say 3. I want to preselect
the first one.
In my JSP file. I do this:
In the form bean file, I will have a property called "group1", and default
value is "rb1"
private String group1="rb1";
Hope
Hi,
I have a form consisting of several radio buttons. Upon form generation I
need radio buttons in the form to be checked based on the attribute of a
bean stored in the session. If the beans property is true then a particular
radio button value of "true" should be checked.
Option One
what ways
that this can be accomplished?
Thanks,
Ciaran
_
Ciaran Hanley
Software Development
Sentenial Ltd.
Tel: 00 353 (1) 629 2141
Fax: 00 353 (1) 629 2147
Mob: 00 353 (0) 87 916 4943
E-Mail: [EMAIL PROTECTED]
Web: www.sentenial.ie <http://www.sentenial
: Reusing methods across actions classes
I would say that if you have common functionality such as a method that all
objects [Actions] share then place the common method in a super class
[Action] that the other classes can extend.
Original Message Follows
From: "Ciaran Hanley&quo
Hey,
Bit of a dummy question here but I am wondering what is the best way to
reuse methods across different action classes. Is it acceptable to make an
instance of an action class within an action class so I can use one of its
methods. Or would it be better to simply copy and paste the method i
The struts logic user documentation shows the use of a redirect to an action
is permitted
http://struts.apache.org/userGuide/struts-logic.html#redirect
But when I use it I get the following error:
"Attribute action invalid for tag redirect according to TLD"
This is where I call the
Hello,
Is it possible for forms to share a common field?
I have two forms on a page which both need to gather data from a
html:textarea.
I do not want to have two textareas on the JSP however so I can I share one
between both forms?
Thanks,
CH
As you suggested, setting validate to false worked. Strange it has never
happened with any other forms in my app. Thanks for your help
Ciaran
-Original Message-
From: ksitron [mailto:[EMAIL PROTECTED]
Sent: 15 June 2004 17:59
To: Ciaran Hanley
Subject: Re: Form Validation
PROTECTED]
Sent: 15 June 2004 17:02
To: Struts Users Mailing List
Subject: Re: Form Validation Before Submit
In your struts-config.xml, if you have the validate="true" set. Then,
the validate method of your form will be
called before your action.execute method is called.
Ciaran Hanley wrot
: "Ciaran Hanley" <[EMAIL PROTECTED]>
To: "Struts User Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 15, 2004 10:44 AM
Subject: Form Validation Before Submit
Hello,
I have a simple form in my application which I am having trouble with.
On entering the ac
Hello,
I have a simple form in my application which I am having trouble with.
On entering the action class and forwarding to the JSP I see error messages
which should only appear when the form has been validated after submitting.
I cannot figure out why this is appearing as all that is call
Thanks for your replies,
Setting the filter did the trick
CH
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: 10 June 2004 16:12
To: Struts Users Mailing List
Subject: RE: Application Resources Question
>> >help.info = First sentence of help. Second sentence Thir
code is in your JSP to display
the message resource?
>From: "Ciaran Hanley" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts User Mailing List" <[EMAIL PROTECTED]>
>Subject: Application Resour
Hi,
I am trying to format some text so that it appears on separate lines so I am
using the tag in my ApplicationResources.properties file.
help.info = First sentence of help. Second sentence Third etc...
The tag is coming out as text on the page and in the source it is
translated as
Hey,
Is there an easy way for struts to interact with .NET and web services? Our
current system is developed using struts but now there is a requirement to
interact with a web service application which is designed using C Sharp and
.NET. The problem is how to interact between the two as I do no
Hi,
My struts webapp seems to be using up a lot of memory and quite often get
OutOfMemory errors or crash Tomcat requiring a restart. How do I go about
freeing up memory? I have started by storing as many objects as possible at
request scope rather that at session scope, is there any other thin
Can the struts logic tags be used to perform OR Logic?
For example instead of
...do this
...do this
...do this
...do this
Any ideas anybody?
Thanks
CH
30 matches
Mail list logo