Re: Unable to display the jsp - 404 Resource not found

2025-02-11 Thread Łukasz Lenart
Could you follow this tutorial? It uses Struts 2.5.x and starts with just a simple Web app and then adds Struts. https://www.youtube.com/watch?v=HVHlkWvOmOw śr., 12 lut 2025 o 07:53 Mahabir Gupta napisał(a): > > Dear Lukasz, > > Previously I did not include the xwork-core-2.3.37.jar but added i

Re: Strust 7.0 release date

2024-10-18 Thread Łukasz Lenart
No exact date, but soon. There are a few open PRs, once merged it will be time for release :) pt., 11 paź 2024 o 10:19 Bibonne Fabrice napisał(a): > > Hello, > > In my company we have several applications that use both Struts and Spring. > Since the OSS support of Spring framework 5 has ended on

Re: Struts ServletDispatcherResult Forwarding GET Instead of FORWARD

2024-07-28 Thread Łukasz Lenart
tWrapper add the > > > ""jakarta.servlet.forward.request_uri"" attribute? > > > > > > FYI, I found the below very old thread in apache mail archive which > > > was posted to d...@tomcat.apache.org in 2003 which appears to be a > > > related

Re: Struts ServletDispatcherResult Forwarding GET Instead of FORWARD

2024-07-22 Thread Łukasz Lenart
Tomcat? version? It can be related to Tomcat changes pon., 22 lip 2024 o 17:25 Rubens Gomes napisał(a): > > I am running Struts 7.0.0-M9 along with Spring Boot 3.3.2 + Spring Security. > > have a Struts Action class annotated with : > > @Result( > name = Action.INPUT, > location = "/WEB-

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-25 Thread Łukasz Lenart
You can try to downgrade commons-text to version 1.10.0 as then it uses commons-lang3 3.12.0 https://central.sonatype.com/artifact/org.apache.commons/commons-text/1.10.0/dependencies czw., 25 kwi 2024 o 13:13 SARAVANAN SIVAGURU napisał(a): > > Hi Luk > > I found the issue, the below email helps

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-23 Thread Łukasz Lenart
Why do you use org.apache.commons:commons-text:1.12.0? With Struts 6.4 you have used org.apache.commons:commons-text:1.11.0 and the same version should be used with Struts 6.5 Regards Lukasz - To unsubscribe, e-mail: user-unsubsc

Re: Struts2 Validator failing constructor call

2024-04-16 Thread Łukasz Lenart
Nice :) Could you register a bug and target 6.5.0? I will take a look śr., 17 kwi 2024 o 08:17 napisał(a): > > Okay. It seems to already have broken somewhere between 6.1.1 and 6.2.0. It > still works in 6.1.1 but not in 6.2.0. I have not tested each version in > between to nail it. > But some

Re: Can I use Thymeleaf as the template engine for Struts 6?

2024-03-09 Thread Łukasz Lenart
Thymeleaf isn't officially supported by Struts (and the Struts Devs), yet I checked the plugin [1] which doesn't look like a rocket since. Because of legals, the author would have to donate the plugin to Struts. In other case you can just include the plugin's code and a new result in your code base

Re: Requesting support on struts tiles plugin migration

2024-02-22 Thread Łukasz Lenart
czw., 22 lut 2024 o 14:41 SARAVANAN SIVAGURU napisał(a): > > > > org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG > > classpath*:/META-INF/org.kawa.*tiles*.xml,classpath*:/META-INF/com.*.tiles.xml,/WEB-INF/config/tiles/*.tiles.xml > > > > org.apache.tiles.context.Abst

Re: Velocity tags Issue after Struts upgrade to 2.5.33

2024-01-29 Thread Łukasz Lenart
Could you post the generated HTML? The only change between 2.5.32 and .2.5.33 is this [1] which shouldn't impact Velocity [1] https://github.com/apache/struts/commit/162e29fee9136f4bfd9b2376da2cbf590f9ea163 Regards Lukasz pon., 29 sty 2024 o 14:05 Lamia Wertani napisał(a): > Hello, > > > I rec

Re: Struts6 application having CSRF vulnerability

2023-07-13 Thread Łukasz Lenart
Gautam Since version 6.0.0 a set of interceptors have been defined to support CSRF, please read the following links https://struts.apache.org/security/#resource-isolation-using-fetch-metadata https://struts.apache.org/security/#cross-origin-isolation-with-coop-and-coep Regards Lukasz czw., 13

Re: s:url tag using includeParams=all include invalid url

2022-10-12 Thread Łukasz Lenart
Hi Burton Feel free to open a ticket in JIRA and continue discussion there. I'm missing a bit of information to investigate this problem. Cheers -- Łukasz pon., 10 paź 2022 o 17:48 Burton Rhodes napisał(a): > > After a bit more testing it seems all of my executeAndWait implementations > are

Re: When Struct 2.3.34 update Struct 2.5.30,the original interface cannot be accessed

2022-09-09 Thread Łukasz Lenart
And please use a proper name Struts, there is no Struct. pt., 9 wrz 2022 o 12:48 Łukasz Lenart napisał(a): > > Would you mind using some proper encoding? Your message is mess :\ > Have you tried to use 2.5 and then switch version by version? Also do > you use the Convention plugin?

Re: When Struct 2.3.34 update Struct 2.5.30,the original interface cannot be accessed

2022-09-09 Thread Łukasz Lenart
Would you mind using some proper encoding? Your message is mess :\ Have you tried to use 2.5 and then switch version by version? Also do you use the Convention plugin? Regards Łukasz pt., 9 wrz 2022 o 12:41 wwyyzz_001 <517654...@qq.com.invalid> napisał(a): > > In Struct 2.3.34,when namespase="" i

Re: Struts 6.0.0 - jsp forward in result page

2022-06-09 Thread Łukasz Lenart
Could you share your struts.xml? W dniu śr., 8.06.2022 o 20:56 Prasanth napisał(a): > Hi, > > We have a scenario where one of the results of a struts action is a jsp > page with a forward to another action. This works fine under 2.5.X > versions. In 6.0.0 I am seeing a stackoverflowerror. After

Re: Update request to web site regarding Log4j and "Getting Started" section

2017-06-12 Thread Łukasz Lenart
Done 2017-06-12 20:28 GMT+02:00 Ken McWilliams : > Sorry... > > The following "Getting started" page "How To Create A Struts 2 Web > Application: > http://struts.apache.org/getting-started/how-to-create-a-struts2-web-application.html > > Tells you to add: > > > org.apache.logging.log4j >

Re: After upgrade to 2.3.32 and S2-045 attacks

2017-05-18 Thread Łukasz Lenart
There is nothing to worry about, the first exception is logged by a file upload parsing layer as it cannot parse the multipart request, the second is logged because the request did not pass a validation and there is no an input result (the first exception was cause of the failed validation) W dniu

Re: Disabling Struts warning messages in the console

2016-02-19 Thread Łukasz Lenart
You can define such action or use and return custom 404.action (mobile) 17 lut 2016 21:46 "Murat Balkan" napisał(a): > Hi, > I'd like to disable the warning messages in the console log (catalina.out) > like > > WARNING: Could not find action or result: /prepOrder.do?code=PNG > There is no Actio

Re: Validation using annotations with two execute methods are applied always

2015-12-17 Thread Łukasz Lenart
What about switching validateAnnotatedMethodOnly? This is going to be default in 2.5 probably https://struts.apache.org/docs/validations-annotation.html (mobile) 17 gru 2015 23:29 "JOSE L MARTINEZ-AVIAL" napisał(a): > Hello, > I'm using Struts 2.3.24.1. I have an action that has two execut

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Łukasz Lenart
You can redefine root http://struts.apache.org/release/2.3.x/docs/json-plugin.html#JSONPlugin-RootObject 2014-11-05 12:13 GMT+01:00 Pavel Ilyushko : > Hello there! > > Recently I've upgraded our struts2 framework and its related plugins (eg: > json plugin) from version 2.1.8 to version 2.3.16.3.

Re: need help on struts.xml configuration using Struts 2.3, Tomcat 7, Java JDK 1.6

2014-06-19 Thread Łukasz Lenart
Attachment is missing and mailing doesn't allow to send attachments ;-) 2014-06-20 3:26 GMT+02:00 Tri Quan : > > > All, > > I am green horn in Struts 2 and need help with > struts.xml. I got the following error when try this URL : > > localhost:8080/IteratorKFC/menu or localhos

Re: Framework provided text key resolving issue

2013-09-09 Thread Łukasz Lenart
2013/9/9 Christoph Nenning : > In this case the following happens: > - struts2's algorithm is performed (search packages hierarchically) > - for global resources the JVM tries the file > "struts-messages_en.properties" which is not present > - then the JVM tries the language from system property "u

Re: Spring Plugin

2013-08-26 Thread Łukasz Lenart
Yes 2013/8/26 Alireza Fattahi : > Hi, > > When we are using spring plugin, all the objects actions, interceptors, > filters are managed by spring. Is it correct?! > > > ~Regards, > ~~Alireza Fattahi -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Conf

Re: struts 2 presentation layer

2013-03-11 Thread Łukasz Lenart
11 mar 2013 18:41, "john lee" napisał(a): > what is the presentation layer it support? also Velocity, Google pages (gxp) > thanks > > john > > > > > From: Martin Gainty > To: Struts Users Mailing List > Sent: Monday, March 11, 2013 5:33 AM > Subject: RE: strut

Re: How to implement custom ActionProxyFactory

2012-11-12 Thread Łukasz Lenart
Hi, http://struts.apache.org/2.x/docs/plugins.html#Plugins-ExtensionPoints Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail:

Re: Struts 2 portlet - spring example- Liferay 6.1 GA 2

2012-10-24 Thread Łukasz Lenart
2012/10/24 Juan Jose Fuentes Esteban : > Has someone tried the last struts2 portlet example with Liferay 6.1 GA 2? > Object factory problems appear. It seems struts 2 tries to access the > webApplicationContext of Spring before it is initialized. Could you provide more details ? Regards -- Łu

Re: person.getId() not set with url paramter using NamedVariablePatternMatcher

2012-10-14 Thread Łukasz Lenart
2012/10/15 pirzada rashid : > public String getPersonById() throws Exception { > LOG.debug("getPersonById() = {} executed", > this.getId()); > person = personDAO.get(this.getId()); > > return SUCCESS; > } > > **ERROR:** > >

Re: overriding framework components

2012-10-04 Thread Łukasz Lenart
2012/10/4 Davis, Chad : > And, since I think I saw your name on some comments in the TextProvider, I > wonder what constructors get invoked when the TextProvider is injected in the > TextProviderFactory on ActionSupport. The default TextProviderSupport has > references to locale provider and a

Re: Struts2 authentication, validation, and roles

2012-10-04 Thread Łukasz Lenart
2012/10/3 Ken McWilliams : > Asking for the consideration of a struts2 feature enhancement. > > The roles interceptor depends on container based security, it is a bit > of a pain to set up and portability is complicated by needing to cover > more documentation steps (how to secure your application

Re: Updated Struts 2 Ant Examples

2012-09-06 Thread Łukasz Lenart
2012/9/6 bphill...@ku.edu : > I updated the Struts 2 basic and hello world Ant examples at > http://struts.apache.org/2.3.4.1/docs/getting-started.html to include the > latest Struts 2 version and other required jars. > > I noticed that sometime after version 2.3.3 Struts 2 no longer needs > common

Re: Struts 2 Iterator, Param and Text tags usage

2012-08-29 Thread Łukasz Lenart
I think, cannot be used that way. Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For add

Re: Q: S2 REST vs JAXRS or S2-JAX-RS plugins

2012-08-21 Thread Łukasz Lenart
Hi, I'm not sure if I understand, you just want implement JAX-RS as a Struts 2 plugin ? Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscri

Re: how to remove .action suffix in struts 2.1

2012-08-03 Thread Łukasz Lenart
L. The problem > is that the CSS's dont display, I presume that it's requesting style.css and > because of the new configuration it's expecting style.css to be an action... > > -- > > My configuration: > > --> in struts.xml > > > struts2 >

Re: some issues upgrade struts from 2.2.3 to 2.3.4

2012-07-30 Thread Łukasz Lenart
2012/7/18 Miguel : > Also REST doesn't work in 2.3.3 and 2.3.4. Not even the rest-showcase war. The issue with rest-showcase is related to [1], the problem is silly, the OrdersControler class is in package org.apache.struts2 which is by default excluded ;-) I'm looking for a solution now [1]

Re: some issues upgrade struts from 2.2.3 to 2.3.4

2012-07-30 Thread Łukasz Lenart
2012/7/18 Miguel : > Also REST doesn't work in 2.3.3 and 2.3.4. Not even the rest-showcase war. Could you register an issue for that, thanks! -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ -

Re: Getting following exception while trying validation mechanism in struts2

2012-07-30 Thread Łukasz Lenart
What's the value of struts.ui.templateSuffix ? Check struts.properties, web.xml or struts.xml Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To uns

Re: XML Validation not working

2012-07-27 Thread Łukasz Lenart
Change dtd to: http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2012/7/27 Singh, Rajdeep : > Hi All, > > I have written classname-validation.xml as per tutorial gi

Re: Open session in view (JPA, struts2, Spring 3, Hibernate4)

2012-07-26 Thread Łukasz Lenart
Could you show the whole web.xml ? Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For add

Re: How to resuse an Action class in different namespace contexts?

2012-07-23 Thread Łukasz Lenart
One base abstract class and two concrete classes which contain the prepare() methods as specified. Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2012/7/23 Mounir Benzid : > > > I use two different namespaces to secure

Re: Validation stack name

2012-07-18 Thread Łukasz Lenart
2012/7/19 Paul Benedict : > http://struts.apache.org/2.3.4/docs/validation.html > says: > "The default interceptor stack, "defaultStack", already has validation > turned on." > > Is that the right stack name? I thought the default stack name was > "struts-default" > > Is this an error in the doc or

Re: Struts2 RedirectAction Situation

2012-07-18 Thread Łukasz Lenart
2012/7/17 Hernán : > It seems that using a String bean and using > struts.objectFactory.spring.autoWire=auto in struts.properties > wires the String to every parameter of ServletActionRedirectResult by > constructor. Is this a struts2 bug? It's rather a user's bug ;-) http://struts.apache.org/2.x

Re: some issues upgrade struts from 2.2.3 to 2.3.4

2012-07-12 Thread Łukasz Lenart
Could you post the whole stacktrace ? Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: how to remove .action suffix in struts 2.1

2012-07-10 Thread Łukasz Lenart
2012/7/10 lucas owen : > > struts2 > * > It should be /* And what kind of error do you have with css ? Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/

Re: JBoss : error deploy webApp Struts2 + Jquery plugin

2012-07-09 Thread Łukasz Lenart
2012/7/9 ngald : > Caused by: Connection timed out: connect - [unknown location] > at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115) Could you show your struts.xml ? Regarding error above, maybe you are using old .dtd, OpenSymphony is down for some time... Regards -- Łukasz mo

Re: Performance issue with nested iterator

2012-07-05 Thread Łukasz Lenart
Thanks! The latest version of S2 is already using 2.3.19 Kind regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2012/7/5 Miguel Almeida : > I believe I've found the culprit. > While the problem is present in commit > htt

Re: S2 equivalent of ForwardAction?

2012-07-05 Thread Łukasz Lenart
2012/7/6 Paul Benedict : > Is there any such shortcut in S2? It would be nice if such a thing existed > like: > > /page.jsp > It should work, as a default action class is the ActionSupport class and its execute() method returns SUCCESS. Regards -- Łukasz mobile +48 606 323 122 http://www.l

Re: data injection attack

2012-07-04 Thread Łukasz Lenart
Another way is to use AnnotationParameterFilterIntereptor (name contains typo) and @Allowed and @Blocked annotations Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ --

Re: data injection attack

2012-07-04 Thread Łukasz Lenart
You can always implement ParameterNameAware interface and boolean acceptableParameterName(String parameterName); Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ --

Re: Struts2

2012-07-03 Thread Łukasz Lenart
2012/7/3 Avinash : > Dear sir, >I have design the login page in struts2 framework and i am using > tomcat7 in eclipse(indigo). The tomcat server perfectly run in the browser > but after execution my program , that will show 404 error. So sir please > guide me how to find the error and w

Re: How does struts 2 and struts2 jquery includes javascript files in a jsp from their jar files

2012-07-02 Thread Łukasz Lenart
2012/6/30 Anandraj : > Hi, > > we are using struts2 with struts2 jquery in our application and i > have noticed Struts2 and Struts2-jquery includes the javascripts files from > the jar by including the tag of the framework. how it included the > javascript file by including the tag ,is ther

Re: Runtime error while starting struts2 application

2012-07-02 Thread Łukasz Lenart
2012/6/27 Jeffrey Benedict > I have followed a struts2 tutorial ( > http://struts.apache.org/2.0.11/docs/simple-setup.html), adding minimal > jars. I get the application to start up, but get a runtime exception: > > ** > Try to use appropriate version of docs http://struts.apache.org/2.3

Re: JasperReport Weblogic 11g NPE Problem

2012-06-28 Thread Łukasz Lenart
I've added a note about that to the docs [1] [1] https://cwiki.apache.org/confluence/display/WW/WebLogic Thanks for helping and testing! Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/

Re: Struts2 : formatting and entering doubles consistently through the whole application not depending on locale

2012-06-20 Thread Łukasz Lenart
2012/6/20 Pierre TEMPLIER : > Am I missing something ? Nothing, my mistake :/ I forgot to define aliases, please raise an issue Thanks & regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ -

Re: Struts2 : formatting and entering doubles consistently through the whole application not depending on locale

2012-06-19 Thread Łukasz Lenart
2012/6/19 Pierre TEMPLIER : > I was able to register an application-wide DoubleConverter with > primitive type double this way : > == xwork-conversion.properties == > # syntax: = > double = com.company.app.DoubleConverter It isn't a hack, it's a normal way to do the things ;-) > it works but it

Re: Can you define variables as the value in struts.properties?

2012-06-18 Thread Łukasz Lenart
2012/6/18 Miguel Almeida : > Question: Having multiple environments files, what I really need is > struts.custom.i18n.resources=environments/app-${envName}. Can one have > this, so only the file that makes sense for that environment is loaded? But you can simply achieve that with Maven filtering s

Re: Struts2 : formatting and entering doubles consistently through the whole application not depending on locale

2012-06-18 Thread Łukasz Lenart
I think the problem is related to primitive converter which doesn't include Locale in conversion, take a look on that bug and related https://issues.apache.org/jira/browse/WW-3171 Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confi

Re: How to display 2 textfield while still being to use XML validation

2012-06-18 Thread Łukasz Lenart
2012/6/18 Nguyen Ngoc Hai (FSU17.BU2) : > I use Struts2 Spring Plugin 2.1.6. That version was designed to run with Spring 2.5.3 and as specified in docs [1] it must work, maybe you're messing different versions of Spring libs ? [1] http://static.springsource.org/spring/docs/2.5.x/reference/beans

Re: How to display 2 textfield while still being to use XML validation

2012-06-18 Thread Łukasz Lenart
Are you using Struts2 Spring Plugin ? http://struts.apache.org/2.x/docs/spring-plugin.html Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubs

Re: How to display 2 textfield while still being to use XML validation

2012-06-18 Thread Łukasz Lenart
2012/6/18 Nguyen Ngoc Hai (FSU17.BU2) : > I use Spring Framework 3.0 M3 hmm... scope="prototype" should work, what kind of exception do you get ? Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/

Re: How to display 2 textfield while still being to use XML validation

2012-06-17 Thread Łukasz Lenart
2012/6/18 Nguyen Ngoc Hai (FSU17.BU2) : > Yes I am using Spring and also Hibernate. > I am so sorry for replying late. I am using my company's email that I can't > check at home. > Could you show me where I can add scope="prototype", I added it into my > applicationContext.xml, but it would not r

Re: Validation Help

2012-06-17 Thread Łukasz Lenart
2012/6/17 Paul Mefford : > Can anyone give me some advice on how to fix the .xml loader so it finds a > xml file using the wildcard in sturts.xml?  Or has anyone done this a > different way with validation? Struts 2 version ? App Sever ? You can implement your own logic how to handle validation u

Re: How to repopulate data on s:textfield after validation error

2012-06-17 Thread Łukasz Lenart
2012/6/15 Omar Ngarigari : > The default value is list value. For example, my code is as follow: > > > > What I want is on validation error to repopulated data that user entered not > the one that comes with list from database. But as I said, it must be something wrong with your code. When valid

Re: How to repopulate data on s:textfield after validation error

2012-06-15 Thread Łukasz Lenart
2012/6/15 Omar Ngarigari : > Please advice me on how to repopulate data on s:textfield after validation > error. When a user enters some values on the s:textfield or s:select fields > and click submit button validation error displays, the values goes back to > the default not the ones that a use

Re: How to display 2 textfield while still being to use XML validation

2012-06-15 Thread Łukasz Lenart
Do you use Spring ? If so, action must have scope="prototype" Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr..

Re: How to display 2 textfield while still being to use XML validation

2012-06-15 Thread Łukasz Lenart
Use simple theme and add tag to display validation messages or per each field http://struts.apache.org/2.x/docs/actionerror.html http://struts.apache.org/2.x/docs/fielderror.html Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://conf

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-11 Thread Łukasz Lenart
833 >> >> >> >> On Mon, Jun 11, 2012 at 9:32 AM, Łukasz Lenart >> wrote: >>> >>> Probably, please register an issue and assign the test app. >>> >>> >>> Regards >>> -- >>> Łukasz >>> mobile +48 606

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-11 Thread Łukasz Lenart
Probably, please register an issue and assign the test app. Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2012/6/11 J. Garcia : > A full example based on struts2 blank archetype attached. > Run with maven2: mvn jetty:

Re: Regression from WW-3810? NPE in UrlSet.includeClassesUrl(UrlSet.java:199)

2012-06-10 Thread Łukasz Lenart
2012/6/8 : > Like I said a couple of days ago, this doesn't actually seem to hurt > anything, but I thought that Łukasz might want to have a look at this > exception. > Has anyone else seen this with 2.3.4 or newer snapshots? Yeah... I've noticed that and solved but not committed yet. Regards

Re: conversion error repopulation not working

2012-05-31 Thread Łukasz Lenart
I'll add this code as an additional example, but I'm wondering is it a good way to base on fieldErrors as they can be also populated by validators. Maybe adding ConversionAware interface with specific method to populate conversionErrors would be better ? Then I could extend ActionSupport with getF

Re: conversion error repopulation not working

2012-05-31 Thread Łukasz Lenart
Can be reduced to this: public String getFormatted(String key, String fieldName, List args) { if (getFieldErrors().isEmpty()) { return getText(key, args); } else { return ActionContext.getContext().getValueStack().findString(defaultValue); } } and it wor

Re: conversion error repopulation not working

2012-05-31 Thread Łukasz Lenart
2012/5/31 J. Garcia : > The short-circuiting option sounds good. There could even be a specially > dedicated getText() (or alternative method name) for this scenario, which > should be rather frequent in l10n apps. Not the best solution, but works: and in ExampleAction (or any other base action

Re: conversion error repopulation not working

2012-05-31 Thread Łukasz Lenart
2012/5/31 Łukasz Lenart : > Ok, looks like a problem is with getText() in jsp but I think there is > no other way ... you can use String instead and check for errors in > getter/setter but I'm not sure if it does the trick The problem is a bit complicated here as getText(String key,

Re: conversion error repopulation not working

2012-05-31 Thread Łukasz Lenart
2012/5/31 J. Garcia : > Ok. Sorry. > Fixed the example to match the real situation. Prepare() will only execute > now if the request is a get method. Ok, looks like a problem is with getText() in jsp but I think there is no other way ... you can use String instead and check for errors in getter/se

Re: conversion error repopulation not working

2012-05-30 Thread Łukasz Lenart
2012/5/29 J. Garcia : > Attached an example, generated from struts2 archetype and modified to > reproduce the situation. > > - run with mvn jetty:run. I use maven 2.2.1. > - on browser, type: localhost:8080/struts-test/example/Login > - you'll see a form, with formatted integer. > - modify the inte

Re: Action inheritance and value automatic injection failure

2012-05-29 Thread Łukasz Lenart
2012/5/29 Dionis Argiri : > In case, when I have some JSP, that's shared with different pages. I don't > want to make two copies of it. If some value is not set, then I get OGNL > error and observe it in logs, that "value was not injected". As a potential > workaround I tried to create public void

Re: Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception

2012-05-29 Thread Łukasz Lenart
Done, please check the latest snapshot https://issues.apache.org/jira/browse/WW-3828 2012/5/28 Łukasz Lenart : > 2012/5/28 Łukasz Lenart : >> I've missed that out, need to check the code ... > > Ok, I was able to reproduce your problem and changed support for > Dynamic

Re: conversion error repopulation not working

2012-05-29 Thread Łukasz Lenart
2012/5/29 J. Garcia : > Integer. Strange, should work. Could you post an example code ? Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscri

Re: Action inheritance and value automatic injection failure

2012-05-29 Thread Łukasz Lenart
Are you sure ? Could you post the whole stack trace ? Maybe there is a conversion error... Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubs

Re: pass action form

2012-05-28 Thread Łukasz Lenart
2012/5/28 Joby Joseph : > I have a form asociated with a JSP. and am setting some values into the form > before loading the page and I am not showing it on the JSP. But I have to > get the value in the Action class. scope of the form is request. > > that meanss, from JSP, have to send the form to a

Re: pass action form

2012-05-28 Thread Łukasz Lenart
2012/5/28 Joby Joseph : > if u can, plz send me the code for this ... it will help me to complete the > work. You mean the patch to improve support of Dynamic Attributes ? Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/

Re: Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception

2012-05-28 Thread Łukasz Lenart
2012/5/28 Łukasz Lenart : > I've missed that out, need to check the code ... Ok, I was able to reproduce your problem and changed support for Dynamic Attributes in Struts to solve that. Please register an issue for that, but IMHO it's a bad idea to use strict literals, it's b

Re: Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception

2012-05-28 Thread Łukasz Lenart
2012/5/25 : > Method public java.lang.String > org.apache.struts2.util.StrutsUtil.translateVariables(java.lang.String) threw > an exception when invoked on org.apache.struts2.util.StrutsUtil@540948a7 > The problematic instruction: I've missed that out, need to check the code ... Regards -- Ł

Re: conversion error repopulation not working

2012-05-28 Thread Łukasz Lenart
Is it int either Integer ? Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional

Re: Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception

2012-05-28 Thread Łukasz Lenart
2012/5/25 : > From my perspective this represents a regression from 2.3.1.2, where what I > had previously worked fine. > It could be due to FreeMarker change, since I also have this in my log: > > Caused by: freemarker.template.TemplateModelException: Argument type > mismatch; can not unwrap ar

[ANN] Struts 2.3.4 GA release available

2012-05-25 Thread Łukasz Lenart
The Apache Struts group is pleased to announce that Struts 2.3.4 is available as a "General Availability" release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to

Re: conversion error repopulation not working

2012-05-23 Thread Łukasz Lenart
Could you add some code example ? Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For addi

Re: Tutorials samples build failure: javac: invalid flag: -s

2012-05-21 Thread Łukasz Lenart
2012/5/22 Alapiessa Petri : > Thnaks for your reply! > I tried with jvm 1.5.22 and 1.6 and OS OS linux. > The first sample built ok, it had no java classes, just jsp and struts. This > Hello world has two java classes that seem to be problematic to build. > I'll try to check maven settings One mo

Re: Can we use the decorator pattern in Actions?

2012-05-21 Thread Łukasz Lenart
I'm not sure if I understand, but you should be able to create an interceptor and check if action implements given interface, then create (or reuse) your decorator to check security. Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference

Re: Tutorials samples build failure: javac: invalid flag: -s

2012-05-21 Thread Łukasz Lenart
Just tried the same and it works smoothly ... Java version ? OS ? Try with sample non-web neither non-struts2 maven app, looks like your local Maven settings are broken Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confit

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-15 Thread Łukasz Lenart
What I mean is that injecting something in ExecAndWaitInterceptor which has brought scope can rise concurrency issue because the same bean can be used in two different threads (ExecAndWaitInterceptor thread and request thread). I would rather pack whatever is needed by ExecAndWaitInterceptor and pa

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-14 Thread Łukasz Lenart
I think it's better to repackage what you need and pass as a context variables instead inject session aware beans. It can produce concurrency issues. Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura http://confitura.pl/

Re: Does the StrutsTestCase test filters defined in web.xml?

2012-05-14 Thread Łukasz Lenart
You can try to use Jetty as an embedded server, take a look on BasePortletTest in Portlet Plugin Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura http://confitura.pl/ ---

Re: duplicate error messages

2012-05-10 Thread Łukasz Lenart
Check Login-validation.xml which defines the validation Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail

Re: Bug? 2.3.3 struts2-blank.war fails to deploy on JBoss 5

2012-05-07 Thread Łukasz Lenart
2012/5/7 : > I recently tried to upgrade our app from 2.3.1.2 to 2.3.3, but got an error > in startup.   To determine if it was "just me" I tried deploying the > struts2-blank.war file in my JBoss 5.1 system, but got the attached error.   > It seems that the application cannot load "struts-defau

[ANN] Struts 2.3.3 GA release available

2012-05-04 Thread Łukasz Lenart
The Apache Struts group is pleased to announce that Struts 2.3.3 is available as a "General Availability" release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to

Re: Does Struts support Servlet 3

2012-05-03 Thread Łukasz Lenart
It shouldn't be a problem, anyway you must still use web.xml to declare Struts2 filter. Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura http://confitura.pl/

Re: Struts2 session concurrency issue ?

2012-04-25 Thread Łukasz Lenart
Why don't you use SessesionAware interface ? Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsu

Re: Struts 2 Plugin for Netbeans

2012-04-19 Thread Łukasz Lenart
2012/4/19 rob stone : > I am trying to incorporate the Struts 2 plug-in into the Netbeans IDE > and having problems. The Netbeans version is 7.0.1 which is the latest > available for Debian. Use IntelliJ IDEA, give up with NB ;-) Kind regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 3

Re: Behavior of tags with date values

2012-04-19 Thread Łukasz Lenart
2012/4/19 Scott Williams : > After reading your email I tried your solution, outputting the date in the > tag body rather than using the value attribute. I was surprised to find the > tag behaves the way it does with Date objects, invoking toString(). > Given the behavior of the Date type conve

Re: No result defined for action com.xx.xxx.admin.action.AdminAction and result input

2012-04-19 Thread Łukasz Lenart
2012/4/19 Rout, Biswajit : > No result defined for action com.xx.xxx.admin.action.AdminAction and result > input Because there is no result configured for adminProcess.action (it's empty). Anyway, revise your architecture, read some docs about Ajax, JSON, Struts2 because you overdo a lot too muc

  1   2   >