src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java

changeset 74
91d1fc2a3a14
parent 73
672b5003cafe
child 75
33b6843fdf8a
equal deleted inserted replaced
73:672b5003cafe 74:91d1fc2a3a14
226 mappings.clear(); 226 mappings.clear();
227 LOG.trace("{} destroyed", getServletName()); 227 LOG.trace("{} destroyed", getServletName());
228 } 228 }
229 229
230 /** 230 /**
231 * Sets the name of the dynamic fragment. 231 * Sets the name of the content page.
232 * <p> 232 * <p>
233 * It is sufficient to specify the name without any extension. The extension 233 * It is sufficient to specify the name without any extension. The extension
234 * is added automatically if not specified. 234 * is added automatically if not specified.
235 * <p> 235 *
236 * The fragment must be located in the dynamic fragments folder. 236 * @param req the servlet request object
237 * 237 * @param pageName the name of the content page
238 * @param req the servlet request object 238 * @see Constants#REQ_ATTR_CONTENT_PAGE
239 * @param fragmentName the name of the fragment 239 */
240 * @see Constants#DYN_FRAGMENT_PATH_PREFIX 240 protected void setContentPage(HttpServletRequest req, String pageName) {
241 * @see Constants#REQ_ATTR_FRAGMENT 241 req.setAttribute(Constants.REQ_ATTR_CONTENT_PAGE, Functions.jspPath(pageName));
242 */
243 protected void setDynamicFragment(HttpServletRequest req, String fragmentName) {
244 req.setAttribute(Constants.REQ_ATTR_FRAGMENT, Functions.dynFragmentPath(fragmentName));
245 } 242 }
246 243
247 /** 244 /**
248 * Sets the breadcrumbs menu. 245 * Sets the breadcrumbs menu.
249 * 246 *

mercurial