Search:

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

Search: Search took 0.05 seconds.

  1. Replies
    1
    Views
    310

    Handling AccessDeniedException in XML

    Hi, I'm trying to handle AccessDeniedException in XML configuration.

    I do use @Controller with @Secured



    @Controller
    @Secured("ROLE_PUBLISHER")
    public class ManagerController ...
  2. Validation compatibility between JSR303 (Hibernate Validator) and SWF Validator?

    Hi,

    I have model, previously developer for SWF (Spring Web Flow), and I've created @Component Validator for given model.

    Model: User
    Validator: UserValidator

    where the Validator implements...
  3. Replies
    2
    Views
    931

    It was INFO INFO...

    It was INFO

    INFO [org.hibernate.cfg.Environment] - <HHH000206: hibernate.properties not found>

    Maybe poorly chosen debug level for this message.
    Strange is I don't have hibernate.properties...
  4. Replies
    2
    Views
    931

    hibernate.properties with JavaConfig

    I do use JavaConfig to configure Hibernate within my application.

    The problem is, the Hibernate seems to be looking for plain text configuration file on classpath:

    <HHH000206:...
  5. Replies
    3
    Views
    604

    I'm be too interested in some example on this...

    I'm be too interested in some example on this solution. Could anyone please provide link for such ?

    Thanks
  6. So does that mean, that using code, which after...

    So does that mean, that using code, which after login process takes all Cookie object from request, changing the Path to .domain.tld and returning it to client is correct way?

    It seems to me...
  7. Login Cookie - Subdomain matching ".domain.tld"

    I know, I need Cookie with domain name set to


    .domain.tld

    Is there a possibility to do some Spring Security automagic to achieve this, or do I need to rewrite half of spring security...
  8. Replies
    3
    Views
    437

    And one more thing, I was digging a little bit,...

    And one more thing, I was digging a little bit, and found this project, as an example of RequestCondition implementation.

    https://github.com/rstoyanchev/spring-mvc-31-demo/

    Is it necessary to...
  9. Replies
    3
    Views
    437

    Oh, so it's my fault. I though that it's related...

    Oh, so it's my fault. I though that it's related to RequestMappingHandlerMapping from this comment:


    The URL rewriting solution seems to be good solution, as I already use UrlRewriteFilter (...
  10. Replies
    3
    Views
    437

    @RequestMapping custom properties

    As an example, take subdomain mapping.

    This article: http://techsravi.blogspot.com/2011/05/managing-multiple-domain-and-sub-domain.html
    recommends to resolve subdomain on Filter.

    If we'd like...
  11. Replies
    0
    Views
    385

    Validate Model after Evaluate

    This is kind of example.

    Let's have an @Entity with field


    @NotBlank(message = "You have to upload your avatar")
    private String avatar;


    In flow, there is action handling, according to...
  12. Oh, this is solution, but not very nice. Isn't...

    Oh, this is solution, but not very nice.
    Isn't there something better?



    <evaluate expression="new String[]{'first_css','second_css'}" result="requestScope.css"/>
  13. Add Layout param in Flow configuration on-render

    In whole application I'm using adding context param "css" and "js" via setting it inside of @Controller to Map<String, Object> argument

    How can I transform this code:


    @RequestMapping("/")...
  14. Unable to locate Spring NamespaceHandler for element ... [DEBUG INFO]

    Hello,

    I've run this morning into issue which is already discussed in this forum.
    I haven't found relevant thread to post into, so I'm creating a new one.

    I've tried to debug this problem and...
  15. Replies
    1
    Views
    1,017

    Spring MVC - Layout solution

    I'd like to create layout solution in combination with Spring MVC, Web Flow, Security, Data, etc...

    What I've found:

    1. VelocityLayoutViewResolver - possible but I don't like it because in JSP...
Results 1 to 15 of 15