I have db file with 210 fields per row.

Once a day, I would like to run a servlet that reads a row of data, sets a
flag as processed and then send out the row data(200 fields) to an e-mail's
message body(the email address and the processed flag are fields included in
the db file).
Then repeat the process until all rows have been emailed.

My current servlet reads the db data and outputs it to the browser.
My assumption was that I need to modify the servlet to include a doPost
method to open a socket to the mail server, and transmit the message via
SMTP protocol.

Is it possible to read a row of data using a doGet method, then email that
data, set the processed flag without using doPost method?
I think I hear you saying, that the doPost would be the wrong method since
my objective here doesn't involve an HTML form.
If so, what are you suggesting?

Perhaps, this shed a little more light on what I'm trying to accomplish!?
Thanks.

-----Original Message-----
From: rajeshkini [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 02, 2000 3:27 PM
To: [EMAIL PROTECTED]
Subject: Re: One servlet, 2 methods doGet and doPost combined.


I am not sure how you are adding the values to an email, but doPost surely
is not the way to do it. (doPost does not equal post a letter)

doPost and doGet are two ways a form is submitted to a servlet. doGet uses
the URL to transfer the info and doPost does it without using the URL. The
best way to "combine" both is to pass to doPost method the parameters that
you get in doGet and implement the required functionality in the doPost
method.

Kini

----- Original Message -----
From: "Lambert, Stephen : CO IR" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 02, 2000 3:55 PM
Subject: One servlet, 2 methods doGet and doPost combined.


> How does one pass values from a doGet(select) and then email those values
> from a doPost method.
>
> I can successfully split the methods into separate servlets and they
> individually run fine.
> But, I'm not sure how to combine the to methods. i.e. store 200 values and
> then reference all 200 values into the message body of an email.
>
> If someone could point to an example, I would be greatly appreciative!
>
>
> Thanks,
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to