Hi all!
Currently I have to rewrite a web application use
struts.

Currently all type of data is accessed via one EJB(so
called "DataPakage"),
the "DataPakage" is basically a map of database table,

For example,a "DataPakage" of a "People" will have
these "Field":name,age,sex etc.
the jsp use some code like"<%=
dataPackage.getField("name") %>"to get the data.

I'm wonder if this is confilced with the cluture of
struts.Since many struts sample 
I've seen will define a class for every data
type(usually as a ActionForm),and use some
 code like"<strutsbean:write  name="pepleForm"
property="name"  />" to access the data.
 
So their solution is focus on database table,while
struts solution is more OO.

I don't want to touch their tons of EJBs,but how can I
shape their code to match the normal solution of 
struts?or reverse?

Pan.

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to