The Artima Developer Community
Sponsored Link

Web Services Forum
java beans questions

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Sailaja

Posts: 2
Nickname: sonu193
Registered: Apr, 2004

java beans questions Posted: Apr 29, 2004 1:14 PM
Reply to this message Reply
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

Topic: IIS and Websphere Previous Topic   Next Topic Topic: Jini As a WebService

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use