Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
How to access the gettr/setter method of embeded object inside the form bean.
prithvi s zankat
Greenhorn
Posts: 12
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I have used object as a member variable in my form bean. I want to
access that member object's method using <bean:write/read>. Is is possible? How if it is.
Dom Lassy
Ranch Hand
Posts: 181
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
<bean:write name="MyForm" property="myObject.myMethod"/>
public class MyForm extends ActionForm {
MyObject myObject();
public MyObject getMyObject() {
return this.myObject;
}
}
public class MyObject {
public
String
getMyMethod() {
return "Hello World.";
}
}
The "code" above is an example and hasn't been compiled.
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to correctly access attributes of list member in FreeMaker
how can i access no static data member in static method is there any solution
struts 2: Stuck up with simple issue
synchronization question
Form Bean - Session Scope
More...