File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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 ]
 
 
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?