Is there any way to configure a login restriction for a servlet?
What I would like to do keep users from going directly to a servlet without logging in.
I tried configuring the servlet as a view in the pages.xml like this
<page view-id="/MyServlet" login-required="true"/>
That did not work.
Any Ideas.
Thanks!
The login-required attribute in pages.xml is only for pages, not servlets. If you want to restrict access to a servlet then you'll probably need to write a custom filter.