Can somebody tell what I'm doing wrong in this XSP (snippet):
XSP:
for (int i = 0; i < users.size(); i++) {
UserDataBean udb = (UserDataBean) users.get(i);
String userName = ((String) udb.getUserName());
<xsp:expr>userName</xsp:expr>
}Without the last line/expression of the loop the page compiles fine and does the job (it's calling an EJB to get list of users). With the line I get the following:
org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling csr_result_xsp: ERROR 1 (org\apache\cocoon\www\xml\csr\csr_result_xsp.java): ... String userName = ((String) udb.getUserName()); // start error (lines 309-309) "Missing semicolon" (userName) // end error } } catch (Exception e) { ... Line 309, column 0: Missing semicolon
and generated java code looks like this:
JAVA:
for (int i = 0; i < users.size(); i++) {
UserDataBean udb = (UserDataBean) users.get(i);
String userName = ((String) udb.getUserName());
(userName)
}Sure it does not compile - but why is it generated this way? I've been using the same style of printing values in an other XSP which works fine...
Thanks for any help! Patrick
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
