A HTTP "GET" Method Request the Servlet (or original CGI parameters) are part of the URL. ie. http://my.java.shop/servlet/Foo?a=1&b=2&c=3....&z=26 So if you have 210 parameters it may not fit the Web Server URL internal buffer !! Therefore it may not work as GET request A HTTP "POST" Method Request simply means the Servlet/CGI parameter and sent down the Socket pipe as a simple I/O transfer. The URL is the sample ie. http://my.java.shop/servlet Then the Web Server read the output from Web Client as a=1 b=2 c=3 z=26 "POST" is what you want, basically. If you data is huge then you may have to check out Applet to Servlet HTTP Tunnelling. That is sending Java object by serialisation from the applet to the servlet using the HTTP protocol . Java Servlet Programming by Jason Hunter, Oreilly yet again. -- Peter Pilgrim Welcome to the "Me Too" generation. ---------------------------------------- Message History ---------------------------------------- From: [EMAIL PROTECTED] on 02/10/2000 22:30 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: One servlet, 2 methods doGet and doPost combined. 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 -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ___________________________________________________________________________ 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
