I can see two possible problems with this.

First your reference is to "servlet/clesson".  This is a relative link that
points to a servlet directory below the directory where your html file is.
Is that what you wanted, or were you intending to point to a servlet
directory right off of the server's root. A non relative link would be
"/servlet/clesson".

Second, I don't think that JRun is that simplistic about servlet URL
mapping.  I am not an expert on this but I believe that you have to place
your servlet in a web application under servers\default.  You might want to
look in the JRun documentation about web applications and servlet URL
mapping.

-----Original Message-----
From: ntrgiang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 4:59 PM
To: JRun-Talk
Subject: pass parameter to a servlet?


from an html file, I have a link:
.....
<a href="servlets/clesson?ID=0">start</a>
.....

but in browser, when I click in that link, browser give me an "error: 404
not found".

I have placed 'clesson.class' in "servlet" directory. But always I receive
that error.

Please help me solve this error. Thanks
Regards,
Giang
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to