forked from jskankurgarg/CompileOnline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusetag.jsp
26 lines (26 loc) · 846 Bytes
/
usetag.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<%@ taglib prefix="mine" tagdir="/WEB-INF/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page isELIgnored="false" %>
<c:set var="username" scope="application" value="Radhe"/>
username inside jsp : ${username}<br/>
<mine:name username="${username}">
asjldhajkdh
${username}
</mine:name>
<hr>
in the end<br>
<!--<%= application.getAttribute("username")%>-->
<%
session.setAttribute("dog",new foo.Dog("indian"));
// session.setAttribute("dog",new foo.Dog("german"));
session.setAttribute("dog",new foo.Dog("espanol"));
session.removeAttribute("dog");
// session.setAttribute("a",123);
// session.setAttribute("a",123);
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="cart" value="asd"/>
${cart}
<c:remove var="cart" scope="session" />
<br>
<%-- out.println("inside JPS comment"); --%>