Win a copy of Functional Design and Architecture this week in the Functional programming 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

In practice, are spring views often written entirely with Spring's taglibs?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I'm not new to Java (Android developer) but I've never written a web application, in any language (not even perl or php, etc.). So, it almost feels like being a total newbie all over again. Anyhow...

I was trying to jump straight into using the Spring MVC framework, but being so new it is easy to conflate Spring with the technologies it is built upon such as Servlets and JSP so I'm reading Head First Servlets and JSP (that's what led me to this site).

My main question is, how important are Spring's taglibs? Are spring websites written where all you use are their taglibs, or in practice do people typically write a lot of standard JSP, use Spring's taglibs where appropriate, and other standard taglibs or hand-written taglibs? (to be clear, I fully understand there's a lot more beneath in the form of model and controller classes, my question is specifically on common practices in views...i.e. I understand an entire website is not just jsp.)

Thanks,
-Derek.
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It entirely depends on the skills of the developers. IMO, except for a few taglibs (like security), spring taglibs don't add too much to the standard taglibs. There is a lot of overhead in learning them, without much benefit. I've been working with Spring for 6 years now in 2 companies, both of which had well established products. It was much easier for me to introduce Spring into the backend because Spring provides a lot of advantages. It's a much easier sell. Asking a company to rewrite the front end just because you like Spring is a much harder sell, and frankly, I am not sold on it myself.

Today, if I open my own company, I would absolutely not use JSP/JSF for the front end. I would instead build a SPA front end using Angular/HTML/CSS that talks to a REST backend built using Spring.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic