Regalamiunsorriso/decompiled-libs/www/acxent-common-1.0.1/it/acxent/contab/servlet/GetDocumentoAttachSvlt.java

18 lines
696 B
Java

package it.acxent.contab.servlet;
import it.acxent.art.AllegatoArticolo;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet(urlPatterns = {"/_attach/_doc/*"})
public class GetDocumentoAttachSvlt extends it.acxent.servlet.GetFileSvlt {
private static final long serialVersionUID = -4630036169261100261L;
protected String getFileName(HttpServletRequest req, HttpServletResponse res) {
AllegatoArticolo bean = new AllegatoArticolo(getApFull(req));
bean.findByPrimaryKey(getRequestLongParameter(req, "id"));
String fileName = bean.getNomeFileCompleto();
return fileName;
}
}