How data transfered from one formbean to another formbean?

Answers were Sorted based on User's Feedback



How data transfered from one formbean to another formbean?..

Answer / rakhi

sorry i did not get u. can u please explain once?

Is This Answer Correct ?    1 Yes 0 No

How data transfered from one formbean to another formbean?..

Answer / venkat

hello
ravi

tell me clearly

u explained is struts flow,i think

Is This Answer Correct ?    1 Yes 0 No

How data transfered from one formbean to another formbean?..

Answer / madhukiran`

first copy the form properties into one bean class and then
copy those to the required form in Action class
BeanUtils.copyProperties(Bean,frm1);
BeanUtils.copyProperties(frm2,Bean);

Is This Answer Correct ?    2 Yes 1 No

How data transfered from one formbean to another formbean?..

Answer / ravi

1)first form
public class M extends ActionForm
{
//some code//
}
2)second form bean

public class Maction extends Action
{
//sme code//

M o=(M)form;//calling the first formbean to second form bean
}

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Struts Interview Questions

How does struts work?

0 Answers  


What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?

0 Answers  


If we close the browser,when the specific user session is active.Again if we open browse how to retrive it same user??what code i have to da???

5 Answers   TCS,


What are the life cycle methods of interceptor?

0 Answers  


What is actioncontext?

0 Answers  






why do we use logic tag library in struts?

1 Answers   Polaris,


What does action do in struts?

0 Answers  


What is the purpose of @expressionvalidator annotation?

0 Answers  


Can we have multiple struts config files in a single web app?

0 Answers  


Why we use struts in java?

0 Answers  


Why are frameworks used?

0 Answers  


In which method of action class the business logic is executed?

0 Answers  


Categories