Re: Struts Dojo Plugin is broken (2.3.16.3)

2014-05-28 Thread Lukasz Lenart
ds > AP. > > On 2014-05-28 18:37, Lukasz Lenart wrote: >> https://issues.apache.org/jira/browse/WW-4349 :-) >> >> 2014-05-28 13:27 GMT+02:00 Andrew Paul : >> > > > - > To unsubscribe,

Re: Required Info on Upgrading Struts 1.2.x to Struts 2.3.x

2014-06-02 Thread Lukasz Lenart
2014-06-03 4:09 GMT+02:00 Janardhana Pagadala : > We would like to implement similar functionality in Struts 2.3.x to match > with that of above: > > > > > > /sample.jsp > > > > *Question:* > What is the best way to implement similar functionality in

Re: Skip parsing of property for json plugin

2014-06-03 Thread Lukasz Lenart
Hm... I don't see any option for now... extending annotation is a nice thing, can you register a ticket in JIRA? 2014-05-30 17:53 GMT+02:00 Dimitris Mouchritsas : > Hi all, > > I'm using struts2-core 2.3.16.3 along with struts2-json-plugin and I have > the following problem: > > I have an entity

Re: Required Info on Upgrading Struts 1.2.x to Struts 2.3.x

2014-06-03 Thread Lukasz Lenart
ld like use custom tag , etc. > in action in addition to the tag. Hope the questions makes sense > now. > > Please suggest if there is a possibility to implement such feature in > Struts 2.3.x > > Thanks in advance > > > On Tue, Jun 3, 2014 at 2:19 AM, Lukasz Lenar

Re: Struts2 iterator twice for select tag

2014-06-04 Thread Lukasz Lenart
2014-06-03 19:17 GMT+02:00 Matt Williams : > > I am using struts 2.1.8. I am extending the > "org.apache.struts2.components.Select" tag and writing my own "select.ftl" > (freemarker template). > > I need to iterate over the parameter "parameters.list" twice. > > Example: > <@s.iterator value="pa

Re: Struts 2 get custom action anotation in interceptors

2014-06-04 Thread Lukasz Lenart
Take a look on com.opensymphony.xwork2.util.AnnotationUtils 2014-06-03 19:37 GMT+02:00 Alireza Fattahi : > Consider below action class with three action mappings. Two of them are > annotated with a custom annotation `@AjaxAction` > > public class MyAction extends ActionSupport{ > > @Act

Re: Forward to exception page instead of result in case of ognl runtime exception ?

2014-06-11 Thread Lukasz Lenart
Define validation for this field, then you will get validation error and Struts will forward to input result 2014-06-12 7:48 GMT+02:00 Mohit Gupta : > I have below action class where customerId is integer. If i pass customerId > as string from UI(I know it should not be allowed but there are > way

Re: Control Struts2 Tags with Conditional Tags

2014-06-11 Thread Lukasz Lenart
I'm not sure what do you want to achieve tags are rendered on server side and when user will interact with your webpage there will be just pure Html. You must send user selection back to server to allow re-render the page based on user choice and then tag come into play. 2014-06-11 12:31 GMT

Re: Error setting expression with Value

2014-06-15 Thread Lukasz Lenart
Can you show your action? Looks like a issue with setters 2014-06-14 14:57 GMT+02:00 NIJO GEORGE : > > > > 17:58:54,084 ERROR > [com.opensymphony.xwork2.interceptor.ParametersInterceptor] > (http--127.0.0.1-8080-6) Developer Notification (set struts.devMode to false > to disable this message):

Re: Error setting expression with Value

2014-06-16 Thread Lukasz Lenart
urseid()); >> >> eqn.setSubjectid(getSubjectid());//eq.setSubjectid(getSubjectids()); >> eqn.setAdminid(adminid); >> eqn.setOccurance(0); >> eqn.setQuestionhint(getHint()); >> eqn.setShowasMcq(getShowAsMCQ()); >> if (qi.

Re: Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Lukasz Lenart
S2 isn't JDK8 compatible, it will be case for S2.5 2014-06-18 10:04 GMT+02:00 Paweł Wielgus : > Hi all, > does anyone know > if this these exceptions [1][2] i see when staring application > are the result of using lambda expressions inside actions? > > If i just move these lambdas out of action b

Re: Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Lukasz Lenart
would be happy if S2.3.x would be abble to load such action classes > but would not be fully compatible with JDK8. > But maybe this is all or nothing case? > > Best greetings, > Paweł Wielgus. > > > > > 2014-06-18 10:08 GMT+02:00 Lukasz Lenart : >> S2 isn

Re: Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Lukasz Lenart
And we do accept Pull Requests :-) https://github.com/apache/struts 2014-06-18 10:25 GMT+02:00 Lukasz Lenart : > It can be part of 2.3.x as well, the plan is to be compatible with > JDK8 but not depend on it. Lambdas are implemented as anonymous > classes as far I can recall, so maybe

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

2014-06-19 Thread Lukasz 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: need help on struts.xml configuration using Struts 2.3, Tomcat 7, Java JDK 1.6

2014-06-20 Thread Lukasz Lenart
Wrong url, it supposed to be: http://localhost:8080/IteratorKFC/IteratorKFC/menu.action /IteratorKFC <- name of the war file, ie. context /IteratorKFC <- namespace defined in struts.xml 2014-06-20 13:33 GMT+02:00 Tri Quan : > All, > > I am green horn in Struts 2 and need help wi

Re: Tiles Struts2 Annotations

2014-06-22 Thread Lukasz Lenart
When using the Convention plugin you must set struts.convention.default.parent.package = tiles-default to use tiles result 2014-06-22 16:24 GMT+02:00 Amine BADID : > Hi Dave. > I tried to use theses syntaxe: > > and > > > The both are "false" and did not resolve my problem > > Here a

Re: need help using Struts2 - interator

2014-06-24 Thread Lukasz Lenart
2014-06-23 23:06 GMT+02:00 Tri Quan : > iteratorkfc.jsp file is in 'web' folder of the project. Its content listed 'web folder' means nothing, you cannot label folder web or js or css and expect it will be automagically selected as a folder with web content. It depends on build tool you are using,

Re: NoSuchMethodException: while struts action method call ?

2014-06-24 Thread Lukasz Lenart
Struts2 filter isn't used during FORWARD, you must explicite configure it to do so: strits2 /* REQUEST FORWARD 2014-06-23 13:17 GMT+02:00 Mohit Gupta : > Actually when i am redirecting from legacy action to > customer/customer-creater!create.action?custId=200, struts > 2 success

Re: need help using Struts2 - interator

2014-06-24 Thread Lukasz Lenart
2014-06-24 22:11 GMT+02:00 Tri Quan : > I use Netbeans-7.0, Tomcat 2.2.3, JDK1.6 for development and use ant-deploy > Per the perspective of Netbeans, iteratorkfc.jsp is under 'Web Pages' > Project IteratorKFC has the following structure: > > InteratorKFC > Web Pages > M

Re: ParameterNameAware issue

2014-07-13 Thread Lukasz Lenart
2014-07-12 14:01 GMT+02:00 Markus Demetz : > Hi, > > I am trying to upgrade my application from 2.3.15.2 to 2.3.16.3. > Some of my actions implement the ParameterNameAware interface to check if a > parameter will be accepted. > I have parameters of the form like "user.username" (e.g. loginform) whi

Re: Question of properties file

2014-07-14 Thread Lukasz Lenart
2014-07-15 3:57 GMT+02:00 木叶清风-谢 : > hi!I meet a problem about the properties files. > I discover that the properties won't be loaded automatically unless use > value="global,Register,Package"/> in struts.xml. > I want to know how to configure the struts2 to load Package.properties and > (activ

Re: 回复: Question of properties file

2014-07-15 Thread Lukasz Lenart
2014-07-15 9:23 GMT+02:00 木叶清风-谢 : > I have tried,but it doesn't work It must be something wrong with your setup, though. What do you use to build the project and prepare WAR file? https://github.com/apache/struts/tree/develop/apps/blank/src/main/resources/example Regards -- Łukasz + 48 606 323

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-16 Thread Lukasz Lenart
This vulnerability was resolved in 2.3.15.1, more details here http://struts.apache.org/release/2.3.x/docs/s2-017.html For sure you must switch off devMode in production, thus has large impact on overall application performance 2014-07-16 17:28 GMT+02:00 saikrishna : > Hi Getting the below error.

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 11:15 GMT+02:00 saikrishna : > > > > Lukasz Lenart apache.org> writes: > >> >> This vulnerability was resolved in 2.3.15.1, more details here >> http://struts.apache.org/release/2.3.x/docs/s2-017.html >> >> For sure you must switch off de

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 11:31 GMT+02:00 saikrishna : > 2014-04-18 05:23:12,320 ERROR ParametersInterceptor:34 - Developer > Notification (set struts.devMode to false to disable this message): > Unexpected Exception caught setting > 'redirect:${#a=#context.get('com.opensymphony.xwork2.dispatcher.HttpServletR > e

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 12:17 GMT+02:00 saikrishna : > Sorry,this is an issue from production,where already dev mode is set to false > in the config files. > Log entry is from production. Which one? Both entries have "Developer Notification (set struts.devMode to false to disable this message" Regards -- Łu

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 12:26 GMT+02:00 saikrishna : > Even though dev mode is set to false,we are getting errors as above asking us > to set devmode to false,which is already there. > > and both entries are taken from production logs. Have you restarted the app? Regards -- Łukasz + 48 606 323 122 http://ww

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 12:30 GMT+02:00 saikrishna : > production servers are handled by some other team.You want me to recycle the > servers once ? Yes, you should do it as soon as possible - after switching devMode to off you must restart application to take effect And as I said, you are using safe version,

Re: redirect vulnerability after upgrading to Struts 2.3.16.2

2014-07-17 Thread Lukasz Lenart
2014-07-17 14:24 GMT+02:00 saikrishna : > I contacted middle ware team,who does server restart.Server is getting > restarted daily ! Actually,one month back we have done the struts upgrade to > 2.3.16.2.As a part of that,we have just updated our pom.xml with the struts > version ,as our project is

Re: 回复: 回复: Question of properties file

2014-07-17 Thread Lukasz Lenart
2014-07-18 5:31 GMT+02:00 木叶清风-谢 : > I have solved my problem!thank you very much. Can you share what it was? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apach

Re: tutorial app cannot be installed and run

2014-07-28 Thread Lukasz Lenart
Here you have answer: Caused by: Action class [app03a.Product] not found - action - file:/usr/share/apache-tomcat-7.0.54/webapps/app03a/WEB-INF/classes/struts.xml:24:60 which means your war is missing action class (or it is in wrong folder not corresponding to package) Regards -- Łukasz + 48 6

Re: session already invalidate error in Tomact 7.0.22

2014-07-28 Thread Lukasz Lenart
Can you post the whole stacktrace? 2014-07-22 13:59 GMT+02:00 saikrishna : > Hi > > I am getting the below error,repeatedly.Kindly adivce me on the soulution. > > > 2014-07-17 09:25:37,654 ERROR Dispatcher:38 - Exception occurred during > processing request: getAttribute: Session already invalidat

Re: setting post method automathicaly in s:form with s:file

2014-07-29 Thread Lukasz Lenart
Hm... good question - I think it's doable, please register an issue 2014-07-29 15:13 GMT+02:00 Paweł Wielgus : > Hi all, > i just made s:form with s:file inside, > i did add enctype="multipart/form-data" because i was adding it always, > but in log i saw: > > WARNING: Struts has detected a file up

Re: session already invalidate error in Tomact 7.0.22

2014-08-04 Thread Lukasz Lenart
2014-08-04 13:50 GMT+02:00 saikrishna : > 2014-08-04 01:39:03,107 ERROR Dispatcher:38 - Exception occurred during > processing request: getAttribute: Session already invalidated > java.lang.IllegalStateException: getAttribute: Session already invalidated > at > org.apache.catalina.

Re: Whitespace in String-mapped properties

2014-08-06 Thread Lukasz Lenart
2014-08-05 20:57 GMT+02:00 Zimnoch, Todd Contractor : > I'm trying to implement mapped properties for buttons on a form. Given the > following code: > > private Map removeButtons = new HashMap(); > public Map getRemoveButtons() { > log.debug("Call to getRemoveButtons()"); > return remove

Re: Struts missing parameters

2014-08-06 Thread Lukasz Lenart
2014-08-04 18:37 GMT+02:00 Luis Limas : > = > POST-DATA: > = > > {"params":[*{"author":{"id":302},"autoProm":0,"autorizationPool":null,"blockedBy":null,"blockedByName":null,"businessUnit":null,"co

Re: Struts missing parameters

2014-08-07 Thread Lukasz Lenart
2014-08-07 17:04 GMT+02:00 Luis Limas : > Thanks for the reply Lukasz, the main issue i am having it's that entity > annotated with @MappedSuperClass is not being correctly populated after > JSONUtil.deserialize, the issue occurs randomly and only "super" setters are > the ones that are not being c

Re: Struts missing parameters

2014-08-08 Thread Lukasz Lenart
2014-08-07 22:58 GMT+02:00 Luis Limas : > Thanks again for the reply Lukasz, this is the full hierarchy used at JSON > in the 1st mail: > > * 1st level : http://codeviewer.org/view/code:4279 > * 2nd level : http://codeviewer.org/view/code:427a > * 3rd level (issue) : http://codeviewer.org/view/c

Re: Struts missing parameters

2014-08-08 Thread Lukasz Lenart
2014-08-08 17:38 GMT+02:00 Luis Limas : > Thanks again for the reply Lukasz, you misunderstood me, im not doing > serialize/deserialize my entities for any logic, the deserialize instruction > is being called inside struts (Project: Struts 2 JSON Plugin, > JSONInterceptor.java : 123) when parsing J

Re: Risk by allowing application* params

2014-08-08 Thread Lukasz Lenart
2014-08-07 11:43 GMT+02:00 Fabian Richter : > Hey, > > we are wondering why struts params interceptor excludes > > ^application\..* > > as a parameter? > > To what kind of vulernatbilities would we open our applications if we allow > parameters starting with application to be set by struts? It's t

Re: Can't use 'expand' on struts 2 debug browser output

2014-08-13 Thread Lukasz Lenart
2014-08-14 1:09 GMT+02:00 Ralph Cook : > I am working with the basic_struts example application, attempting to study > the debugging tools in Struts 2. I have done the following: > > put within my tags > put struts2-dojo-plugin in my maven dependencies > put "?debug=browser" at the end of a link

Re: Possible Bug in Struts 2.3.16.3 ParametersInterceptor

2014-08-16 Thread Lukasz Lenart
Yes, you are right but this is already solved in incoming 2.3.18 version :-) Thanks! 2014-08-14 16:24 GMT+02:00 Thim Anneessens : > Hi, > > There is a bug in the > com.opensymphony.xwork2.interceptor.ParametersInterceptor line 427: > > notifyDeveloper(*"Parameter [#0] is too long, allowed len

Re: Can't use 'expand' on struts 2 debug browser output

2014-08-16 Thread Lukasz Lenart
this > immediately, I'll watch the project for a future release. > > rc > > On 8/14/2014 1:42 AM, Lukasz Lenart wrote: >> >> 2014-08-14 1:09 GMT+02:00 Ralph Cook : >>> >>> I am working with the basic_struts example application, attempting to >>>

Re: paramsPrepareParamsStack and token interceptor

2014-08-20 Thread Lukasz Lenart
2014-08-19 17:09 GMT+02:00 Fabian Richter : > Hi, > > when using paramsPrepareParamsStack with the convention plugin I'm getting > multiple errors/warnings in devMode=true: > > Error setting expression 'token' with value > ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ] > Error setting expression 'token' wi

Re: Struts2 token problem

2014-08-20 Thread Lukasz Lenart
2014-08-18 11:48 GMT+02:00 Arpan : > HI All, > > I am facing an issue related to maintaining session token value when we > have window forms. > > We have a main form, which needs token to submit. > There is a link through which we can open a window , which also needs token > and can submit the form

Re: Struts missing parameters

2014-08-20 Thread Lukasz Lenart
2014-08-09 4:22 GMT+02:00 Luis Limas : > On 08/08/2014 02:24 p. m., Lukasz Lenart wrote: >> >> 2014-08-08 17:38 GMT+02:00 Luis Limas : >>> >>> Thanks again for the reply Lukasz, you misunderstood me, im not doing >>> serialize/deserialize my entities for

Re: paramsPrepareParamsStack and token interceptor

2014-08-21 Thread Lukasz Lenart
Great! Thanks! 2014-08-21 10:31 GMT+02:00 Fabian Richter : > Done, see WW-4390 > > Am 20.08.2014 um 21:09 schrieb Lukasz Lenart: >> >> 2014-08-19 17:09 GMT+02:00 Fabian Richter : >>> >>> Hi, >>> >>> when using paramsPrepareParamsStack with

Re: Struts missing parameters

2014-08-21 Thread Lukasz Lenart
2014-08-21 19:14 GMT+02:00 Luis Limas : > Yep, but by using log4j XML configuration: > > > > > > additivity="false"> > > > > > I've suspended trying to solve the issue by now, i'll restart my research > next week, i'll post everything i've fou

Re: Problem with internationalisation of Struts2

2014-08-24 Thread Lukasz Lenart
2014-08-23 18:05 GMT+02:00 Amine BADID : > Hi All. > I have a procblem with Struts2 about Internationation exactly. > Here is the error message : > - 2014-08-23 17:55:39,643 WARN [org.apache.struts2.util.TextProviderHelper] - > property. The literal value 'Menu.logout' will be used.> > I can hav

Re: Problem with internationalisation of Struts2

2014-08-24 Thread Lukasz Lenart
2014-08-24 13:42 GMT+02:00 Amine BADID : > Hi Lukasz. > Thank you. > I've found the problem. > It was about an accentuated word. I've forget to add a number to the unicode > word like '\u00e9'. > The class TextProviderHelper do not give the good message ! > Because it lacks only a letter in the do

Re: Problem with internationalisation of Struts2

2014-08-24 Thread Lukasz Lenart
2014-08-24 19:58 GMT+02:00 Dave Newton : > Tell us how you really feel. It was poor way of educating via sarcasm but I assume it won't work either :| Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscrib

Re: Problem with internationalisation of Struts2

2014-08-24 Thread Lukasz Lenart
2014-08-24 20:20 GMT+02:00 Amine BADID : > The class org.apache.struts2.util.TextProviderHelper does not give the good > message. > And it does not see the french file if there is only one mistake on one line > !!! That's how Java ResourceBundle is working, it has nothing to do with TextProvider

Re: Is the email regex validator in Struts validation incorrect?

2014-08-25 Thread Lukasz Lenart
2014-08-25 18:27 GMT+02:00 Miguel Almeida : > Note: I pasted the wrong JIRA issue. The correct one is: > https://issues.apache.org/jira/browse/WW-4395 But you can simple override default pattern with regex or regexExpression param (don't use both) *. http://struts.apache.org/release/2.3.x

Portlets

2014-08-28 Thread Lukasz Lenart
Hi, I need some help as I'm trying understand how portlets are running, I mean how to sue Struts2 to develop a portlet, how to setup Jetty/Tomcat with Pluto and deploy S2 based portlet and so on. I have started with apps/portlet and used it via 'mvn jetty:run -Ppluto' but got the exception below,

Re: S:url and s:param and character encoding

2014-09-01 Thread Lukasz Lenart
2014-08-29 18:11 GMT+02:00 Miguel Almeida : > I had an issue recently with a download action not finding the > corresponding file and you might be able to help me with it. The > filename (on disk) was "Calendário" ("á" is the focus here). > > I am using the following s:url (Calendário is within the

Re: S:url and s:param and character encoding

2014-09-01 Thread Lukasz Lenart
2014-09-01 13:17 GMT+02:00 Miguel Almeida : > I actually had ${answer} and it > worked corretly. I had to change to the alternative due to > an issue with a JSP page with a grouped view - somewhere in the code the > variable #answer is probably being set differently, so with ${answer} I > would ge

Re: Portlets

2014-09-01 Thread Lukasz Lenart
2014-08-28 14:21 GMT+02:00 tkofford : > I don't know if this will resolve your problem, but you might want to see > this > post:http://struts.1045723.n5.nabble.com/Struts2-Portlets-tp5716471p5716475.html Thanks! I followed this guideline [1] and was able to create a simple portlet, now I have to p

Re: Mapped Properties in Struts 2

2014-09-02 Thread Lukasz Lenart
2014-09-02 9:41 GMT+02:00 Harish Panwar : > Hi All, > > We are migrating our website from Struts 1 to Struts 2. Everything is > working fine except the mapped properties. > > Lets say we have text-field in our jsp: > > > > Getter-Setter for this field were like this in struts1: > > public String g

Re: JSONResult with an Iteratable...

2014-09-04 Thread Lukasz Lenart
2014-09-04 12:04 GMT+02:00 Peter Björkman : > Hi! I have question about how JSONResult (or specifically JSONWriter) > handles Iteratable objects. It treats them as having no other methods than > containing other objects. But most Iteratable objects have more to them > than that, but those methods a

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

2014-09-21 Thread Lukasz Lenart
2014-09-20 23:08 GMT+02:00 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

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

2014-09-21 Thread Lukasz Lenart
2014-09-21 10:39 GMT+02:00 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 mea

Re: Struts 2 and automatic ids

2014-09-21 Thread Lukasz Lenart
2014-09-11 1:13 GMT+02:00 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 i

Re: struts, freemarker and servlet 3.1

2014-10-02 Thread Lukasz Lenart
2014-09-30 17:15 GMT+02:00 Adam Brin : > Quick question, is anyone running struts 2.3 with servlet 3.1 (Jetty 9)? Our > freemarker rendered pages appear to be blank (i.e. no content returned), > though the rest of the app appears to function properly (stream results > return properly). My firs

Re: Is the Dojo plugin version shipped with Struts 2.3.x vulnerable?

2014-10-06 Thread Lukasz Lenart
2014-10-06 15:42 GMT+02:00 Markus Fischer : > Hi all, > > I have a question regarding the patch level of the Dojo plugin shipped > with Struts 2.3.x. According to the Apache Struts 2 Documentation (see > [1]), Struts 2.3.x ships with Dojo 0.4.3, which is vulnerable to two > major security issues (C

Re: Any experience deploying Struts2 war webapps in Jetty 9.2.x

2014-10-06 Thread Lukasz Lenart
2014-10-06 22:46 GMT+02:00 Jean-Claude Dauphin : > Hello, > > > I always got the following error when deploying my Strut2 war in Jetty 9.2.3 > HTTP ERROR 404 > > Problem accessing /Web-JISIS3/. Reason: > > There is no Action mapped for namespace [/] and action name [] > associated with context

Re: Any experience deploying Struts2 war webapps in Jetty 9.2.x

2014-10-07 Thread Lukasz Lenart
2014-10-07 9:13 GMT+02:00 Jean-Claude Dauphin : > Thanks a lot for your prompt responses. > > Web-JISIS3 is the name of the war file (Web-JISIS3.war) that is located in > the $JETTY_HOME/webapps directory. > > [ciach] > > Pointing the browser to http://localhost:8080/ gives the following page: > Er

Re: Any experience deploying Struts2 war webapps in Jetty 9.2.x

2014-10-07 Thread Lukasz Lenart
2014-10-07 9:31 GMT+02:00 Jean-Claude Dauphin : > Clicking on http://localhost:8080/Web-JISIS3 gives the page > > HTTP ERROR 404 > > Problem accessing /Web-JISIS3/. Reason: > > There is no Action mapped for namespace [/] and action name [] > associated with context path [/Web-JISIS3]. Did you

Re: Any experience deploying Struts2 war webapps in Jetty 9.2.x

2014-10-07 Thread Lukasz Lenart
2014-10-07 9:59 GMT+02:00 Jean-Claude Dauphin : > web.xml has a login welcome-file-list that should be the 1st page displayed > > > jsp/login/login.jsp > > > You can download the war file from > https://kenai.com/projects/j-isis/downloads/download/Web-JISIS3.war if you > have time to hav

Re: Any experience deploying Struts2 war webapps in Jetty 9.2.x

2014-10-07 Thread Lukasz Lenart
2014-10-07 11:43 GMT+02:00 Jean-Claude Dauphin : > clicking http://localhost:8080/Web-JISIS3/ gives the following error on the > Jetty Server console: > > 2014-10-07 11:18:30.935:INFO:oejs.Server:main: Started @8952ms > oct. 07, 2014 11:18:51 AM org.apache.struts2.dispatcher.Dispatcher warn > Avert

Re: Any experience deploying Struts2 war webapps in Jetty 9.2.x

2014-10-07 Thread Lukasz Lenart
2014-10-07 11:59 GMT+02:00 Jean-Claude Dauphin : > Łukasz, > > Clicking http://localhost:8080/Web-JISIS3/doSelectDatabase.action, I > finally got the Login screen > > everything is working fine after. > > However, http://localhost:8080/Web-JISIS3/doLogin.action doesn't work and > gives: > > HTTP ER

Re: Struts 2 and automatic ids

2014-10-07 Thread Lukasz Lenart
I was wondering what the proper solution should be and didn't find any :\ You can always add id attribute your self - this should work but it means we shouldn't autogenerate IDs which can break few things :/ 2014-09-21 14:15 GMT+02:00 Heikki Hyyrö : > Lukasz Lenart kirjoitti 21

Re: FYI: Email Field Validator Always Fails in iOS 7 Safari Browser

2014-10-12 Thread Lukasz Lenart
2014-10-11 4:20 GMT+02:00 John Boyer : > Hi All: > > We’re using the latest version of Struts 2 in production and we’ve found that > the client-side XML email validator always fails in the iOS 7.1 Safari > browser. We haven’t tested it iOS 8 yet. However, removing the email > validation from the

Re: Struts2 Roadmap w.r.t. Dojo plugin (was Re: Is the Dojo plugin version shipped with Struts 2.3.x vulnerable?)

2014-10-20 Thread Lukasz Lenart
2014-10-20 16:49 GMT+02:00 Markus Fischer : > Given that the plugin has been deprecated already, does anyone know for > which release the removal is planned? I was not able to find any > documentation regarding a Dojo plugin roadmap. As from version 2.5 https://cwiki.apache.org/confluence/display/

Re: Struts2 Roadmap w.r.t. Dojo plugin (was Re: Is the Dojo plugin version shipped with Struts 2.3.x vulnerable?)

2014-10-20 Thread Lukasz Lenart
2014-10-20 17:14 GMT+02:00 Markus Fischer : > Am 20.10.2014 um 16:55 schrieb Lukasz Lenart: >> 2014-10-20 16:49 GMT+02:00 Markus Fischer : >>> Given that the plugin has been deprecated already, does anyone know for >>> which release the removal is planned?

Re: Documentaion page

2014-10-26 Thread Lukasz Lenart
2014-10-24 9:03 GMT+02:00 Paweł Wielgus : > Hi all, > can anyone tell me what to do, > or who to contact to add some info to this page: > > http://struts.apache.org/release/2.3.x/docs/json-plugin.html > > I've spent few hours trying to configure my action > to accept json parameters > and the only

Re: struts2 json return null if involve hibernate or spring

2014-10-27 Thread Lukasz Lenart
2014-10-27 3:55 GMT+01:00 john lee : > is hibernate dao manipulation could affect struts 2 json return? > or spring framework could affect struts2 json return? > my program's struts2 json execution is success if not involve dao or spring > call. > but if involve hibernate/spring/dao manipulation,

Re: Help for File Upload error

2014-10-30 Thread Lukasz Lenart
Too many commons-fileupload.jar ? 2014-10-31 7:18 GMT+01:00 Arpan : > HI All, > > I am getting a linkagge error while doing file upload operation. I am using > fileupload interceptor. Can anyone please tell me how to get rid of that > error. > > Thanks > Arpan > > java.lang.LinkageError: loader co

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 Lukasz Lenart
You can re-define 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: 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 Lukasz Lenart
2014-11-05 13:41 GMT+01:00 Pavel Ilyushko : > Hi there! > > Thanks for a swift reply. > > Actually, re-defining the root is what I applied as a work-around. > > So in my struts.xml I have this (to fix setting the parameters on the > action): > > > action >

[SECURITY][ADVICE] File download issue

2014-11-07 Thread Lukasz Lenart
Hello, Please read the following links [1][2] as your public sites can be used to attack users' computers. The simplest solution is to be sure that all your download links define header "Content-disposition: attachment; filename=myfile.ext", you will find more details at the end of the pdf [1] h

Re: s:form does not output the correct path to action

2014-11-10 Thread Lukasz Lenart
Have you read that http://struts.apache.org/release/2.3.x/docs/wildcard-mappings.html#WildcardMappings-AdvancedWildcards Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2014-11-10 15:22 GMT+01:00 Peter Björkman : > Hi! Just changed my config to enable regex in action names. In stru

Re: s:form does not output the correct path to action

2014-11-12 Thread Lukasz Lenart
2014-11-10 15:45 GMT+01:00 Peter Björkman : > Thanks for your reply! Yes I've read that, and I have those other two > configs also: > > > > > > The action that the form is pointing to is completely unrelated and has no > wildcards in the action name, so I don't think it should be affected by > t

Re: s:form does not output the correct path to action

2014-11-12 Thread Lukasz Lenart
2014-11-10 15:22 GMT+01:00 Peter Björkman : > Hi! Just changed my config to enable regex in action names. In struts.xml: > > > > Works great! But as a side effect, s:forms no longer outputs the correct > path to my actions. > > The code below: > > "multipart/form-data" method="post"> this missin

Re: s:form does not output the correct path to action

2014-11-12 Thread Lukasz Lenart
2014-11-12 12:22 GMT+01:00 Lukasz Lenart : >> > "multipart/form-data" method="post"> > > this missing "namespace" attribute This is the key problem here - you must specify this attribute when referencing action outside its package Regards --

Re: Can't find utils.js

2014-11-12 Thread Lukasz Lenart
2014-11-12 21:45 GMT+01:00 Paul Benedict : > Using outputs a link to utils.js: > > > > But the file can't be found. FYI, I have no action extension and the filter > processes /* What's your exact configuration? ? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ -

Re: Can't find utils.js

2014-11-13 Thread Lukasz Lenart
2014-11-13 7:44 GMT+01:00 Paul Benedict : > Yes... but now it's "," As far I understand this is broken from the very beginning ... version 2.1.8 behaves the same way Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ ---

Re: Can't find utils.js

2014-11-13 Thread Lukasz Lenart
2014-11-13 16:18 GMT+01:00 Paul Benedict : > Okay. This means the two (no action extension and plugin script resources) > are mutually incompatible at this time. I look forward to 2.5 to fixing > this. Basically, Struts must fallback to empty extension or treat "" as an empty extension Regards -

Re: best approach to clean parameters using Jsoup

2014-11-19 Thread Lukasz Lenart
2014-11-19 4:57 GMT+01:00 JOSE L MARTINEZ-AVIAL : > Hello, > We are using Struts 2.3.16.3 for our application. Due to security > reasons, we need to "clean" the user's input in order to avoid XSS. We are > using JSoup for that, with success( > http://jsoup.org/cookbook/cleaning-html/whitelist-san

Re: Struts2 with AngularJS

2014-11-19 Thread Lukasz Lenart
2014-11-19 9:51 GMT+01:00 foo bar : > Hi guys, > > I'm currently looking into ease of development of using AngularJS with > Struts2. > I'm wondering what is the best practice in general > ie. AngularJS with $resource or $http, Struts2 with what plugin ? > Is the REST + convention plugin a must to s

Re: How to predict wildcard mapping matching order when using Struts annotations

2014-11-19 Thread Lukasz Lenart
2014-11-12 7:42 GMT+01:00 Jim deVos : > When struts encounters a URI that matches multiple wildcard mappings it > chooses the most recent match (ie. "the last one wins" ). As a result, I > should define less-specific patterns before the more specific patterns. > This is simple enough when using

Re: Struts2 with AngularJS

2014-11-20 Thread Lukasz Lenart
2014-11-19 11:20 GMT+01:00 foo bar : > Hi, > > Thanks for the prompt reply, I'll have a look at the Struts2 AngularJS > archetype > But I meant AngularJS interceptor ( > https://docs.angularjs.org/api/ng/service/$http) which is still client > side, AngularJS interceptor is meant to intercept {name:

Re: best approach to clean parameters using Jsoup

2014-11-20 Thread Lukasz Lenart
IAL : > >> Thanks for the ideas. Overwriting retrieveParameters(ActionContext ac) >> method seems a good solution, although that would imply doing it to all >> parameters. While that could be ok, I would like to take a less aggressive >> approach.One option I'm consid

Re: best approach to clean parameters using Jsoup

2014-11-20 Thread Lukasz Lenart
ed an array of > String, so there is a perfect match and therefore XWorkConverter is not > used, it just calls the setter with the parameter, so the converter is not > used. > > 2014-11-20 7:48 GMT-05:00 Lukasz Lenart : > >> How did you register it? >> >> 2014-11

Re: Null values for Nested object properties after Form submission.

2014-11-26 Thread Lukasz Lenart
2014-11-26 12:36 GMT+01:00 Arpan : > Hi, > > I have a nested bean object, whose properties I am able to load in my jsp > and I can see the values. > But after Form submission, I am getting null values of the properties of > the nested object in my action. > I am implementing ModelDriven interface.

Re: Null values for Nested object properties after Form submission.

2014-11-26 Thread Lukasz Lenart
2014-11-26 17:26 GMT+01:00 Arpan : > Hi Lukasz, > > Even after adding no-arg constructor, the properties of nested > object(application) remains null. > But I am getting values of the properties of upper level object > 'ConfigBean' properly. > > Is there anything I am missing! Yeah... 'applicatio

[ANN] Apache Struts 2.3.20 GA release available with security fix

2014-12-08 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Apache Struts 2.3.20 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 desi

Re: Where to download xwork-core-2.3.20-sources.jar

2014-12-09 Thread Lukasz Lenart
2014-12-09 15:54 GMT+01:00 Emi Lu : > Good morning, > > Can I know where to download xwork-core-2.3.20-sources.jar please? All the sources are here - struts-2.3.20-src.zip or if you use Maven, it can download them for you or you can download the jar here http://search.maven.org/#browse%7C104118420

Re: Struts 2 support of Java 8

2014-12-10 Thread Lukasz Lenart
2014-12-10 18:37 GMT+01:00 Schlachter, Gary : > I have spent time searching and could not find a definitely answer on whether > or not Struts 2.3 support Java 8. In what version of Struts is Java 8 > supported? What you mean by "supported"? There are few issues that directly target JDK8 but S2

Re: com/opensymphony/xwork2/util/finder

2014-12-11 Thread Lukasz Lenart
2014-12-11 16:07 GMT+01:00 Emi Lu : > Jquery version: struts2-jquery-plugin-3.7.0-20131215.191645-3.jar > > If you think jquery caused it, could you tell me which version I should use? > And I will download new version and try again. Looks like, can you try with 3.7.1 version? Regards -- Łukasz

Re: Struts2 Not Working After Migrating from 2.3.15.1 to 2.3.20 in Wildfly server

2014-12-12 Thread Lukasz Lenart
Can you try with 2.3.16.3 first? 2014-12-12 15:30 GMT+01:00 Sreekanth S. Nair : > Hi, > Am facing a weird issue after upgrading strust2 from 2.3.15.1 to > 2.3.20 in Wildfly server. Its not giving any debug or any kind of trace > about what is happening, its just going to 404 page. I switched

<    5   6   7   8   9   10   11   12   13   14   >