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...
Type: Posts; User: bmelloni; Keyword(s):
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...
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...
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...
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.
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...
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...
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
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...
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...
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...
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...
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">...
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"...
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...
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...
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...
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...
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...
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...
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...
duh! Thump, thump, thump goes the head against the tabletop.
Thank you.
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...
This is probably embarassingly simple.
Does anybody know why this works:
String sql = "SELECT count(*) from myTable where myColumn='"+myValue+"'";
int count =...
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...
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. ...