A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Certification
»
Web Component Certification (SCWCD/OCPJWCD)
Author
Charles can you please clarify this question
Ashley Bideau
Ranch Hand
Joined: Apr 22, 2006
Posts: 40
posted
May 23, 2006 08:12:00
0
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"/>
This question was dicsussed in this thread
http://www.coderanch.com/t/171960/java-Web-Component-SCWCD/certification/jsp-include
but I don't feel confident with answers.
Marc Peabody
pie sneak
Sheriff
Joined: Feb 05, 2003
Posts: 4725
I like...
posted
May 23, 2006 08:13:00
0
Keep the discussion going in the other thread, please.
A good workman is known by his tools.
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Charles can you please clarify this question
Similar Threads
jsp:include
JSP - UseBean
jsp:useBean question
Java Beans
one more Jpilot ques.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter