cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From herbert.h...@symmetrix.ch
Subject Re: String to Integer
Date Fri, 17 Nov 2000 12:12:01 GMT
Hi,

It seems that you have a typing error:
Try
               int K1 = Integer.parseInt (strK1);
instead of (mind the lowercase 'i' in int)
               Int K1 = Integer.parseInt (strK1);

Greetings,
Herbert

On Fri, 17 Nov 2000 Kai.Rehlen@pass-consulting.com wrote:

> Date: Fri, 17 Nov 2000 12:51:43 +0100
> From: Kai.Rehlen@pass-consulting.com
> Reply-To: cocoon-users@xml.apache.org
> To: cocoon-users@xml.apache.org
> Subject: String to Integer
> 
> Hi all,
> 
> hopefully someone of you can give me a solution to the folownung problem.
> 
> I need to enter a Integer into a Database. On my xsp page I have the
> folowing code:
> 
> <page>
> <xsp:logic>
> String strK1 = request.getParameter ("K1");
> 		Int K1 = Integer.parseInt (strK1);
> </xsp:logic>
> ...
> 
> But when trying to conver I get the following error.
> 
> java.lang.Exception: XSP Java Compiler: 
> Compilation failed for _Topic.java107: 
> Class _D_._cocoon._tomcat._webapps._ROOT._FuE._Attribute.Int not found. 
> Int K1 = Integer.parseInt (strK1); 
> ^
> 1 error
> 
> Thank you for your time
> Kai
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 

-- 
+----------------------+-------------------------------------------+
| Herbert Hotz         | Voice:   +41 1 381 8880                   |
| Symmetrix AG         | Fax:     +41 1 381 2127                   |
| Muehle Tiefenbrunnen | GSM-SMS: +41 79 402 5704                  |
| Seefeldstrasse 231   | URL:     http://www.symmetrix.ch/         |
| CH-8008 Zurich       | E-Mail:  mailto:herbert.hotz@symmetrix.ch |
+----------------------+-------------------------------------------+



Mime
View raw message