• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML vs JSP vs JSF what to choose. JEE6

 
Ivan Pyshko
Greenhorn
Posts: 10
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.
There is no requirement on rich UI components to use. And this is why I have decided not to use JSF framework since it only brings complexity to my solution plus Im not an expert in JSF and I'm not able to identify a reason to use it.
I have two options.
1. HTML & JAX-RS (not a single page application for convenience)
2. JSP & Servlets

First option, this is what I really do in real life, how about assignment since HTML is not something directly JEE related. If I end up applying first approach, is that mean I have no Servlets/JSP components and what to show on components diagram for web tier. Static html pages not really a components.
Thanks.
 
K. Tsang
Bartender
Posts: 3585
16
Android Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you mean JAX-RS, you really talking about RESTful web service.

Every app has some form of layering, plus how you deploy it (separate war, single war, DMZ etc)

Will you allow your client (HTML) access the REST service directly? I doubt. So you got to have some component (say a RESTController) to call it for you. This so-called component will be in the web tier.

By the way, HTML/JSP pages are meant to be in the component diagram.
 
Ivan Pyshko
Greenhorn
Posts: 10
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The image represent my understanding than.
Is this component diagram make sense then?

Thanks again.
mockComponent.png
[Thumbnail for mockComponent.png]
Mock component diagram
 
K. Tsang
Bartender
Posts: 3585
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks ok. I reckon that Jersey will act as front controller or similar
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65342
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
K. Tsang wrote:Will you allow your client (HTML) access the REST service directly? I doubt.

Why not?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic