Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-26 Thread Heikki Hyyrö
Hi, I would of course *love* to provide a small example, but it seems a bit difficult (would probably require quite considerable effort for just that purpose). The application in question contains e.g. 100+ JSP files and the pages are composed in a component-wise/hierarchical manner with the

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-26 Thread Heikki Hyyrö
Thanks Lukasz, and sorry about the confusion! Yes, I did browse through some of the release notes after your and Wolfgang's comments regarding xwork2 packages. At that point I then added name="struts.allowlist.enable" value="false"/> in struts.xml. But it seems I at the same time also accident

Re: Facings issues while migrating from Struts 2.5.x to 6.7

2025-01-23 Thread Heikki Hyyrö
Dear all, I am having somewhat similar problems after upgrading from 6.3.0.2 to 7.0.0. It has become very difficult to refer to variables inside JSP code! The first symptom I inspected was quite identical to Murali's problem: referring to an attribute via the iterator variable name does not s

Re: Struts 6.7.0 and xwork2 packages

2025-01-23 Thread Heikki Hyyrö
Thanks Wolfgang, this was the culprit for that particular problem! But well, after disabling annotations, the app started to have other problems. I will write about that as a reply to another more related thread. -Heikki Wolfgang Knauf kirjoitti 20.1.2025 klo 23.12: Hi Heikki, your descrip

Re: Struts 6.7.0 and xwork2 packages

2025-01-20 Thread Heikki Hyyrö
Dear all, I might(?) have a similar problem. When I upgragded Struts 2 version from 6.3.0.2 to 7.0.0 and replaced xworks2 imports by their struts2 counterparts, one problem is that the application's actions no longer receive parameters from html forms. I suppose this could be caused by an int

Tiles errors in Struts versions > 6.3.0.2

2024-10-01 Thread Heikki Hyyrö
Our web application based on Struts 2 + Tiles framework starts to give errors on some jsp pages if I try to use a newer Struts version than 6.3.0.2. Exactly the same codebase works fine on previous Struts versions (the only changes are in the pom file and concern the versions of struts2-core,

Re: Action path prefix rules?

2020-08-14 Thread Heikki Hyyrö
Sorry, my post obviously had a typo. I was supposed to write the link open tag as . -Heikki Heikki Hyyrö kirjoitti 14.8.2020 klo 11.47:     Link to bar-action - To unsubscribe, e-mail: user-unsubscr

Action path prefix rules?

2020-08-14 Thread Heikki Hyyrö
Hi, I am a bit confused about the rules concerning mapping URL paths to actions. Let's say that I have a Struts application running at example.com with the app name "myApp". Then the usual path to access a Struts action named "foo" would presumably be example.com/myApp/foo.action Now, it se

Passing a parameter from an interceptor to an action

2017-03-26 Thread Heikki Hyyrö
Hi, I would like to pass a parameter from an interceptor to an action, but am not sure what is a proper way to do it if I also want to ensure that a parameter with the same name cannot be injected into the action as a request parameter. I have set the interceptor to add the parameter into th

Re: Problem reading a resource file (migrating 2.3.29 --> 2.5.10)

2017-03-11 Thread Heikki Hyyrö
11.03.2017, 09:20, Lukasz Lenart kirjoitti: This is do the changes in ActionSupport's dependencies, you must inject them first to have access to resource bundles. Instead your approach with singleton you can use something like this public class DbConnectionManager { public DbConnectionManag

Problem reading a resource file (migrating 2.3.29 --> 2.5.10)

2017-03-10 Thread Heikki Hyyrö
Hi, I decided to migrate a Struts-based application from Struts 2.3.x to 2.5.x. The application worked without problems with Struts version 2.3.29. After updating to 2.5.10, the application no longer seems to be able to read a root-level resource file "package.properties": calling getText("so

Re: Mysterious(?) carriage returns

2015-04-06 Thread Heikki Hyyrö
Chris Pratt kirjoitti 7.4.2015 kello 0.32: > > I believe line breaks in HTTP are always represented as pairs, > regardless of the Client or Server OS's Thanks for the tip; it helped me to look for the right thing and verify that HTML 4.01 specification indeed states exactly what you said: ht

Mysterious(?) carriage returns

2015-04-06 Thread Heikki Hyyrö
Hi, I have been stumped by the following problem: newlines within text received from an html form show up in the form ”\r\n” in our Struts 2 -based application. I am wondering how this is possible because I have verified the following: 1) The system is running on OS X or Linux, so the OS defau

Re: Anyway to map properties to different request names?

2014-11-05 Thread Heikki Hyyrö
Paul Benedict kirjoitti 5.11.2014 kello 22.54: > It bothers me that the Java programming model dictates the parameter names. > In theory "personId" could be sent as "a" -- although a variable named "a" > in Java is bad naming conventions. There isn't a good technical reason to > keep this 1:1 mapp

Re: Struts 2 and automatic ids

2014-09-21 Thread Heikki Hyyrö
Lukasz Lenart kirjoitti 21.9.2014 kello 11.48: > Can you prepare some exact example app? Would the example snippet at the bottom be enough? It shows a slightly cleaned version of one form we use. The form basically consists of a table that lists the users of the system. Each user can be assign

Re: Html-encoding to UTF-8: hidden field vs. other fields?

2014-09-21 Thread Heikki Hyyrö
Heikki Hyyrö kirjoitti 21.9.2014 kello 0.08: > >

Re: Html-encoding to UTF-8: hidden field vs. other fields?

2014-09-21 Thread Heikki Hyyrö
Lukasz Lenart kirjoitti 21.9.2014 kello 11.32: > > Missing encoding declaration? Both forms are based on the same page-template that has in the page header. Is this not enough? Did you mean some other declaration? -Heikki

Html-encoding to UTF-8: hidden field vs. other fields?

2014-09-20 Thread Heikki Hyyrö
Hi all, I have recently ran into a problem, which at least on the surface seems a bit strange. First the background. The Struts 2 -based application in question has the following kind of guard for losing data due to session timeout. If a user tries to submit a form after session timeout, the ap

Re: Struts 2 and automatic ids

2014-09-11 Thread Heikki Hyyrö
Martin Gainty kirjoitti 11.9.2014 kello 14.31: > MG>reference for id is here > http://www.w3.org/TR/html401/struct/global.html#adef-id > > MG>the 'functions' the (generated) id plays are illustrated here: > The (unique) id attribute has several functions in HTML: Yes, I am quite aware of what id

Struts 2 and automatic ids

2014-09-10 Thread Heikki Hyyrö
Hi all, I recently began to audit a Struts 2.3.16.1 application that I am maintaining. While running the pages through the HTML markup validation test at http://validator.w3.org/, I noticed a problem: Struts 2 seems to automatically generate id’s to many elements related to forms, and sometimes