Link to home
Start Free TrialLog in
Avatar of climbingjaffa
climbingjaffaFlag for Ireland

asked on

Error: when trying to include a jsp within another jsp page


</form>
      <% if(request.getAttribute("subCats")!=null)
           {
          %><%@ include file="/subcategory.jsp"%>
         <%
           }
        %>

Error:"category.jsp": /subcategory.jsp(0,0) Page directive: can't have multiple occurrences of language at line 79, column 13
Avatar of Mick Barry
Mick Barry
Flag of Australia image

remove the language definition from your include
or use jsp:include (depending on your requirements)
Avatar of climbingjaffa

ASKER

Both have java code in them though! So what should i do?
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
How do you write a jsp include? Would that sort it out?
Thanks removed language declaration (at the top) an problem sorted :-)