IDEMPIERE-410 HTTP Status 404 - /wstore/orderServlet - IDEMPIERE-1402

This commit is contained in:
Carlos Ruiz 2013-09-30 10:11:03 -05:00
parent 6cd592e409
commit c0dfdd052e
2 changed files with 10 additions and 6 deletions

View File

@ -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">
&nbsp; <b><c:out value='${ad.description}'/></b> &nbsp; <b><c:out value='${ad.description}'/></b>

View File

@ -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);
if (url.startsWith("/orderServlet")) {
response.sendRedirect(url.substring(1));
} else {
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url); RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url);
dispatcher.forward(request, response); dispatcher.forward(request, response);
}
} // doPost } // doPost
} // LoginServlet } // LoginServlet