Hi,

I'm using mapped back ActionForm in my project and it is running fine.

However, I have great concern as I don't understand why it works.

My flow of events is as follows

1) User submit action
2) Action handles and mapped to a mapped back ActionForm
3) An event object is JavaBean that wrap the mapped back ActionForm as an
attribute
4) Event object is passed over to the EJB tier through
ejbFacade.handleEvent(Event myevent)
handleEvent is a command pattern that create the corresponding Command
class.
5) ** In mycommand, I'll use the Event to retrieve the mapped back
ActionForm , do the business logic, set some additional values to the mapped
back ActionForm and pass back an EventResponse (another JavaBean, but note
that the ActionForm is not passed back)
6) Back to the web tier, the event will doEnd to decide the forward mapping
7) ** Interesting enough, the next jsp can retrieve the key value set into
the mapped back ActionForm during the command in the EJB tier


Mapped Back ActionForm (MBA)

client -> Action (with MBA) -> Create Event -> event.setForm(MBA) ->
ejbFacade.handleEvent(event) -> ** ejb command getForm.setMBA(key,
newValueObj) -> command returns EventResponse JavaBean -> event.doEnd for
forward mapping -> ** JSP CAN display newValueObj


Isn't the event passed into the EJB tier be a clone of the Web tier event?
If this is the case, then why did changes in the EJB tier ActionForm is
reflected in the Web tier ActionForm.


I have great concern on why this work and really hope that someone could
shed some light on this as without a good understanding, I'm worried that it
might break without knowing why.

I greatly appreciate any explanation on this matter.

Sorry for another request, that is to send the reply to my mail account as
well as I didn't manage to see my previous post appear on the list.

Thanks again and looking forward to a reply.

Cheers.


Han Ming


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

Reply via email to