Gianni
|
| Posted: 07/08/2002, 1:34 AM |
|
(CC 2.0.5 - JSP 1.1 with templates)
Hi,
I have a record form with no source table and one listbox field. When I try to
open the page with my browser, Tomcat reports the following error:
org.apache.jasper.JasperException: Unable to compile class for JSP/opt/jakarta-tomcat/work_tuge/localhost_8080%2Ftuge_app/_0002fpubInOut_0002ejsppubInOut_jsp_3.java:1023: ';' expected.
bIsUpdateMode = false
^
/opt/jakarta-tomcat/work_tuge/localhost_8080%2Ftuge_app/_0002fpubInOut_0002ejsppubInOut_jsp_3.java:1216: ';' expected.
bIsUpdateMode = false
^
2 errors
I edited the generated JSP code and added manually the missing semicolumn.
The resulting page contains further errors (I report only the first two):
org.apache.jasper.JasperException: Unable to compile class for JSP/opt/jakarta-tomcat/work_tuge/localhost_8080%2Ftuge_app/_0002fpubInOut_0002ejsppubInOut_jsp_3.java:1029: Undefined variable: EOF
if (bPK && ! ("insert".equals(sAction) && "pubIn".equals(sForm) ) && !EOF ) {
^
/opt/jakarta-tomcat/work_tuge/localhost_8080%2Ftuge_app/_0002fpubInOut_0002ejsppubInOut_jsp_3.java:1032: Undefined variable: rs
String[] aFields = getFieldsName( rs );
^
How do I resolve this?
Thank you
Gianni
|
|
|
 |
Gianni
|
| Posted: 07/08/2002, 2:01 AM |
|
I messed up the subject. Sorry.
|
|
|
 |
CodeCharge Support
|
| Posted: 07/09/2002, 5:49 AM |
|
Gianni,
to overcome the problem please create form Open event and enter code:
boolean EOF = true;
String sSQL = "";
java.sql.ResultSet rs = null;
We're aware of this problem and it will be fixed in next CC version.
|
|
|
 |
Gianni
|
| Posted: 07/10/2002, 1:05 AM |
|
I fixed the problem changing the form type from "Record" to "Search". Actually, it IS a search form.
Thank you
Gianni
|
|
|
 |
|