learn java
The moose likes Struts and the fly likes Struts to handle page template ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts to handle page template ?" Watch "Struts to handle page template ?" New topic

Struts to handle page template ?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
I have a Struts appliction to be extended. The new app will handle the user personalized page. User have a choice to a page template, the choice value will be saved into database. Then when findfowarding, server will render the page user wants.

Yes, we could do this way, for each page template, I design a tile-definition and struts-action-mapping. It is a strightforward, but very tedious.

Is there a better solution ?

The key point is, in which class the Struts will handle like this

If we could modify that class and let that class accept a runtime value, everything will be done perfectly.

Any suggestion ?

jQuery in Action, 2nd edition
subject: Struts to handle page template ?