hand79 / Hadoop

Hadoop 開發實作&筆記
0 stars 0 forks source link

about createStruts2TableFacade in struts2 #243

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
TableFacade tableFacade =
TableFacadeFactory.createStruts2TableFacade("promoter", request);

But when in struts2 ,it not suggest directly using " HttpServletRequest ".
Because this will bring coupler.
I want using " ActionContext.getContext()  " to replace HttpServletRequest ,
it's wrong.
So have a good way to resolve it?

Original issue reported on code.google.com by zprill@gmail.com on 5 Feb 2010 at 9:43

GoogleCodeExporter commented 9 years ago
You would have to create your own WebContext implementation and then call the 
TableFacadeFactory method that uses the WebContext.

Original comment by jeff.johnston.mn@gmail.com on 10 Mar 2011 at 9:56