aspose file tools*
The moose likes Servlets and the fly likes servlet called first Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet called first" Watch "servlet called first" New topic
Author

servlet called first

aymane chetibi
Ranch Hand

Joined: Apr 12, 2006
Posts: 175
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

Joined: Dec 11, 2004
Posts: 13410

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


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet called first
 
Similar Threads
Applet calling Servlet - Servlet does not load
TomCat deploy files.war and run fine *.jsp but SERVLETS = 404; what I can do ?
can a cron job call a servlet?
What happens after sendredirect?
running servlet after the browser is closed