(Choose 1 ans 27/50-CAP
{
Given the following JSP and tag handler code, what is the result of accessing the JSP?
JSP Page Source
<html>
<body>
<%@taglib uri="test_taglib" prefix="my Tag"%>
<% session.setAttribute("first", "first"); %>
<my Tag: TestTag/>
<br>
<%=session.getAttribute("second")%>
</body>
</html>
Tag Handler Code for <my Tag:TestTag />
package examples;
import java.io.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class TestTag extends TagSupport
{
private PageContext pageContext;
public void setPageContext(PageContext page){
this.pageContext=page;
}
public int doStartTag() throws JspException
try{String first-pageContext.getSession().getAttribute("first").toString();
nageContext.getOuto write(first):
FUO