Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

calling servlets as index.html

843841Nov 24 2003 — edited Feb 23 2008
Hi all,

my question is as follows:
Is it possible to have a servlet return a page directly when the user enters a website, without submiting a form or clicking a button?

I want the website to read a database as soon as the user enters it, and display a page back.

do I call the servlet using the event onload()?? or is there a more direct way to do it?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2008
Added on Nov 24 2003
23 comments
1,468 views