Did you already look at the generated java source?
([work-dir]/cocoon-files/org/apache/www/[projek-dirs]/ comp_rech_xsp.java)

On Freitag, Juni 20, 2003, at 12:14 Uhr, ntic wrote:

I have some little trouble with this XSP script :
The aims of this one is to get some POST variables, to build a query, compute it and show the result with XSLT stylesheet.
I use cocoon 2.0.4

But cocoon says that to me :

org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling comp_rech_xsp:
Line 272, column 8: illegal start of type
Line 377, column 58: method valueOf() not found in class java.lang.String
Line 0, column 0: 2 errors

The script :
<?xml version="1.0" encoding="iso-8859-1"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp"; xmlns:esql="http://apache.org/cocoon/SQL/v2";
String type_exp=request.getParameter("type");
String[] val=request.getParameterValues("select_item[]");
String chaine="";
int longueur=val.length;

// construction de la chaine des conditions requises

for (int i=0;i&lt;longueur;i++) {
" AND meta_"+type_exp+"_tbl.id_"+type_exp+"=\""+val[i]+"\"]";
if (i&lt;(longueur-1)) {
chaine=chaine+" OR ";

// construction de la requete

String requete="SELECT livre_tbl.id_livre livre_tbl.titre FROM livre_tbl, "+
"meta_"+type_exp+"_tbl WHERE ("+chaine+")";

<xsp:attribute name="id">
<esql:get-int column="id_livre"/>
<esql:get-string column="titre"/>

Does someone could help me ?

(sorry for my poor english ;)

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to