>From: Jason Vincent <[EMAIL PROTECTED]> > > Hey there, > > I have a header.jsp file that is included in all my jsps: > > > > > > or if the including jsp was in a subdirectory... > > > > > > inside the header.jsp I'm trying to call a request scope backing bean > to call a method to dynamically build some javascript. > > > > Here is my managed bean definition: > > header > > com.prenet.cpt.presentation.Header > request > > > The problem is that the header.isAdmin() method is not being called. > And futhermore the default constructor for the Header.java class isn't > being called. the Header class is not a ViewController as it > doesn't match the url-to-bean mapping for whatever page I'm on. > > What could be going on here? Is there something speacial that has to > be done in a subview? >
It doesn't sound like the target page is defined as a JSP page. Since you are using a jsp include, the target page needs to have the jsp page directive at the top of the file. If you are using the older style it would look like this: <[EMAIL PROTECTED] contentType="text/html;charset=UTF-8"%> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %> <%@ taglib prefix="s" uri="http://struts.apache.org/shale/core" %> You could try using the include directive which will merge the pages into one unit. <[EMAIL PROTECTED] file="header.jsp"%> > Thanks, > Jason > Gary > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >