0

I have two static websites located in two separate local directories.

I also have a secured web app with spring mvc. There are two users, each user is related to a different website.

I want to serve the relevant website/pages for each authenticated user from the same url.

How can i do that? Can i use custom Servlet/Controller?

Yohana Kh
  • 53
  • 3

1 Answers1

0

I think your requirements are like you have a Web app for authentication and after authentication and authorisation you want to redirect to another application which is hosted in another server. You could use controller for that in spring and depends upon the logic you can have different views

Binu
  • 20
  • 5
  • I don't want to run another server. I want to show the html page from the current page. Say address/myfile.html will simply load the static file myfile.html and show it to the user – Yohana Kh Mar 31 '15 at 22:08
  • Thats possible and you can configure the view in spring controller – Binu Mar 31 '15 at 22:37