ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lieven De Keyzer" <lieven_dekey...@hotmail.com>
Subject RE: JPetStore - BaseBean / BeanAction
Date Thu, 26 May 2005 19:38:10 GMT
Allright, I found it.


I looked over the getRequest() method.

>From: "Lieven De Keyzer" <lieven_dekeyzer@hotmail.com>
>Reply-To: ibatis-user-java@incubator.apache.org
>To: ibatis-user-java@incubator.apache.org
>Subject: JPetStore - BaseBean / BeanAction
>Date: Thu, 26 May 2005 17:24:23 +0000
>I'm building my webapplication with struts, using the BaseBean.java concept 
>of JPetStore.
>In a class that extends the BaseBean class, I can access application, 
>request, session etc. variables by doing:
>Map applicationMap = ActionContext.getActionContext().getApplicationMap();
>Timer tasks = (Timer) applicationMap.get("tasks");
>Under the surface, the ApplicationMap makes getAttributes calls to the 
>ServletContext. But now I want to use the getResourceAsInputStream method 
>of ServletContext. Should I add a method to ApplicationMap? If I do this, 
>it isn't really a 'Map' anymore, is it?

View raw message