performance - 实体是否需要一个特殊的库才能在 Netbeans 中编译?
问题描述
我正在开发 JEE 应用程序,每当我运行该应用程序时,都会收到此错误:
Unable to compile class for JSP: only a type can be imported.
这是源代码
ProjetAppFormLocal paf = null;
String mgs = null;
<%
try {
Context c = new InitialContext();
paf = (ProjetAppFormLocal) c.lookup("ProjectApp/ProjectAppForm/Local");
} catch (Exception e) {
throw new RuntimeException(e);
}
%>
<%
String customerid = request.getParameter("customerid");
String firstname = request.getParameter("firstname");
String lastname = request.getParameter("lastname");
String gender = request.getParameter("gender");
String phoneno = request.getParameter("phoneno");
String address = request.getParameter("address");
String nextofkin = request.getParameter("nextofkin");
String nextofkinphone = request.getParameter("nextofkinphone");
if (request.getParameter("ok") != null) {
mgs = "Record Saved Successfully";
try {
paf.createcustomer(new Customer(customerid, firstname, lastname, gender, phoneno, address, nextofkin, nextofkinphone));
paf.CreateCustomerLogin(new Login(customerid, customerid "customer"));
} catch (Exception e) {
e.printStackTrace();
}
} else {
System.out.println("Empty Fields not Allowed");
}
%>
解决方案
推荐阅读
- r - 如何使用 ggplot2 更改图表大小
- java - 合并 HDFS 中小于 128MB 的压缩 lzo 文件
- javascript - 编写 Firefox 插件以打开页面上的链接
- php - 在 PDO PHP 脚本中使用相同的 POST 值两次 | mysql
- json - 尝试在 Spark 中展平 JSON 时出错
- symfony - 无法创建新的 Symfony 项目
- reactjs - 如何在不触发不必要的重新渲染的情况下将派生对象传递给另一个组件?
- python - 比较两个文件中未排序的数字
- c++ - 对 Matrix<> 或 Block<> 执行数组操作的特征函数
- iframe - 有没有办法在点击按钮附近的 iframe 中定位引导模式弹出窗口?