aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Intercepting filter and Front Controller patterns issues. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Intercepting filter and Front Controller patterns issues." Watch "Intercepting filter and Front Controller patterns issues." New topic
Author

Intercepting filter and Front Controller patterns issues.

Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290
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


SCJP | SCWCD | SCBCD | SCWSD 5 | SCEA (I) 1.4 | SCEA 5 | IBM SOA 669
Connie Ky Leung
Ranch Hand

Joined: Jan 29, 2006
Posts: 42
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.


SCJP 1.4 - 91%, SCWCD - 97%, SCJP 5.0 - 83%, SCJP 6.0, OCEJWCD - 80%
 
jQuery in Action, 2nd edition
 
subject: Intercepting filter and Front Controller patterns issues.