• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

the use of the Controller pattern - an overhead ?

 
alen agmon
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have recently implemented the Controller pattern -
where each request is processed in an object like:

if(grantAccess()){
dispatch next view
}else{
dispatch access denied

}

well it seem like its a littel overheaded, is it really necessary
to dispatch the request like that instead of just checking the Session in every secured jsp page ?

what do u think?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The amont of overhead in performing a simple if operaton is completely neglible. You should concentrate on structuring your application in a logical, easy-to-understand manner rather than worrying about performance and overhead. Then, if, and only if, a performance problem can be concretely identified, you can deal with it in a meaningful manner.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic