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...
Type: Posts; User: mamun; Keyword(s):
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...
Problem is solved.
In java based configuration, classpath:lebels should be classpath:labels
Same is working if I go for XML based configuration as below:
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property...
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...
Yeah thats true but
’
\’
This works :)
I am looking for simple example application using DWR+Spring+Hibernate .
Can anyone help me?
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...
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...
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.
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...
What if there are arguments for the ${error.code}
Robh please help me in this matter.
i want to show error messages easily and nicely...
its very urgent.
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:hasBindErrors...
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...
what wrong i asked? is there no one who can answar this question ... :(
is there any way to pass message with RedirectView() ?
i can do someting like the following >>>
map.put("message", "My Message");
return new ModelAndView(new RedirectView("view.html"), map);...
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...
The answar is no. Pet and Visit Objects are extended from Entity and in Entity you will find isNew() method.
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(HttpServletRequest...
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 >>>
...
Its very cool and nice solution.
Thanks Alef.............
Mamun
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...