[jboss-dev-forums] [Design of JBossXB] - Use of AbstractMappedMetaData

scott.stark@jboss.org do-not-reply at jboss.com
Thu Oct 11 19:59:58 EDT 2007


The problem with jsps not displaying correctly was due to the servlet-mapping elements being mapped to an AbstractMappedMetaData type. This means that for a fragment like:


  |    <!-- The mapping for the JSP servlet -->
  |    <servlet-mapping>
  |       <servlet-name>jsp</servlet-name>
  |       <url-pattern>*.jsp</url-pattern>
  |    </servlet-mapping>
  | 
  |    <servlet-mapping>
  |       <servlet-name>jsp</servlet-name>
  |       <url-pattern>*.jspx</url-pattern>
  |    </servlet-mapping>
  | 

only the last mapping for the "jsp" servlet was in the map. Only types that have a uniqueness constraint such as the servlet type can be modeled as AbstractMappedMetaData. The servlet-mapping elements need to be modeled as a list of ServletMappingMetaData rather than a map. Just an FYI in case you find that repeated data is being lost.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094315#4094315

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094315



More information about the jboss-dev-forums mailing list