Try this: <xsp:logic> String formula = ((String)<esql:get-string column="formula"/>); </xsp:logic>
I dont know why but the only way I can make this was using another set of () for all the expresion Antonio Gallardo El Lunes, 30 de Septiembre de 2002 09:12, Gabor Bartha escribió: > Hi, > > I want to use the esql:get-string method to initialize a java String > object like this: > > <xsp:logic> > String formula = <esql:get-string column="formula"/>; > </xsp:logic> > > But I got incompatible types exception. If I tried to use casting: > > <xsp:logic> > String formula = (String)<esql:get-string column="formula"/>; > </xsp:logic> > > I got inconvertible types Exception. > > How can I use that variable as a java String object? > > thanks, > Gabor > > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>