resin under how to use servlet, I tried for a long time.

Category: Web Develop
 
panhaofei521
2010-01-23 08:45:19

Sponsored Links
I put Applet1.class
into
resin \ doc \ web-inf \ classes \ next
put Applet1.html
into
resin \ doc \ servlet \ Then the next
browser

http://localhost:8083/servlet/Applet1.html not visit

newspaper:
--- ----------------------------------
Applet1.html 'is not a known servlet. Servlets belong in the classpath,
often in WEB-INF/classes.

---------- ---------------------------
------------------- ------------------
if
Applet1.html
into
resin \ doc again next
In the browser
http://localhost:8083/Applet1.html access
newspaper:
--------------------- -----------
no category testjdbc.Applet1.class.

I wanted to run this simple servlet only: (

Sponsored Links

nickdsy
2010-01-23 08:57:58
My resin.conf:

<web-app id = '/ '>
<! - adds xsl to the search path ->
<class-loader>
<simple- loader path = "$ host-root/xsl" />
</ class-loader>

<servlet-mapping url-pattern="/servlet/*" servlet-name="invoker"/>
</ web-app>
StateGrid2009
2010-01-23 09:15:00
classpath
a515111
2010-01-23 09:17:52
My classpath has

C : \ JBuilder8 \ resin \ lib \ servlet.jar;

LINALONG123456789
2010-01-23 09:29:59
I now
doc / web-inf
under Tim web.xml

content like this:
<web-app>
<servlet>
<servlet-name> applet < ;/ servlet-name>
<servlet-class> testjdbc.Applet1 </ servlet-class>
</servlet>

<servlet-mapping>
<url-pattern> / applet </ url-pattern>
<servlet-name> applet </ servlet-name>
</ servlet-mapping>
</ web-app>

or No, reported:
WEB-INF/web.xml: 4: `testjdbc.Applet1 'is not a known servlet. Servlets
belong in the classpath, often in WEB-INF/classes.

Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.