On Tue, Jan 12, 2021 at 12:31 AM Som Lima <somplastic...@gmail.com> wrote:

>
> My concerns layed to rest with my direction set.
>
> I feel I must ask one more question from this knowledge pool. A bonus
> question if you please.
>
> It is my understanding struts is a competitor to spring but I don't
> believe
> It is part of EE.
>
> Where does struts1 + 2 fit into the Big picture you guys  painted   ?
>

Formally, Struts in any form has nothing to with JEE. It's only a
competitor to a portion of Spring.

Struts 1 needs to die in a fire. It should remain only to be held up as an
example of things not to do, especially today. It's single claim to fame
back in the day was simply that it arrived first. Struts 1 is awful, IMHO.
Modern JSP and Servlets alone are far better, and there are much better
frameworks. Struts II is a vast improvement and related to Strut 1 in name
only. I would put them both aside, frankly.

In JEE, you have JSP 2.x + Servlets and JSF. JSP 2.x is, IMHO, one of the
finest web application templating systems out there. JSP + Tag files +
Expresion Language is really powerful. If you want a templating language
for other things, JSP is a rough fit. But if you want one for web pages,
it's really remarkable.

That said, modern JSF is really amazing. It's really powerful, but it
certainly comes with complexity. JSF is a true modular and component based
framework that scary powerful abstractions can be laid upon. Most people
don't take it there, but the underlying capability is there. If you were to
go with a more server side rendering system, JSF is very viable.

There's been calls for a JEE standard MVC framework. Struts II was
considered an MVC framework. The term "Action Framework" is another term of
art for it. That effort stalled and derailed when Oracle dumped JEE on to
the world. I don't know the current status. Spring has an action/MVC
framework as well. JAX-RS with a little work is a pretty usable action
framework.

Today, most folks seem to trend to javascript heavy, single page apps with
JSON backend services. In that case, you don't need much of anything server
side. I can not speak to those, as that's not my area of expertise. As a
rule, I find most modern webapps to be not very good. There needs to be a
balance between the heavy pages and static pages with live controls. In
that realm, I think JSF is a better fit, but I have not worked on such an
app in some time.

Regards,

Will Hartung

Reply via email to