-----Original Message-----Hi !
From: Gustavo Mejia [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 15:03
To: [EMAIL PROTECTED]
Subject: Re: How can I make a validation !
Importance: HighAny notice about this issue ???
I am going to appreciate all your help !!
Gustavo Mejia
Gustavo Mejia wrote:
Hi everyone !!I am trying to make a validation in order to skip part of my code (I want to skip the connection to my database), I am doing something like this:
<xsp:logic>
if (<esql:parameter type="string"><request:get-parameter name="EMP_DEP"/></esql:parameter> != nul)
{
<xsp:expr>
<esql:connection>
<esql:driver>sun.jdbc.odbc.JdbcOdbcDriver</esql:driver>
<esql:dburl>JDBC:ODBC:SQL</esql:dburl>
<esql:username>user</esql:username>
<esql:password>password</esql:password>
<esql:execute-query>
<esql:query>insert into Departamento values(
<esql:parameter type="string"><request:get-parameter name="EMP_CLVE"/></esql:parameter>,
<esql:parameter type="string"><request:get-parameter name="EMP_DEP"/></esql:parameter>
)
</esql:query></esql:execute-query>
</esql:connection>
</xsp:expr>
}
</xsp:logic>But it doesn't work, I got the message :
java.lang.Exception: XSP Java Compiler: Compilation failed for _nuevo.java
433: ')' expected.xspParentNode = xspCurrentNode;
Could you help me ? do you know what I am doing wrong ?
Thanks in advance !!
Gustavo Mejia
INFOTEC
Why do you use
<esql:parameter> here:
if (<esql:parameter type="string"><request:get-parameter
name="EMP_DEP"/></esql:parameter> != nul)
Why not
just
if (<request:get-parameter name="EMP_DEP"/> != nul)
?
This might solve
your problem.
Vadim
- Problem with my query Gustavo Mejia
- RE: Problem with my query Luca Morandini
- Re: Problem with my query Gustavo Mejia
- Re: Problem with my query Sergio Carvalho
- Re: Problem with my query Christopher Painter-Wakefield
- Re: Problem with my query Christopher Painter-Wakefield
- Re: Problem with my query Gustavo Mejia
- How can I make a validation ! Gustavo Mejia
- Re: How can I make a validation... Gustavo Mejia
- Re: How can I make a valida... Vadim Gritsenko
- Re: How can I make a v... Gustavo Mejia
- RE: How can I make... Vadim Gritsenko
- Re: How can I make a validation... Gustavo Mejia
- SV: How can I make a valida... Pal Wester
- Re:How can I make a va... Gustavo Mejia
- Re: Re:How can I m... Piroumian, Konstantin
- Re: Problem with my query Christopher Painter-Wakefield
- Re: Problem with my query Gustavo Mejia
- Re: Problem with my query Christopher Painter-Wakefield
- Re: Problem with my query Gustavo Mejia