: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 between the
view and the action, the date
: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
-Original Message-
From: Mark Lowe [mailto:[EMAIL
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);
return
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
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 page.
One
[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 and the model. I tend
, 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 then when things get
, 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
web tier so
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 action protected
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 javascript hack which calls a URL against
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
based login page
}
}
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
based login page?
Well I've just
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
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) {
this.request = req
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
);
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 data pass through
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 were
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
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,
We are facing a problem when we define
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
.
Robert Taylor rtaylor
@mulework.com
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's the problem?
robert
Users Mailing 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:28
+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 calendar when you pass
it back
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
.
Takhar, Sandeep Sandeep.Takhar
@CIBC.ca
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 objects in ActionForm
To: 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 uses
populate method
: 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
To: Struts Users
.
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
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.
* The user
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., no validate() method and no getters
Hello Frank
ActionForm in no necesary if you don't use the html:form 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]
Sent
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 mean that I MUST create ActionForms, even
Hey, I am using a map-backed ActionForm and so in my JSP code I have a
html:text tag that looks like this:
html:text property=value(%=value.getUserId()%) readonly=true size=2
/
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
Hey Brian:
Have you tried evaluating the keyValue ahead of time? As in:
%String myKey = ..blah-blah.. using userId;%
and then:
html:text property=%=myKey% readonly=true size=2 /
Give it a shot if you haven't..
Good luck!
Geeta
Brian Boyle wrote:
Hey, I am using a map-backed ActionForm and so
ActionForm and Key value
Date: Sun, 07 Mar 2004 12:30:43 -0500
MIME-Version: 1.0
Received: from mail.apache.org ([208.185.179.12]) by mc2-f12.hotmail.com
with Microsoft SMTPSVC(5.0.2195.6824); Sun, 7 Mar 2004 09:29:04 -0800
Received: (qmail 47563 invoked by uid 500); 7 Mar 2004 17:28:46 -
Try
% String propertyName = value( + myId + ); %
html:text title=myinput property=%=propertyName% readonly=true
size=2 /
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 html:text
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
Received: from mail.apache.org ([208.185.179.12]) by mc2-f12.hotmail.com
with Microsoft SMTPSVC(5.0.2195.6824); Sun, 7 Mar 2004 09:29:04 -0800
wrote:
Hey, I am using a map-backed ActionForm and so in my JSP code I have a
html:text tag that looks like this:
html:text property=value(%=value.getUserId()%) readonly=true size=2
/
The reason I have a scriplet in there is because I have a dynamic form and
the value of the key
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 );
}
public
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
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
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
there is that 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 Util)
property and I get
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) or add
/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?
Thanks,
_
Vanessa
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
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
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
] 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 also different ones depending
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 you look
:
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 e-mail that I sent you, and Robert Taylor
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
--
struts 1.1
().
there is a sample-code below:
instead of ActionForm-Klasses i also use DynaActionForms.
but i use DynaValidatorForm for using Validator-Framework.
form-bean name=logonForm
type=org.apache.struts.validator.DynaValidatorForm
form-property name=user type=java.lang.String /
form-property name
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
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
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, Gregg
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
input type=text name=$form.bean.value(1)
value
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
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 ActionForm object instantiated
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 form bean in request or session scope
under
Villalba Arias, Fredy [BILBOMATICA] fvillalba at 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:
ServiceForm
to 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 / post). Right
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 Andrew's
it with
Jscript and submited two form through one:
like this form action=bla.do onSubmit=submitFormBToo/
- (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?
-
Jupp, that right!
- Regards,
- Freddy.
-
King regards
. 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). Right?
I think this question
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 refresh button
If there is no ActionForm html:form doesn't work. Try with normal form 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 JSP doesn't
name=currentTimeForm
forward name=success path=/CurrentTime.jsp /
/action
/action-mappings
...
- Hubert
--- Srinivas Kusunam [EMAIL PROTECTED] wrote:
If there is no ActionForm html:form doesn't work. Try with normal form
tag it works fine
the Using-dummy-actionform way for resemblance with other JSPs.
Thank you again.
At 17:18 04/02/04 -0800, you wrote:
You can also declare a dummy form.
- Hubert
--- Srinivas Kusunam [EMAIL PROTECTED] wrote:
If there is no ActionForm html:form doesn't work. Try with normal form
tag it works fine
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
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
+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
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 Management (especially, the scopes management)
ALREADY
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 class.
If it's the *class
(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):
ActionForm form
. 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 ActionForm
associated to it called salesForm
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
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
exception handler you configured in struts config as the try/catch that
invokes that handler is merely around the invocation of the actual action
execute
] 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. Should I build this bean
in my
validate and place it in the request
this adapter to
setup the list when it
is validating the entered data. Your setup action,
likewise would call the
adaptor class rather than directly calling the
business layer and storing
the result.
One thing to beware of when you do such non-trivial
things in the
actionform, is that if memory
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
}Can 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
ActionForm than the one named in the
strutshtml:text tag? The only way I've been able to do it is saving a
value as a session attribute and retrieving it with a scriptlet, like this:
strutshtml:text name=someForm property=someProperty size=10
value=%= (String)session.getAttribute(sessionAttributeValue
Mailing List [EMAIL PROTECTED]
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:
strutshtml:form action=/someAction enctype=multipart/form-data
strutshtml:text name=someForm property
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
To: [EMAIL PROTECTED]
Subject: Struts text field 'value' attribute set from another ActionForm?
I have a web form such as:
strutshtml:form action=/someAction enctype=multipart/form-data
strutshtml:text name=someForm property=someProperty size=10
value=???/
/strutshtml:form
How can I set a default
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
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
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 problem
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 is not well
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]
Enviado el
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
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' [EMAIL PROTECTED]
Sent: Wednesday
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
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 handle
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
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'
Subject: ActionForm boolean
. Currently
the properties in the form are called e.g. Amount and the methods
in the ActionForm are called e.g. getAmount() and setAmount().
--
Regards
André Risnes
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
Are you casting the ActionForm in to your own form in your
save action?
like:
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request
1 - 100 of 1577 matches
Mail list logo