Hi
I'm getting really frustrated over this. I've spent two days trying to get this to work.
Is there really no working sample in the Spring community that makes use of the <render...
Type: Posts; User: mah01; Keyword(s):
Hi
I'm getting really frustrated over this. I've spent two days trying to get this to work.
Is there really no working sample in the Spring community that makes use of the <render...
Hi
I'm looking at the samle application swf-booking-mvc.
I'm wondering where the modelAttribute of the search form in hotelSearchForm.jsp is set? I can't find anywhere in the code where it is...
Hi
I set sessionTransacted to true in my DefaultMessageListenerContainer because I want messages redelivered if the listener fails (i.e. throws RuntimeException). By the way, is there another way...
Hi
I don't understand what the problem was but I managed to solve it.
I didn't show you guys the part of my config where I got the url, username etc.
This is from DataAccessContext.java:
I noticed a copule of interesting things in the log. Maybe you guys understand what it means?
Look at the bold parts, it seems like the url bean is created twice (failing on the second attempt)
...
I guess that maybe it´s not that easy to figure out from just the exception stacktrace since there are no answers :)
Lets see if I can add some more information that might make it easier to...
Hi
Could someone please explain to me what could cause this exception?
Caused by: java.lang.IllegalStateException: Could not register object...
Is this really the correct part of the forum for this question?
Anyway, your question is just to big to answer. Could you be a little bit more specific in what you're having problems with?
Are...
Hi again
I have a follow up question :)
This is not really a big problem, just a little anoying.
In the example below, one can see that just because the configuration method throws...
Thanks Chris!
This is exactly why I asked. Thank you for the explanation. I will declare the method to throw the exception and let Spring deal with it :)
Because it is just as you say, I want...
Hi
Let´s say that I'm creating a jms queue like this:
import com.sun.messaging.Queue;
@Bean
public Queue batchOrderQueue() {
return new Queue("queueName");
Thans for your reply. It was as I suspected then.
Anyway, this is how I solved the problem. I don't like the way I had to do it because BatchOrderService is no longer immutable.
@Override...
Hi
I basically want to junit test the transactional behaviour of a service class that is marked @Transactional.
Everything works just fine when I retrieve the bean from the context and use it....
I found the problem. It seems like you have to use the JdbcTemplate to get the transactions to work. Is this documented anywhere? I sure couldn't find it and spent over two days on this issue :( It...
Hi
I've read a lot of threads on the forum on this topic but I can't figure it out. I hope you guys can help me.
I think that I'm following the advice given in these threads:...
I'm sorry to say that I didn't find any solution to this problem other than to merge my two controllers.
Also, make sure that both the content type and the character encoding is set in your filter. This is the filter we use (which works for us)
public class CharacterEncodingFilter implements...
Hi
We had some trouble with uri encoding in our project. We also use Tomcat 5.5.
In addition to the CharacterEncodingFilter (which I assume you're using to set the encoding to utf-8) you have...
Thanks man, you were right. I'm running Eclipse with the Tomcat plugin. I was using the reload feature of the Tomcat plugin alot when I was doing modifications to the spring config.
I restarted...
Hi
I have a strange problem. I try to set a String property on a controller but it throws an exception. There is no problem setting a boolean property on the same controller though. I also don't...
Thank you very much Jörg!
You were right, I think I found the answer to the array thing here: injecting arrays into beans
// Mattias
I couldn't get the registrars to work so this is what I did. I hope there are no thread issues there because it works now :)
The controller:
...
public final class EditReminderController...
I thought I should follow your suggestion using the registrars.
I created two registrars, one for Date and the other for Frequency.
<bean id="customFrequencyPropertyEditorRegistrar"...
Thanks, I will definitely have a look at that.
Maby having only one controller is the way to go. I thought that separating them, having one controller for the form and one for the list would be...
Now that I've had a look at PropertyEditorRegistrar, I think I'll use that approach instead :)
It looks very nice to just create a class where I register and configure all my PropertyEditors,...