This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Type of Variables In The struts.config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Type of Variables In The struts.config.xml" Watch "Type of Variables In The struts.config.xml" New topic
Author

Type of Variables In The struts.config.xml

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I am working on the struts.config file. And I am stuck in giving a "type" to primitives.

firt name and last name are String(s). Is logon_date of java.util.Calendar type?
The cumulativeGPA is a double and the subscriber is a boolean, how do I specify their type in the configuration file?
Do I simply specify:
<form-property name="last_logon_date" type="java.util.Calendar"/>
<form-property name="cumulativeGPA" type="double"/>
<form-property name="subscriber" type="boolean"/>

[ July 03, 2003: Message edited by: JiaPei Jen ]
[ July 04, 2003: Message edited by: JiaPei Jen ]
[ July 04, 2003: Message edited by: JiaPei Jen ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Type of Variables In The struts.config.xml
 
Similar Threads
The Package In Which Primitives Are Defined?
How To Create This Drop-Down List
LogonView.jsp Displays A Blank Page
form-property : newbie question
How To Get the 'initial' From the form-property?