当前位置: 技术问答>java相关
一个简单的jsp问题,望能快速给予答复(在线等待您的答复)
来源: 互联网 发布时间:2015-07-08
本文导语: 一下为我的jsp文件 以下是错误 ------------------------ An error occurred between lines: 6 and 53 in the jsp file: /IrerWeb/saveuser.jsp Generated servlet error: D:Apache Tomcat 4.0workStandalonelocalhostexamplesIrerWebsaveuser$jsp.java:66: '}' expe...
一下为我的jsp文件
以下是错误
------------------------
An error occurred between lines: 6 and 53 in the jsp file: /IrerWeb/saveuser.jsp
Generated servlet error:
D:Apache Tomcat 4.0workStandalonelocalhostexamplesIrerWebsaveuser$jsp.java:66: '}' expected.
String conip;
^
An error occurred between lines: 6 and 53 in the jsp file: /IrerWeb/saveuser.jsp
Generated servlet error:
D:Apache Tomcat 4.0workStandalonelocalhostexamplesIrerWebsaveuser$jsp.java:69: Statement expected.
public void outErrStr(String s)
^
An error occurred between lines: 6 and 53 in the jsp file: /IrerWeb/saveuser.jsp
Generated servlet error:
D:Apache Tomcat 4.0workStandalonelocalhostexamplesIrerWebsaveuser$jsp.java:76: Identifier expected.
userid=request.getParameter("userid");
^
3 errors
经过测试发现,是和申明public void outErrStr(String s)这个方法有关系,是我申明的语法有错误码??不是和java里面一样吗??急切等待回答,谢谢
以下是错误
------------------------
An error occurred between lines: 6 and 53 in the jsp file: /IrerWeb/saveuser.jsp
Generated servlet error:
D:Apache Tomcat 4.0workStandalonelocalhostexamplesIrerWebsaveuser$jsp.java:66: '}' expected.
String conip;
^
An error occurred between lines: 6 and 53 in the jsp file: /IrerWeb/saveuser.jsp
Generated servlet error:
D:Apache Tomcat 4.0workStandalonelocalhostexamplesIrerWebsaveuser$jsp.java:69: Statement expected.
public void outErrStr(String s)
^
An error occurred between lines: 6 and 53 in the jsp file: /IrerWeb/saveuser.jsp
Generated servlet error:
D:Apache Tomcat 4.0workStandalonelocalhostexamplesIrerWebsaveuser$jsp.java:76: Identifier expected.
userid=request.getParameter("userid");
^
3 errors
经过测试发现,是和申明public void outErrStr(String s)这个方法有关系,是我申明的语法有错误码??不是和java里面一样吗??急切等待回答,谢谢
|
try:
|
在你定义的outErrstr方法里,out是什么啊,你应该先实例化这个对象。
|
在jsp中是要使用!号的。