Yes, I tried that too. It didnt work.
ie, my command object was not properly populated with field values.
My form looks like below:
<form>
<input type=text name="subject" value="2020">
...
Type: Posts; User: arumugamkasi; Keyword(s):
Yes, I tried that too. It didnt work.
ie, my command object was not properly populated with field values.
My form looks like below:
<form>
<input type=text name="subject" value="2020">
...
Hi,
I want to pass array of Command objects to controller. Has anyone passed array of command objects (say set of Subjects that are sent to controller in a single form submission for a...
Yes friend.
It is:
<!-- Message resource declaration -->
<bean id="messageResource" class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basename">...
Hi friends,
I m getting following exception when trying to use message bundle. I dont know if spring is able to find my message, which is in class folder of app.
EXCEPTION:
===========...
Friend,
Ignore TransacitonFactoryProxyBean. Just use Auto-proxy feature as I have mentioned in my file.
If you are not sure of how to use it, just go through docs. It is very easy.
Below...
Hi friend,
it is actually very simple. Just apply Spring Transaction over your business method. How to do this? Again simple. Declare hibernateTransaction. Then declare an advisor which would have...
Hi Friend(s),
I have solved the problem by using Transaciton Manager to commit transactions. It was actually very easy in Spring. I made it look very hard.
Regards,
Aru K
Friend,
I corrected my log4j configuration and now the log reads as follows.
LOG
===
16:21:15,751 DEBUG SessionImpl:560 - opened session
16:21:15,751 DEBUG SessionImpl:789 - generated...
Hi,
When application is loaded, I only see the below mesgs.
Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@9403a3 [ connectionPoolDataSource ->...
Hi friend,
I dont use Transaction Manager. Below are my config for spring and log4j. I have to inform you that log4j doesnt give me details as it does normally under debug mode when building a...
Costin,
Thanks for your reply. As a new user, I dont know about OpenSessionInViewFilter/Interceptor patterns. I just use Spring MVC as explained in Spring In Action book/documentation available in...
Better rely on DB specific auto-generated keys (like seq in Oracle).
When Hibernate saves ur object (unsaved, transient) it will automatically update its identifier field. So, as soon as object is...
Hi,
How can I make changes made using Hibernate (hibernateTemplate's save) permanant? If I call save method, I see expected SQL from Hibernate in console but it doesnt update the database. Even...
Friend,
I think I have solved it. From the trace, I was able to identify what was reason for error. It was looking for net.sf...... which is available only in Hibernate 2.x. Im currently using...
Yes friend, it is there. But I dont know why it cannot find the class from the Jar.
I actually have tried odmg.jar, db-ojb-1.0.0.jar etc. But no use. (I didnt try by putting these jars into lib at...
Hi,
When I try to create sessionFactory using following code, I get exception. Please let me know if you have any idea to solve.
sms-servlet.xml
===========
<bean id="sessionFactory"...
Costin,
Still I get the same error when Factory is being built. I have copied odmg.jar file into my lib folder and restarted the server. When it was coming up, it threw the same error.
...
Hi friends,
Im getting following error though I have put correct jar file (db-ojb-1.0.3.jar) in lib folder. Please help to resolve this simple but frustrating issue.
Or let me know how I...