Search:

Type: Posts; User: neeraj_cmu; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. How to show the input value in case of error with default pe

    Spring has some default propertyEditors using which the inputvalue 'number of employees' gets transformed into the java.lang.Integer on the command side.

    In case when the input is an invalid...
  2. Replies
    1
    Views
    878

    How to get custom message

    Spring comes with custom editor for BigDecimal. In case of wrong user input the default message the comes on screen is



    Failed to convert property value of type [java.lang.String] to required...
  3. The solution I posted is straight from the 'Java...

    The solution I posted is straight from the 'Java development with the spring framework' book by interface21 team. FYI.
  4. It was printing to string of date with timestampt...

    It was printing to string of date with timestampt and everything.

    I solved the problem by following code. Still clueless about why get method is not being called.



    <fmt&#58;formatDate...
  5. getAsText() is never called; JSP page doesn't get formatted

    The model has
    private Date issueDate; It also has getters and setters.

    I have the customDate editor registered this way in SimpleFormController.


    protected void...
  6. Replies
    10
    Views
    4,297

    Ok. So I should not create multiple instance of...

    Ok. So I should not create multiple instance of applicationcontext. Now the question is how do I get a reference to the applicationcontext in NextNumberGenerator class. The instance of this class...
  7. I wonder what's the reason behind it. Why the...

    I wonder what's the reason behind it. Why the restriction?
  8. How to pass reference to Configuration object for auditing

    For auditing purpose I have AuditLogInterceptor which implements Interceptor. The signature for method onFlushDirty is given below.



    public boolean onFlushDirty&#40;Object entity, Serializable id,...
  9. Replies
    10
    Views
    4,297

    In the previous reply I mentioned that I would...

    In the previous reply I mentioned that I would try copying all the applicationContext-*.xml to ~/WEB-INF/classes. If I do that then I get following exception.




    It means that route is not...
  10. Replies
    10
    Views
    4,297

    In the application the context is loaded using...

    In the application the context is loaded using the listener. The application also uses Hibernate to deal with the DB. For one of the tables the primary key is not auto generated. The application...
  11. Replies
    10
    Views
    4,297

    I'm sorry but I'm still lost. I have a...

    I'm sorry but I'm still lost.

    I have a standard war file deployed on tomcat. All application-*.xml files reside at ~/WEB-INF/ not under ~/WEB-INF/classes. It means application-*.xml files are not...
  12. Replies
    10
    Views
    4,297

    ClassPathXmlApplicationContext not working

    String&#91;&#93; paths = &#123; "/WEB-INF/applicationContext-*.xml",
    "/WEB-INF/action-servlet.xml" &#125;;

    ApplicationContext context = new ClassPathXmlApplicationContext&#40;paths&#41;;
    changeRequestManager =...
  13. Upload issue: request.getParameterNames() returns null

    I'm having trouble implementing upload feature using Spring-MVC.

    I checked out the imagedb demo and it works just fine. However in my application, the values are not bound to the command object...
  14. Replies
    2
    Views
    1,416

    Thanks keith. Looking forward to next release. ...

    Thanks keith. Looking forward to next release.

    I just don't know why the build keeps looking for ~/spring-webflow-preview3/lib file. I alredy mentioned in the build.properties file that SWF jar...
  15. Replies
    2
    Views
    1,416

    Can't compile the sample examples

    Is it just me. The build to compile the sample examples is by far the most puzzling build I have seen. I tried to debug it but just can't get my hands around it. Can't really put the problem here and...
  16. Replies
    9
    Views
    1,388

    Every single example of spring transaction I have...

    Every single example of spring transaction I have seen, all of them have a '*' in the end. I don't think that will solve the problem but it doesn't hurt to try.



    <bean id="txProxyTemplate"...
  17. Replies
    2
    Views
    2,470

    I would turn the debug mode on for spring and...

    I would turn the debug mode on for spring and will watch the log.

    log4j.logger.org.springframework=DEBUG
  18. Replies
    1
    Views
    3,984

    Two forms in one jsp page

    In Spring-MVC usually the name of the action is not mentioned in the form tag of the jsp.

    I need two forms in one single jsp page. What's the best way to handle this case? When submitted from...
  19. Replies
    6
    Views
    1,432

    Set the logging mode for ...

    Set the logging mode for
    log4j.logger.org.springframework.orm.hibernate3.support=DEBUG and opensessioninviewfilter will log a message before opening and closing a session. In this way you can find...
  20. Replies
    3
    Views
    15,886

    Could you please show me an example of the cache...

    Could you please show me an example of the cache configuration generation using xdoclet?
  21. awesome. Thanks a lot.

    awesome. Thanks a lot.
  22. I don't think it's possible. If you find an...

    I don't think it's possible. If you find an answer do post it.
  23. Replies
    1
    Views
    5,705

    Could you please mention if you are loadin the...

    Could you please mention if you are loadin the collection lazily or not? If you are doing a lazy loading , then the call to load the collection will be made when it's used and that should fetch you...
  24. Sorry, I missed that. Try overwriting...

    Sorry, I missed that. Try overwriting onbindandvalidate and print out the value of page number. This is just to make sure that the page number is progressing to higher order from click to click.
  25. I am using AbstractWizardFormController in my...

    I am using AbstractWizardFormController in my current project. I noticed that for the bean id "addMenuItemFormtest", all the list of pages is not mentioned.
    Given below is the bean definition from...
Results 1 to 25 of 41
Page 1 of 2 1 2