hi,

i created a action for each  module. this action is declared as a tile
controller. 
this way I have a controller for all my module-based actions. there I can
decide
if editig is allowed and redirect to the right page.

in the second edition of j2ee patterns from sun they have splitted the front
controller
into two: navigation front controller and business logic front controller.
this can easily 
be accomplished using the tiles controller option.

so every "invoice action" is mapped to:
"invoices.do?action=editInvoce&invocePK="+ invocePK
the invoice tile action then takes the action: 
if ("editInvoice".equals(req.getParameter("action"))
{
        tilesContext.put("content", "/invoicesEdit.do");
}

in my app, i have a
 app controller loading the right module
 module controller controlling navigation
 business logic controller

maybe it helps you....  :-)

brgds,

papick

-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Andriy
Ruzhevych
Gesendet: Freitag, 16. Januar 2004 11:32
An: Displaytag-User
Betreff: [displaytag-user] ColumnDecorator Question


Hi all.

I'm using TableDecorator. That's all ok except one drawback. When I build a
link on each record like ("Edit", "Insert") I explicitly write in java code
links to my *.do actions. When my action name or other logic change, I must
recompile java class. Does anybody have any suggestion to evoid this?



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration See the
breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
displaytag-user mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to