IDEMPIERE-410 HTTP Status 404 - /wstore/orderServlet - IDEMPIERE-1402
This commit is contained in:
parent
6cd592e409
commit
c0dfdd052e
|
@ -28,7 +28,7 @@
|
||||||
<c:forEach items='${info.advertisements}' var='ad'>
|
<c:forEach items='${info.advertisements}' var='ad'>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<a href="http://www.adempiere.com/wstore/click?<c:out value='${ad.clickTargetURL}'/>" target="_blank">
|
<a href="http://www.idempiere.com/wstore/click?<c:out value='${ad.clickTargetURL}'/>" target="_blank">
|
||||||
<img src="<c:out value='${ad.imageURL}'/>" alt="<c:out value='${ad.name}'/>" border="0" align="left"></a>
|
<img src="<c:out value='${ad.imageURL}'/>" alt="<c:out value='${ad.name}'/>" border="0" align="left"></a>
|
||||||
<img src="<c:out value='${ad.webParam2}'/>" alt="<c:out value='${ad.webParam1}'/>" border="0" align="right">
|
<img src="<c:out value='${ad.webParam2}'/>" alt="<c:out value='${ad.webParam1}'/>" border="0" align="right">
|
||||||
<b><c:out value='${ad.description}'/></b>
|
<b><c:out value='${ad.description}'/></b>
|
||||||
|
|
|
@ -190,10 +190,10 @@ public class LoginServlet extends HttpServlet
|
||||||
// Web User
|
// Web User
|
||||||
WebUser wu = WebUser.get(request);
|
WebUser wu = WebUser.get(request);
|
||||||
|
|
||||||
// Handover Loginprodcess to general WebLogin Handler
|
// Handover Loginprocess to general WebLogin Handler
|
||||||
// Frst set the URL from our current situation
|
// First set the URL from our current situation
|
||||||
thisLogin.setForward (url);
|
thisLogin.setForward (url);
|
||||||
// Also handover adressConfirm
|
// Also handover addressConfirm
|
||||||
thisLogin.setAddressConfirm (addressConfirm);
|
thisLogin.setAddressConfirm (addressConfirm);
|
||||||
// Since Mode Usage is not consequent we will try to figure it out.
|
// Since Mode Usage is not consequent we will try to figure it out.
|
||||||
if (WebUtil.getParameter(request, "Mode")==null)
|
if (WebUtil.getParameter(request, "Mode")==null)
|
||||||
|
@ -210,8 +210,12 @@ public class LoginServlet extends HttpServlet
|
||||||
if (!url.startsWith("/"))
|
if (!url.startsWith("/"))
|
||||||
url = "/" + url;
|
url = "/" + url;
|
||||||
if (log.isLoggable(Level.INFO)) log.info("doPost - Forward to " + url);
|
if (log.isLoggable(Level.INFO)) log.info("doPost - Forward to " + url);
|
||||||
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url);
|
if (url.startsWith("/orderServlet")) {
|
||||||
dispatcher.forward(request, response);
|
response.sendRedirect(url.substring(1));
|
||||||
|
} else {
|
||||||
|
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url);
|
||||||
|
dispatcher.forward(request, response);
|
||||||
|
}
|
||||||
} // doPost
|
} // doPost
|
||||||
|
|
||||||
} // LoginServlet
|
} // LoginServlet
|
||||||
|
|
Loading…
Reference in New Issue