FileDocCategorySizeDatePackage
BaseAction.javaAPI DocExample908Sat Dec 06 12:11:34 GMT 2003org.springframework.samples.jpetstore.web.struts

BaseAction

public abstract class BaseAction extends org.apache.struts.action.Action

Fields Summary
private org.springframework.samples.jpetstore.domain.logic.PetStoreFacade
petStore
Constructors Summary
Methods Summary
protected org.springframework.samples.jpetstore.domain.logic.PetStoreFacadegetPetStore()

		return petStore;
	
public voidsetServlet(org.apache.struts.action.ActionServlet actionServlet)

		super.setServlet(actionServlet);
		ServletContext servletContext = actionServlet.getServletContext();
		WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);
		this.petStore = (PetStoreFacade) wac.getBean("petStore");