Search:

Type: Posts; User: diminuta; Keyword(s):

Search: Search took 0.04 seconds.

  1. I had the answer just in front of me! I asked...

    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 :)
  2. Redirect to j_spring_security_logout from a Controller in Spring Security 3.1.1

    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...
  3. Just to let you know that you were absolutely...

    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
  4. I already tried this two options but the error...

    I already tried this two options but the error remains the same...



    I'll try something different then... thanks
  5. So how I should encode the parameter?

    So how I should encode the parameter?
  6. Then why it works when I turn off Spring...

    Then why it works when I turn off Spring Security? :S
  7. Maybe I'm not explaining myself... A 3rd party...

    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"...
  8. The thing is that I'm not the one who encodes...

    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... :(
  9. In the end I haven't changed my test controller...

    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,...
  10. Yes, why? Altough I redirect in the test...

    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...
  11. Redirection with parameters in Spring MVC + Spring Security

    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...
  12. Replies
    0
    Views
    251

    Problem with ROLES

    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...
  13. Well in the end it was just a silly problem :mad:...

    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>...
  14. Here's my web.xml

    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...
  15. I'll do that tomorrow first thing in the morning...

    I'll do that tomorrow first thing in the morning when I get to the office... thanx!
  16. I'm at home now, I don't have access to the code...

    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:
  17. Oooops sorry, I've mistaken names the file I...

    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?
  18. Configuration problem: Duplicate detected.

    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...
  19. Connection to multiple databases without xml configuration

    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...
Results 1 to 19 of 19