This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes Start with a Servlet in Weblogic 6.x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Start with a Servlet in Weblogic 6.x" Watch "Start with a Servlet in Weblogic 6.x" New topic
Author

Start with a Servlet in Weblogic 6.x

cris abanades
Greenhorn

Joined: Aug 30, 2001
Posts: 10
We have an installation of BEA Weblogic and we have developped an application. The problem is that we want to set a servlet as home page, but we couldn�t find the way to do it.
We have already tried to make a .jsp as home page and redirect it to a servlet, but this solution is not valid for us, because the home page could be acceded from HTTP(Web) as well as from WAP (mobile phone), and WAP does not understand .jsp.
Summary: we want the application to be accesible from HTTP and WAP. Our servlet is the one who can know and discriminate when a request is made. That's why we need the servlet to be the first called before other thing. Can anybody help us?
Thanks.
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1168
Cris,
Making a servlet the entry point to a wep-app is quite easy.
In your web.xml have something like -
<servlet>
<servlet-name>mySite</servlet-name>
<servlet-class>servlets.mySite</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>mySite</servlet-name>
<url-pattern>/mySite/*</url-pattern>
</servlet-mapping>
Am I missing anything?
Cheers,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Start with a Servlet in Weblogic 6.x
 
Similar Threads
Start with a Servlet in Weblogic
Diffference between J2ME and J2SE, WAP
Start with a Servlet in Weblogic
Start with a Servlet in Weblogic
jsp/ejb connection complications, please help