the problem arose from the filter sequence. The PageFilter (sitemesh) was invoked before the spring security filter and because of this the security context was not yet available in the jsp. Changing...
Type: Posts; User: TheStijn; Keyword(s):
the problem arose from the filter sequence. The PageFilter (sitemesh) was invoked before the spring security filter and because of this the security context was not yet available in the jsp. Changing...
I faced the same problem and I implemented my own AccEssDeniedHandler which is basically the same as the default one but will never call response.sendError(). Good to know that this is indeed a bug...
In case you haven't found the answer, maybe this will help:
<bean id="filterChainProxy" class="org.springframework.security.util.FilterChainProxy">
<property...
hi,
I've implemented spring security (2.0.3) using BasicAuthentication. This seems to work fine. I'm however facing a strange problem when trying to use the authentication tag to display the name...
I do not really get why this is advised.
I see 2 disadvantages of working with the local attribute:
1. increases clutter since there is no shortcut form for the ref local;
<property...
tx!
sounds like what I need; I'll have a look.
hi,
is their some way in Spring to trim all form (command) values by default when the form is filled from the request?
Or do I need to do this manualy for each field individualy?
tx!
hi,
I haven't worked with quartz yet but there is a datasource property that can be set on
org.springframework.scheduling.quartz.SchedulerFactoryBean.
Maybe try setting this property?
...
Jörg,
thanks for your suggestion; the wizard-controller sounds like a good approach but I have never used it before and I'm a bit hesitant using it for this case because of 2 concerns:
my use...
sorry, my bad
in this particular case I was redirecting to the same controller so of course it works if I set it to the referenceData of that controller :rolleyes:
sorry if I've wasted your...
Peter,
thanks for confirming my suspicion. I solved it by doing the following in the redirected controllers formBackingObject:
request.setAttribute("STATUS_MESSAGE",...
hi,
if the onSubmit-mehtod of my SimpleFormController I'm setting a key-value on the ModelAndView I'm returning indicating a certain status. The idea is then to display this status on my JSP....
hi,
I have 4 input pages, most of the fields on the pages are mandatory but they only need to be filled in and therefor only need to be validated when the user click a submit-button on another...
I havn't done this myself yet but I think this is what you're looking for:
<property name="sessionForm" value="true" />
try setting this property on your controller-bean declarations.
nobody?
I must say that I'm not too surprised, I've seen lots of similar questions all left unanswered but that puzzles me a bit. To me it does not seem to be an unusual requirement to either...
hi,
I have following message property:
error.field.required={0} is a mandatory field
in my validator I have following check:
ValidationUtils.rejectIfEmpty(errors, "projectManager",...
thanks for the confirmation; I'll do just that
greetz
hi,
I need to create some custom JSP tags in which I call methods on my services. The question is how to get a hold of a reference to the required service.
Of course, the service is declared as...
Andrei,
thanks for the clarification!
greetz,
Stijn
tx,
as I said that does the trick but I don't really understand why it is required or why it also work if you do it inside a transaction. Doesn't the hibernateTemplate flush the session? at least...
I'm simply extending TestCase:
public class ProjectSysTest extends TestCase
{
private static ApplicationContext context;
static SessionFactory sessionFactory;
static ProjectService...
yeah, it's maybe a bit confusing because I didn't post all my code. First, it's not only the version that is changed, some other fields change as well (just didn't add that to the above code)....
hi,
sometimes I think I finally understand hibernate then an issue comes along and suddenly I think I don't understand it at all.
I have an Object Project which contains a Set (one-to-many) of...
As you probably expected that did the trick!
tx a lot (all of you) for your help!
Stijn
tx
I'll try this first thing tomorrow and let you know if it worked.
greetz