汤姆猫 8 升级到汤姆猫 9 和 String[]

huangapple 未分类评论42阅读模式
英文:

Tomcat 8 to Tomcat 9 upgrade and String[]

问题

我们有一个使用Java Struts框架构建的传统应用程序。它在Tomcat 8上运行得非常好,但由于某种原因,我们现在需要迁移到Tomcat 9。但是,当我们将同样的应用程序部署到Tomcat 9时,表单数据没有带上那些类型为String[]的表单字段,这些值都变成了null。

一个场景是: 我们有一个屏幕,用户可以使用复选框选择多个值,每个复选框在选中时都有一个特定的附加id,但是在将此代码部署到Tomcat 9时,复选框的值变为null。

请问有什么建议吗?

英文:

We have a legacy application build in Java Struts framework. it's working absolutely fine up till tomcat 8 now for some reason we are supposed to move to Tomcat 9 but when we are deploying the same application to tomcat-9, form data is not bringing the form fields which are of type String[]. we are having null for these values.

one scenario is: we have a screen where user can select multiple values using checkbox every checkbox has a specific id attached when selected but when deploying this code to tomcat-9 its bring checkbox value as null.

any advice, please.

huangapple
  • 本文由 发表于 2020年4月10日 17:14:32
  • 转载请务必保留本文链接:https://java.coder-hub.com/61137249.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定