Yeah, I've got some sample data in both files. I've attached the output of my
mvn call. Perhaps something might stand out. I'll keep looking.
Marshall
Matt Raible <[EMAIL PROTECTED]> wrote:
Did you add sample data to both sample-data.xml files? There's one in
each project. Unfortunately,
Did you add sample data to both sample-data.xml files? There's one in
each project. Unfortunately, I haven't figured out a better way to do
this, although you may be able to point the web project's dbunit
configuration to the core project.
Matt
On 5/25/07, marshall <[EMAIL PROTECTED]> wrote:
He
Hey Matt;
I've tried comparing my version with the tutorial-spring code and I don't
see any difference. The java classes are the same. The configs all look good
too.
I'm wondering if this is a potential modular issue?
Your tutorial runs fine with the tests passing.
I've added
Do you have any Person records in your database? Maybe you forgot to
add them into sample-data.xml? You could manually add some as part of
your test using PersonManager.save().
Matt
On 5/24/07, marshall <[EMAIL PROTECTED]> wrote:
Hmm;
Matt, this may be where my naivete shows itself. I could
Hmm;
Matt, this may be where my naivete shows itself. I could add something like
the following to PersonController's handleRequest method as you suggest below:
return new ModelAndView().addAllObjects(personManager.getAll());
I also tested the contents of personManager as follows
What happens if you use new ModelAndView().addAllObjects() - do you
get the same error?
Matt
On 5/22/07, marshall <[EMAIL PROTECTED]> wrote:
Interestingly, when I debug the ModelMap, the object has null values.
Matt Raible <[EMAIL PROTECTED]> wrote:
If you print out the contents of ModelMap, w
Interestingly, when I debug the ModelMap, the object has null values.
Matt Raible <[EMAIL PROTECTED]> wrote:
If you print out the contents of ModelMap, what does it have in there?
You might try debugging your test and setting a breakpoint to
inspect.
Matt
On 5/22/07, marshall wrote:
> Sure;
>
If you print out the contents of ModelMap, what does it have in there?
You might try debugging your test and setting a breakpoint to
inspect.
Matt
On 5/22/07, marshall <[EMAIL PROTECTED]> wrote:
Sure;
Here it is:
package com.ss.webapp.controller;
import javax.servlet.http.HttpServletReques
Sure;
Here it is:
package com.ss.webapp.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.appfuse.service.Gener
The problem likely occurs in PersonController.java - can you post the
code for that?
Thanks,
Matt
On 5/22/07, marshall <[EMAIL PROTECTED]> wrote:
Sure Matt;
I'll include a few things just in case, starting with the
PersonControllerTest class:
package com.ss.webapp.controller;
import java.ut
Sure Matt;
I'll include a few things just in case, starting with the
PersonControllerTest class:
package com.ss.webapp.controller;
import java.util.List;
import org.appfuse.webapp.controller.BaseControllerTestCase;
import org.springframework.ui.ModelMap;
import org.springframew
11 matches
Mail list logo