Search:

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

Search: Search took 0.03 seconds.

  1. Custom HTTP Error 404 - Annotation based setting Spring 3.2

    Hi

    If possible, how can I implement annotation based custom HTTP 404 error page using Spring 3.2.1?
    I looked for ways in various forums but couldn't find any clear answer.

    I also tried...
  2. Problem is solved. In java based configuration,...

    Problem is solved.
    In java based configuration, classpath:lebels should be classpath:labels
  3. Same is working if I go for XML based...

    Same is working if I go for XML based configuration as below:

    <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
    <property...
  4. javax.servlet.jsp.JspTagException: No message found under code 'menu.home' for locale

    Hi

    I am trying to add i18n support in a sample app but getting error as mentioned in the subject. I am using total Java based configuration and Glassfish app server. Below is the snippet of the...
  5. Replies
    2
    Views
    1,608

    Yeah thats true but ’ \’ This...

    Yeah thats true but
    &rsquo;
    \&rsquo;
    This works :)
  6. Replies
    1
    Views
    1,301

    DWR+Spring+Hibernate example

    I am looking for simple example application using DWR+Spring+Hibernate .

    Can anyone help me?
  7. Since I am using spring's hibernate dao support,...

    Since I am using spring's hibernate dao support, spring is transleting HB exceptions. Now how can i customize the exception return by spring for meeting my requirement. Are you suggesting to parse...
  8. How can i determine foreign key violation exception

    I am using spring+hibernate+postgreSQL 7.4

    I want to show customize message for the foreign key violation exception. How can it be done. Can i get the postgreSQL error code for foreign key...
  9. Replies
    9
    Views
    2,184

    I finally created a jsp tag to resolve the errors...

    I finally created a jsp tag to resolve the errors as Cowboy Bob said.

    I didn't find any other way.

    Thanks to all of you for replying in this thread.
  10. Replies
    9
    Views
    2,184

    I understand what you said. But my question was,...

    I understand what you said. But my question was, if there is arguments in the resolved code like {0} not found then
    <spring:message code="${error.code}" /> will display {0} not found, not the whole...
  11. Replies
    9
    Views
    2,184

    What if there are arguments for the ${error.code}

    What if there are arguments for the ${error.code}
  12. Replies
    9
    Views
    2,184

    Robh please help me in this matter. i want to...

    Robh please help me in this matter.
    i want to show error messages easily and nicely...
    its very urgent.
  13. Replies
    9
    Views
    2,184

    Nice way to display global error messages

    Hi

    Can anyone show me a nice way to display global error messages.
    I have a common "messages.jsp", which i have included top of all jsp's. Here is the code.

    <spring&#58;hasBindErrors...
  14. I ended up with a nice solution through using...

    I ended up with a nice solution through using interceptor.
    what it actually does is, i save messages in session then redirect and print the message in jsp. the interceptor removes messages from...
  15. Replies
    4
    Views
    1,606

    what wrong i asked? is there no one who can...

    what wrong i asked? is there no one who can answar this question ... :(
  16. is there any way to pass message with...

    is there any way to pass message with RedirectView() ?

    i can do someting like the following >>>

    map.put&#40;"message", "My Message"&#41;;
    return new ModelAndView&#40;new RedirectView&#40;"view.html"&#41;, map&#41;;...
  17. Replies
    4
    Views
    1,606

    Custom editor for String

    I think this is a very simple question :)
    I want to set custom editor for any variable of my command class whose type is String. If String is empty then custom editor will set that variable value...
  18. The answar is no. Pet and Visit Objects are...

    The answar is no. Pet and Visit Objects are extended from Entity and in Entity you will find isNew() method.
  19. Replies
    2
    Views
    4,705

    Without help of bean class i cannot do that, so I...

    Without help of bean class i cannot do that, so I just take a list in my bean class and set the bean as command object.

    Modified Code >>>

    protected Object formBackingObject&#40;HttpServletRequest...
  20. Replies
    2
    Views
    4,705

    Problem of using list as command object

    I have a list as command object. Each item of the list is an user object. I want to set a property of each item of the list from jsp, but i cannot do that...

    Here is the controller code >>>
    ...
  21. Replies
    2
    Views
    1,465

    Its very cool and nice solution. Thanks...

    Its very cool and nice solution.
    Thanks Alef.............

    Mamun
  22. Replies
    2
    Views
    1,465

    Catching Hibernate Exception

    Hi,

    I am using Hibernate for Database Access. I have a single controller for doing both 'add' and 'edit' to database and the controller extends SimpleFormController. To place a command object in...
Results 1 to 22 of 22