struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emi Lu <em...@encs.concordia.ca>
Subject Possible to return ibatis query in xml file?
Date Wed, 04 Mar 2009 18:46:50 GMT
Good morning,

I have a question based on ibatis + struts. Would it be possible that in 
java code, I could get the query in ibatis.

For example, in ibatis_query.xml
<select id="test">
select * from a
</select>


In java,
===============
    public ActionForward execute(
       ActionMapping mapping,
       ActionForm aform,
       HttpServletRequest request,
       HttpServletResponse response)
    throws Exception
    {
       String ibatis_sql = ***(something need to know).getQuery("test", 
null);
     ... ...
    }


Thanks a lot!
Lu Ying






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message