Difference between facade and service layer

i have always tried to answer this question, and somehow even after reading alot about it on the net, the question is still a debate in my mind. Anyhow, writing what is clear about this question to me : Facade layer, as the name suggests, is something beautiful which is trying to hide something ugly behind …

Advertisements

Spring Annotations : One line description to make sense out of them

@Autowired : Binding one class with another by type@Resource : Binding one class with another by name @RequestMapping : To map url with function/class@RequestHeader : To map parameter to header variable@modelAttribute : To map parameter with attribute present in model@RequestParam : To map parameter with attribute present in request@SessionAttribute : To map parameter with attribute present …

Perform var1.contains(var2) in jsp

In jsp, performing equals or not equals is pretty simple :for equals :<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><c:if test="${var1 eq var2}">for not equals : <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><c:if test="${var1 ne var2}">To perform contains function, following snippet will be used : <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %><c:if test="${fn:contains(var1, 'test')}">