Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger
  • Frits Walraven

jsp:include and c:import combination/nesting

Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, I know I've done this before with Struts.But right now, I'm working on plain Servlets and JSP(Ok, I'm using JSTL).

I have a JSP named showitems.jsp which imports two JSP's via two servlets. Those two servlets forward to another page through RequestDispatcher.

now, I include this showitem.jsp in my index.jsp

problem is that, the index.jsp seems to be broken. Eveything before the call to <jsp:include page="WEB-INF/includes/showitems.jsp"/> is omitted. Everything from that point on is displayed. What could be the problem with this? When I c:import with the index.jsp, everything works fine. Only that when I put those c:import tags in showitems.jsp and include that showitems.jsp in index.jsp that I'm having a problem...
You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
    Bookmark Topic Watch Topic
  • New Topic