Search:

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

Search: Search took 0.02 seconds.

  1. Maybe ContextTestCase--in following post--would...

    Maybe ContextTestCase--in following post--would be helpful for your integration testing needs?

    http://forum.springframework.org/showthread.php?t=10273=
  2. Replies
    4
    Views
    1,597

    For my application, the context files are under...

    For my application, the context files are under /WEB-INF, not in the classes directory.

    Try moving your context files and change contextConfigLocation in web.xml.


    ...
  3. Are you open to a solution other than using...

    Are you open to a solution other than using getResourceAsSteam()?

    Maybe Spring's Resource interface will serve your purposes. It is a clean/elegant solution. Here is how I found out about it.
    ...
  4. Replies
    2
    Views
    4,771

    I don't know about best way, but one way should...

    I don't know about best way, but one way should be:

    HttpSessionListener > HttpSessionEvent > HttpSession > ServletContext

    then

    myServletContext.getAttribute( ...
  5. Thread: ForwardView?

    by feester
    Replies
    5
    Views
    1,838

    To do RequestDispatcher.forward() you want to...

    To do RequestDispatcher.forward() you want to use:
    org.springframework.web.servlet.view.InternalResourceView

    To Spring Team FWIW:
    There is a RedirectView, so why isn't there a ForwardView and...
  6. Replies
    5
    Views
    2,148

    You can't do what you want with...

    You can't do what you want with org.springframework.web.servlet.view.velocity.VelocityView. This Spring class is based on org.apache.velocity.servlet.VelocityServlet, which comes with the Velocity...
  7. Replies
    2
    Views
    4,990

    The sample applications, including petclinic, are...

    The sample applications, including petclinic, are in the binary distribution under the /samples directory.
  8. Replies
    13
    Views
    6,046

    I don't know anything about Maven. Does Maven...

    I don't know anything about Maven. Does Maven build run via Ant?

    If so, and even if not, I believe the problem is that each test class is getting forked into a new JVM.

    If Ant is involved,...
  9. Replies
    13
    Views
    6,046

    You are saying following does not work? ...

    You are saying following does not work?

    <junit fork="yes" forkmode="once">
    <test fork="no" ....
    etc....

    Where all the tests are defined in same way.

    If you can get all the tests to...
  10. Replies
    13
    Views
    6,046

    Below is the latest version of something I posted...

    Below is the latest version of something I posted a little while ago.

    http://forum.springframework.org/showthread.php?t=9902&highlight=

    You need to call initialize() in setup of each class...
  11. First, you can't prevent them from using new or a...

    First, you can't prevent them from using new or a factory getInstance directly. Don't worry about it, because you can easily refactor a bean to instead receive what objects it needs.

    Second, why...
  12. Replies
    2
    Views
    4,579

    Integration Testing with ContextTestCase

    About a month ago--I don't remember where--someone provided a JUnit TestCase implementation that loaded a Spring ApplicationContext then set instance variables via java reflection. I liked the...
  13. Replies
    7
    Views
    30,576

    I suggest you put persistence related bean...

    I suggest you put persistence related bean definitions in separate xml file like contextPersistence.xml. In web.xml, include all xml files pertinent to your environment in a <context-param> with...
  14. I may have misunderstood what your intent is but...

    I may have misunderstood what your intent is but I am assuming that you want to view the code base of Spring in Eclipse IDE. I see the build--of Spring framework--as being strictly an ANT issue and...
  15. Replies
    7
    Views
    4,317

    kdonald, I tried what you indicated and it...

    kdonald,

    I tried what you indicated and it worked! I like it. (It hadn't occured to me that Spring would resolve a string <value> in <property> element to the type of the setter method, i.e....
  16. Replies
    7
    Views
    4,317

    I figured out how to do what I wanted, but in a...

    I figured out how to do what I wanted, but in a cleaner way. I was originally creating a Resource bean and then passing it as property to a View bean. Now I just get a reference to the desired...
  17. Replies
    7
    Views
    4,317

    getting to resource under /WEB-INF

    I want to get to a file that is under /WEB-INF of my web application, but by means of a relative reference.

    Using FileSystemResource, I can get to a file by providing a complete path like bean...
Results 1 to 17 of 17