Hi all!
   I want to move my site to the J2EE server. I want to use similar mechanism as was used in Java Pet Store.
  Most of my site is static html pages so to follow MVC pattern I need to get all requests by Main.jsp, select the next page and forward the request to it. The problem is if I map Main.jsp to /* then after selecting some page say "main.html" it forwards it to Main.jsp servlet again!!! The server is looping till it crashes!
  In JPS it was solved by moving all control to "/control" directory and all requests are forwarded to pages which are not under that dir. But there are drawbacks of this approach especially that the templates and other pages are still accessible from /... which is not correct.

So all that I want is that all my pages (including static ones) were passed through MVC mechanism but without introducing auxiliary dirs such "/control". Is that possible?

Savotchkin Egor

Reply via email to