| 1 16 package dlog4j.tags; 17 18 import javax.servlet.jsp.JspException ; 19 20 import net.sf.hibernate.Session; 21 import dlog4j.ParamManager; 22 import dlog4j.SiteManager; 23 import dlog4j.formbean.SiteForm; 24 25 29 public class ParamsTag extends DlogBaseTag { 30 31 34 public int doStartTag() throws JspException { 35 Session ssn = null; 36 try { 37 ssn = getSession(); 38 SiteForm site = 39 SiteManager.getCurrentSite(pageContext.getRequest()); 40 pageContext.setAttribute(id, ParamManager.listParams(ssn, site)); 41 } catch (Exception e) { 42 throw new JspException (e); 43 } finally { 44 try { 45 closeSession(ssn); 46 } catch (Exception e) { 47 } 48 } 49 return SKIP_BODY; 50 } 51 } 52 | Popular Tags |