• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

tiles problem

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello ranchers,
I write the tiles definition in tiles-defs.xml file as follows,

<definition name="tdef" page="/layout.jsp">
<put name="title" type="string" value="Mihir"/>
<put name="header" value="/header .jsp"/>
<put name="body" value="/body.jsp"/>
<put name="footer" value="/footer.jsp"/>
</definition>

In the layout.jsp page I use following statemenets,

<tiles:insert attribute="header" ignore="true">
<tiles:insert attribute="body" />
<tiles:insert attribute="footer" ignore="true"/>

Then header.jsp I display the title as given below,
<tiles:get name="title" />

Again in the footer.jsp, I want to display the same title so I write,
<tiles:get name="title" />

Now the problem is that whenever I run the application, the value of title in header.jsp get

printed but the value of title in footer.jsp did not get printed. It gives follwing

exception at the place of footer.jsp.
Error 500: ServletException in '/pages/footer.jsp': ServletException
in 'title':Response already committed.

Please help me to solve the problem so that I can print the value of title in header.jsp as well as in footer.jsp

thanks in advance.

[ November 28, 2007: Message edited by: mihir shandilya ]

[ November 28, 2007: Message edited by: mihir shandilya ]
[ November 28, 2007: Message edited by: mihir shandilya ]
 
You ought to ventilate your mind and let the cobwebs out of it. Use this cup to catch the tiny ads:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!