Thanks for that information.
Will look into it and get back.
Type: Posts; User: ksriram; Keyword(s):
Thanks for that information.
Will look into it and get back.
Hi All,
I have just completed the project in spring.I compared it with the one given in the spring distribution.
Actually i have this huge servlet xml, which also includes hibernate...
A simple workaround would be to catch the null pointer exception and give a message to the user.You can also look into ExceptionResolver.
In your code how are u actually passing the list to the jsp page ?
And if u want to display the items in the list, use <form:select> tag.
I am still encountering the same error.I have added the UsersByUserNameMapping in the servlet xml.Here is my servlet xml :
<bean id="authenticationDao"...
Hi,
Does acegi require a fixed format of user and authorization table.
And if does support custom user classes then how should i specify the query in the authentication provider bean.
This...
Hi,
As mentioned in the previous post, i am actually going through the document, but stuck in a place.
The param value is a class that would implement javax.servlet.Filter.
Whether i should...
Ok.I have included the jar.
Now i would be using the filters for authentication.
Hi,
I am planning to use acegi security for my applications authentication.Do i have to download the complete zip file or just include the necessary jars for acegi security.
Hi,
Any suggestion for this problem
Can anyone suggest me on how to use DataIntegrityViolationException.I hope this would resolve my problem.
I am getting an org.hibernate.exception.ConstraintViolationException: when i try and enter duplicate data.
I want convert this exception to error message into an error page and display it in the...
yes i want to show that exception as a message to the user.Like the data already is in the database.
Hi,
How to handle the exception that is thrown by hibernarte and show it to the user as a message.
For example, if i have a unique constrain for a column and try to enter the same data in the...
I have actually done that.But i have a problem now.
There are 5 fields in my page rather text boxes.If the user tries to enter a special character in any of the text box an error message should be...
Hi,
I want to validate the special character that are entered by the user.Excatly i want to discourage users rather throw a error message if the user tries to enter special characters such as *...
I got it.Thanks for the input.
I have already put that code in the controller.
My doubt is, how to display that error message in the jsp page.
Can u give me an example
Hi,
I want to validate the date format in the page.I learn t that it can be done by using the ResourceMessageBundleSource.
Can someone site a an example on this.
I have got the result.
The following code was added in the controller class :
protected Map referenceData(HttpServletRequest request,Object command,Errors errors)throws Exception {
Map...
Is it that i have to bind the error in the controller.
Can anyone provide some suggestions
Well, when the validation happens, and the error message is thrown, it does not continue further to the controller.
If i write a referenceData method how it would be called ?
And what to write in...
To be precise with my problem statement :
Action
*****
1) When my page is first loaded, the drop down box in the page would be populated with state_id's.
2) The user would select a state_id and...
Hi,
I have used validator interface to validate fields in my form.Actually my form has drop down box with values picked from the data base.
Normally i have written validation for empty...
How to create a property editor for options tag ?