在BODY中写入这句代码嵌入一个页面
<%@ include file="top.jsp" %>但top.jsp下面有红色波浪线,提示如下:Multiple annotations found at this line:
- Duplicate local variable path
- Duplicate local variable basePath
请问怎么回事啊!!

解决方案 »

  1.   

    - Duplicate local variable path 
    - Duplicate local variable basePath 查看一下,你的JSP页面有没有 basePath   and  path  。可以试着重新建一个JSP文件,把此文件的头替换掉
      

  2.   

    晕,估计用idea开发,或者用的eclipse的jsp editor,你别管了,这种错误,可以用的
      

  3.   

    你的top里面声明或者include了其它的文件,而那个文件在你的程序里重复include了,或者与你当前页面的变量重名。解决方法,重新调整你的top里面的内容,保证
    1 不要被重复include
    2 局部变量名尽量弄得特殊一点,比如___ABC 
      

  4.   

    Multiple annotations found at this line: 
    - Duplicate local variable path 
    - Duplicate local variable basePath 
    存在相同的变量把top.jsp里的
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    删除即可!