|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
pt.moredata.dataentry.JspDataEntryController
Controlador de uma entrada de dados em jsp. Company MoreData
| Field Summary | |
static java.lang.String |
ACTION_COMMAND_KEY
Nome do parametro enviado no request que contem o comando a executar na entrada de dados. |
static java.lang.String |
DAOMANAGER_KEY
Nome do atributo com o qual esta guardado o DAOManager na sessao. |
static java.lang.String |
DATAENTRY_NAME_KEY
Nome do parametro enviado no request que contem o nome do DataEntry. |
static java.lang.String |
DATAENTRYLOG_KEY
Nome do atributo com o qual esta guardado o HashMap com o dataEntryLog para cada dataEntry da página |
static java.lang.String |
DATAENTRYPAGELOG_KEY
Nome do atributo com o qual esta guardado o HashMap com o dataEntryLog para a página |
static java.lang.String |
ERROR_URL_KEY
Nome do parametro que deve ser passado a esta Servlet com o nome da pagina para onde deve ser direcionado o controlo depois de processado um pedido e caso seja gerado um erro. |
static java.lang.String |
INPUT_TAG_PREFIX
Prefixo a acrescentar ao atributo name das tags em HTML que contenham valores de celulas do DataEntry. |
static java.lang.String |
JUMP_TO_RECORD_VALUE_KEY
Nome do parametro enviado no request que contem o numero do registo que deve passar a ser visualizado na entrada de dados. |
static java.lang.String |
NEW_WINDOW_KEY
Nome do parametro que deve ser passado a esta Servlet com a indicação se o erro deve ser mostrado numa nova janela ou não. |
static java.lang.String |
TABLE_NAME_KEY
Nome do parametro enviado no request que contem o nome da tabela da entrada de dados. |
static java.lang.String |
TABLE_SERIAL_KEY
Nome do parametro enviado no request que contem o serialKey da tabela da entrada de dados. |
static java.lang.String |
TARGET_URL_KEY
Nome do parametro que deve ser passado a esta Servlet com o nome da pagina para onde deve ser direcionado o controlo depois de processado um pedido. |
| Constructor Summary | |
JspDataEntryController()
|
|
| Method Summary | |
void |
destroy()
Destroys the servlet. |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP GET method. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP POST method. |
protected void |
forwardRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String forwardTo)
Redireciona o pedido para uma dada pagina. |
static DAOManager |
getDAOManager(javax.servlet.http.HttpSession session)
Devolve o gestor de DAOs que esta associada a sessao. |
static DataEntryLog |
getDataEntryLog(javax.servlet.http.HttpSession session,
DataEntry dataEntry)
Read information about the last command executed for a dataentry. |
static java.lang.String |
getHtmlComponentName(java.lang.String componentName)
Normalize a component name so it can be used in a javascript identifier name. |
static LogEntry |
getLogEntry(javax.servlet.ServletRequest request)
Read information about the last command executed for a dataentry by the JspDataEntryController. |
java.lang.String |
getServletInfo()
Returns a short description of the servlet. |
protected void |
processCommand()
Processa um comando sobre a entrada de dados |
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes requests for both HTTP GET and POST
methods. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String INPUT_TAG_PREFIX
public static final java.lang.String DATAENTRY_NAME_KEY
public static final java.lang.String TABLE_NAME_KEY
public static final java.lang.String TABLE_SERIAL_KEY
public static final java.lang.String ACTION_COMMAND_KEY
public static final java.lang.String JUMP_TO_RECORD_VALUE_KEY
public static final java.lang.String TARGET_URL_KEY
public static final java.lang.String ERROR_URL_KEY
public static final java.lang.String NEW_WINDOW_KEY
public static final java.lang.String DAOMANAGER_KEY
public static final java.lang.String DATAENTRYLOG_KEY
public static final java.lang.String DATAENTRYPAGELOG_KEY
| Constructor Detail |
public JspDataEntryController()
| Method Detail |
protected void forwardRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String forwardTo)
throws java.io.IOException,
javax.servlet.ServletException
request - Pedido feito pelo cliente.response - Resposta a dar ao cliente.forwardTo - Url da pagina para onde redirecionar o
pedido.
java.io.IOException - Description of the Exception
javax.servlet.ServletException - Description of the Exceptionprotected void processCommand()
protected void processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
GET and POST
methods.
request - servlet requestresponse - servlet response
javax.servlet.ServletException - Description of the Exception
java.io.IOException - Description of the Exception
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
GET method.
request - servlet requestresponse - servlet response
javax.servlet.ServletException - Description of the Exception
java.io.IOException - Description of the Exception
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
POST method.
request - servlet requestresponse - servlet response
javax.servlet.ServletException - Description of the Exception
java.io.IOException - Description of the Exceptionpublic static DAOManager getDAOManager(javax.servlet.http.HttpSession session)
public void destroy()
public java.lang.String getServletInfo()
public static DataEntryLog getDataEntryLog(javax.servlet.http.HttpSession session,
DataEntry dataEntry)
session - The session object.dataEntry - The DataEntry.
public static LogEntry getLogEntry(javax.servlet.ServletRequest request)
request - The ServletRequest object.
public static java.lang.String getHtmlComponentName(java.lang.String componentName)
componentName - The component name
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||