I have a command object - TestCommandObject and 2 controllers - TestController1 and TestController2
dispatcher-servlet.xml relevant TestController1 contents..
Now, both TestController1 and TestController2 have same input
JSP views practically speaking i.e. TestInput1.jsp. This jsp gets its data from
TestCommandObject command object. However subsequent processing of both controllers is entirely different i.e different
logic, different output views and so on.
How should I specify TestController2 in dispatcher-servlet.xml. Should I use
1) 2 different command objects and same jsp view i.e tco1,tco2 and TestInput1? OR
2) same command object but different jsp views i.e tco and TestInput1,TestInput2 OR
3) allow 2 controllers to use same command object i.e tco and same jsp input view i.e TestInput1.OR
4) use 2 diiferent command objects tco1,tco2 and 2 different jsp views TestInput1,TestInput2 for 2 different controllers. Although I think that this option is not a good choice.
Any tips/help would be highly appreciated.
Thanks