Read Multiple Input Files
Hi,
I am a total newbie with Spring Batch. I need to read 2 input files and write data to the database.
My scenario:
File A:
A, B, C
File B:
XXX
YYY
ZZZ
I need to write AXXX, BYYY and CZZZ into the database.
How do I read two different file?
Any help will be highly appreciated!
problem with the Simple form controller
Hello,
I'm using Spring MVC, in the menu i have a link to update some informations, so i put a link to a page, and i configure the controller inherited from simpleformController, and in the method formBackingObject like this:
protected Object formBackingObject(HttpServletRequest request) {
ParameterList listParameters = new ParameterList();
listParameters.setParameters(parameterManager.getA llParameters());
return listParameters;
}
i got the list and the values of theses informations, and when i want to update these information, i put the tratement in the method onSubmit :
protected ModelAndView onSubmit(HttpServletRequest request,
HttpServletResponse response, Object command, BindException errors)
throws Exception {
ParameterList listParameters = (ParameterList) command;
List<Parameter> params = listParameters.getParameters();
for (Parameter parmeter : params) {
parameterManager.setParameter(ParameterCode.valueO f(parmeter
.getParameterName()), parmeter.getParameterValue());
}
return new ModelAndView("admin/Success");
}
And the configuration of the servlet file is like this:
<bean name="/admin/modifierParametres.do" class="net.maboite.web.controlleur.utils.ManagePar ametersControlleur">
<property name="sessionForm" value="true" />
<property name="commandName" value="listParameters" />
<property name="commandClass"
value="net.maboite.web.service.utils.ParameterList " />
<property name="formView" value="admin/modifierParametres" />
<property name="parameterManager" ref="ParameterServiceTarget" />
</bean>
all worsk perfectely when i click to the link on the menu,
but the problème is when i want to open this page from another controller like this:
return new ModelAndView("admin/modifierParametres", model);
there is nothing.
I tried with this instruction:
return new ModelAndView(new InternalResourceView("modifierParametres.do"));
but this instruction call the method formBackingObject and the method Onsubmit together.
Thank you for your help