File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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 ?

I agree. Here's the link:
subject: Struts to handle page template ?
It's not a secret anymore!