Search:

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

Page 1 of 6 1 2 3 4

Search: Search took 0.02 seconds.

  1. Solved the problem. I tried the...

    Solved the problem.

    I tried the HttpSessionListener before your reply but it got called as soon as the session started. Useful for some things but not what I specifically needed (and failed to...
  2. Clean way to execute a method on session start.

    I have a Spring MVC application where users may go directly to any page via a bookmark. There are several controllers managing those pages.

    I need to execute a common piece of code during the...
  3. This is a very annoying feature of Spring...

    This is a very annoying feature of Spring PropertyOverrideConfigurer.

    I agree that when ignore is set to false it should log a WARN or ERROR. But when it is set to true it should be no higher...
  4. Replies
    3
    Views
    234

    Anything else? I moved all the classes into...

    Anything else? I moved all the classes into WEB-INF/classes and I dropped to DEBUG. The servlet context shows as being loaded, but still no recognition and no clues in the logs.
  5. Replies
    3
    Views
    234

    Annotated mappings - puzzling problem

    This is a strange one, and has stumped me for a week. Any hints even as to what to look into / debug next would be greatly welcome.

    - The application runs perfectly in jBoss or Tomcat started...
  6. JPA recursive employee-supervisor relationship

    I have an employee view. I have no insight as to how the data for the view is collected but I know it comes from multiple tables.

    The view has columns for employeeId and supervisorId. Among...
  7. Ctrl-F for "RedirectAttributes" fails to find a...

    Ctrl-F for "RedirectAttributes" fails to find a single match in the reference guide: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html
  8. As I stated on my original post I suspected that...

    As I stated on my original post I suspected that the redirect was wrong.

    I looked at the documentation again and I see nothing that tells me what to return from a process method (submit()) so...
  9. Spring 3.x: displaying errors and messages

    As I moved from 2.x to 3.x I am having trouble with something as basic as displaying errors and messages. I am not talking about normal validation, I am talking about errors and success messages...
  10. Multiple button form submit + Javascript? form submit

    I have a several buttons in a page.

    Some buttons are for the page as a whole. I was told that the "Spring way" of handling them is to use "submit" buttons and to rely on the id/name of the...
  11. Found a variant that isn't handled by the above:...

    Found a variant that isn't handled by the above:

    - In the same form I have a list that must have buttons/links that are specific to the line item it displays. Let's call the @RequestMapping...
  12. It finally works. For those looking for an...

    It finally works. For those looking for an answer, here is the complete solution:



    <form:form id="pageForm" name="pageForm" method="post" commandName="invoicesCmd" action="submit.htm">...
  13. I tried it with that approach. Based on your...

    I tried it with that approach. Based on your description it should be trivial but... no luck. It completely ignores the params. Why?

    Relevant snippets:


    <form:form id="pageForm"...
  14. To all reading this thread looking for a...

    To all reading this thread looking for a solution:

    - You can use a 2-3 line JavaScript to set the form's action and submit it (It can be generic if you pass the form name and action as...
  15. Spring MVC: Real-life annotation challenges. Multiple buttons on a form.

    Annotations are great for simple apps. Lots of examples, simple configuration. Unfortunately as you try to do something "real" you hit complexities not covered on any example or tutorial. And with...
  16. The explanation on the SpEL web page was very...

    The explanation on the SpEL web page was very clear and the solution was trivial to implement.

    Now I can have a common context file and externalize all server-specific values to server-specific...
  17. PropertyOverrideConfigurer and LIST properties

    I fell in love with the PropertyOverrideConfigurer. Using the following configuration it lets me have a context file that is identical between DEV, TEST and PROD servers while keeping...
  18. Is it valid to return Null from RowMapper?

    I have a situation where a RowMapper recognizes some of the data in the row to be invalid and thus the row should be ignored. In this particular case one of the object returned has validation during...
  19. Known and quite old Spring bug: Spring can't...

    Known and quite old Spring bug: Spring can't handle complex command objects with nested collections.

    I created InvoiceItem.setAccountStr() and InvoiceItem.getAccountStr() that translate between...
  20. jBoss4.3+spring2.5.6 to jBoss5.0.1+spring3.0.5: Form changes no longer in command.

    Web application has been working fine for 2 years. Moved it from jBoss 4.3 + Spring 2.5.6 to jBoss 5.0.1 + Spring 3.0.5. Now when I change values in a form's edit fields, the updated values no...
  21. Replies
    2
    Views
    585

    duh! Thump, thump, thump goes the head against...

    duh! Thump, thump, thump goes the head against the tabletop.

    Thank you.
  22. org.springframework.jdbc.object.StoredProcedure: as bean

    I wish to use a class inherited from this abstract class as a bean in the Spring context.

    I see that it has a setDataSource() method, but I don't see get/setName() methods even though there is a...
  23. Replies
    2
    Views
    585

    Prepared statement problem

    This is probably embarassingly simple.

    Does anybody know why this works:



    String sql = "SELECT count(*) from myTable where myColumn='"+myValue+"'";
    int count =...
  24. Marten, I hear what you are saying but I'm not...

    Marten, I hear what you are saying but I'm not understanding how. Let me explain what I understand and perhaps you can point me to the spot where my logic breaks:

    - Let's say we have application...
  25. Making DAO relying on RoutingDataSource thread safe

    I have a library that provides access to many databases, all with the same table structure. The library has its own application-context.xml, and is exposed through a service bean in that context. ...
Results 1 to 25 of 143
Page 1 of 6 1 2 3 4