Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Intercepting portlet request

 
Dorte Skriver
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there some kind of "beforeLoad/Render" mechanism in portlets, whereby you can receive a request, check credentials, and either continue loading portlet, or redirecting the user somewhere else, like a login page ??
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSR-286 provides portlet filters, be we don't have that luxury with JSR168.

Really, calling a standard code snipped at the beginning of a portlet do method might be the only approach.

It's always best if you can get declarative security implemented with your portlets. It gets rid of alot of headaches.

-Cameron McKenzie
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!