importcom.oreilly.struts.storefront.businessobjects.CustomerBO; import (Crystaltech web hosting) com.oreilly.struts.storefront.businessobjects.ItemBO; importcom.oreilly.struts.storefront.catalog.view.ItemDetailView; importcom.oreilly.struts.storefront.catalog.view.ItemSummaryView; import com.oreilly.struts.storefront.customer.view.UserView; importcom.oreilly.struts.storefront.framework.exceptions.AccountLockedException;
importcom.oreilly.struts.storefront.businessobjects.CustomerBO; import com.oreilly.struts.storefront.businessobjects.ItemBO; importcom.oreilly.struts.storefront.catalog.view.ItemDetailView; importcom.oreilly.struts.storefront.catalog.view.ItemSummaryView; import com.oreilly.struts.storefront.customer.view.UserView; importcom.oreilly.struts.storefront.framework.exceptions.AccountLockedException; importcom.oreilly.struts.storefront.framework.exceptions.DatastoreException; importcom.oreilly.struts.storefront.framework.exceptions.ExpiredPasswordException; importcom.oreilly.struts.storefront.framework.exceptions.InvalidLoginException; /** * This is a simple Session Bean implementation of theStorefront service */ public class StorefrontBean implements SessionBean, IStorefront { private SessionContext ctx; private Implementation odmg = null; private Database db = null; public UserView authenticate( String email, String password ) throws InvalidLoginException, ExpiredPasswordException, AccountLockedException, DatastoreException { // Query the database for a user that matches thecredentials List results = null; try{ OQLQuery query = odmg.newOQLQuery( ); // Set the OQL select statement String queryStr = “select customer from ” + CustomerBO.class.getName( ); queryStr += ” where email = $1 and password = $2″; query.create(queryStr); // Bind the input parametersquery.bind( email ); query.bind( password );
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.