原文:在用 <%@include file="date.jsp" %> "date.jsp"老提示出错,错误为: Multiple annotations found at this line: - Duplicate local variable path - Duplicate local variable basePath 该怎么解决呢?

重复变量 date.jsp文件内部不应该再出现重复的变量定义 也就是 lt include gt 是先把文件源代码一模一样的拷贝过来,然后才开始编译 所以如果有相同的变量肯定报错 用了动态的 lt jsp:includefile top.jsp gt 的就正确了 因为 lt include gt 引进的是代码,把代码包含进来,而新进JSP时,会默认生成 lt String path request ...

2016-10-05 11:33 1 4543 推荐指数:

查看详情

JSP报错解决Multiple annotations found at this line 解决

本文链接:https://blog.csdn.net/zhangxg_cq/article/details/82017461创建JSP的时候出现了Multiple annotations found at this line,不知道怎么解决,本人今天也遇到了这个情况,然后使用下列方式解决了问题 ...

Fri Nov 22 23:30:00 CST 2019 0 451
Myeclipse10编写jsp时出现 Multiple annotations found at this line:

今天,老师讲完课做了一个小练习,就是编写一个jsp页面。写完后,我发现少些了点东西,我准备使用<% %>添加是发现,报错了 Multiple annotations found at this line: 百思不得其解啊,抓耳挠腮的找了好久,也没找到。后来请教老师,才发现 ...

Tue Aug 09 00:26:00 CST 2016 0 3277
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM