• 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

Struts Tags VS. XML/XSL

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
Working on a design for a web application here and there is some debate on method of presentation.
We use Struts quite a bit here, and have been relatively pleased with it. Some of the guys on the new project are suggesting using struts for validation and tiles framework, but to generate the main body content of the pages using XML/XSL. To me this makes little sense:
If I am creating struts form beans for validation anyway, why not use the simple tags provided by struts in the resulting JSP? I like the way all the form fields are populated for me.
We are given HTML templates from our art department, which we then use to create JSP content. I have found it a total pain to try and format/edit a large/complex HTML page to make it XSL-friendly. To me, taking the page and replacing html form fields with struts html tags is much faster.
Now instead of letting struts create form beans from request parameters and populate a JSp for me, I have to somehow get those parameters into an XML tree so the stylesheet can find them.
We may have a need to define a custom tag or two, and some folks have commented that that will create work to maintain those supportin tag classes. But the logic included in a tag class which brands content based on the user will have to be written anyway, and may not be centralized in a single class.
I realize that struts is not perfect, and it's not practical for very simple web apps, but we know how to use it, and I don't see that we have time to write our own framework or learn a brand new one.
Hoping the good folks here can share some of their insight on this.
Thanks.
Art
 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
... just waiting to see if somebody scolds "Art" for not using a real name ...
 
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic