• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

update to struts2.3.15.1 breaks dot notation in jsp

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We updated to Struts 2.3.15.1 for security purposes. When we did we noticed that we lost some ability to set values using the dot notation method in the jsp. If we have a map that takes the Foo class and Foo has a Bar class, we had been previously successful in setting the Bar class for Foo using a hidden field. When we updated, the Bar class is now coming across as null whereas before the Bar class - in the sample below - would have been created for Foo and given an id value of 12.

Is there a syntax that we need to be using in our jsp to get the previous results with the new version of struts?





 
Ranch Hand
Posts: 439
Hibernate Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Although I never came across this situation , but it seems to be a pretty serious issue. I have been using struts v2.3.12 without any issue. Will post back if I face any issue with 2.3.15.1
 
troy parrish
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We discovered the issue: Struts 2.3.15.1 and later has limited the parameter name length in the Parameter Interceptor, which we use. The default limit is 100 characters, some of our parameter names exceeded that value and consequently were being ignored by the interceptor and not being mapped to the value stack. Solution: In Struts.xml



This resolved our problem. The value can be set to your needs, but exceedingly high values defeats the security aspect of this setting.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for checking back in with us after solving it. I tried replicating your issue but didn't have any luck.
 
Paper jam tastes about as you would expect. Try some on this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic