Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

servlet filter  RSS feed

 
Manojit Babu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a filter for authorization

<filter>
.
.
<init-param>
<param-name>roles</param-name>
<param-value>administrator</param-value>
</init-param>
.
.
</filter>

If i want to check for different roles what will be the <param-value>
should it be like <param-value>administrator,user</param-value>

I meant should they be seperated by commas.

Thanks in advance.
[ October 24, 2007: Message edited by: Bear Bibeault ]
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds reasonable. Have you tried it?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I meant should they be seperated by commas.

Why not. In the filter, that would make it easy to break into an array of String.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!