• 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

Intercepting filter and Front Controller patterns issues.

 
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I got a litlle confused with some issues reagrding "IF" and "FC".

1 - What is the best pattern for "authentication" and "authorization" issues?

2- What is teh best pattern for validing request params?

Tks.

cya
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Felipe Pittella:
Hi,

I got a litlle confused with some issues reagrding "IF" and "FC".

1 - What is the best pattern for "authentication" and "authorization" issues?

2- What is teh best pattern for validing request params?

Tks.

cya



1) If the logic of authentication and authorization is common for all or a lot of servlets in a web application, then you should encapsulate the logic in a filter class. I had a question in similar context during the exam, I chose Intercepting Filter pattern and was marked correct.

2) I will say Front Controller because Strut allows developer to define a form bean to validate request parameters and then forward the request to appropriate page based on the result of the validation.

Please correct me if I am wrong.
 
To get a wish, you need a genie. To get a genie, you need a lamp. To get a lamp, you need a 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