We are using Spring framework coupled with IBM DB2 database.The tool that we are using is Websphere Application Developer.We are using IBM DB2 Development center(V8) for developing Stored Procedures....
Type: Posts; User: harry; Keyword(s):
We are using Spring framework coupled with IBM DB2 database.The tool that we are using is Websphere Application Developer.We are using IBM DB2 Development center(V8) for developing Stored Procedures....
Hi Colin,
You are getting nullpointer exception because you are not setting the datasource in the JdbcTemplate object.The extended class should be JdbcDaoSupport.This class has setter and getter...
Hi,
In the MultiActionController, you can pass the command object as the third parameter to the methods that you define.
Then Spring will be able to populate the command object and you can use...
This link might help.
http://forum.springframework.org/showthread.php?t=17961
Hi,
Since you are not passing in the values to the sql insert statement you are getting this error.For each of the parameters you have to give a declaration.
It is similar to what you do in case...
What we did in our project was to have different folders for different environment say Dev for development and so on.Then in these folders we have the environment specific properties file.
We are...
Thanks Andreas.
I would probably change the design to run the sql's as batch and not the stored procedures.
Regards,
harry
Hi,
I don't think queryForList is the apt method in this case,since you are either inserting or updating the data in the database.
You can configure exceptionResolver in spring.Then you will...
Hi Andreas,
You mean to say that I create the storedprocedure class, and call the procedure inside a for loop to excute it as a batch.
Is this the correct approach?
Can't we do something with...
Hi,
I am trying to execute a DB2 storedprocedure as batch using BatchSqlUpdate class.The class runs ,but when I see the number of rows affected it is -1.
I even tried it with jdbctemplate,but...
Hi,
The viewresolver that you have configured will be called for both the formview as well as the successview unless and until you have configured another resolver.
I think the reason why it is...
I have also extended the multiactioncontroller and given my own implementations as was suggested in the forum.
I thought there was something native to the spring which can help me out.
Thanks...
Hi,
The site www.springflix.com is powered with spring.
This link might help.
http://forum.springframework.org/showthread.php?t=15565
Hope this helps.
Thanks for all your replies.
What I want is similar to servlet chaining.Can I do controller chaining in case of spring?.
The called controller can be either be a SimpleActionController or a...
Thanks for the reply.
It does work that way,but can I make spring call that class instead of me calling it.Is there any better way of doing it?
Thanks in advance.
Hi,
In our project we have to call a controller from another controller passing the same request object available in the first controller method.
I need to pass some values from one...
Hi Harsh,
MultiActionController does not support form view.If you want it,you will have to write a custom controller.
This post might help.
...
Hi Harsh,
The saveMethod is similar to the OnSubmit in simpleformcontroller.But to get the populated command object in the method you will have to change the signature of the method.Add the...
Hi all,
I have a multiactioncontroller with validators.
The problem is,some of the methods in multiactioncontroller have the same command object,but I need to call different validators for...
I tried using ClassPathXmlApplicationContext,everything works fine except the jndi configuration which I had done in the WSAD's server configuration.
Is there anyway I can configure it?
I tried using the quartz scheduler,It works fine,.but it has a dependency that the server must be running for the job to run.
What I need is,to run the job without the server being running.
Is...
Thanks,
I did that and now it works.
Hi all,
I have validator classes for each of the methods of the multiactioncontroller.I have the command object going in as the third parameter for all the multiactioncontroller methods.Now when I...
Thanks for your replies.
Actually I have been goin through the Quartz scheduler.
I will get back if I have any queries.
Hi all,
In the current application that i have,all the transactions that are done in the day are exported to the database as a batch.This is done by an administrator logging in to the system.
...