• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tiles with runtime attributes - response already commited

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to refactor an application which uses tiles / Struts1.1.

When I run the app, I get "[ServletException in:content] Response already committed.' " output instead of the body content & the title isn't interpreted.

Previously, we were using tiles, but had a 'layout' type page for each different content page (i.e. twice the number of pages than were required).

I've
- changed the action to extend TilesAction instead of Action
- added an init-param to the servlet as follows

- added the plugin to web.xml
- changed the config to get the actions to forward to the new layout page and
- defined the new layout page in a tiles-defs.xml file like this...

/jsp/tiles/layout.jsp accesses the title & content attributes like this:
<title><tiles:getAsString name="title" /></title>
and
<tiles:get name="content"/>

I can see that the application sets up title & content attributes in the context before forwarding to the page but there isn't anything useful output to the logs after that.
Does anyone have any ideas?
I'm using WSAD, J2EE 1.3.

Thanks in advance,
Louise
 
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic