Hello all! I'm having some confusions about what to use as the "Home Page" in my web app.
Should I use Servlet?(www.foo.com/index) or JSP?(www.foo.com/index.jsp)
I dont know what would be their entry point in my site. I mean, let say, they visit www.foo.com/index.jsp, and they click login, the page then redirects to /index?id=login
(servlet) the servlet then query to the database, and then dispatch to the index.jsp.
But my "index.jsp" file has a lot of IF-Statements which is I don't think a good practice for an MVC Design.
if session is null then say youre not login
else welcome user
if request.getAttribute("username") is not null then
etc. etc.
sorry for my bad english guys! i just hope you get what i mean. Thanks...