Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet called first

 
aymane chetibi
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what would be the url pattern for the servlet to be called as soon as the site url is typed.
and then this servlet gets some data from database and dispaches to index.jsp (home page).
is that possible and if so how can we do it ??

thanks alot!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On my site, I have an example app that shows how to configure a webapp to use as servlet as the welcome page.
There is also a simple MVC example that has code for forwarding from the servlet to the JSP.

See:
http://simple.souther.us
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic