public class PayAction
extends org.apache.struts.action.Action
ActionError is created.
This action uses three tables. The table customers has two columns,
id and name. The table openbills has three columns,
id, customerid and amount. The table paidbills
is equivalent to openbills. If a bill is successfully paid, the
action deletes the corresponding row from openbills and inserts
it into paidbills.| Constructor and Description |
|---|
PayAction() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServletpublic org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
execute in class org.apache.struts.action.ActionExceptionCopyright © 2003–2023. All rights reserved.