I'll be very interested to here the outcome...
Thanks
Martin
-Original Message-
From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 16:07
To: Struts Users Mailing List
Subject: RE: How does ActionForm data pass through container called form
based login page?
We
quest);
Chain.doFilter(newreq, response);
}
}
Thanks
-- pady
[EMAIL PROTECTED]
-Original Message-
From: Martin Alley [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 10:35 AM
To: 'Struts Users Mailing List'
Subject: RE: How does ActionForm da
I think I need to do some simple test cases - with and without struts.
Martin
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 15:20
To: Struts Users Mailing List
Subject: RE: How does ActionForm data pass through container called form
based login page
rs Mailing List
Subject: RE: How does ActionForm data pass through container called form
based login page?
This is the only solution I can think of:
public class RedirectServletRequest extends HttpServletRequest {
public RedirectServletRequest(HttpServletRequest req) {
thi
I might be able to put some general code in the login form (as a jsp)
that puts all form data present in the previous page into the login form
so it could be passed on, but that will still leave the problem of the
method becomes GET instead of POST.
I'm really hoping there's a more elegant solution
rect to REDIRECT_URI
}
}
Thanks
-- pady
[EMAIL PROTECTED]
-Original Message-
From: Martin Alley [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 8:59 AM
To: 'Struts Users Mailing List'
Subject: RE: How does ActionForm data pass through container called form
bas
7;s a more elegant solution - after this
technology's been around for a while!
Thanks
Martin
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 14:21
To: Struts Users Mailing List
Subject: RE: How does ActionForm data pass through container called form
b
er
gets a chance to create an ActionForm based on the submission, so I
don't think that making them session scoped is likely to help.
This probably doesn't constitute a solution, but perhaps extending
the session timeout would help a bit. Perhaps you could come up with
some kind of javas
-Original Message-
From: Martin Alley [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 09:41
To: [EMAIL PROTECTED]
Subject: How does ActionForm data pass through container called form
based login page?
Hi,
Suppose I've got a web based form that posts data to an action, and I
have that
ado el: viernes, 26 de marzo de 2004 11:05
Para: Struts Users Mailing List
Asunto: Re: Handling Date objects in ActionForm gracefully
Freddy. No, you misunderstood if you thought I was responding with any
hostility whatsoever.
There is a general problem where input would be better validated in the
ado el: viernes, 26 de marzo de 2004 10:24
Para: Struts Users Mailing List
Asunto: Re: Handling Date objects in ActionForm gracefully
I think the way of going about converting is pretty open, either have
some conversion utils between the web tier and the model. I tend to do
it in the action and t
-
De: Mark Lowe [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 26 de marzo de 2004 10:24
Para: Struts Users Mailing List
Asunto: Re: Handling Date objects in ActionForm gracefully
I think the way of going about converting is pretty open, either have
some conversion utils between the web tier a
Hi,
Suppose I've got a web based form that posts data to an action, and I
have that action protected by container form based authorization - how
does the ActionForm data get through.
I have a situation like this, and my ActionForm is empty after I've been
through the form-based login
Since I just wrestled greatly with this particular beast, my $.02 follows.
Subclass whatever flavor of ActionForm you use, and give it a method with a
footprint like-
java.util.Date StringToDate(String)
{
}
This way you can do something like this in your action:
public ActionForward execute
day, month and year.
Not sure if this works but I think the idea is valid (corrections
welcome).
public class SomeForm extends ActionForm {
private Calendar aDate = Calender.instance();
public String getDay() {
int d = aDate.get(Calendar. DAY_OF_MONTH);
t; on 03/25/2004 08:53:31 PM
Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:(bcc: Anuj Upadhyay/Jeppesen/TMC)
Subject: RE: Handling Date objects in ActionForm gracefully
+1
> -
OTECTED]
Enviado el: viernes, 26 de marzo de 2004 0:59
Para: Sreenivasa Chadalavada; Struts Users Mailing List
Asunto: Re: Handling Date objects in ActionForm gracefully
You deal with the conversion else where but not in the form bean, you
can argue about it or just believe me. The action form sits b
design of
ActionForm (and the recommendation that form bean properties be
Strings) is
***very*** deliberate. The reason this is needed is obvious when you
consider
the following use case:
* You have an input form that, say, accepts only integers.
* Your form bean property is of type "int"
.
sandeep
-Original Message-
From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 3:11 PM
To: Struts Users Mailing List
Subject: RE: Handling Date objects in ActionForm gracefully
Do you know if the behavior can be overridden?
Thanks and Regards,
Sree
: Friday, March 26, 2004 1:06 AM
To: Struts Users Mailing List
Subject: RE: Handling Date objects in ActionForm gracefully
What's the problem?
robert
> -Original Message-
> From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 25, 2004 2:28 PM
>
quot;Struts Users Mailing List"
<[EMAIL PROTECTED]>
cc:
Subject: RE: Handling Date objects in ActionForm
gracefully
yes it is. It should be done once per classloader.
When struts populates the dyna form it is string array to string array
conversion and use
.
"Takhar, Sandeep"
03/25/2004 02:53 PM
Please respond to "Struts Users Mailing List"
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:
Subject: RE: Handling Date objec
PROTECTED]
Sent: Thursday, March 25, 2004 2:47 PM
To: Struts Users Mailing List
Subject: Re: Handling Date objects in ActionForm gracefully
I am thinking of overriding the struts default mechanism.
Override the default behavior of org.apache.commons.beanutils.ConvertUtils
by registering
a valid
+1
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 25, 2004 2:36 PM
> To: Struts Users Mailing List
> Subject: Re: Handling Date objects in ActionForm gracefully
>
>
> Have it as a string and convert it to a date or calen
List"
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:
Subject:Re: Handling Date objects in ActionForm gracefully
Have it as a string and convert it to a date or calendar when you pass
it back to the model.
On 25 Mar 2004, at 20:
.
"Robert Taylor"
03/25/2004 02:35 PM
Please respond to "Struts Users Mailing List"
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:
Subject: RE: Handling Date objects in ActionForm gracefully
What'
Have it as a string and convert it to a date or calendar when you pass
it back to the model.
On 25 Mar 2004, at 20:28, Sreenivasa Chadalavada wrote:
All,
We are facing a problem when we define java.util.Date field in
ActionForm.
Is there any way to override the default behavior provided by
What's the problem?
robert
> -Original Message-
> From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 25, 2004 2:28 PM
> To: Struts Users Mailing List
> Subject: Handling Date objects in ActionForm gracefully
>
>
> All,
>
&
All,
We are facing a problem when we define java.util.Date field in ActionForm.
Is there any way to override the default behavior provided by Struts?
I very much appreciate your help!!
Thanks and Regards,
Sree
> From: Frank Burns [mailto:[EMAIL PROTECTED]
> I have a jsp form which has fields that require no
> validation. So I don't
> need to validate the form input.
> If I don't include an ActionForm, I get a "... null form ..."
> error message.
> Does this
Hello Frank
ActionForm in no necesary if you don't use the tag.. if
you use it then you have to use an actionform even if you don't have any
validation on it.
Hope it helps,
Johann
-Original Message-
From: Frank Burns [mailto:[EMAIL PROTECTED]
Se
I have a jsp form which has fields that require no validation. So I don't
need to validate the form input.
If I don't include an ActionForm, I get a "... null form ..." error message.
Does this mean that I MUST create ActionForms, even if they are "empty" --
i.e
yle" wrote:
>
> Hey, I am using a map-backed ActionForm and so in my JSP code I have a
> tag that looks like this:
> />
>
> The reason I have a scriplet in there is because I have a dynamic form and
> the value of the key changes all the time. I want the value
ROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: Re: Problem with Map-backed ActionForm and Key value
> >Date: Sun, 07 Mar 2004 12:30:43 -0500
> >MIME-Version: 1.0
&
Try
<% String propertyName = "value(" + myId + ")"; %>
Brian Boyle wrote:
Hi!,
Thanks for the quick response.
I have already tried declaring myId as String myId =
value.getCandId();. I then put myId as an argument in but the key value is still being taken literally as <%=myId%>.
I don't kno
able
to pass in an argument as long as it is of type String?
Brian
From: "Geeta Ramani" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Problem with Map-backed Ac
Hey Brian:
Have you tried evaluating the keyValue ahead of time? As in:
<%String myKey = ..blah-blah.. using userId;%>
and then:
Give it a shot if you haven't..
Good luck!
Geeta
Brian Boyle wrote:
> Hey, I am using a map-backed ActionForm and so in my JSP code I have a
> ta
Hey, I am using a map-backed ActionForm and so in my JSP code I have a
tag that looks like this:
The reason I have a scriplet in there is because I have a dynamic form and
the value of the key changes all the time. I want the value of the key to be
the "id" of the user logged in
I am having a difficult time getting Map backed ActionForm's working.
In the ActionForm class I have the following methods defined
private Map elementMap = new HashMap ( );
public Object getElementMap ( String key ) {
return ( String ) elementMap.get ( key );
}
p
Hi,
In my application I am stumped by a problem with Map-backed ActionForms.
We have a couple of use cases where a user must update values for
mutiple database rows/data objects at once. Persons objects are being
updated with time and place information, let's say.
So I followed this recommenda
/02/04 11:36 AM >>>
Hello,
I have and ActionForm with one element refering to a Date (from Util)
property and I get the following exception
java.lang.IllegalArgumentException: argument type mismatch
Is there a special treatment for these kind of attributes
I'd say no. Don't have the ActionForm (just a JavaBean with some validation
in it...maybe) access the business layer.
To me, the Action acts as the local Java class talked about in the Business
Delegate Pattern that creates and caches a Stateful Session Bean. Use them
(the actions
the date
format MM/dd/yy will parse 1/1/04 as 01/01/2004, but 1/1/4 as
01/01/0004, so you need to handle that yourself.
Same trick with numeric classes.
Larry
>>> [EMAIL PROTECTED] 03/02/04 11:36 AM >>>
Hello,
I have and ActionForm with one element refering to a Date (from Ut
n with
the ActionForm and was then wondering if I should design our ActionForm's to
have direct access to the business layer.
Thoughts?
Thanks,
Brian Barnett
Hello,
I have and ActionForm with one element refering to a Date (from Util)
property and I get the following exception
java.lang.IllegalArgumentException: argument type mismatch
Is there a special treatment for these kind of attributes?
Thanks,
_
Vanessa Monteiro
Can we populate ActionForm to populate result set data..How? and then
how one can retrieve it in JSP page ..in html table.
If anybody has already done it ..I will appreciate if they can send me
sample code...else even hint/refrences will do
Pradeep Kumar
Digital Globalsoft Ltd.
(A subsidiary of
Thank you the detailed reply.
Can we populate ActionForm to populate result set data..How? and then
how one can retrieve it in JSP page ..in html table.
If anybody has already done it ..I will appreciate if they can send me
sample code...else even hint/refrences will do
Pradeep Kumar
Digital
at 23:40, Mark Jones wrote:
> In what circumstances might you want to subclass your own Action class and,
> if you did, how would you handle/inherit the form data? Would you just use
> different subclasses of your Action but just one ActionForm for each Action?
Did you look at all at the
On Sat, 2004-02-21 at 23:40, Mark Jones wrote:
> In what circumstances might you want to subclass your own Action class and,
> if you did, how would you handle/inherit the form data? Would you just use
> different subclasses of your Action but just one ActionForm for each Action?
Did
2, 2004 5:40 AM
Subject: [Newbie] Is it worth subclassing your own Action and ActionForm
classes to attain code re-use?
> My application allows a user to make various different types of bookings
for
> a (fictional!!!) hospital and logs them in a database. Each type of
booking
> has a se
User
Subject: [Newbie] Is it worth subclassing your own Action and ActionForm
classes to attain code re-use?
My application allows a user to make various different types of bookings for
a (fictional!!!) hospital and logs them in a database. Each type of booking
has a set of common properties but
doExecute().
there is a "sample-code" below:
instead of ActionForm-Klasses i also use DynaActionForms.
but i use DynaValidatorForm for using Validator-Framework.
i use PropertyUtils.copyProperties()
(from the nice jakarta-commons-beanutils-project)
inside an action.class to get
ng to divvy the handling of the form data via
inheritance is too complicated and / or unnecessary.
I once had a ActionForm superclass with getter / setter methods for
frequently occuring fields - but dropped it because the advantage was
trivial. And I started using DynaActionForms.
Adam
--
strut
data? Would you just use
different subclasses of your Action but just one ActionForm for each Action?
What is the best way for me to implement this problem? (Or have I answered
my own question?! ;0) )
Thanks for indulging me!
Mark
You don;t use the name quoted you place the Object in the session and then
retrieve it by name.
session.setAttribute(yourbean,"the name you give it");
Object mybean = session.getAtribute("the name you give it");
I think you have to cast myObject cos it is untyped.
Chris
On Sun, 15 Feb 2004, Gre
I am continuing work on an extremely simple (2 web pages) Struts
application. In the first page (entryPage.jsp), you enter data into a form
and click the submit button. This takes you to the second page
(displayPage.jsp), which displays the data from the form; and clicking the
submit button on
Hi all,
I'm stuck using Velocity with a map-backed ActionForm. I implemented my
ActionForm using the technique of getValue(String key) and setValue(String
key, Object value). I can retrieve a value from the Map using the following
Velocity code
The problem occurs when I try to subm
de 2004 15:47
Para: struts
Asunto: Using the ActionForm in the JSP
Hi everyone,
I need to access the ActionForm properties inside the JSP code for the same
window. Is there any way to do this?
Regarding this I have some doubts about the life cycle of ActionForms
1. When exactly is the Acti
Hi everyone,
I need to access the ActionForm properties inside the JSP code for the same
window. Is there any way to do this?
Regarding this I have some doubts about the life cycle of ActionForms
1. When exactly is the ActionForm object instantiated? Is the ActionForm object
+1
I too am finding that it is quite convienient to treat the actionform as the
pages UI State rather than merely an input buffer.
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 February 2004 13:42
To: Struts Users Mailing List
Subject: Re: Action
value in having an ActionForm for that
example. I generally think it is best for your Actions to pass information
to the JSPs that render them through an ActionForm rather than putting
things in the request or session directly. For this reason, I think it would
be better to put the current time
My perspective is that there is still value in having an ActionForm for that
example. I generally think it is best for your Actions to pass information
to the JSPs that render them through an ActionForm rather than putting
things in the request or session directly. For this reason, I think it
Thanks ,
Both work fine.
but Using-normal-form way needs a little change of the action attribute
URL of form tag inJSP.
I had to change
from
to
testAPP is root of this webapp
So, I choose the Using-dummy-actionform way for resemblance with other JSPs
You can also declare a dummy form.
...
- Hubert
--- Srinivas Kusunam <[EMAIL PROTECTED]> wrote:
>
> If there is no ActionForm doesn't work. Try with normal
> tag it works fine.
>
> H
If there is no ActionForm doesn't work. Try with normal tag it
works fine.
Hope this helps.
Srini
>>> [EMAIL PROTECTED] 02/04/04 07:00PM >>>
Hi ,all
I am new to Struts and learning it.
And I am wondering how the strtus-config.xml and JSP look like when
a
Hi ,all
I am new to Struts and learning it.
And I am wondering how the strtus-config.xml and JSP look like when
a JSP doesn't submit any info( dont need ActionForm) .
The JSP just display the current time and has one button "refresh".
CurrentTime.jsp ( user push
: Mittwoch, 4. Februar 2004 18:13
To: Struts Users Mailing List
Subject: RE: Accessing ActionForm from Servlet (was: Pajes + Struts)
Hi Fred(d)y,
> (3) Despite 1 and 2, there must be a method to obtain the ActionForm(s)
> associated to an Action (during an specific request / post). Righ
am really not sure anymore (I am at work not home
where I have the example that I am refering to) but I think I did it with
Jscript and submited two form through one:
like this
-> (3) Despite 1 and 2, there must be a method to obtain the ActionForm(s)
-> associated to an Action (during an s
Hi Fred(d)y,
> (3) Despite 1 and 2, there must be a method to obtain the ActionForm(s)
> associated to an Action (during an specific request / post). Right?
I think this question has been answered twice in this very thread, once by
me, and again (and with code) by Andrew Hill.
>From
acomplish that), what sense does it make to have 2 ActionForms
variables if only one form can be submitted at a time anyways? (maybe
I'm missing something else)
(3) Despite 1 and 2, there must be a method to obtain the ActionForm(s)
associated to an Action (during an specific request / po
Villalba Arias, Fredy [BILBOMATICA] mailext.com> writes:
> (3) It is not possible to have more than one ActionForm associated to an
> Action (at the same time), i.e. it's a 1:1 relationship (again, am I right?)
That's not true! I am using an Action with 2 ActionForms:
Serv
ime!).
Anyway, let me comment on your posting, Joe (read below):
>These are initial steps towards making it easier
>to get an ActionForm instance for prepopulation
>on the way to the view. Be warned, this method
>does not use any of the logic for looking up an
>existing fo
siness layer and storing
> the result.
>
> One thing to beware of when you do such non-trivial
> things in the
> actionform, is that if memory serves me correctly
> (someone please correct me
> if Im wrong on this!), exceptions thrown here wont
> be handled by the
> exc
nn <[EMAIL PROTECTED]> wrote:
> Pat Young wrote:
>
> > 6. The problem I am having is that if the
> ActionForm
> > failes validation, then the sales.jsp page gets an
> > error becaue it can not find the bean in the
> Request
> > for the products list. Sho
n the
actionform, is that if memory serves me correctly (someone please correct me
if Im wrong on this!), exceptions thrown here wont be handled by the
exception handler you configured in struts config as the try/catch that
invokes that handler is merely around the invocation of the actual action
ex
Pat Young wrote:
6. The problem I am having is that if the ActionForm
failes validation, then the sales.jsp page gets an
error becaue it can not find the bean in the Request
for the products list. Should I build this bean in my
validate and place it in the request at the beginning
of validate
he form.
3. The list of products is retrieved with a call to
our service layer in the Action for the JSP page.
This Action is called "sales.do".
4. The submit button for the form submits the data on
the form to "salesAdjust.do".
5. The salesAdjust.do Action has an Acti
> (2) Whatís the minimal information that one needs to retrieve an Actionís
> corresponding ActionForm object?
ModuleConfig modConf = ModuleUtils.getInstance().getModuleConfig(request);
FormBeanConfig fbc = modConf.findFormBeanConfig(mapping.getName());
(since 2004/01/24):
ActionFor
Hi Hubert, thanx for answering!
Read below.
>Not sure this would be possible. The actual ActionForm in use depends on >the
>session, and sometimes even the particular request. I doubt there's a way >to
>get to the form object actually in use by just specifying the action
ta access method part. I MUST
> BE ABLE TO RECOVER THE APPROPRIATE ActionForm object FROM THAT Servlet
> (actually, in a factory class, but I dont want to bother you with all
> the details) so that the view-generating class can paint, WITHOUT
> REPLICATING THE ActionForm Managemen
Hi list,
here is a nice article on choice of
ActionForm or DynaActionForm.
http://weblogs.java.net/pub/wlg/964
cheers,
Matthias Weßendorf
Email: mailto:[EMAIL PROTECTED]
URL: http://www.wessendorf.net
-
To unsubscribe, e
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your
mail and assure you of a response shortly.To help us serve you better, we would
request you to kindly mention your account number or any reference number you may have
in your future correspondence. Kindly vis
: [EMAIL PROTECTED]
Subject: Struts text field 'value' attribute set from another ActionForm?
I have a web form such as:
How can I set a default value for the text field, where the value I want
is in a different session scoped ActionForm than the one named in the
tag? The only way
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your
mail and assure you of a response shortly.To help us serve you better, we would
request you to kindly mention your account number or any reference number you may have
in your future correspondence. Kindly vis
CTED]>
To: [EMAIL PROTECTED]
Subject: Struts text field 'value' attribute set from another ActionForm?
Date: Thu, 29 Jan 2004 09:54:56 -0500
I have a web form such as:
How can I set a default value for the text field, where the value I want is
in a different session scoped Acti
I have a web form such as:
How can I set a default value for the text field, where the value I want
is in a different session scoped ActionForm than the one named in the
tag? The only way I've been able to do it is saving a
value as a session attribute and retrieving it with a scri
i access session or request
object from a bean which is Actionform variable
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your
mail and assure you of a response shortly.To help us serve you better, we would
request you to kindly mention your account number or
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your
mail and assure you of a response shortly.To help us serve you better, we would
request you to kindly mention your account number or any reference number you may have
in your future correspondence. Kindly vis
Hi
I have a nested bean in my ActionForm.
Is there any way to access the session object or HttpRequest from that nestedbean.
class MyActionForm extends ActionForm{
private Tree myTree;
}
class Tree{
I would like to access session or http request from this bean
}
Thnaks
AFAIK ActionForm has a reference to ActionServlet to write to servlet log and to get
application scoped datas (ie.
getServlet().getServletContext(); )
Nico.
- Original Message -
From: "Jose Ramon Diaz" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List&
Thanks Nico,
But i´m surprised because the other transient objects we have in
ActionForm (for example, a Category of log4j) aren´t showed by JProbe, but
attribute servlet is showed and computed for memory. however our own
transient attributes aren´t showed.
May this be somethnig related to
Thanks Shirish.
That´s the solution we are trying now, but I still don´t understand why an
ActionForm has a reference to the ActionServlet.
Does anybody know, please? Or am I missing something?
thanks!
> -Mensaje original-
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
ActionForm has this attribute :
protected transient ActionServlet servlet
All ActionForms share the same ActionServlet instance. As this attribute is transient,
it will not be serialized if form
is put in session (and session itself is serialized).
So I think the "session size" i
because
of that.
HTH.
regards,
Shirish
-Original Message-
From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 1:48 PM
To: 'Struts Users Mailing List'
Subject: Problem with huge session memory and ActionForm
Hi all,
We have detected a pr
Hi all,
We have detected a problem with the amount of memory we use in the session
when we use classes extending org.apache.struts.action.ActionForm and
DynaActionForm too.
We are using 9iAS 9.0.3.
We take a look to the memory using JPRobe profiler, and we see that the
for
Hi
I'm using the following code in a ActionForm to convert 3 strings to a Timestamp,
problem is that some of the string are null, getBirthdateMonth() is still null because
setBirthdateMonth()
is called after setBirthdate(). Can someone tell me what is the right approach.
I would like to h
If its a primitive , it will look for 'is' , but for the Boolean object it
will look for 'get' (same as any other object).
-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 20 January 2004 23:00
To: 'Struts Users Mailing List
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 w
>
> if you have getAmount() and setAmount() methods, you address
> the according property in you jsp as amount and not as Amount !!!
> silly, but these are the rules...
> hope this helps
> martin
Doh! I was sure i'd tried that. Yes, that definately helps.
Thanks
André Risnes
---
t; For instance, the property "lastname" isn't going to match
>> setLastName() in your form, but "lastName" will.
>
>I believe i've tried every possible case combination. Currently
>the properties in the form are called e.g. Amount and
1 - 100 of 1674 matches
Mail list logo