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,72 @@
|
|||
package it.acxent.redir.servlet;
|
||||
|
||||
import it.acxent.db.ApplParmFull;
|
||||
import it.acxent.db.CRAdapter;
|
||||
import it.acxent.db.DBAdapter;
|
||||
import it.acxent.servlet.AblServletSvlt;
|
||||
import it.acxent.servlet.SavedHttpRequest;
|
||||
import java.util.StringTokenizer;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
public class RedirAdminSvlt extends AblServletSvlt {
|
||||
private static final long serialVersionUID = -1632154565816362019L;
|
||||
|
||||
private static final String _PARMS2 = "_parms";
|
||||
|
||||
private static final String _SVLT2 = "_svlt";
|
||||
|
||||
protected void fillComboAfterDetail(DBAdapter bean, HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected void fillComboAfterSearch(CRAdapter CR, HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected DBAdapter getBean(HttpServletRequest req) {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected CRAdapter getBeanCR(HttpServletRequest req) {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected void prepareNewRecord(HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected boolean isSimpleServlet(HttpServletRequest req) {
|
||||
return false;
|
||||
}
|
||||
|
||||
protected void search(HttpServletRequest req, HttpServletResponse res) {
|
||||
ApplParmFull apFull = getApFull(req);
|
||||
String _svlt = getRequestParameter(req, "_svlt");
|
||||
String _parms = getRequestParameter(req, "_parms");
|
||||
StringTokenizer st = new StringTokenizer(_parms, "@");
|
||||
int delimIndex = 0;
|
||||
while (st.hasMoreElements()) {
|
||||
String parmValue = st.nextToken();
|
||||
delimIndex = parmValue.indexOf(":");
|
||||
String parm = parmValue.substring(0, delimIndex);
|
||||
String value = parmValue.substring(delimIndex + 1);
|
||||
req.setAttribute(parm, value);
|
||||
}
|
||||
SavedHttpRequest shr = (SavedHttpRequest)req.getSession().getAttribute("_shr");
|
||||
shr = new SavedHttpRequest();
|
||||
shr.setCompleteRequestedURI(req.getContextPath() + req.getContextPath());
|
||||
shr.setServletPath(_svlt);
|
||||
shr.setAllParametersNAttributes(req);
|
||||
if (useAlwaysSendRedirect())
|
||||
shr.setUseSendRedirect(true);
|
||||
req.getSession().setAttribute("_shr", shr);
|
||||
try {
|
||||
res.sendRedirect(req.getContextPath() + "/admin/menu/index.jsp");
|
||||
} catch (Exception e2) {
|
||||
e2.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
protected void otherCommands(HttpServletRequest req, HttpServletResponse res) {
|
||||
search(req, res);
|
||||
}
|
||||
|
||||
protected boolean isSecureServlet(HttpServletRequest req) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue