File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
How OGNL automatically maps to the appropiate Object
PavanPL KalyanK
Ranch Hand
Joined: Feb 28, 2009
Posts: 212
posted
Apr 04, 2009 06:43:55
0
<s:form action="Register"> <s:textfield name="user.username" label="Username"/> <s:password name="user.password" label="Password"/> <s:textfield name="user.portfolioName" label="Enter a name "/> <s:textfield name="user.age" label="Enter your age as a double "/> <s:textfield name="user.birthday" label="Enter birthday. (mm/dd/yy)"/> <s:submit/> </s:form>
public class User { private String username; private String password; private String portfolioName; private Double age; private Date birthday;
// Generated setters and getters
How OGNL automatically maps to the appropiate Object properties , How this works ??Please tell me
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
2
I like...
posted
Apr 04, 2009 07:01:58
0
Well this is all done by the
parameters-interceptor
. You can google it to get more info...
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
|
SCWCD Links
PavanPL KalyanK
Ranch Hand
Joined: Feb 28, 2009
Posts: 212
posted
Apr 04, 2009 07:11:48
0
Okay , Thanks .
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Apr 04, 2009 07:32:05
0
Include the
OGNL docs
in your reading.
I agree. Here's the link:
http://aspose.com/file-tools
subject: How OGNL automatically maps to the appropiate Object
Similar Threads
<s submit> label does not change
Data Transmission from a JSP Page to the Struts Action class
How to change the default label style in Struts2?
Struts 2 validation question
Getting null if i do not do an explicit new TestBean() in Action Class .....
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter