Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Design decision:

 
Greenhorn
Posts: 23
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
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
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic