<%
MyClass myClassObj = (MyClass) session.getAttribute("myClass");
if (myClassObj == null)
{
myClassObj = new MyClass();
myClassObj.setType("1");
session.setAttribute("myClass", myClassObj);
}
%>
However, now I am working in JSF 2.0 where xhtml pages are used instead of jsp.
So scriptlets can't be used.
Is there some way in which this can still be achieved in xhtml?

New Topic/Question
Reply


MultiQuote








|