Search:

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

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    10,840

    Bam. StringWriter stringWriter = new...

    Bam.



    StringWriter stringWriter = new StringWriter();
    Marshaller marshaller = new Marshaller(stringWriter);

    marshaller.marshal(myObject);

    String myXmlString = stringWriter.toString();
  2. Replies
    1
    Views
    722

    You are using the wrong version of jstl. Readup...

    You are using the wrong version of jstl. Readup on installing the new version, then your taglibs should look like this:




    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@...
  3. I was thinking response.redirect(), and I didn't...

    I was thinking response.redirect(), and I didn't want to code a bunch of urls into my controller. I didn't know about the RedirectView, I'll have to start using that. My approach doesn't have the...
  4. I think you are having the same problem I had. ...

    I think you are having the same problem I had. You can either, map the data like you said and send it to the form, redirect or do what I did:
    ...
  5. Replies
    4
    Views
    1,686

    LocalSes sionFactoryBean

    LocalSes sionFactoryBean <-- space?
  6. Replies
    2
    Views
    3,854

    The include should only point to real files, I...

    The include should only point to real files, I don't think you can "include" a something resolved by http request, it'd have to be a forward or redirect.

    Perhaps you have a service called from the...
  7. The property files don't get re-read if they are...

    The property files don't get re-read if they are changed, supposedly this will be a new feature down the road.
  8. Are you using the same context for both your...

    Are you using the same context for both your registry and your controllers?

    You'll probably want to use the WebApplicationContextUtils.getWebApplicationContext() to set the ApplicationContext to a...
  9. I use the PropertyPlaceholderConfigurer to place...

    I use the PropertyPlaceholderConfigurer to place deployment specify settings outside the ear file. Then you can use jmx to change things if you need.

    check out ...
  10. Replies
    1
    Views
    1,613

    var Text= "${model.message}"; or var Text=...

    var Text= "${model.message}";

    or

    var Text= <c:out value="${model.message}"/>

    depending on your version of jsp.
  11. Replies
    5
    Views
    1,409

    I wound up extending the InternalResourceView and...

    I wound up extending the InternalResourceView and it worked out pretty well.

    Now any view that must always use some reference data and is also a success view for some controller can implement...
  12. Replies
    5
    Views
    1,409

    After poking around the source, I can see why...

    After poking around the source, I can see why referenceData() isn't called. Basicly referenceData is in the Controller of the other view and since you only have the View and the view has no...
  13. Replies
    5
    Views
    1,409

    The SimpleFormController. I know it's not called...

    The SimpleFormController. I know it's not called everytime because it doesn't hit my breakpoints and the data is missing from the form. I don't see any binding errors or anything. I've read posts...
  14. Replies
    5
    Views
    1,409

    referenceData sillyness

    I have 2 controllers, one with a summary of objects and one that will edit or add new objects.

    To populate the summary I'm using the referenceData method. After I edit or add a new object the...
  15. Replies
    6
    Views
    2,383

    got it

    You have to use the BindStatus to get a custom error message.

    so... to loop through all the binding errors on the page.



    Errors errors = rc.getErrors&#40;"command"&#41;;
    ...
  16. Replies
    6
    Views
    2,383

    I got all this working but it doesn't lookup my...

    I got all this working but it doesn't lookup my custom error messages from messages.properties. How do I go about doing that?
  17. Solved, sorta

    I was able to get it working, by changing my interfaces around. I was extending another interface, once I removed that so it was an interface that only extended one interface the problem went away...
  18. Autowire by type problem, but I'm not using autowiring.

    Hello,

    I'm getting an error in my unit test setup. It's telling me:

    org.springframework.beans.factory.UnsatisfiedDependencyException&#58; Error creating bean with name...
Results 1 to 18 of 18