I don't believe there's a tutorial. However, with the code in the DAO, it shouldn't be too difficult. Just populate the object in your Controller (from your form) and then pass it down to your DAO layer. Worst case, you can just use request.getParameter() to populate your object manually. Getting it working is the most important, making it clean is secondary IMO. ;-)
Matt On 7/20/07, Fred Forester <[EMAIL PROTECTED]> wrote:
Sorry about that. I guess the question is this. is there a write up on how to implement the Query By Example. i.e. front ending the list with a search form and have the DaoHibernate class use the QBE API using the criteria specified on the search form. Thanx Fred Matt Raible wrote: > There's no question in this message. ;-) > > Matt > > On 7/20/07, Fred Forester <[EMAIL PROTECTED]> wrote: >> >> Hi All, >> >> a newbie to appfuse/struts/hibernate so have what is probably a stupid >> questiom. >> >> I noticed this comment in my DaoHibernate class. >> >> /* >> Remove the line above and uncomment this code block if you want >> to use Hibernate's Query by Example API. >> */ >> >> >> I have about 4 fields in this table I would like to do a select distint >> on and use that to create the select boxes for the search criteria. >> I'm hoping that once the "Pdf" option in then selected on that list >> only the searched for items will appear in the pdf. >> >> Thanx >> Fred >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]