I had the answer just in front of me! I asked "how to redirect"... and that was the key...
return "redirect:/j_spring_security_logout"
works :)
Type: Posts; User: diminuta; Keyword(s):
I had the answer just in front of me! I asked "how to redirect"... and that was the key...
return "redirect:/j_spring_security_logout"
works :)
I have a jsp with a form that has 2 buttons "save" and "close", both call the same method and if I detect that the close button was pressed I should then redirect to Spring Security logout... but...
Just to let you know that you were absolutely right :) I developed the test as a sepparate Struts app and now it works withouth that ugly hack, thanks :D
I already tried this two options but the error remains the same...
I'll try something different then... thanks
So how I should encode the parameter?
Then why it works when I turn off Spring Security? :S
Maybe I'm not explaining myself...
A 3rd party app is going to call my app with a call like:
http://myserver:myport/myapp/autenticacion/primaria?parametro="<?xml version="1.0"...
The thing is that I'm not the one who encodes it... a 3rd party app is calling my app with that parameter, I don't have any control over it... :(
In the end I haven't changed my test controller and I built a filter that rewrites the request URL:
@Override
public void doFilter(ServletRequest request, ServletResponse response,...
Yes, why?
Altough I redirect in the test controller like you say it won't prevent the error as I don't control and obviously am not the person who develops the other app that calls mine... so...
Hi, I'm developing an app with Spring MVC + Spring Security 3.1 and my app is called through a certain URL that contains a parameter that is a XML file as a string.
I'm developing on a...
Hi,
I have a webapp that uses Spring Security (3.1), and I have 3 different roles (ROLE_ADMIN, ROLE_CONS, ROLE_S_CEN)
When I log in with an user who has the role ROLE_ADMIN everything works as...
Well in the end it was just a silly problem :mad:
In my applicationContext.xml I have the line:
<import resource="security-context.xml" />
And in web.xml I have this:
<context-param>...
Here's my web.xml
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee...
I'll do that tomorrow first thing in the morning when I get to the office... thanx!
I'm at home now, I don't have access to the code right now, I'll post it tomorrow but I'm sure I haven't listed the file twice, I already checked it :confused:
Oooops sorry, I've mistaken names the file I posted its the security-context.xml actually (not spring-security.xml), there's no spring-security.xml file, just security-context.xml, sorry... any ideas?
Hi all,
I've configured my app to use Spring Security and since then I get this exception:
ERROR: org.springframework.web.context.ContextLoader - Context initialization failed...
Hi,
I have a problem and I don't know how to solve it... I have to connect to several databases, and the database to connect to is decided at runtime depending on what the user chooses... I have...