aspose file tools*
The moose likes JSP and the fly likes jsp:include and c:import combination/nesting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp:include and c:import combination/nesting" Watch "jsp:include and c:import combination/nesting" New topic
Author

jsp:include and c:import combination/nesting

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
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...


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
 
Consider Paul's rocket mass heater.
 
subject: jsp:include and c:import combination/nesting