Sailaja
Posts: 2
Nickname: sonu193
Registered: Apr, 2004
|
|
java beans questions
|
Posted: Apr 29, 2004 1:14 PM
|
|
|
Advertisement
|
Hi all please help me with this question..
what is the result displayed on the browser when the First.jsp is accessed.
First.jsp
<%@ page language="java" import="com.mypackage.MyBean" %> <jsp:useBean id="myBean" class="MyBean" scope="session" /> <jsp:setProperty name="myBean" property="myProperty" value="FirstValue"/> <jsp:include page="Second.jsp"/> <jsp:getProperty name="myBean" property="myProperty"/>
Second.jsp
<%@ page language="java" import="com.mypackage.MyBean" %> <jsp:useBean id="myBean" class="MyBean" scope="application"/> <jsp:setProperty name="myBean" property="myProperty" value="SecondValue"/> Select 1 correct Choice. A. Translation Error B. Compilation Error C. Runtime Error D. Prints FirstValue E. Prints SecondValue
Thank u for your time Sailaja
|
|