Efficiency should take a back-seat to what makes the most sense for the application.
when i try to get parameters from the request, i get null values.
Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.java.lang.String getInitParameter(java.lang.String name)
If we have a timer on the client side aren't we maintaining session times in two places?
If we want to increase session timeout later don't we have to do in two places?
What are the major disadvatages in going this route.
<%@ 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"/>
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"/>
First.jsp
<jsp:getProperty name="myBean" property="myProperty"/>
The problem i have is if a user's account is updated, i would like this user's bean to be refreshed.
How do i access each User object for each user in all sessions so that i can invalidate the ones i want?