IT.CappuccinoNet  
StrutsCX v0.9
   

com.cappuccinonet.strutscx.prototype.presentation.actionform
Class InfoDynaFormReader

java.lang.Object
  |
  +--com.cappuccinonet.strutscx.prototype.presentation.actionform.InfoDynaFormReader
All Implemented Interfaces:
StrutsCXFormReader

public class InfoDynaFormReader
extends java.lang.Object
implements StrutsCXFormReader

[Experimental] This class is the implementation for the prototype sample application of the StrutsCXFormWriter for use with a DynaBean.

Version:
v0.4, 2002.10.15
Author:
Bernhard Woehrlin, IT.CappuccinoNet.com

Field Summary
private static org.apache.log4j.Logger logger
          The Logger we use to log JDK 1.4 conform.
private  java.lang.String THIS_CLASS
          A String with this Classname used for system messages
 
Constructor Summary
InfoDynaFormReader()
           
 
Method Summary
 java.lang.Object getValueObject(org.apache.struts.action.ActionForm form, java.util.Locale locale, int entryId, java.lang.String encoding)
          This method creates an ValueObject and uses a Struts ActionForm (i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THIS_CLASS

private java.lang.String THIS_CLASS
A String with this Classname used for system messages


logger

private static org.apache.log4j.Logger logger
The Logger we use to log JDK 1.4 conform.

Constructor Detail

InfoDynaFormReader

public InfoDynaFormReader()
Method Detail

getValueObject

public java.lang.Object getValueObject(org.apache.struts.action.ActionForm form,
                                       java.util.Locale locale,
                                       int entryId,
                                       java.lang.String encoding)
Description copied from interface: StrutsCXFormReader
This method creates an ValueObject and uses a Struts ActionForm (i.e. InfoFormBean).

Internationalization:
Because we will handle Unicode we have to convert the Parameters we do read in from an array of bytes to an array of characters. Do this using the encoding that was sent as a hidden field. Treat the original value as raw 8-bit bytes held within a String. (Check out for more details on this: Jason Hunter, Java Servlet Programming, 2nd Ed., page 416ff).

Specified by:
getValueObject in interface StrutsCXFormReader
Parameters:
form - the ActionForm
locale - the locale
entryId - the ID
encoding - the encoding
Returns:
Object

IT.CappuccinoNet  
StrutsCX v0.9
   

© 2003, IT.CappuccinoNet.com - compiled 20030211:2244