|
 |
j2ee thread: J2EE w/BEA Weblogic Server - Invoking servlet
Message #1 by "Parag Pradhan" <p_pradhan@y...> on Tue, 20 Feb 2001 23:52:53
|
|
> I have set up the environment as required in the J2EE w/BEA Weblogic
> Server book on Windows NT 2000. When I invoke the first servlet as shown
> in Ch 3 pg 45
> http://localhost:7001/MyFirstServlet?username=Manu I get a 404 error.
>
> The DOS command prompt in which I ran startwls shows a msg: 'cannot find
> resource MyFirstServlet in document root c:\wlsbook\c03-srv\public_html
>
This is the line myserver\weblogic.properties file :
weblogic.httpd.register.as400Servlet=trelis.presentation.web.as400Servlet
weblogic.allow.execute.weblogic.servlet.as400Servlet=everyone
Make sure your path, for example trelis.presentation.web is in your weblogic classpath (configured in
the environment setting for startwls)
Here is an example piece of HTML for calling my servlet :
<HTML>
<HEAD>
<TITLE>Test as400 Servlet</TITLE>
</HEAD>
<BODY>
<H1>Test as400 Servlet</H1>
<FORM ACTION="as400Servlet" METHOD="POST">
<P>Data String <INPUT TYPE="text" SIZE="100" NAME="datastr"></P>
<INPUT TYPE="submit" VALUE="Submit"></P>
</FORM>
</BODY>
</HTML>
Hope this helps,
Ian Spence.
|
|
 |