The name is "/layouts/my_layout.jsp" About the rest, probably you have some compilation/runtime problem. You are not mixing Tiles versions, aren't you?
Antonio 2011/9/9 Muneer Malik <[email protected]> > I cannot resolve the following: > > TilesAttributeContext attributeContext = > container.getAttributeContext(request, > response); > > > it cannot find the TilesAttributeContext > > > from the tiles 2.2.2 (GA) > > > Thanks > > > On Fri, Sep 9, 2011 at 11:40 AM, Muneer Malik <[email protected]> wrote: > >> I am also getting the following error, please see attached image. >> >> can you please give some suggestion, it seems the method is deprecated. >> >> >> I also get the following error; >> >> for the below code; >> MutableTilesContainer container = (MutableTilesContainer) >> TilesAccess.getContainer( >> request.getSession().getServletContext()); >> Definition definition = new Definition(); >> definition.setTemplate("/layouts/my_layout.jsp"); >> definition.putAttribute("body", new Attribute("/tiles/body.jsp")); >> container.register(definition, request, response); >> >> >> java.lang.Error: Unresolved compilation problem: >> Type mismatch: cannot convert from TilesContainer to >> MutableTilesContainer >> >> >> net.polymorphic.emr.login.AuthenticationInterceptor.intercept(AuthenticationInterceptor.java:70) >> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248) >> >> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) >> >> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:498) >> >> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) >> >> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) >> >> >> Help would be appreciated. >> >> Thanks >> >> >> On Fri, Sep 9, 2011 at 11:29 AM, Muneer Malik <[email protected]> wrote: >> >>> what is the name of the definition? >>> >>> in the below code: >>> >>> Definition mobile = new Definition(); >>> mobile.setName("/layouts/my_layout.jsp"); >>> mobile.putAttribute("body", new Attribute("/tiles/body.jsp")); >>> container.register(mobile, request, response); >>> >>> the definition would be mobile, Is that correct? >>> >>> >>> Thanks >>> >>> >>> On Fri, Sep 9, 2011 at 10:14 AM, Antonio Petrelli < >>> [email protected]> wrote: >>> >>>> 2011/9/9 Muneer Malik <[email protected]> >>>> >>>>> it will overwrite the >>>>> >>>>> <result type="tiles" name="input">addHeparinMedication.tiles</result> >>>>> addHeparinMedication.tiles?? >>>>> >>>>> Thanks >>>>> >>>>> >>>> No, it will overwrite the possible definition that has the same name of >>>> the created one. >>>> Probably what you want to accomplish is Struts-related, not Tiles'. For >>>> example, adding another result. >>>> >>>> Antonio >>>> >>> >>> >>> >>> -- >>> Confidentiality Notice >>> ------------------------------- >>> >>> >>> THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY >>> CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM >>> DISCLOSURE UNDER APPLICABLE LAW. IF YOU ARE NOT THE INTENDED RECIPIENT, OR >>> THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE >>> INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION, >>> DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED. IF YOU >>> HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT >>> [email protected] OR BY TELEPHONE AT 817-458-1764. >>> >>> >>> THANK YOU. >>> >> >> >> >> -- >> Confidentiality Notice >> ------------------------------- >> >> >> THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY >> CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM >> DISCLOSURE UNDER APPLICABLE LAW. IF YOU ARE NOT THE INTENDED RECIPIENT, OR >> THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE >> INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION, >> DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED. IF YOU >> HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT >> [email protected] OR BY TELEPHONE AT 817-458-1764. >> >> >> THANK YOU. >> > > > > -- > Confidentiality Notice > ------------------------------- > > > THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY > CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM > DISCLOSURE UNDER APPLICABLE LAW. IF YOU ARE NOT THE INTENDED RECIPIENT, OR > THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE > INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION, > DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED. IF YOU > HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT > [email protected] OR BY TELEPHONE AT 817-458-1764. > > > THANK YOU. >
