I want to make separate module for admin if user is admin it should redirect to separate module or pages(that module can only accessible by admin). This task i want to achieve using jsp and servlet or web.xml can anyone help me ....?

有帮助吗?

解决方案

To make a separate Admin module , no need to make another web.xml

In your log-in page after you submit , handle the request in your servlet

For example,

In Login servlet,

if(user_type==admin)

//redirect it to another page , which you have for the admin 

Hope this helps !

note : If you need any help . please try something and post here to get your problem solved

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top