• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Design decision:

 
Greenhorn
Posts: 23
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have been given the following brief:

"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.

Thanks for reading. Kind regards,
Tejas
 
Ranch Hand
Posts: 34
1
MyEclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Tejas Shah
Greenhorn
Posts: 23
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ravi,

Thank you very much.

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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic