Hi all, below is the 2 simple programs from Apache
struts novice to professional--
1 - first page
<
jsp:useBean id="myVariable" scope="session" class="java.lang.StringBuffer"/>
<%
myVariable.append("1");
%>
<jsp:forward page="Second.jsp" />
2- second page
<jsp:useBean id="myVariable"scope="session"lass="java.lang.StringBuffer"/>
<%
myVariable.append("2");
%>
<%= myVariable.toString()%>
Now what will be the answer if the following 2 user access the application in this order--
� Audrey is the first person to view First.jsp. What will she see?
� Brenda next views First.jsp from a different machine. What does she see?
� If Audrey again views First.jsp after Brenda, what will she see?
� What if Brenda now loads Second.jsp directly?
This is only for my clarification...My answer is
Audrey = 12
Brenda = 12
Audrey = 1212
Brenda = 122
Please clarify me...Thank you all for replying....
[ September 22, 2008: Message edited by: Bear Bibeault ]