Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in JSP Compilation  RSS feed

 
Venkata Sirish
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Iam running a simple struts application ...

In my jsp , i have a code as below

<jsp:include page="<%= request.getContextPath() %>/jsp/include/header.jsp" />

.........

When i try to run the application, i am getting the following run time exception ,

org.apache.jasper.JasperException: /jsp/reports/report_admindc_view.jsp(20,24) attribute for %>" is not properly terminated .


Can you please help me ASAP,

Thanks in Advance,
Guru
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JSP include action is a server side component and thus, doesn't need the context appended to the path to work.

Just use the "/" symbol to represent the context path.

Can you please help me ASAP,

Please see EaseUp to find out why requests like that can actually slow down or halt responses to your question altogether.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!