Hello,

I was just wondering, which is better to use.
I am posting and retrieving data to and from a database.

Should I use doGet() or doPost()?

Or do I do what I have been doing and do this?

public synchronized void doanything (HttpServletRequest req,
HttpServletResponse res) throws ServletException, IOException {
}

public synchronized void doGet (HttpServletRequest req, HttpServletResponse
res) throws ServletException, IOException {
      doanything(req, res);}

 public synchronized void doPost (HttpServletRequest req,
HttpServletResponse res) throws ServletException, IOException {
     doanything(req, res);}


Cheers for your help

___________________________________________________________________________
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