struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Al Sutton" <>
Subject Re: Struts2, SiteMesh and Struts Menu
Date Thu, 10 Apr 2008 15:41:41 GMT
I'm using the combination you mention without any problems.

Check the order you're using the servlet filters in, mine is;

<filter-name>sitemesh</filter-name> <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class></filter><filter>
<filter-name>struts</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class></filter><filter>
<filter-name>struts-cleanup</filter-name> <url-pattern>/*</url-pattern></filter-mapping><filter-mapping>
<filter-name>sitemesh</filter-name> <url-pattern>/*</url-pattern></filter-mapping><filter-mapping>
<filter-name>struts</filter-name> <url-pattern>/*</url-pattern></filter-mapping>....
Other filters here .....and for Struts Menu I use the listener; <listener>  <listener-class></listener-class>
</listener>Hope this helps.Al.----- Original Message -----From: Matthew SeabornTo: 'Struts
Users Mailing List'Sent: Thursday, April 10, 2008 3:00 PMSubject: Struts2, SiteMesh and Struts
 s anyone had any experience of using these three together?  I have Struts2 and SiteMesh working
together happily, but soon as I add Struts Menu I getthe error below.I believe it is due to
SiteMesh and not Struts 2 but am not sure on this.Has anyone seen this before?Thanks.javax.servlet.ServletException:
Stream closed            org.apache.struts2.dispatcher.Dispatcher.serviceAction(
           org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter( Stream closed            org.apache.jasper.runtime.JspWriterImpl.ensureOpen(
           org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterIm            org.apache.jasper.runtime.JspWriterImpl.flush(
 e.sitemesh.filter.PageFilter.parsePage(            com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
SeabornSoftware Architectt    +44(0) 208 484 0729m  +44(0) 7949 465 142e   matthew.seaborn@performgroup.comSussex
HousePlane Tree CrescentFeltham, Middlesex, TW13 7HEUnited Kingdom
- This email and any files transmitted with it, areconfidential, may be legally privileged
and are intended solely for the useof the individual or entity to whom they are addressed.
If this has come toyou in error, you must not copy, distribute, disclose or use any of theinformation
it contains. Please notify the sender immediately and deletethem from your system.SECURITY
- Please be aware that communication by email, by its very 
 nature,is not 100% secure and by communicating with Perform Group by email youconsent to
us monitoring and reading any such correspondence.VIRUSES - Although this email message has
been scanned for the presence ofcomputer viruses, the sender accepts no liability for any
damage sustainedas a result of a computer virus and it is the recipient's responsibility toensure
that email is virus free.AUTHORITY - Any views or opinions expressed in this email are solely
thoseof the sender and do not necessarily represent those of Perform Group.COPYRIGHT - Copyright
of this email and any attachments belongs to PerformGroup, Companies House Registration number

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message