I have a form where depending on a type value selected in a drop down I use JavaScript to swap in and out relevant form fields for that type. I ideally want to use a different FormBackingObject type...
Type: Posts; User: Alan F; Keyword(s):
I have a form where depending on a type value selected in a drop down I use JavaScript to swap in and out relevant form fields for that type. I ideally want to use a different FormBackingObject type...
Splendid :-)
It's working fine now. Phew!
I think it might be because I am doing this ...
public long getNextSeqVal(String sequenceName) {
List list = getSession().createSQLQuery("SELECT " + sequenceName + ".NEXTVAL FROM DUAL")...
I've suddenly discovered that certain patterns of use cause my DAO to block. I tried switching to C3PO from DBCP but I still get the same thing.
Threads enter the data access/modification methods...
Thanks, got it working.. You pointed me in the right direction. I tried a FileSystemXmlApplicationContext and got it working.
I'm trying to use Junit within Eclipse to deal with unit testing of my Spring MVC application.
When I just had a single application context file I could use a BeanFactory to access my beans, but...
I've switched to the DBCP datasource and all seems well. Thanks for your help everybody.
I am using single DAO (using hibernate) to do all my interactions with the database for an entire web application.
I'm not completely sure if the approach I am taking will scale. In fact I've...
Brilliant! That worked just great.
Thanks.
Thanks that clearly solves this problem. But I removed it and now I get this sort of thing.
13-Nov-2007 12:08:49 org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception...
I've put together a simple test application and I still have the problem. Here is my web.xml, dispatcher-servlet.xml and some console output.
<?xml version="1.0" encoding="UTF-8"?>
<web-app...
Hi,
I don't have a logger configured.
Yes, OK up to that point, but the id does not propagate when I submit the form from the new page. It seems that formBackingObject is called again at this point and I get a new blank object. Looking...
Surely that doesn't work when submitting the form via a POST? I don't quite follow what you mean.
Anyway it seems to be working, so I'm happy enough. Thanks for your input. Cheers!
Well, it works at least and it wasn't too hard.
All I did was add...
<form:hidden path="id"/>
..to my jsp form and modified the formBackingObject method to look like this...
Thanks for your ideas.
You are right about the action parameter being implicit and I've dropped it, adopting code similar to yours. Although your if statement is the wrong way around.
I tried...
Nobody any thoughts?
I'm trying to use the same view (jsp) and controller to both add and edit an entity. I decided to use parameters on the GET request (i.e. ?action=add or ?action=edit&id=2 at the end of the URL for...
I'm running tomcat from Eclipse and in the debug view I can see the following threads. There appear to be two TimerFactoryBeans! I definitely only define one TimerFactoryBean and I only declare a...
Before I edit (my config files contain some confidential info) and post the web.xml and dispatcher-servlet.xml, this is the tomcat log. Can't see evidence of two containers loading.
02-Nov-2007...
Thanks. Any thoughts on why I might have two containers. I am using Spring MVC under Tomcat.
This is probably a result of something really obvious, but the following results in two TimerTasks running instead of just one and I only want one.
The TestTask just prints "Running" to System.out...