Yeah, we just need to make queryForList return a list in a document,
not a list of documents.

I think it'd also be a reasonably trivial exercise to make a bean/map
-> json converter, too.

Larry


On 9/25/06, Clinton Begin <[EMAIL PROTECTED]> wrote:
Yep.  XML it is.  The JavaScript/DOM APIs are pretty simple for processing
results from XML.  JSON is good too...but XML is supported more widely and
by more tools.

In iBATIS it's as simple as:

<select id="GetEmployeeXML" parameterClass="string" resultClass="xml">

No beans, no maps, nothing.  You can also use xml as a parameter or a string
as a result depending on how simple or complex your needs are.

Cheers,
Clinton


On 9/25/06, Levan Dvalishvili <[EMAIL PROTECTED]> wrote:
>
> Don't want to go into  off topic but I would prefer more feature full
Yahoo
> UI over GWT.
>
> anyways, the reason I think  Ibatis will do AJAX well in XML vs JSON is :
> I could get my persistence layer to give me XML ( which is possible with
> Ibatis, P.S Never tried it but documentation says so :))
> for example if I get domain Object "A" in so and so XML format, I don't
even
> need JSON, this XML (as is or transformed ) can hit as full or partial
AJAX
> respond back to client . so Unless Ibatis can return JSON, as yet another
> alternative to Bean and/or XML, I would say XML format is quite enough and
> suitable already, so there is no need to "jsonize" bean or xml I think I
am
> even thinking there s no need for JSON  at all. Am I on right thinking
path
> ? :)
>
> Levan .
>
>
> -----Original Message-----
> From: Rinaldo [mailto:[EMAIL PROTECTED] ]
> Sent: Monday, September 25, 2006 11:54 AM
> To: user-java@ibatis.apache.org; [EMAIL PROTECTED]
> Subject: R: JavaScript + iBATIS
>
> You can find some json example using gwt
>
> http://code.google.com/webtoolkit/documentation/examples/
>
> Rinaldo
>
> -----Messaggio originale-----
> Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di
> Larry Meadors
> Inviato: lunedì 25 settembre 2006 17.37
> A: user-java@ibatis.apache.org
> Oggetto: Re: JavaScript + iBATIS
>
> One approach that I have seen with good results is working with JSON to
> create javascript objects with jsp.
>
> Larry
>
>
> On 9/25/06, Levan Dvalishvili <[EMAIL PROTECTED]> wrote:
> > I would say returning XML instead of java bean and sending it to
> > client would be one of the straight forward ways to do it would not
> > it? Maybe running a little XSL filter prior ?
> >
> >
> > Levan Dvalishvili
> > Support LeadUS
> > Verticali,Inc
> > (646) 736 - 6075
> >
> >
> > -----Original Message-----
> > From: Fred Janon [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, September 24, 2006 10:35 PM
> > To: user-java@ibatis.apache.org
> > Subject: JavaScript + iBATIS
> >
> > Hi Clinton,
> >
> > I am very interested in seeing what you did with JavaScript & iBATIS.
> > I am working on a Javascript framework and iBatis seems an appealing
> > option to
> do
> > the peristence part of it
> >
> > Fred
> >
> > --- Clinton Begin <[EMAIL PROTECTED]> wrote:
> >
> > > Hi there,
> > >
> > > I don't have any plans.  But I just did my iBATIS/Ajax demo in a
> > > talk at NFJS yesterday.  It is pretty cool.  I may put together a
> > > more complete example to publish somewhere.  I'd be interested in
> > > knowing if people would considering building apps this way...
> > >
> > > Think just JavaScript + iBATIS.
> > >
> > > Clinton
> > >
> > > On 9/24/06, levan Dvalishvili < [EMAIL PROTECTED]> wrote:
> > > >
> > > >  Hi Clinton,  I saw list of events on the website, is there any
> > > plans
> > > > visiting New York, in near  future,monthly meetings of
> > > www.*nyjavasig*
> > > > .com/would be good place to give speech, "Ibatis Does AjAX
> > > presentation "
> > > > would be a bliss. (please J )
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > *From:* nando.dev [mailto:[EMAIL PROTECTED]
> > > > *Sent:* Saturday, September 23, 2006 3:41 PM
> > > > *To:* user-java@ibatis.apache.org
> > > > *Subject:* Re: question with boolean types..
> > > >
> > > >
> > > >
> > > > Hi Esperanza, the problem do you have is the type boolean of
> > > > pl/sql
> > > isn´t
> > > > standard of JDBC, so do you have to write a wrapper to this
> > > function.
> > > >
> > > > 2006/6/26, [EMAIL PROTECTED]
> > > <[EMAIL PROTECTED]
> > > > >:
> > > >
> > > >
> > > > please, can anyone help me?
> > > > my problem is calling a stored procedure in ibatis and this
> > > functioncalled in pl/sql returns a boolean and i don´t know what are
> > > the correct
> > > > types in this case to be put in for no obtain an error ...
> > > >
> > > > <parameterMap id="misParametros" class="java.util.HashMap" >
> > > >     <parameter property="parametro1" jdbcType="VARCHAR" javaType="
> > > > java.lang.Boolean" mode="OUT"/>
> > > >     <parameter property="parametro2" jdbcType="VARCHAR" javaType="
> > > > java.lang.String" mode="IN"/>
> > > >     <parameter property="parametro3" jdbcType="VARCHAR" javaType="
> > > > java.lang.String" mode="IN"/>
> > > >     <parameter property="parametro4" jdbcType="VARCHAR" javaType="
> > > > java.lang.String" mode="IN"/>
> > > >     <parameter property="parametro5" jdbcType="VARCHAR" javaType="
> > > > java.lang.String" mode="IN"/>
> > > >   </parameterMap>
> > > >  <procedure id="ejecutaTieneDuplicados"
> > > parameterMap="misParametros" >
> > > >     {? = call report.tiene_duplicados(?,?,?,?)}
> > > >   </procedure>
> > > >
> > > > the out parameter tells me an error :
> > > > DEBUG - {conn-100021} Connection
> > > > DEBUG - {pstm-100022} PreparedStatement: {? = call
> > > report.tiene_duplicados
> > > > (?,?,?,?)}
> > > > DEBUG - {pstm-100022} Parameters: [JOSELUIS, sip97.rep,
> > > VCENTRO=90101,
> > > > 19-06-2006]
> > > > DEBUG - {pstm-100022} Types: [java.lang.String, java.lang.String,
> > > > java.lang.String, java.lang.String] DEBUG - Initializing,
> > > config='org.apache.struts.action.LocalStrings ',
> > > > returnNull=true
> > > > 06/06/26 08:47:37 DaoException
> > > > ERROR - Ha ocurrido un error con la base de datos
> > > > com.ibatis.dao.client.DaoException: Failed to
execute
> > > queryForObject - id
> > > > [ejecutaTieneDuplicados], parameterObject
> > > [{parametro4=VCENTRO=90101,
> > > > parametro2=JOSELUIS, parametro3=sip97.rep , parametro1=true,
> > > > parametro5=19-06-2006}].  Cause:
> > > >
com.ibatis.common.jdbc.exception.NestedSQLException:
> > > > --- The error occurred in
> > > > com/ibatis/sip/persistence/sqlmapdao/sql/Lis.xml.
> > > > --- The error occurred while applying a parameter map.
> > > > --- Check the Lis.misParametros.
> > > > --- Check the statement (update procedure failed).
> > > > --- Cause: java.sql.SQLException: ORA-06550: línea 1, columna 13:
> > > > PLS-00382: el tipo de la expresión no es correcto
> > > > ORA-06550: línea 1, columna 7:
> > > > PL/SQL: Statement ignored
> > > >
> > > >
> > > >
> > > >  *Esperanza Echeverría de Miguel*
> > > > Steria España http://www.steria.es C/Menéndez y Pelayo,3 bis 46010
> > > > Valencia
> > > > Tel: + 34 96 393 87 50 Fax: +34 96 393 87 51
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
>
>
>


Reply via email to