We are group of freelauncers and trainers. We are developing websites , android app , windows softwares and training on youtube and in classes (JITClasses (A Class of Information Technology)
Friday, 30 September 2016
Wednesday, 28 September 2016
Saturday, 24 September 2016
Friday, 23 September 2016
Wednesday, 21 September 2016
Monday, 19 September 2016
Complete JSTL Function in jsp
<%--
Author : WINDOW10
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="f"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<c:set var="sample" value=" Java Tree Point "></c:set>
<%-- contain-
<c:if var="s" test="${f:contains(sample,'tree')}">
${'your domain name having word like Tree'}
${s}
</c:if>
--%>
<%-------------------containsIgnoreCase
<c:if var="s" test="${f:containsIgnoreCase(sample,'TREE')}">
${'your domain name having word like Tree'}
${s}
</c:if>
--%>
<%-------------------endsWith----
${f:endsWith(sample, 'tree')}
--%>
<%-- escapeXml-
<c:set var="es" value="<html><head></head><body><div><h1>JavaTreePoint</h1></div></body></html>"></c:set>
without escapeXml function ----<br>
${es}
with escapeXml function ----<br>
${f:escapeXml(es)}
--%>
<%-- indexOf
${f:indexOf(sample,'tree')}
--%>
<%-- <c:set var="dt" value="9/19/2016"></c:set>
<c:set var="samplearr" value="${f:split(dt,'/')}"></c:set>
${samplearr[0]}
--%>
<%-- join function in jstl
<c:set var="samplearr" value="${f:split(sample,' ')}"></c:set>
<c:forEach var="i" begin="0" end="2"><br>
${samplearr[i]}
</c:forEach>
<br>
${f:join(samplearr,'&')}
${f:length(sample)}
${f:replace(sample,'a','alok')}
${f:startsWith(sample,'chava')}
${f:substring(sample,5, 8)}
${f:substringAfter(sample, 'java')}<br>
${f:substringBefore(sample,'point')}<br>
${f:toLowerCase(sample)}
${f:toUpperCase(sample)}
${sample}<br>${f:length(sample)}
<br>
${f:trim(sample)}<br>
${f:length(f:trim(sample))}
--%>
</body>
</html>
Document : JSTLFunction
Created on : Sep 19, 2016, 8:46:19 AMAuthor : WINDOW10
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="f"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<c:set var="sample" value=" Java Tree Point "></c:set>
<%-- contain-
<c:if var="s" test="${f:contains(sample,'tree')}">
${'your domain name having word like Tree'}
${s}
</c:if>
--%>
<%-------------------containsIgnoreCase
<c:if var="s" test="${f:containsIgnoreCase(sample,'TREE')}">
${'your domain name having word like Tree'}
${s}
</c:if>
--%>
<%-------------------endsWith----
${f:endsWith(sample, 'tree')}
--%>
<%-- escapeXml-
<c:set var="es" value="<html><head></head><body><div><h1>JavaTreePoint</h1></div></body></html>"></c:set>
without escapeXml function ----<br>
${es}
with escapeXml function ----<br>
${f:escapeXml(es)}
--%>
<%-- indexOf
${f:indexOf(sample,'tree')}
--%>
<%-- <c:set var="dt" value="9/19/2016"></c:set>
<c:set var="samplearr" value="${f:split(dt,'/')}"></c:set>
${samplearr[0]}
--%>
<%-- join function in jstl
<c:set var="samplearr" value="${f:split(sample,' ')}"></c:set>
<c:forEach var="i" begin="0" end="2"><br>
${samplearr[i]}
</c:forEach>
<br>
${f:join(samplearr,'&')}
${f:length(sample)}
${f:replace(sample,'a','alok')}
${f:startsWith(sample,'chava')}
${f:substring(sample,5, 8)}
${f:substringAfter(sample, 'java')}<br>
${f:substringBefore(sample,'point')}<br>
${f:toLowerCase(sample)}
${f:toUpperCase(sample)}
${sample}<br>${f:length(sample)}
<br>
${f:trim(sample)}<br>
${f:length(f:trim(sample))}
--%>
</body>
</html>
Monday, 12 September 2016
Sunday, 11 September 2016
JSTL example in jsp . JSTL out tags, JSTL set tags,JSTL choose tags, JSTL When tags, JSTL catch tags, JSTL foreach tags, JSTL if tags
<%--
Document : SampleJSTL
Created on : Sep 9, 2016, 9:09:25 AM
Author : Alok Panday
--%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="pg" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<pg:set var="name" value="javatreepoint"></pg:set>
<pg:choose>
<pg:when test="${name=='jaatreepoint'}">
<pg:out value="${name}"></pg:out>
</pg:when>
<pg:otherwise>
<pg:out value="not maching"></pg:out>
</pg:otherwise>
</pg:choose>
<pg:catch var="ex">
<pg:out value="${45/0}"></pg:out>
</pg:catch>
<pg:if test="${ex!=null}">
${ex}
</pg:if>
<pg:forEach begin="0" end="10" step="2" var="i" >
${i}
</pg:forEach>
<pg:import url="index.html" ></pg:import>
</body>
JSP Page
${ex}
${i}
</html>
Document : SampleJSTL
Created on : Sep 9, 2016, 9:09:25 AM
Author : Alok Panday
--%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="pg" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<pg:set var="name" value="javatreepoint"></pg:set>
<pg:choose>
<pg:when test="${name=='jaatreepoint'}">
<pg:out value="${name}"></pg:out>
</pg:when>
<pg:otherwise>
<pg:out value="not maching"></pg:out>
</pg:otherwise>
</pg:choose>
<pg:catch var="ex">
<pg:out value="${45/0}"></pg:out>
</pg:catch>
<pg:if test="${ex!=null}">
${ex}
</pg:if>
<pg:forEach begin="0" end="10" step="2" var="i" >
${i}
</pg:forEach>
<pg:import url="index.html" ></pg:import>
</body>
</html>
Wednesday, 7 September 2016
Android in hindi Lec 1(Introduction (History of Android in hindi))
This is just part 1 .I will upload all others soon .And you can ask anything about android on here.
Subscribe to:
Comments (Atom)