Passing Parameters to Servlets

P

Paul

I send a user a confirmation email with a link,

http://www.xoxoxoxox.com/

But, I want the user to be able to just click the link with a
confirmation number at the end of the link which will be passed to the
servlet and return a confirmation page.

I tried this,
http://www.xoxoxoxox.com/servlet/ServletName?Parameter

But I get this error,
NOT FOUND
The requested URL /servlet/ServletName was not found on this server

Can anyone tell me the correct way to do this?

Thanks,
Paul


Group: comp . lang . java . programme
 
P

Paul Lutus

Paul said:
I send a user a confirmation email with a link,

http://www.xoxoxoxox.com/

But, I want the user to be able to just click the link with a
confirmation number at the end of the link which will be passed to the
servlet and return a confirmation page.

I tried this,
http://www.xoxoxoxox.com/servlet/ServletName?Parameter

But I get this error,
NOT FOUND
The requested URL /servlet/ServletName was not found on this server

Can anyone tell me the correct way to do this?

Create a valid URL, then append the data field to the end using a question
mark. Everything to the left of the question mark must be a valid URL, to
the right can be arbitrary data.

Example:

http://www.google.com/search?q=Find+This

The URL "http://www.google.com/search" is a valid URL, and the field to the
right, "?q=Find+This" can be anything.

If the server complains that "http://www.xoxoxoxox.com/servlet/ServletName"
doesn't exist, it is most likely because it doesn't.
 
H

hiwa

I send a user a confirmation email with a link,

http://www.xoxoxoxox.com/

But, I want the user to be able to just click the link with a
confirmation number at the end of the link which will be passed to the
servlet and return a confirmation page.

I tried this,
http://www.xoxoxoxox.com/servlet/ServletName?Parameter

But I get this error,
NOT FOUND
The requested URL /servlet/ServletName was not found on this server

Can anyone tell me the correct way to do this?

Thanks,
Paul


Group: comp . lang . java . programme

Where is your ServletName.class? What is your application's directory
structure on the server? What is your web.xml entry for this
particular servlet?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top