英文:
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.
专注分享java语言的经验与见解,让所有开发者获益!
评论