Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

jsp tag pagination and tiles

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I managed to get a pagination solution working with the help of JSP tags as follows

Pagination.jsp



altavista.jsp


However when I try to integrate this code with my web app which uses tiles, the first page displays fine, however when I select any of the other pages I get the error org.apache.tiles.TilesException: Attribute 'pageTitle' not found.. My tiles code is as follows:

struts.xml



tiles.xml



I notice that when I hover my mouse on the page numbers the string in the bottom left corner of the browser is http://localhost:8080/website/jsp/Layouts/Layout.jsp?pager.offset=x
 
vik ar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not quite sure how but I have managed to get this working by altering altavista.jsp as follows



Whenever I click on a page number I get the following warning in my console. Any ideas why this issue is occuring?






reply
    Bookmark Topic Watch Topic
  • New Topic