Hello Venkat,
The usual way of protecting JSPs from direct access is to place them in
a folder under /WEB-INF. This way, only ForwardResolutions can access them.
If you need a finer security management, you could use a custom security
tag. A good example exists in the Stripes wiki:
http://www.str
I tried to implement security Interceptor by implementing Interceptor
interface. It works well for the action beans , just fine.
Now how do I make sure my JSP go through that interceptor, if I directly
access them.
Lets say I want to access localhost/myapp/app.jsp directly, I want my
interceptor
I followed the instructions about exception handler in
http://www.stripesframework.org/display/stripes/Exception+Handling.
My exception handler doesn't kick in when my action bean method throws
exception.
It shows ugly tomcat stack trace instead, why is not finding my exception
handler. I tried to
BTW, half the answer seems to be in this post:
http://planetjava.org/java-stripes-user/2007-02/msg00155.html
But the problem is he doesn't show us/me how to override the MockRoundtrip.
I can't figure out how his ActionBeanInitialization.initialize(T
actionBeanInstance) gets called.
On Mon, Feb
That's making the assumption that stubbing the InitialContext will solve
all my dependency injection needs. But if my actionbean has a field in it
that is like:
private PojoWithBusinessLogic bean = new PojoWithBusinessLogic();
Stubbing the InitialContext won't let me DI this bean.
On Mon, Feb
Just mock the initial context factory.
see
http://stackoverflow.com/questions/10045466/how-to-fake-initialcontext-with-default-constructor.
Date: Mon, 11 Feb 2013 10:18:05 -0800
From: d...@mirthcorp.com
To: stripes-users@lists.sourceforge.net
Subject: [Stripes-users] Using dependency injection
I read about using the MockRoundtrip here:
http://www.stripesframework.org/display/stripes/Unit+Testing
The problem I have is a few of my ActionBean's fields are EJBs that get
populated from the app server. How can I use dependency injection on the
action bean's fields?
mockRoundtrip = new MockR