Search:

Type: Posts; User: Alan F; Keyword(s):

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    821

    Swapping In Different FormBackingObjects

    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...
  2. Thread: DAO Question

    by Alan F
    Replies
    10
    Views
    1,753

    Splendid :-) It's working fine now. Phew!

    Splendid :-)

    It's working fine now. Phew!
  3. Thread: DAO Question

    by Alan F
    Replies
    10
    Views
    1,753

    I think it might be because I am doing this ... ...

    I think it might be because I am doing this ...


    public long getNextSeqVal(String sequenceName) {
    List list = getSession().createSQLQuery("SELECT " + sequenceName + ".NEXTVAL FROM DUAL")...
  4. Thread: DAO Question

    by Alan F
    Replies
    10
    Views
    1,753

    I've suddenly discovered that certain patterns of...

    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...
  5. Replies
    2
    Views
    865

    Thanks, got it working.. You pointed me in the...

    Thanks, got it working.. You pointed me in the right direction. I tried a FileSystemXmlApplicationContext and got it working.
  6. Replies
    2
    Views
    865

    Unit Testing With Multiple Context Files

    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...
  7. Thread: DAO Question

    by Alan F
    Replies
    10
    Views
    1,753

    I've switched to the DBCP datasource and all...

    I've switched to the DBCP datasource and all seems well. Thanks for your help everybody.
  8. Thread: DAO Question

    by Alan F
    Replies
    10
    Views
    1,753

    DAO Question

    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...
  9. Replies
    14
    Views
    1,951

    Brilliant! That worked just great. Thanks.

    Brilliant! That worked just great.

    Thanks.
  10. Replies
    14
    Views
    1,951

    Thanks that clearly solves this problem. But I...

    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...
  11. Replies
    14
    Views
    1,951

    I've put together a simple test application and I...

    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...
  12. Replies
    14
    Views
    1,951

    Hi, I don't have a logger configured.

    Hi,

    I don't have a logger configured.
  13. Replies
    8
    Views
    1,523

    Yes, OK up to that point, but the id does not...

    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...
  14. Replies
    8
    Views
    1,523

    Surely that doesn't work when submitting the form...

    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!
  15. Replies
    8
    Views
    1,523

    Well, it works at least and it wasn't too hard. ...

    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...
  16. Replies
    8
    Views
    1,523

    Thanks for your ideas. You are right about the...

    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...
  17. Replies
    14
    Views
    1,951

    Nobody any thoughts?

    Nobody any thoughts?
  18. Replies
    8
    Views
    1,523

    Add/Edit Entity With MVC

    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...
  19. Replies
    14
    Views
    1,951

    I'm running tomcat from Eclipse and in the debug...

    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...
  20. Replies
    14
    Views
    1,951

    Before I edit (my config files contain some...

    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...
  21. Replies
    14
    Views
    1,951

    Thanks. Any thoughts on why I might have two...

    Thanks. Any thoughts on why I might have two containers. I am using Spring MVC under Tomcat.
  22. Replies
    14
    Views
    1,951

    Two TimerTasks Where There Should Only Be One

    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...
Results 1 to 22 of 22