edu.rice.rubis.beans.servlets
Class StoreComment
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--edu.rice.rubis.beans.servlets.StoreComment
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class StoreComment
- extends javax.servlet.http.HttpServlet
This servlets records a comment in the database and display
the result of the transaction.
It must be called this way :
http://..../StoreComment?itemId=aa&userId=bb&minComment=cc&maxQty=dd&comment=ee&maxComment=ff&qty=gg
where: aa is the item id
bb is the user id
cc is the minimum acceptable comment for this item
dd is the maximum quantity available for this item
ee is the user comment
ff is the maximum comment the user wants
gg is the quantity asked by the user
- Version:
- 1.0
- Author:
- Emmanuel Cecchet and Julie Marguerite
- See Also:
- Serialized Form
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Call the doPost method. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Store the comment to the database and display the resulting message. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StoreComment
public StoreComment()
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Call the
doPost
method.
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Parameters:
request
- a HttpServletRequest
valueresponse
- a HttpServletResponse
value- Throws:
java.io.IOException
- if an error occursjavax.servlet.ServletException
- if an error occurs
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Store the comment to the database and display the resulting message.
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Parameters:
request
- a HttpServletRequest
valueresponse
- a HttpServletResponse
value- Throws:
java.io.IOException
- if an error occursjavax.servlet.ServletException
- if an error occurs
Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.