MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » jsp新手遇有关问题 求解释

jsp新手遇有关问题 求解释

www.MyException.Cn  网友分享于:2013-11-20  浏览:304次
jsp新手遇问题 求解释
源码:


<%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030"%>
<%@page import="dxiaofg.Feiyong"%>
<%@page import="dxiaofg.manage"%>
<%
String louhao = request.getParameter("select");
String danyuan = request.getParameter("select2");
String fanjian = request.getParameter("select3");
try {
Feiyong fei = manage.getInstance().Findfeiyong(louhao,danyuan,fanjian);
}catch(Exception e) {
e.printStackTrace();
}
%> //报错是multiple annotation found in this line 
  //Syntax error :insert ';' to complete the statement
  //Syntax error : insert "assignmentoperator expression " to complete the statement


<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>物业管理</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="ding.jsp">
  <label>楼号
  <select name="select" id="select">
  <option>1</option>
  <option>2</option> 
  <option>3</option>
  <option>4</option>
  <option>5</option>
  <option>6</option>
  <option>7</option>
  <option>8</option>
  <option>9</option>
  <option>10</option>
  <option>11</option>
  <option>12</option>
  </select>
  </label>
  <p>
  <label>单元号
  <select name="select2" id="select2">
  <option>一单元</option>
  <option>二单元</option>
  <option>三单元</option>
  <option>四单元</option>
  </select>
  </label>
  </p>
  <p>
  <label>房号
  <select name="select3" id="select3">
  <option>R101</option>
  <option>R102</option>
  <option>R201</option>
  <option>R202</option>
  <option>R301</option>
  <option>R302</option>
  <option>R401</option>
  <option>R402</option>
  <option>R501</option>
  <option>R502</option>
  <option>R601</option>
  <option>R602</option>
  <option>R701</option>
  <option>R702</option>
  </select>
  </label>
  </p>
  <p>
  <label>
  <input type="submit" name="Submit" value="查询费用" />
  <%"fei.feiyong" %>


   
  </label>
  </p>
</form>
</body>

</html>




出现以上错误,新手勿见笑,求请教

------解决方案--------------------
//报错是multiple annotation found in this line
//Syntax error :insert ';' to complete the statement
//Syntax error : insert "assignmentoperator expression " to complete the statement
这是你卸写在代码里面的注释么?
报错是multiple annotation found in this line

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有