www in docker support
This commit is contained in:
parent
539a848e95
commit
c227fce036
2145 changed files with 399596 additions and 58 deletions
|
|
@ -0,0 +1,39 @@
|
|||
package it.acxent.anag.servlet;
|
||||
|
||||
import it.acxent.anag.Cliente;
|
||||
import it.acxent.anag.ClienteCR;
|
||||
import it.acxent.anag.TipoPagamento;
|
||||
import it.acxent.anag.TipoPagamentoCR;
|
||||
import it.acxent.db.CRAdapter;
|
||||
import it.acxent.db.DBAdapter;
|
||||
import it.acxent.util.ReturnItem;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
@WebServlet(urlPatterns = {"/admin/anag/Cliente.abl"})
|
||||
public class ClienteSvlt extends CliforSvlt {
|
||||
private static final long serialVersionUID = 6362096338674911071L;
|
||||
|
||||
protected DBAdapter getBean(HttpServletRequest req) {
|
||||
return new Cliente(getApFull(req));
|
||||
}
|
||||
|
||||
protected CRAdapter getBeanCR(HttpServletRequest req) {
|
||||
return new ClienteCR(getApFull(req));
|
||||
}
|
||||
|
||||
protected void prepareNewRecord(HttpServletRequest req, HttpServletResponse res) {
|
||||
req.setAttribute("bean", getBean(req));
|
||||
req.setAttribute("listaTipoPagamento", new TipoPagamento(getApFull(req)).findByCR(new TipoPagamentoCR(), 0, 0));
|
||||
req.setAttribute("RI", new ReturnItem(req.getParameter("RI")));
|
||||
}
|
||||
|
||||
protected String getBeanPageName(HttpServletRequest req) {
|
||||
return super.getBeanPageName(req);
|
||||
}
|
||||
|
||||
protected final String getBeanName(HttpServletRequest req) {
|
||||
return "clifor";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue