Search:

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

Page 1 of 5 1 2 3 4

Search: Search took 0.04 seconds.

  1. In a Junit test, how can I autowire a spied class?

    Hi,

    I'm using Spring 3.1.1.RELEASE, JUnit 4.8.1, and Mockito 1.9.5. In one of my JUnit tests, I want to autowire a spy -- a mocked class in which I'm only mocking one of the public methods. So...
  2. How do I access a boolean field from my security principal in JSTL?

    Hi,

    I'm using Spring 3.1.1.RELEASE with accompanying Spring security. I want to access one of my Boolean value from a field in my UserDetails object. The object is



    public class...
  3. How do I manipulate a model java.util.Map object in a JSP page?

    Hi,

    I'm using Spring 3.1.1.RELEASE and building a web application. I'm struggling to figure out how I manipulate a java.util.Map (via a JSP) that I want to put in my Model. Here is the method...
  4. Getting a 404 when I try and submit to "/j_spring_security_check"

    Hi,

    I'm using Spring 3.1.1.RELEASE with the accompanying Spring security. I'm hoping there's something really obvious I'm missing because I repeatedly get 404s when I try and submit to my Spring...
  5. Is it possible to configure transaction timeouts with Spring 3 and JPA 2.0?

    Hi,

    I'm using Spring 3.1.1.RELEASE, Hibernate 4.1.0.Final, JPA 2.0, and JBoss 7.1.1. I'm building a web application (WAR) and would like to sett an application-wide transaction timeout (without...
  6. How do I configure my bean constructor from a properties file in the app context?

    Hi,

    I'm using Spring 3.1.1.RELEASE. I'm trying to setup my constructor based on properties from a properties file. Here is my application context ...



    <context:property-placeholder...
  7. Any way to autowire a java.util.List of Strings directly from a properties file?

    Hi,

    I'm using Spring 3.1.1.RELEASE on JBoss AS 7.1.0.Final. I have this defined in my application context file …



    <util:properties id="applicationProperties"...
  8. I was trying to follow the instructions here --...

    I was trying to follow the instructions here -- http://static.springsource.org/spring/docs/3.0.5.RELEASE/reference/aop.html, but before I go crazy, is there another way I should be doing this that is...
  9. How to autowire a bean loaded by Hibernate?

    Hi, I'm using Spring 3.1.0.RELEASE. One of my Hibernate classes (EventFeed) references a class (AbstractEventParser ), in which I'd like to get access to a service, loaded by Spring. However, my...
  10. Will this execute as a single transaction?

    Hi,

    I'm using Spring 3.1.0.RELEASE. I want to use Spring's @Transaction annotation to manage my transactions in my service class. I have three methods marked with...
  11. No estoy entendiendo tu respuesta! However, I...

    No estoy entendiendo tu respuesta!

    However, I solved this problem using the @PostConstruct annotation. I added my Quartz job as a Spring bean in my application context file and then annotated the...
  12. I'm having trouble making the connection between...

    I'm having trouble making the connection between this interface and invoking a method from my scheduling class on application startup. I can see that this interface provides a way to access the...
  13. How do I run a quartz job at application startup?

    Hi,

    I'm using Spring 3.1.0.RELEASE. I want to run a Quartz cron job immediately after application startup and then every 12 hours. How do I get it to run at application startup? I tried...
  14. How to troubleshoot "No Session found for current thread" exception on a JSP?

    Hi,

    I'm using Spring 3.1.0.RELEASE, Spring's transaction manager, and Hibernate 4.0.1.Final. Through Hibernate, I'm retrieving a bean, whose property I want to display on a JSP page. But when I...
  15. SpringJUnit4ClassRunner: How to reference the Errors object from handlerAdapter?

    Hi,

    I'm using Spring 3.1.0.RELEASE. I want to test a controller using SpringJUnit4ClassRunner. How do I get a reference to my org.springframework.validator.Errors object from the Spring...
  16. Are you talking about this ... ...

    Are you talking about this ...



    <form:checkboxes itemValue="value" itemLabel="label"
    path="user.degrees" items="${degreeLabels }" />


    ? This will render all the checkboxes at once,...
  17. Trouble making my checkboxes checked

    Hi,

    I'm using Spring 3.1.0.RELEASE. I have this field in my domain object ...



    public Set<EventFeed> getUserEventFeeds() {
    return this.userEventFeeds;
    }
  18. Ok, so what URL should I use or how can I figure...

    Ok, so what URL should I use or how can I figure it out? Thanks, - Dave
  19. Problem when testing my login controller using Spring security

    Hi,

    I'm using Spring 3.1.0.RELEASE with spring security 3.1. I'm trying to test my login controller but running into some problems. Does anyone know what request URI I should be using? My JUnit...
  20. Replies
    4
    Views
    670

    Thanks. Just to be clear, I should still include...

    Thanks. Just to be clear, I should still include this



    <!-- Enable annotation driven controllers, validation etc... -->
    <mvc:annotation-driven />

    <context:component-scan...
  21. Replies
    4
    Views
    670

    How do I autowire a mock object?

    Hi,

    I want to use EasyMock to mock a controller's data access object when testing my controller in my Spring JUnit test. How do I autowire the data access field in my controller with a mock...
  22. Replies
    3
    Views
    2,801

    Hi AuPanner, Is your file called "log4j.xml"? Is...

    Hi AuPanner, Is your file called "log4j.xml"? Is it located in your WAR's WEB-INF/classes directory?

    I named my file log4j.xml and placed it in WEB-INF/classes, but changed the path to be...
  23. Replies
    3
    Views
    2,801

    How to enable spring log4j debugging?

    Hi,

    I'm using Spring 3.0.5.RELEASE. I'm also using log4j. I want to enable Spring debugging so I can see why a mapping isn't resolving, but this log4j.properties configuration ...



    # Root...
  24. Autowiring making me want to scream, cry, and kick things

    Hi,

    I'm using Spring 3.0.5.RELEASE. I'm having trouble autowiring a bean. I get the exception ...



    Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire...
  25. Hi, Yes, I have an index.jsp file at my wAR's...

    Hi,

    Yes, I have an index.jsp file at my wAR's root. What I would like is visiting http://localhost:8080/my-context-path/ to display the index.jsp page and visiting...
Results 1 to 25 of 104
Page 1 of 5 1 2 3 4