Hi Saritha,
I read the mail u send as a reply of Praveen's mail.I've also a
little experience in struts.But I've a doubt in this reply.I'm telling this
from my small knowledge in struts..
You told that we got only one form bean in the
perform()/execute() method.But I think it is not like that.we can cast that
particular form to our bean.That Actionform object contains all that
formbeans that we are using in the application.So I belive that we can cast
that particular ActionForm object to ours..
If our bean class is " MyFormBeanClass1() and
MyFormBeanClass2()".Then you can get both form bean object from that
particular ActionForm object.
Please look this also,
public ActionForward perform(ActionMapping mapping,
ActionForm form, HttpServletRequest request,HttpServletResponse response)
throws IOException, ServletException {
MyFormBeanClass1() myFormBeanClass1 =
(MyFormBeanClass1) form;
MyFormBeanClass1() myFormBeanClass2 =
(MyFormBeanClass2) form;
return ActionForward Object;
}
I'm writing this with my little experience in struts.Please
check it with othe response also.More over if there is any wrong pls let me
know.
Thanks
Krishna.......
----- Original Message -----
From: "Lakshmi Saritha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, April 06, 2006 2:02 PM
Subject: Re: Struts newbee
Hi Praveen,
Hope you are doing well... I want to share something regarding your
question.
Generally, the Action.perform() method takes only a single form bean as a
parameter(of course, it takes 4 parameters:
ActionForm,ActionMapping,HttpServletRequest,HttpServletResponse).
So, surely we can't provide two formbeans for the action.
But if your want to acheive that, you can use nest beans. That means,
you can create object for one bean in other bean class and use it.
According to my knowledge, I'm thinking so. Any how, check it out with
others too.
Take care. Have a nice time. Bye...
Thanks,
Saritha
[EMAIL PROTECTED] wrote:
Hi ,
I am new to struts.. although i have a couple of years experience in
java/j2ee.
i have a question. Can two ActionForms be associated with the same Action
class ..
if yes how.
Regards,
Praveen
Notice: The information contained in this e-mail message and/or
attachments to it may contain confidential or privileged information. If
you are not the intended recipient, any dissemination, use, review,
distribution, printing or copying of the information contained in this
e-mail message and/or attachments to it are strictly prohibited. If you
have received this communication in error, please notify us by reply
e-mail or telephone and immediately and permanently delete the message and
any attachments. Thank you
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
rates starting at 1¢/min.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]