"Consider the design of a web application using Struts2 and Spring for traditional displays and mobile displays."
We already have an existing web app project designed initially for traditional displays. We need to accommodate mobile views for some of the pages.
I have considered separate projects; one for a traditional displays and one for mobile device but the maintenance overhead and duplicated code sounds like a headache from the start.
I have developed some pages having single jsp pages that would handle traditional and mobile devices in the same file but that has got convoluted and result in large, messy files.
More ever, I have a really different HTML for this pages, so using the CSS dynamically is not an option here.
I am thinking of having almost-copy struts config and action classes in a separate module, but i am not clear up with the detailed design.
i think for changing a existing strus based web application you only need to work on view which you are using like jsp/html and the business call or action class and as wel as config xml no need to change
My concern is how can i send different views to different users?
additional views may need changes in action mapping as well as in Action class, to return the appropriate ActionForward .
correct me if i'm wrong, as I am not pro at struts.
I'm looking for the most neatly developed solution without a cluttering up the existing application.
Cherish your life...!!
What's that smell? I think this tiny ad may have stepped in something.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop