[EMAIL PROTECTED]

| Hi everybody,
| 
| I am new to Struts 1.1, so I have a few questions
| about property formatting (I didn't find any answer in
| the list archives).
| 
| 1) In the ActionForm, the bean properties should be
| String, it will avoid you formatting problems
| (especially with dates, if you want to use the
| html:text tag). Right ?
| NB: I know about the formatting capabilities of the
| JSTL taglib, and of the bean:write tag, but it seems
| that you have no way of formatting in the html:text
| tag.
| 
| 2) As my business objects contain all kinds of types
| (double, long, java.util.Date, etc...), I need a way
| to transfer the content of one bean to another, in
| both directions:
| ActionForm (contains only String) <=> BusinessBean
| (contains all kinds of types)
| 
| I think the right place to do the tranfer is in the
| Action classes. Right ?

I would do the conversion in ActionForm.  This is user interface
HTML-problems and not business logic.  You can override the
setX-methods to do it, and make some extra getX-methods.

-- 
mvh

Tor Henrik Hanken

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to