Question

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 ....?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top