• 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

HTML vs JSP vs JSF what to choose. JEE6

 
Greenhorn
Posts: 10
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks ok. I reckon that Jersey will act as front controller or similar
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

K. Tsang wrote:Will you allow your client (HTML) access the REST service directly? I doubt.


Why not?
 
Ranch Hand
Posts: 270
15
Android Angular Framework Spring AngularJS Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello.

This is not following on from the other excellent posts in the discussion.  Just my two cents.

When I did the project, I was tempted to design with JSF, Struts, or some other server-side framework in mind.  However, I did not, because (1) I was not sure how to make that look in UML.  The whole "what level of detail" thing would have come into play.  In retrospect, I think it would not have been that hard to do, and maybe there are examples out there that include "your implementations", but did not want to take the time.  (2) I had a nonfunctional requirement for response time, and I did not want to draw little boxes indicating this or that framework, when I was not certain the framework was even guaranteed to work that quickly.

As an aside, I think I would be more willing to take a chance on Angular (etc.) to RESTful being responsive enough, than doing it all on the server side.

Again, had I the time, I would have prototyped something with those kinds of pages in place.  And I would have run some kind of integration testing on it to see if it worked.

As I write this, it points out to me some limitations of submitting a design.  In the real world, there would be some kind of flow to an architect's job.  The design is not put into the hands of others until things are proven out.  So a design like this might only be handed off at the end of that process.  However, there is a "technical risks" section on the assignment I received.  Maybe that's where to place something like that....

I passed the project pretty well (92%), but not 100%.  I will never know what parts of the assignment I did wrong, and it could be exactly what I presented above.  ;-)   Sorry.
Just Thoughts
 
Hug your destiny! And hug this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic