<%@ taglib uri="http://www.atanion.com/tobago/component" prefix="t" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%! public class StateModel { int state; public void setState(int i) {state = i;} public int getState() {return state;} } %> <% StateModel model = (StateModel) session.getAttribute("serverModel"); if (model == null) { model = new StateModel(); session.setAttribute("serverModel", model); } %> Content of first Tab Content of second Tab Content of third Tab