CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Problem wih JSP Compiling after deploying

Print topic Send  topic

Author Message
Lenny Sorey
Posted: 08/31/2002, 1:48 PM

I've reported this to CodeCharge Support but I was curious to se if any else has had any problem running the Intranet example that comes with CodeCharger.

First of all my platform:
Windows 2000 Professional
Tomcat 4.1.7
J2SDK1.4.0_01
ANT 1.4.1
MySQL 4.0.2
Connect J Version3.0 JDBC Connector for MySQL
MYODBC 3.51 for MYSQL

When I deploy all the JSP examples that comes with CodeCharger to Tomcat 4.1.7
everything work fine.

When I enter the code from page 165 & 170 into the add code areas unde the Events, customer code and deploy to Tomcat, I get the following errors:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file
[javac] D:\java\Tomcat41\work\Standalone\localhost\lrscc\tasks_0005flist$jsp.java:28: incompatible types
[javac] found : com.codecharge.util.SessionStorageInterface
[javac] required: com.codecharge.util.SessionStorage
[javac] SessionStorage s = SessionStorage.getInstance(e.getPage().getRequest());
[javac] ^
[javac] D:\java\Tomcat41\work\Standalone\localhost\lrscc\tasks_0005flist$jsp.java:29: cannot resolve symbol
[javac] symbol : method getAttributeAsString (java.lang.String)
[javac] location: class com.codecharge.util.SessionStorage
[javac] String uid = s.getAttributeAsString("UserID");
[javac] ^
[javac] D:\java\Tomcat41\work\Standalone\localhost\lrscc\tasks_0005flist$jsp.java:35: cannot resolve symbol
[javac] symbol : method setAttribute (java.lang.String,java.lang.Object)
[javac] location: class com.codecharge.util.SessionStorage
[javac] s.setAttribute("UserName", result.get("emp_name"));
[javac] ^
[javac] D:\java\Tomcat41\work\Standalone\localhost\lrscc\tasks_0005flist$jsp.java:86: incompatible types
[javac] found : com.codecharge.util.SessionStorageInterface
[javac] required: com.codecharge.util.SessionStorage
[javac] SessionStorage s = SessionStorage.getInstance(e.getPage().getRequest());
[javac] ^
[javac] D:\java\Tomcat41\work\Standalone\localhost\lrscc\tasks_0005flist$jsp.java:87: cannot resolve symbol
[javac] symbol : method getAttributeAsString (java.lang.String)
[javac] location: class com.codecharge.util.SessionStorage
[javac] String uname = s.getAttributeAsString("UserName");
[javac] ^
[javac] D:\java\Tomcat41\work\Standalone\localhost\lrscc\tasks_0005flist$jsp.java:89: cannot resolve symbol
[javac] symbol : method getFormatedValue ()
[javac] location: class com.codecharge.components.Control
[javac] String value = cntrl.getFormatedValue();
[javac] ^
[javac] D:\java\Tomcat41\work\Standalone\localhost\lrscc\tasks_0005flist$jsp.java:91: cannot resolve symbol
[javac] symbol : method setFormatedValue (java.lang.String)
[javac] location: class com.codecharge.components.Control
[javac] cntrl.setFormatedValue("" + value + "");
[javac] ^
[javac] 7 errors



Dandavat
Posted: 09/01/2002, 11:48 PM

Hi!

Probably you are working with old version of tutorial. To fix the problem change the lines
SessionStorage s = SessionStorage.getInstance(e.getPage().getRequest());
String uname = s.getAttributeAsString("UserName");
to one line
String uname = SessionStorage.getInstance(e.getPage().getRequest()).getAttributeAsString("UserName");
And method getFormatedValue spelling should be with two 't': getFormattedValue()

Hari Bol!
Dandavat.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.