Search:

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

Search: Search took 0.01 seconds.

  1. anyone have an idea on this?

    anyone have an idea on this?
  2. Mock session and mock request objects are used to...

    Mock session and mock request objects are used to simulate them as would normally be provided by the WebApplicationContext, thereby allowing one to test session and request while outside of the...
  3. Replies
    4
    Views
    1,116

    Would this be the source of the problem I am...

    Would this be the source of the problem I am having then? Please refer to my post:
    ...
  4. struts 2 junit4 - Scope 'request' is not active for the current thread

    I am attempting to build an initial junit test for our struts 2 spring 3, hibernate web application. I attempt the run the following test and keep gettting the same error. Im all google'd out and...
  5. Heck, I'd be happy just being able to access them...

    Heck, I'd be happy just being able to access them at all. I used this http://wheelersoftware.com/articles/spring-session-scoped-beans.htmlguys approach and it works fine except when i try to access...
  6. Replies
    1
    Views
    750

    Nested Class Annotation

    I get an error when attempting to use a controller with a nested private class. Is there an annotation for this class, or do i have to move it to its own file?



    @Controller
    public class...
  7. Replies
    7
    Views
    5,026

    Is this a dead deal?

    Is this a dead deal?
  8. I ended up using this: ...

    I ended up using this:


    @SuppressWarnings("unchecked")
    private Object updateObject(Object newObj, Object oldObj) {
    try {
    Class classDef = Class.forName(newObj.getClass().getName());...
  9. update model object with command object

    I am using my model object as the command object for my form, however, I only use 10 or 20 or so properties the object has to offer in my form. So, when the object is resubmitted from a save action...
  10. Replies
    1
    Views
    1,313

    Nobody is able to comment on this? What about...

    Nobody is able to comment on this? What about one of the spring source gurus?
  11. Replies
    1
    Views
    1,313

    commons validator annotations

    I am getting ready to put some validation into my project, and have been reviewing the possible implementations. From what I can gather the spring-modules has great validation support and from there...
  12. Replies
    11
    Views
    1,499

    Yeah, I had read that. Anyhow, I got it to...

    Yeah, I had read that. Anyhow, I got it to work!! I ended up having to pass my locationService into the property editor. Thanks for the help!!!!


    @InitBinder
    protected void...
  13. Replies
    11
    Views
    1,499

    Yeah, sorry that was a typo. I think the...

    Yeah, sorry that was a typo. I think the "super.initBinder" line of code in replaced by the @InitBinder annotation. I however am running into an issue of my locationService object being null. ...
  14. Replies
    11
    Views
    1,499

    This did not work either, still returned a null. ...

    This did not work either, still returned a null. The more I dig through the posts on here the more I understand why there is such confusion around this. I made the following change, because I had...
  15. Replies
    11
    Views
    1,499

    Using location.locationId in the path of the...

    Using location.locationId in the path of the select would be too easy I guess. I'd much rather create a whole new object and have to register it (for my entire controller, what If I dont want this...
  16. Replies
    11
    Views
    1,499

    Ok, I found plenty of posts on property...

    Ok, I found plenty of posts on property editors.....seems like an extraneous amount of work just to get a property! Anyhow, all the posts say they have "registered" thier property editor, but I do...
  17. Replies
    11
    Views
    1,499

    yes, it is a location object. I just tried...

    yes, it is a location object. I just tried location.locationId with no success. I'll look into this property editor, or do you have a quick mock-up solution? Or a good link to an example? thanks!
  18. Replies
    11
    Views
    1,499

    form:select returns nulls

    Hi, I am trying to use the spring:select tag to populate and submit selected values via my form, but when I check the returnedcommand object/ModelAttribute, the value for my select is null. Other...
  19. Replies
    1
    Views
    840

    Should this be a DTO or something? I dont...

    Should this be a DTO or something? I dont believe dot notation works here either, so the following would be nice....

    path="myDTO.product.name"

    path="myDTO.location.street"
  20. Replies
    1
    Views
    840

    Multiple Attributes

    I am trying to return multiple attribute objects in my model and then use dot notation in the path property of the form:input tag to reference them. But much to my surprise, it does not appear that...
  21. Replies
    11
    Views
    2,581

    I removed @Transactional and put put transaction...

    I removed @Transactional and put put transaction statements in the code. It now gives the following error when I get to tx.commit().

    org.hibernate.SessionException: Session is closed!
  22. Replies
    11
    Views
    2,581

    I've since added ...

    I've since added

    hibernate.current_session_context_class=thread

    to my hibernateSessionFactory config, but now get this error:

    org.hibernate.HibernateException: createQuery is not valid...
  23. Replies
    11
    Views
    2,581

    Thanks...ha, I forgot @Autowired. I now get a...

    Thanks...ha, I forgot @Autowired. I now get a new error once I hit createQuery():

    No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
    ...
  24. Replies
    11
    Views
    2,581

    I am fairly new to spring and hibernate, but each...

    I am fairly new to spring and hibernate, but each time I implement the AbstractSupportDao you defined above, I get a "Could not instantiate bean class [com.x.y.dao.impl.ProductDaoImpl]: No default...
Results 1 to 24 of 24