Meaningless Drivel is fun!*
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 Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts to handle page template ?" Watch "Struts to handle page template ?" New topic
Author

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 ?

Thanks
 
 
subject: Struts to handle page template ?