Why do you use ActionForm as value object in EJB? I thnik,
this is not a clean design,
since you make your EJB code dependent on Struts. Struts
beloongs to the web layer,
EJB to the businness layer. Your EJB do not need things like
HttpRequest, so'd try
to make them independet from the servlet.*
package.
I'd suggest a simple redesign. Use simple beans as value
object and nest them in
your action forms. Struts supports nested properties, so will
not need to create
delegating propertry setters and getters in your action form.
(unless you want to
do some conversions - ActionForms' properties should be string
based, value objects
should use the "real" type of the property)
--
gR
P.S.: Of course it would be nice, if struts.jar could be
installed in server scope
instead of application scope. I suppose, it would need some
changes in the class
loading in ActionServlet.
|
Title: Struts JBoss / Tomcat and From
- Struts JBoss / Tomcat and From Nortje, Andrew
- RE: Struts JBoss / Tomcat and From Gregor Rayman
- RE: Struts JBoss / Tomcat and From Nortje, Andrew