简体   繁体   English

在Spring MVC中处理多种形式

[英]Handling multiple forms in spring mvc

In my jsp i am having multiple tabs containing separate forms,see below image: 在我的jsp中,我有多个包含单独表单的选项卡,请参见下图:

在此处输入图片说明

Problem: Since all tabs are present in same JSP, it is reached up to 1300 lines. 问题:由于所有选项卡都存在于同一JSP中,因此最多可以达到1300行。 which can not be neglected. 这是不容忽视的。

Since I am using spring mvc,I need to bind all 4 objects(ABC,ABC SUB1,ABC SUB2,ABC SUB3) while returning view, which is also not acceptable. 由于我使用的是Spring MVC,因此我需要在返回视图时绑定所有4个对象(ABC,ABC SUB1,ABC SUB2,ABC SUB3),这也是不可接受的。

I am thinking of dividing this whole page into 4 different jsp's (and including jsp's based on the requirement or event), but still not satisfied with my solution. 我正在考虑将整个页面分为4个不同的jsp(并根据需求或事件包括jsp),但仍然对我的解决方案不满意。

Can any body give me any other solutions...???? 有没有人可以给我其他解决方案... ????

Thanks .....!! 谢谢 .....!!

使用Ajax一次仅提交您需要的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM