Re: esql:get-string and java String

2002-10-01 Thread Christian Haul

On 01.Oct.2002 -- 11:13 AM, Gabor Bartha wrote:
> Hi,
> 
> the java code:
> 
> String formula =
>xspAttr.addAttribute(
>  "",
>  "column",
>  "column",
>  "CDATA",
>  "cd_formula"
>);
>   
> 
>this.contentHandler.startElement(
>  "http://apache.org/cocoon/SQL/v2";,
>  "get-string",
>  "esql:get-string",
>  xspAttr
>);
>xspAttr.clear();
> 
>   
> 
>this.contentHandler.endElement(
>  "http://apache.org/cocoon/SQL/v2";,
>  "get-string",
>  "esql:get-string"
>);
> 
>;

The above code creates SAX events for a  tag. Since the namespace is correct, you've most
likely used the tag outside its scope (must be inside a
esql:row-results or esql:call-results).

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: esql:get-string and java String

2002-10-01 Thread Gabor Bartha

Hi,

the java code:

String formula =
xspAttr.addAttribute(
  "",
  "column",
  "column",
  "CDATA",
  "cd_formula"
);
   

this.contentHandler.startElement(
  "http://apache.org/cocoon/SQL/v2";,
  "get-string",
  "esql:get-string",
  xspAttr
);
xspAttr.clear();

   

this.contentHandler.endElement(
  "http://apache.org/cocoon/SQL/v2";,
  "get-string",
  "esql:get-string"
);

;



If I try to use double () like this:

String formula = ((String));

I got ')' expected error, the source in this case:


String formula = ((String)
xspAttr.addAttribute(
  "",
  "column",
  "column",
  "CDATA",
  "cd_formula"
);
   

this.contentHandler.startElement(
  "http://apache.org/cocoon/SQL/v2";,
  "get-string",
  "esql:get-string",
  xspAttr
);
xspAttr.clear();

   

this.contentHandler.endElement(
  "http://apache.org/cocoon/SQL/v2";,
  "get-string",
  "esql:get-string"
);

);

Regards,
Gabor

Christian Haul wrote:

>On 30.Sep.2002 -- 05:12 PM, Gabor Bartha wrote:
>  
>
>>Hi,
>>
>>I want to use the esql:get-string method to initialize a java String
>>object like this:
>>
>>
>> String formula = ;
>>
>>
>>But I got incompatible types exception. If I tried to use casting:
>>
>>
>> String formula = (String);
>>
>>
>>I got inconvertible types Exception.
>>
>>How can I use that variable as a java String object?
>>
>>
>
>I'm puzzled. Could you please post the lines from the resulting java
>code generated by the XSP?
>
>   Chris.
>--
>C h r i s t i a n   H a u l
>[EMAIL PROTECTED]
>fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>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. 

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




Re: esql:get-string and java String

2002-09-30 Thread Antonio Gallardo Rivera

Try this:


   String formula = ((String));
 

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:
>
> 
>   String formula = ;
> 
>
> But I got incompatible types exception. If I tried to use casting:
>
> 
>   String formula = (String);
> 
>
> 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. 
>
> 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. 

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




Re: esql:get-string and java String

2002-09-30 Thread Christian Haul

On 30.Sep.2002 -- 05:12 PM, Gabor Bartha wrote:
> Hi,
> 
> I want to use the esql:get-string method to initialize a java String 
> object like this:
> 
> 
>  String formula = ;
> 
> 
> But I got incompatible types exception. If I tried to use casting:
> 
> 
>  String formula = (String);
> 
> 
> I got inconvertible types Exception.
> 
> How can I use that variable as a java String object?

I'm puzzled. Could you please post the lines from the resulting java
code generated by the XSP?

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




esql:get-string and java String

2002-09-30 Thread Gabor Bartha

Hi,

I want to use the esql:get-string method to initialize a java String 
object like this:


  String formula = ;


But I got incompatible types exception. If I tried to use casting:


  String formula = (String);


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. 

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