Re: using property/constant placeholder in struts config file

2011-12-18 Thread aum strut
Thanks Łukasz, that's a perfect approach 2011/12/18 Łukasz Lenart > Instead hardcoded result you can use expression > > > ${actionFrame} > > > And create a BaseAction (as a base action for all your actions) with > getActionFrame() which will return > "/templates/application/applicationfram

Unit Test Exception

2011-12-18 Thread 叶伟平
Hi, I am attempting to unit test my actions with struts2-junit-plugin-2.2.1, but I keep getting the follow exception: WARN [main] o.s.m.w.MockServletContext - Couldn't get resource paths for class path resource [WEB-INF/content/admin/] java.io.FileNotFoundException: class path resource [WEB-INF/co

Re: using property/constant placeholder in struts config file

2011-12-18 Thread Łukasz Lenart
Instead hardcoded result you can use expression ${actionFrame} And create a BaseAction (as a base action for all your actions) with getActionFrame() which will return "/templates/application/applicationframe.jsp" or whatever your want ;-) Regards -- Łukasz + 48 606 323 122 http://www.len