Sergey Chunayev

Greenhorn
+ Follow
since Jan 24, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sergey Chunayev

Do you want to add just one address at a time, or you want to have the ability to add several addresses dynamically on the same form?
Concurrency problems may occur only in situations, when your code is not synchronized. It doesn't depend on using either Spring, or any other framework. Concurrency problem in your singleton may occur if there are possibility of race conditions or dirty reads. If you use your singleton for getting some unmodifiable data, there will not be any problems, unlike the situation, if your singleton has get/set methods which aren't synchronized - here are potential hazards. The bottom line: to prevent concurrency problems use synchronization. Spring has nothing to do there, it's just a container of your classes that you have designed and implemented.
I'm not sure if it's possible. Spring allows you to inject values into your bean at the time of creation of this bean. But you can not get or read values of bean's properties there.
You can try to do a trick with templates in your DataAccessContext:

At least, with this solution you don't need casting when invoke this method.
Hi, you set incorrect value for the "prefix" property of your view resolver. It must start with /WEB-INF/. In your case it should be the /WEB-INF/jsp/ value
Hi, may be my solution will be helpful for your trouble.
Try to do the following:


Then, in your method showAll() just add at the end something like this:


May be this is not so elegant solution but I hope that it will help to set the appropriate value to the variable showAllAction of your command object.