Subversion Repositories bacoAlunos

Rev

Blame | Last modification | View Log | RSS feed

<%@ page import="jomm.dao.impl.AbstractDao" %>
<%@ page import="pt.estgp.estgweb.domain.ConfigurationSeparatorImpl" %>
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %>
<%@ taglib tagdir="/WEB-INF/tags/vfs" prefix="bacoVfsTags" %>
<%--
  Created by IntelliJ IDEA.
  User: jorgemachado
  Date: 19/04/17
  Time: 15:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

Hello World
<%
    String sepId = request.getParameter("sepId");
    AbstractDao.getCurrentSession().beginTransaction();

    ConfigurationSeparatorImpl sep = (ConfigurationSeparatorImpl) DaoFactory.getConfigurationSeparatorDaoImpl().get(Long.parseLong(sepId));
    Long pageSectionId = sep.getPageSection().getId();
    request.setAttribute("pageSectionId",pageSectionId);
    AbstractDao.getCurrentSession().getTransaction().commit();
%>
<bacoVfsTags:vfsview pageSectionId="${pageSectionId}"/>