类型转换
String.toString(wt)
float wt =Float static float parse Float(watp);
我想用这两句,让String 和float相互转换,可报错.如下
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 16 in the jsp file: /biye/xiaohui.jsp
Generated servlet error:
C:\jakarta-tomcat-5.0.28\work\Catalina\localhost\_\org\apache\jsp\biye\xiaohui_jsp.java:87: '; ' expected
float wt =Float static float parse Float(watp);
^
1 error
在JSP中怎样String 和float相互转换.
------解决方案--------------------float wt = Float.parseFloat(wt);
------解决方案--------------------jstl标签库中有标签可以直接转换
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.aiyiweb.com/j2ee/2308.html