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 me to narrow down the issue - 
> https://lists.apache.org/thread/jswvr9ls6kxqncp2b0423tby1orvqgsg
>
> The dependency version which we used on the PR branch(feature/WW-5420-text), 
> 6.4.0 and 6.5.0-SNAPSHOT version has  commons-lang3 version as 3.14.0. 
> Whereas the latest Apache TomEE 8.x container has the version commons-lang3 - 
> 3.12.0.
> (Please find the attachment for more details)
>
> As the container libs has highest precendence when compared to the 
> application to load, we have a issue and getting the error as below,
> java.lang.NoClassDefFoundError: org/apache/commons/lang3/Range
>
> In order to run the application with Struts 6.4.0 and 6.5.0-SNAPSHOT we 
> should align the dependencies with same as the container library version.
> If there is any way to instruct the precedence of the library to the 
> application higher than the container please do let me know if now I doubt 
> this will work on the Apache TomEE web server of version 8.x
>
> I believe it is best to have the version same as the container one, please 
> review my comments and do let me know your thoughts on the same.
>
> Thanks and Regards,
> Saravanan.S
> FTMS/NFT APP-DEV Team
> 
> From: SARAVANAN SIVAGURU 
> Sent: Thursday, April 25, 2024 12:20 PM
> To: Struts Users Mailing List 
> Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | 
> Testing
>
> Hi Luk
>
> Thank you, let me check by taking the PR in my local and keep you posted.
>
> Thanks and Regards,
> Saravanan.S
> 
> From: Lukasz Lenart 
> Sent: Thursday, April 25, 2024 11:56 AM
> To: Struts Users Mailing List 
> Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | 
> Testing
>
> CAUTION: This email originated from outside of the organization. Do not click 
> links or open attachments unless you recognize the sender and know the 
> content is safe.
>
>
> I upgraded commons-text to ver 1.12.0
> https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fstruts%2Fpull%2F924=05%7C02%7CSARAVANAN.SIVAGURU%40nielseniq.com%7C1aaf7a56d77745bc537108dc64f0bd53%7C6ac7a1f45fb14153bb4f12d2020a1f7d%7C0%7C0%7C638496232335496749%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C=HAoWZZIb2ts2PQyWu90jd6IHh4cGrVLKoSRZHXcR2Tw%3D=0
>
> śr., 24 kwi 2024 o 15:27 SARAVANAN SIVAGURU
>  napisał(a):
> >
> > Hi Luk
> >
> > Even for 6.4 version am facing the issue irrespective of changing the 
> > dependency version or not on common-text.
> >
> > Thanks and Regards,
> > Saravanan.S
> > 
> > From: SARAVANAN SIVAGURU 
> > Sent: Tuesday, April 23, 2024 6:45 PM
> > To: Struts Users Mailing List 
> > Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | 
> > Testing
> >
> > Hi Luk
> >
> > Please find the attachment for the 6.5 version dependency.
> >
> > Thanks and Regards,
> > Saravanan.S
> > 
> > From: SARAVANAN SIVAGURU 
> > Sent: Tuesday, April 23, 2024 2:31 PM
> > To: Struts Users Mailing List 
> > Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | 
> > Testing
> >
> > CAUTION: This email originated from outside of the organization. Do not 
> > click links or open attachments unless you recognize the sender and know 
> > the content is safe.
> >
> >
> > Sure, I will do
> >
> > Thanks and Regards,
> > Saravanan.S
> > 
> > From: Lukasz Lenart 
> > Sent: Tuesday, April 23, 2024 2:29 PM
> > To: Struts Users Mailing List 
> > Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | 
> > Testing
> >
> > CAUTION: This email originated from outside of the organization. Do not 
> > click links or open attachments unless you recognize the sender and know 
> > the content is safe.
> >
> >
> > wt., 23 kwi 2024 o 10:54 SARAVANAN SIVAGURU
> >  napisał(a):
> >
> > > Hi Luk
> > >
> > > Somehow I was unable to share the report files as a attachment in html
> > > format. Am attaching the text file, output of the gradle dependencies
> > > command for the my application.
> > >
> >
> > This is for Struts 6.4.0, but could you use Struts 6.5.0-SNAPSHOT and
> > re-post the dependencies?
> >
> >
> > Thanks in advance
> > Lukasz
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: 

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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 Validator failing constructor call

2024-04-17 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 research in the git repo I think the following commit caused the 
> problem: 
> https://github.com/apache/struts/commit/ff19dfee6f99f1650fc0c2484407d4ed75c2635e
>
>
>
> -Ursprüngliche Nachricht-
> Von: s.go...@inform-technology.de 
> Gesendet: Mittwoch, 17. April 2024 07:24
> An: 'Struts Users Mailing List' 
> Betreff: AW: Struts2 Validator failing constructor call
>
> Sure. I will try to figure out when it started to fail.
>
> -Ursprüngliche Nachricht-
> Von: Lukasz Lenart 
> Gesendet: Mittwoch, 17. April 2024 06:35
> An: Struts Users Mailing List 
> Betreff: Re: Struts2 Validator failing constructor call
>
> pt., 12 kwi 2024 o 09:57  napisał(a):
> >
> > Our path was 2.3.4.1 -> 2.3.24.1 -> 2.5.xx (2, 26, 30) -> 6.0.0 ->
> > 6.1.1 -> 6.1.2.1 -> 6.3.0.2 (but I left out some minor upgrades) Currently 
> > we are in OpenJDK 17.
>
> And the problem started with 6.3.0.2? Could you revert to 6.2.0 and check if 
> everything is ok?
>
>
> Thanks in advance
> Lukasz
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 (it uses Apache 2.0 license)

[1] https://github.com/codework/struts2-thymeleaf-plugin

pt., 8 mar 2024 o 12:15 Nate Kerkhofs  napisał(a):
>
> Hi,
>
> We have a project that we're preparing to upgrade to Java 17. It currently 
> uses Struts 6.3 with jsp results as framework for the web interface and 
> Spring 5.2 as framework for a REST API. We are waiting for Struts 6.4, but we 
> also will eventually upgrade to Struts 7 once that's released, as well as 
> Spring 6. We are also migrating our frontend from Dojo 1.16 to Bootstrap 5.3 
> for better support of modern browsers alongside a graphical overhaul.
>
> We're considering also migrating from jsps to html using Thymeleaf as a 
> templating engine. We have used Thymeleaf in a separate but related project 
> alongside Spring Boot and we enjoyed working with Thymeleaf over the JSPs 
> we're using in the current version with some overridden templates and 
> Displaytag tables, so we're wondering if we can use Thymeleaf in combination 
> with Struts 6 and eventually Struts 7. I did some preliminary Googling and 
> while I did find some outdated and discontinued plugins for Struts 2, it's 
> unclear whether Thymeleaf can be used with recent versions of Struts.
>
> Is Thymeleaf usable as a template engine for Struts 6? Or are we better off 
> looking for something else?
>
> Kind regards,
>
> Nate

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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.AbstractTilesApplicationContextFactory
>   
> org.apache.tiles.servlet.context.wildcard.WildcardServletTilesApplicationContextFactory
> 
>
>
AbstractTilesApplicationContextFactory is not supported anymore (I don't
see a reference to it in Tiles 3), what listener do you use in web.xml?

I would suggest setting up


org.apache.struts2.tiles.StrutsTilesListener


and get rid of the whole  section above.

You can try to use one of the Feature-Complete configuration
https://tiles.apache.org/framework/config-reference.html


Cheers
Lukasz


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 recently upgraded my Struts version from 2.5.22 to 2.5.33, and I'm
> encountering an issue with redirection in popups.
>
> For example, when I try to save a domain and click on the save button, the
> save operation works correctly.
>
> However, instead of redirecting me to the domains list, it leads to a
> blank page displaying the result.
>
> it seems that the Velocity tags are not functioning correctly. I tried
> changing them to HTML tags, and everything worked fine. I am using the
> #sform tag for my form, as shown below:
>
> *#*sform({"action":"save-domain", "method":"post", "validate":"true"})
>
> I'm using Velocity 1.7 and Velocity-tools version 2.0.
>
> I have attached a screenshot of the blank page showing the save operation
> result.
>
> Thanks in advance.
>
>


Re: Struts6 application having CSRF vulnerability

2023-07-14 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 lip 2023 o 15:11 GAUTAM PRASAD 
napisał(a):

> Hi,
>
> After scanning through OWASP - ZAP tool my application shows following
> medium level risk.
>
> Absence of Anti-CSRF Token
>
> for above ...I tried to implement token interceptor but I am not able to
> mitigate the risk and it still reflects on scanning.
>
> Kindly suggest.
>
>
> --
> Regards
> Gautam
>
>  
>
>


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

2022-10-13 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 breaking using the standard recommended refresh implementation [1].
> The new  tag code appends the "method" to the action file name
> making the url invalid. So instead of "actionName.action" the result is
> "actionName!methodName.action".  I believe this change was introduced in
> v6.0.3 for WW-5190 [2] with the addition of
> line DefaultActionMapper.java:292 "extractMethodName(mapping,
> configManager);"
>
> A real world example is below:
>
>  class="com.afs.web.struts.action.letters.LetterMergeBulkAction"
> method="contactList">
> 
>  name="wait">/struts/letters/letterMergeBulkWait_popup.jsp
> /struts/letters/letterMerge_popup.jsp
> 
>
> *Results in (v6.0.3)*
> /afs/app/LetterMergeBulk_contactList!contactList.action?struts.token.name
> =token=A9SIKBABK17IZFM6AHSP0QSFIJHLZKJB=14773
>
> *Instead of (v6.0.0)*
> /afs/app/LetterMergeBulk_contactList.action?struts.token.name
> =token=A9SIKBABK17IZFM6AHSP0QSFIJHLZKJB=14773
>
> *HTML Header*
> 
>Please wait
> />"/>
> 
>
> [1] https://struts.apache.org/core-developers/execute-and-wait-interceptor
> [2] https://github.com/apache/struts/pull/571/commits
>
>
> On Fri, Oct 7, 2022 at 3:37 PM Burton Rhodes  wrote:
>
> > After upgrading to Struts 6.0.x, the format of the url returned when using
> > includeParams seems to have changed. It now includes "!queue.action" which
> > is causing issues in my application. I am using it during an executeAndWait
> > call to refresh the page (using refresh logic in my javascript). Is this a
> > bug?
> >
> > *Struts.xml Definifation Action*
> >  > class="com.afs.web.struts.action.email.SendEmailAction" method="queue">
> > 
> > 500
> > 
> >  > name="wait">/struts/common/progressMonitorWait_popup.jsp
> > /struts/email/sendEmailResult_popup.jsp
> > /struts/email/sendEmail_popup.jsp
> > /struts/common/error/error_popup.jsp
> > /struts/common/login/login_popup.jsp
> > 
> >
> > *Tag Application*
> > *(html)*
> > "/>
> >
> > (javascript)
> > refreshUrl = new URL(window.location.origin + $('#refreshUrl').val());
> >
> > *Current Output*
> > /afs/app/SendEmail_queue!queue.action?struts.token.name
> > =token=BJKMBT7FZH6LNTI553HE7ZP1EM6XZEMN=1234
> >
> > *Output Prior*
> > /afs/app/SendEmail_queue?struts.token.name
> > =token=BJKMBT7FZH6LNTI553HE7ZP1EM6XZEMN=1234
> >
> > Thanks in advance.
> >

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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?
>
> Regards
> Łukasz
>
> pt., 9 wrz 2022 o 12:41 wwyyzz_001 <517654...@qq.com.invalid> napisał(a):
> >
> > In Struct 2.3.34,when namespase="" is default namespase.
> > If invoke http://localhost:8080/wisdomcampus-gs/user/login,because /user 
> > not define,Struct find action in default namespase,so everythiong is ok.
> >
> >
> > But In Struct 2.5.30,config(struts.xml) is not change,invoke 
> > http://localhost:8080/wisdomcampus-gs/user/login, return error: No result 
> > defined for action wisdom.user.action.LoginAction and result success.
> > Find action was invoked in log,but not found result,so Struct throw 
> > exception in 
> > DefaultActionInvocation.executeResult(DefaultActionInvocation.java:377)
> > 1.executeResult source code:
> >   private void executeResult() throws Exception {
> > result = createResult();
> >
> >
> > String timerKey = "executeResult: " + 
> > getResultCode();
> > try {
> >   UtilTimerStack.push(timerKey);
> >   if (result != null) {
> > 
> > result.execute(this);
> >   } else if (resultCode != null 
> >  !Action.NONE.equals(resultCode)) {
> > throw new 
> > ConfigurationException("No result defined for action " + 
> > getAction().getClass().getName()
> >   
> >   + " and result " + getResultCode(), proxy.getConfig());
> >   } else {
> > if 
> > (LOG.isDebugEnabled()) {
> >   
> > LOG.debug("No result returned for action {} at {}", 
> > getAction().getClass().getName(), proxy.getConfig().getLocation());
> > }
> >   }
> > } finally {
> >   UtilTimerStack.pop(timerKey);
> > }
> >   }
> >
> >
> >
> > 2.Struct console log:
> > 2022-09-09 18:32:16 [http-nio-8080-exec-1] DEBUG SecurityMemberAccess:67 - 
> > Checking access for [target: wisdom.user.action.LoginAction@3fd415d2, 
> > member: public
> > final java.lang.String wisdom.common.JsonActionBase.execute() throws 
> > java.lang.Exception, property: null]
> > 2022-09-09 18:32:16 [http-nio-8080-exec-1] DEBUG 
> > InstantiatingNullHandler:98 - Entering nullPropertyValue 
> > [target=[wisdom.user.action.LoginAction@3fd415d2, com.
> > opensymphony.xwork2.DefaultTextProvider@e405047], property=locale]
> > 2022-09-09 18:32:16 [http-nio-8080-exec-1] DEBUG I18nInterceptor:124 - 
> > After action invocation Locale=null
> > 2022-09-09 18:32:16 [http-nio-8080-exec-1] WARN Dispatcher:613 - 
> > Could not find action or result: /wisdomcampus-gs/login
> > com.opensymphony.xwork2.config.ConfigurationException: No result defined 
> > for action wisdom.user.action.LoginAction and result success
> > at 
> > com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:377)
> >  ~[struts2-core-2.5.30.jar:2.5.30]
> > at 
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:279)
> >  ~[struts2-core-2.5.30.jar:2.5.30]
> > at 
> > org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:250)
> >  ~[struts2-core-2.5.30.jar:2.5.30]
> > at 
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> >  ~[struts2-core-2.5.30.jar:2.5.30]
> > at 
> > com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:179)
> >  ~[struts2-core-2.5.30.jar:2.5.30]
> > at 
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> >  ~[struts2-core-2.5.30.jar:2.5.30]
> > at 
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> >  ~[struts2-core-2.5.30.jar:2.5.30]
> > at 
> > com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
> >  ~[struts2-core-2.5.30.jar:2.5.30]
> > at 
> > org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:49)
> >  ~[struts2-core-2.5.30.jar:2.5.30]
> > at 
> > com.opensymphony.xwork2.interceptor.MethodFilterInte

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="" is default namespase.
> If invoke http://localhost:8080/wisdomcampus-gs/user/login,because /user not 
> define,Struct find action in default namespase,so everythiong is ok.
>
>
> But In Struct 2.5.30,config(struts.xml) is not change,invoke 
> http://localhost:8080/wisdomcampus-gs/user/login, return error: No result 
> defined for action wisdom.user.action.LoginAction and result success.
> Find action was invoked in log,but not found result,so Struct throw exception 
> in DefaultActionInvocation.executeResult(DefaultActionInvocation.java:377)
> 1.executeResult source code:
>   private void executeResult() throws Exception {
> result = createResult();
>
>
> String timerKey = "executeResult: " + 
> getResultCode();
> try {
>   UtilTimerStack.push(timerKey);
>   if (result != null) {
> result.execute(this);
>   } else if (resultCode != null 
>  !Action.NONE.equals(resultCode)) {
> throw new 
> ConfigurationException("No result defined for action " + 
> getAction().getClass().getName()
>
>  + " and result " + getResultCode(), proxy.getConfig());
>   } else {
> if 
> (LOG.isDebugEnabled()) {
>   
> LOG.debug("No result returned for action {} at {}", 
> getAction().getClass().getName(), proxy.getConfig().getLocation());
> }
>   }
> } finally {
>   UtilTimerStack.pop(timerKey);
> }
>   }
>
>
>
> 2.Struct console log:
> 2022-09-09 18:32:16 [http-nio-8080-exec-1] DEBUG SecurityMemberAccess:67 - 
> Checking access for [target: wisdom.user.action.LoginAction@3fd415d2, member: 
> public
> final java.lang.String wisdom.common.JsonActionBase.execute() throws 
> java.lang.Exception, property: null]
> 2022-09-09 18:32:16 [http-nio-8080-exec-1] DEBUG InstantiatingNullHandler:98 
> - Entering nullPropertyValue 
> [target=[wisdom.user.action.LoginAction@3fd415d2, com.
> opensymphony.xwork2.DefaultTextProvider@e405047], property=locale]
> 2022-09-09 18:32:16 [http-nio-8080-exec-1] DEBUG I18nInterceptor:124 - After 
> action invocation Locale=null
> 2022-09-09 18:32:16 [http-nio-8080-exec-1] WARN Dispatcher:613 - Could 
> not find action or result: /wisdomcampus-gs/login
> com.opensymphony.xwork2.config.ConfigurationException: No result defined for 
> action wisdom.user.action.LoginAction and result success
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:377)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:279)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:250)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:179)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:49)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:142)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:140)
>  ~[struts2-core-2.5.30.jar:2.5.30]
> at 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
>  

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
> debugging it seems like the first action processes it correctly and
> returns the result page and the jsp forward is triggered at this point
> struts seems to execute the first action again rather than
> the action specified in the jsp forward.
>
> from web.xml
>
>  
>  struts2
>  *.action
>  FORWARD
>  REQUEST
>  
>
> Thanks,
> Prasanth

-- 
(mobile)


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

2017-06-13 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
> log4j-core
> 2.8.2
>
>
> When it should be both log4j-core and log4j-api:
>
>
> 
> org.apache.logging.log4j
> log4j-core
> 2.8.2
> 
> 
> org.apache.logging.log4j
> log4j-api
> 2.8.2
> 
>
> Because struts has a dependency to an earlier version of log4j... if both
> are explicitly specified even with x.x.x versions, most users would use the
> latest and keep them in sync. It isn't fun to experience _any_ errors when
> doing a starting tutorial.
>
>
>
>
>
> On Mon, Jun 12, 2017 at 12:22 PM, Ken McWilliams 
> wrote:
>
>> The following "Getting started" page:
>>
>>
>
>
> --
> Sent from my C64 using a 300 baud modem



-- 
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Confitura conference http://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 czw., 18.05.2017 o 21:16 Greg Lindholm 
napisał(a):

> I've upgraded to Struts 2.3.32.
> Our site is still getting bombarded with S2-045 attacks.
>
> The application logs are filled with stack traces from these. I notices
> that one request is often generating two stack traces. The first is
> expected and second isn't.
>
> First exception (with most of the attack crap obscured):
> 2017-05-16 06:18:22,022 WARN
> org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest:68 - Unable
> to parse request
> org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException:
> the request doesn't contain a multipart/form-data or multipart/mixed
> stream, content type header is
> %{(#_='multipart/form-data').(#dm=@ognl.OgnlContext@DEFAULT_MEMBER_ACCESS
> ).XX}
> at
>
> org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.(FileUploadBase.java:948)
> at
>
> org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:310)
> at
>
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:334)
> at
>
> org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.parseRequest(JakartaMultiPartRequest.java:192)
> at
>
> org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.processUpload(JakartaMultiPartRequest.java:131)
> at
>
> org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.parse(JakartaMultiPartRequest.java:92)
> at
>
> org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.(MultiPartRequestWrapper.java:84)
> at
> org.apache.struts2.dispatcher.Dispatcher.wrapRequest(Dispatcher.java:849)
> ...
>
> Second exception:
> 2017-05-16 06:18:22,024 WARN  org.apache.struts2.dispatcher.Dispatcher:68 -
> Could not find action or result: /index.action
> No result defined for action com.opensymphony.xwork2.ActionSupport and
> result input - action -
> file:/xxx/webapps/Resolution/webroot/WEB-INF/classes/struts.xml:24:26
> at
>
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:374)
> at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
> at
>
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
> at
>
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)
> at
>
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at
>
> com.google.inject.struts2.Struts2Factory$ProvidedInterceptor.intercept(Struts2Factory.java:216)
> at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at
>
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> at
>
> com.google.inject.struts2.Struts2Factory$ProvidedInterceptor.intercept(Struts2Factory.java:216)
> at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at
>
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
> at
>
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at
>
> com.google.inject.struts2.Struts2Factory$ProvidedInterceptor.intercept(Struts2Factory.java:216)
> at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at
>
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
> at
>
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at
>
> com.google.inject.struts2.Struts2Factory$ProvidedInterceptor.intercept(Struts2Factory.java:216)
> at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> ...
>
> In the Tomcat access logs I see the a "GET /index.action HTTP/1.1" but this
> doesn't log headers etc. so I don't have the full request (with all the
> attack code).
>
> My app doesn't have a "/index.action" but it does have a catchAll [ action
> name="*" ] which normally works but apparently not in this scenario.
>
> I'm not able to reproduce this on my development machine.
>
> Is anyone else seeing similar things happening?
> Is there anything here to worry about?
> Any changes I should be making?
>
>
> Greg
>
-- 
(mobile)


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 Action mapped for namespace [/] and action name
>
> These visits are generated by the bots and they are trying to reach a
> previous action that does not exist anymore.
>
> How can I do this?
>
> Thanks
> Murat
>


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 execute
> methods, and it is used by two actions, as follows:
>
>  class="com.xxx.EasyEnrollmentCreateClient" method="createUserForClient">
>  class="com.xxx.EasyEnrollmentCreateClient" method="createUserForParty">
>
>
> Each method has its own validations, defined by annotations at the method
> level.
>
> @Validations(requiredStrings = {
> @RequiredStringValidator(fieldName="idLanguage", key =
> "validation-error.mandatory", messageParams={"getText('idLanguage')"}),
> @RequiredStringValidator(fieldName="idCompany", key =
> "validation-error.mandatory", messageParams={"getText('idCompany')"}),
> @RequiredStringValidator(fieldName="idParty", key =
> "validation-error.mandatory", messageParams={"getText('idParty')"})})
> public String createUserForParty() throws Exception {
>
>
>
> @Validations(requiredStrings = {
> @RequiredStringValidator(fieldName="idLanguage", key =
> "validation-error.mandatory", messageParams={"getText('idLanguage')"}),
> @RequiredStringValidator(fieldName="idCompany", key =
> "validation-error.mandatory", messageParams={"getText('idCompany')"}),
> @RequiredStringValidator(fieldName="idCustomer", key =
> "validation-error.mandatory", messageParams={"getText('idCustomer')"})})
> public String createUserForClient() throws Exception {
>
>
> The issue is that both sets of validations are always executed, no matter
> which action has been called. And I see in the response that when
> idLanguage or idCompany are missing, the error appears twice, since it is
> requited in both actions.
>
> What am I doing wrong?
>
> Regards
>
> JL
>


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 pavel.ilyus...@gmail.com:
 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.

 Now I'm having problems in using the json plugin while making json requests
 and returning the json responses.

 The problem is that the parameter values passed in the json request are not
 set on my struts 2 action any more (likewise, the return fields set in my
 action are not returned as a json string).
 Why does this happen? The problem is that a change has been made in the
 newer version of json plugin regarding to how the target action is found.

 1. Consider this method:

 public String intercept(ActionInvocation invocation) throws Exception

 from the older version of the json plugin:

 http://grepcode.com/file/repo1.maven.org/maven2/org.apache.struts/struts2-json-plugin/2.1.8/org/apache/struts2/json/JSONInterceptor.java?av=f

 line 100:

 rootObject = invocation.getAction(); // that's why the action class
 instance is found ok in struts 2.1.8

 now from the newer plugin:

 http://grepcode.com/file/repo1.maven.org/maven2/org.apache.struts/struts2-json-plugin/2.3.16.3/org/apache/struts2/json/JSONInterceptor.java?av=f

 line 91:

 ValueStack stack = invocation.getStack();
 rootObject = stack.findValue(this.root); // the value on the top of the
 value stack is used! and this is not an action in our case (we push an
 interceptor on the top of the stack!).

 2. Returning the target action's fields as the json return result:

 consider this method:

 public void execute(ActionInvocation invocation) throws Exception

 from the older plugin:

 http://grepcode.com/file/repo1.maven.org/maven2/org.apache.struts/struts2-json-plugin/2.1.8/org/apache/struts2/json/JSONResult.java?av=f

 line 195:

 rootObject = invocation.getAction(); // that's why the action class
 instance is found in struts 2.1.8

 from the newer plugin:

 http://grepcode.com/file/repo1.maven.org/maven2/org.apache.struts/struts2-json-plugin/2.3.16.3/org/apache/struts2/json/JSONResult.java?av=f

 line 175:

 rootObject = readRootObject(invocation);

 line 187:

 return findRootObject(invocation);

 line 193:

 ValueStack stack = invocation.getStack();
 rootObject = stack.findValue(root); // the value on the top of the value
 stack is an instance of our custom interceptor, not the target action!

 It is not clear to me why the logic of finding the target action has
 changed to popping up the value from the top of the stack.

 In our case this approach does not work anymore, since we have a custom
 interceptor pushed onto the top of the stack.

 Is there any workaround?

 Thanks



 --
 Pavel Ilyushko

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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

2014-06-20 Thread Łukasz Lenart
Attachment is missing and mailing doesn't allow to send attachments ;-)


2014-06-20 3:26 GMT+02:00 Tri Quan quans...@wans.net:



 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 localhost:8080/IteratorKFC/menu.action
 .





 what is wrong ?  Incorrect configuration or incorrect URL ?





 Thank you for your help and advices.









 Strut.xml source 

 ?xml version=1.0 encoding=UTF-8 ?

 !DOCTYPE struts PUBLIC

 -//Apache Software Foundation//DTD Struts Configuration 2.0//EN

 http://struts.apache.org/dtds/struts-2.0.dtd;



 struts



 !-- Configuration for the default package. --

!-- constant name=struts.action.extension value=/  --



 constant name=struts.devMode value=true /

 package name=IteratorKFC namespace=/IteratorKFC
 extends=struts-default

 action name=menu class=iteratorkfc.IteratorKFCAction
 method=execute

 result
 name=successpages/iteratorkfc.jsp/result

 /action

 /package

 /struts



 ItertorKFCAction java ==

 package iteratorkfc;

 import java.util.*;



 import com.opensymphony.xwork2.ActionSupport;

 public class IteratorKFCAction extends ActionSupport{

 private ListString comboMeals;



 public ListString getComboMeals() {

 return comboMeals;

 }



 public void setComboMeals(ListString comboMeals) {

 this.comboMeals = comboMeals;

 }



 @Override

 public String execute() {



 comboMeals = new ArrayListString();

 comboMeals.add(Snack Plate);

 comboMeals.add(Dinner Plate);

 comboMeals.add(Colonel Chicken Rice
 Combo);

 comboMeals.add(Colonel Burger);

 comboMeals.add(O.R. Fillet Burger);

 comboMeals.add(Zinger Burger);



 return SUCCESS;

 }



 }



 Jsp 

 %@ page contentType=text/html; charset=UTF-8 %

 %@ taglib prefix=s uri=/struts-tags %



 html

 head

 titles:text name=Struts2 Iterator //title

 /head



 body

h1Struts 2 Iterator tag example/h1



h3Simple Iterator/h3

 ol

 s:iterator value=comboMeals

 lis:property //li

 /s:iterator

 /ol



   h3Iterator with IteratorStatus/h3

 table

 s:iterator value=comboMeals status=comboMealsStatus

 tr

 s:if test=#comboMealsStatus.even == true

 td style=background: #CCs:property//td

 /s:if

 s:elseif test=#comboMealsStatus.first == true

 tds:property/ (This is first value) /td

 /s:elseif

 s:else

 tds:property//td

 /s:else

 /tr

 /s:iterator

 /table



 /body

 /html



 Tri Quan




-- 
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/


Re: Framework provided text key resolving issue

2013-09-10 Thread Łukasz Lenart
2013/9/9 Christoph Nenning christoph.nenn...@lex-com.net:
 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 user.language
 which is de in my case
 - a file for that locale is present and hence I get the german text
 instead of the requested english one

This is strange, struts-messages bundle should be investigate fully -
first _en then default one. Which JVM version do you use?

 We provide our application texts for english in 2 files (of course
 scripted):
 - bundle.properties
 - bundle_en.properties

 I propose as workaround that english framework texts are provided the same
 way in 2 files.

Can you register issue for that?


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 commands, e-mail: user-h...@struts.apache.org



Re: Spring Plugin

2013-08-26 Thread Łukasz Lenart
Yes

2013/8/26 Alireza Fattahi afatt...@yahoo.com:
 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 - Confitura http://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts 2 presentation layer

2013-03-11 Thread Łukasz Lenart
11 mar 2013 18:41, john lee sh_thorn_b...@yahoo.com napisał(a):
 what is the presentation layer it support?

also Velocity, Google pages (gxp)

 thanks

 john



 
  From: Martin Gainty mgai...@hotmail.com
 To: Struts Users Mailing List user@struts.apache.org
 Sent: Monday, March 11, 2013 5:33 AM
 Subject: RE: struts 2 start problem struts2-gxp-plugin-2.3.7.jar

 rename struts2-gxp-plugin-2.3.7.jar e.g.

 mv
/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar
/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar.old

 or delete  struts2-gxp-plugin-2.3.7.jar

 stop your session and redeploy usually works BUT i would bounce the
server just ot make sure you start ecommerce webapp clean

 Martin
 __
 Verzicht und Vertraulichkeitanmerkung

 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
dient lediglich dem Austausch von Informationen und entfaltet keine
rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.



  Date: Sun, 10 Mar 2013 20:32:41 -0700
  From: sh_thorn_b...@yahoo.com
  Subject: struts 2 start problem struts2-gxp-plugin-2.3.7.jar
  To: user@struts.apache.org
 
  i try to start tomcat, but giving the following error
 
  Unable to load configuration... struts2-gxp-plugin-2.3.7.jar...
 
  in the CLASSPTH, i even did not load struts2-gxp-plugin-2.3.7.jar at
all, why this happen?
 
  please advise
 
  thanks in advance
 
  john
 
 
  SEVERE: Dispatcher initialization failed
  Unable to load configuration. - bean -
jar:file:/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar!/struts-plugin.xml:8:162
  at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:71)
  at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)
  at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)
  at
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
  at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
  at
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:278)
  at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)
  at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:383)
  at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:104)
  at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650)
  at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306)
  at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
  at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
  at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
  at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:662)
  Caused by: Unable to load bean:
type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer
class:org.apache.struts2.views.gxp.inject.InjectedObjectContainer - bean -
jar:file:/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar!/struts-plugin.xml:8:162
  at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)
  at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
  at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215)
  at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:68)
  ... 18 more
  Caused by: java.lang.ClassNotFoundException:
org.apache.struts2.views.gxp.inject.InjectedObjectContainer
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
  at
com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:152)
  at

Re: How to implement custom ActionProxyFactory

2012-11-12 Thread Łukasz Lenart
Hi,

bean type=com.opensymphony.xwork2.ActionProxyFactory
name=myProxyFactory
class=org.apache.struts2.impl.MyActionProxyFactory/
constant name=struts.actionProxyFactory value=myProxyFactory/

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: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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

2012-10-24 Thread Łukasz Lenart
2012/10/24 Juan Jose Fuentes Esteban juanjose.fuen...@grupoica.com:
 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
-- 
Ł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 commands, e-mail: user-h...@struts.apache.org



Re: Struts2 authentication, validation, and roles

2012-10-04 Thread Łukasz Lenart
2012/10/3 Ken McWilliams ken.mcwilli...@gmail.com:
 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 on Glassfish,
 Weblogic, Tomcat...). This is container security and of course not
 Struts2s issue but it would be nice it we could use the roles
 interceptor by defining a
 org.apache.struts2.interceptor.PrincipalProxy implementation and
 specifying it with a struts2 constant:

 constant name=struts.security.principalProxy
 value=com.example.MyPrincipalProxyImpl/ //default would be
 org.apache.struts2.servlet.interceptor.ServletPrincipalProxy

 There is only a few place (that I know of) where the PrincipalProxy
 interface aught to be used where currently the request is being used
 (aught to be used if implementing this feature). That is in the
 servletConfig interceptor when setting the PrincipalAware interface
 of an action and in the roles interceptor.

 It is not too much work to implement our own interceptors to
 facilitate role based access but I think this would be helpful to many
 and does not seem to require a radical change to S2 internals, so I
 thought I would bring this up in the user forum to see what others
 think.

I thought a bit more about that and this can be achieved by a
PrincipalProvider (as TextProvider) which can be injected onto
interceptors or any other place. It will produce PrincipialProxy base
on HttpServletRequest, eg.
PrincipialProvider#getPrincipialProxy(HttpServletRequest)


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 commands, e-mail: user-h...@struts.apache.org



Re: overriding framework components

2012-10-04 Thread Łukasz Lenart
2012/10/4 Davis, Chad chad.da...@emc.com:
 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 class, which can be set via a 
 constructor.  But I suspect the DI must only use the parameterless 
 constructor.  Is this true?  In what cases do those other constructors get 
 invoked?

Yeah, it was my first bigger addition to Struts 2 ;-) It isn't an
optimal one ;-)

Anyway, you're right. DI will use the default constructor, the others
are used in other places (TextProviderFactory and ) - that's why it
isn't an optimal solution. DI supports also constructor injections, in
the same way as property injection, just add @Inject to constructor.


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 commands, e-mail: user-h...@struts.apache.org



Re: Updated Struts 2 Ant Examples

2012-09-06 Thread Łukasz Lenart
2012/9/6 bphill...@ku.edu 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
 commons-lang 2.X but just needs commons-lang3.

The problem is with third party dependencies which still base on
commons-lang 2.x like Velocity. So in fact you must both libraries,
commons-lang 2.x and commons-lang3.

Anyway, thanks for keeping up the examples in sync :-)


Kind 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 commands, e-mail: user-h...@struts.apache.org



Re: Struts 2 Iterator, Param and Text tags usage

2012-08-29 Thread Łukasz Lenart
I think, s:text/ 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 additional commands, e-mail: user-h...@struts.apache.org



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 unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: how to remove .action suffix in struts 2.1

2012-08-03 Thread Łukasz Lenart
Do you use the REST plugin ? If so please try with the latest snapshot
as there was a bug in RestActionMapper which prevents to properly
handle static resources.


Regards
-- 
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

2012/7/10 lucas owen sr.ilus...@gmail.com:
 thanks Lukasz, but I get the same error.

 my welcome file is index.html, so first of all it complains:

 HTTP 404 - There is no Action mapped for namespace / and action name
 index.html

 But now I can access my actions without the .action in the URL. 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:

 constant name=struts.action.extension value=/-- in struts.xml

 filter-mapping
 filter-namestruts2/filter-name
 url-pattern/*/url-pattern
 /filter-mapping
 -- in web.xml

 thanks in advance!!


 2012/7/10 Łukasz Lenart lukasz.len...@googlemail.com

 2012/7/10 lucas owen sr.ilus...@gmail.com:
  filter-mapping
  filter-namestruts2/filter-name
  url-pattern*/url-pattern
  /filter-mapping

 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/

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: some issues upgrade struts from 2.2.3 to 2.3.4

2012-07-30 Thread Łukasz Lenart
2012/7/18 Miguel miguel...@gmail.com:
 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/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: some issues upgrade struts from 2.2.3 to 2.3.4

2012-07-30 Thread Łukasz Lenart
2012/7/18 Miguel miguel...@gmail.com:
 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] https://issues.apache.org/jira/browse/WW-3418


Kind 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 commands, e-mail: user-h...@struts.apache.org



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 rajdeep.si...@hp.com:
 Hi All,

 I have written classname-validation.xml as per tutorial given at Apache site 
 but it's not working for result name input.

 Questions :

 1. Do I need to write something in struts.xml for default validator to work ?

 Below is my validation xml file :

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE validators PUBLIC
 -//OpenSymphony Group//XWork Validator 1.0.2//EN
 http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd;
 validators
  field name=userName
  field-validator type=requiredstring
 param name=trimtrue/param
 messageUser Name is required/message
 /field-validator
 /field
 /validators

 Thanks,

 Rajdeep Singh

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 additional commands, e-mail: user-h...@struts.apache.org



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 m...@meetingmasters.de:


 I use two different namespaces to secure my web application ( with spring
 security)

 One is /pubilc  the other is called.. well..  /private. Everything
 underneath /private is available only  to logged-in users.


 Currently  there is an action class living in the /public namespace named
 ShowPublicAgendaAction
 which is responsible for showing today's agenda items.


 A very similar action ShowPrivateAgendaAction exists in the secured /private
 namespace
 which does pretty much the same thing, the only difference is, that all
 available agenda itens are presented to the user
 (not only those of today)


 I'd like to consolidate both actions since they differ only in one single
 line of code

  Public:   public void prepare() { ListAgendaItem items=
 agendaManager.loadTodaysItems();.}

 Private:  public void prepare() {  ListAgendaItem items=
 agendaManager.loadItems();..}


 How do I go about serving requests from different namespaces in one Action
 class?

 Requests coming-in from /private should call  items=
 agendaManager.loadItems();
 Everythng else should call items= agendaManager.loadTodaysItems();



 Thanks.

 Mounir











 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 RedirectAction Situation

2012-07-18 Thread Łukasz Lenart
2012/7/17 Hernán heam...@gmail.com:
 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/docs/spring-plugin.html#SpringPlugin-InitializingActionsfromSpring


Kind 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 commands, e-mail: user-h...@struts.apache.org



Re: Validation stack name

2012-07-18 Thread Łukasz Lenart
2012/7/19 Paul Benedict pbened...@apache.org:
 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 my misunderstanding?

Here you have the file [1], defaultStack is the default interceptor
stack and struts-default is package name as Dave mentioned.

http://struts.apache.org/2.3.4/docs/struts-defaultxml.html


Regrads
-- 
Ł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 commands, e-mail: user-h...@struts.apache.org



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 additional commands, e-mail: user-h...@struts.apache.org



Re: how to remove .action suffix in struts 2.1

2012-07-10 Thread Łukasz Lenart
2012/7/10 lucas owen sr.ilus...@gmail.com:
 filter-mapping
 filter-namestruts2/filter-name
 url-pattern*/url-pattern
 /filter-mapping

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/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: JBoss : error deploy webApp Struts2 + Jquery plugin

2012-07-09 Thread Łukasz Lenart
2012/7/9 ngald ng...@libero.it:
 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
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 commands, e-mail: user-h...@struts.apache.org



Re: S2 equivalent of ForwardAction?

2012-07-05 Thread Łukasz Lenart
2012/7/6 Paul Benedict pbened...@apache.org:
 Is there any such shortcut in S2? It would be nice if such a thing existed 
 like:
 action name=gopage
   result name=success/page.jsp/result
 /action

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.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 mig...@almeida.at:
 I believe I've found the culprit.
 While the problem is present in commit
 https://github.com/mmalmeida/struts-performance/commit/aba93098174c8c8c1684ffdd9bf332b212a893a
  , it's not present in the latest commit if you turn devMode to false.

 The issue was the freemarker version 2.3.9 in that commit. Updating to
 2.3.19 makes performance normal again (the complete project needed
 freemarker, hence the direct dependency reference in the pom).

 While I don't know what changed between these freemarker versions,
 apparently the problem was there.

 Miguel Almeida

 On Thu, 2012-07-05 at 13:16 +0100, Miguel Almeida wrote:

 Sorry, I sent the email before explaining.

 The repo has a maven project that I stripped down to the most basic to
 show the issue. Notice the iterator in index.jsp.

 I tried to remove every unused configuration, file and dependency to
 make the project as simple as possible.

 The original project is using tiles, so I kept it there. However, I
 don't think it's being used in the web workflow I created (which just
 goes to index.jsp).

 Is there anything there that might explain this slowness?

 Cheers,

 Miguel Almeida

 On Thu, 2012-07-05 at 13:05 +0100, Miguel Almeida wrote:

  Sure, Lukas:
 
  https://github.com/mmalmeida/struts-performance
 
 
 
  On Thu, 2012-07-05 at 06:48 +0200, Lukasz Lenart wrote:
 
   Could you post somewhere (GitHub) the whole code base ?
  
  
   Regards
 
 





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2

2012-07-03 Thread Łukasz Lenart
2012/7/3 Avinash aavinash.na...@gmail.com:
 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 where it occured.

Did you check with Tomcat Manager that your application was already deployed ?

-- 
Ł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 commands, e-mail: user-h...@struts.apache.org



Re: Runtime error while starting struts2 application

2012-07-02 Thread Łukasz Lenart
2012/6/27 Jeffrey Benedict jeffrey.bened...@us.usana.com

   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.4/docs/simple-setup.html


Regards
-- 
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/


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 anand.madangopal...@cevalsoft.com:
 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 there any way to manually include
 the javascript files if we wants to 

You mist implement your own version of StaticContentLoader interface
and add it to struts.xml as below:

bean type=org.apache.struts2.dispatcher.StaticContentLoader
class=com.demo.MyStaticContentLoader name=myContentLoader /
constant name=struts.staticContentLoader value=myContentLoader /

Take a look on DefaultStaticContentLoader implementation.

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 commands, e-mail: user-h...@struts.apache.org



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 pierre.templ...@gmail.com:
 I was able to register an application-wide DoubleConverter with
 primitive type double this way :
 == xwork-conversion.properties ==
 # syntax: type = converterClassName
 double = com.company.app.DoubleConverter

It isn't a hack, it's a normal way to do the things ;-)

 it works but it looks more like a hack than something i can rely on as
 it based on the bug Łukasz indicated
 (https://issues.apache.org/jira/browse/WW-3171). I might be surprised
 to see this no more working when this bug is fixed.

I'll work on that as soon I'll finish with FileManager and Confitura
conference ;-)


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 commands, e-mail: user-h...@struts.apache.org



Re: Validation Help

2012-06-18 Thread Łukasz Lenart
2012/6/17 Paul Mefford paulmeff...@gmail.com:
 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 using
ActionValidatorManager interface - there are two known implementations
- AnnotationActionValidatorManager (used by Struts 2) and
DefaultActionValidatorManager (used be XWork when running without
Struts 2).

If you want to implement your Manager, to enable it just add the line
below to your struts.xml

bean type=com.opensymphony.xwork2.validator.ActionValidatorManager
name=struts.actionValidatorManager class=con.company.MyManager /

You can also try to debug your application and see what's going on in
AnnotationActionValidatorManager#loadFile()


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 commands, e-mail: user-h...@struts.apache.org



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) hai...@fsoft.com.vn:
 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 run.

 bean id=demo class=action.demo scope=prototype
 /bean

Which version of Spring ?


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 commands, e-mail: user-h...@struts.apache.org



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) hai...@fsoft.com.vn:
 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/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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) hai...@fsoft.com.vn:
 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.html#beans-factory-scopes


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 commands, e-mail: user-h...@struts.apache.org



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://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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

2012-06-18 Thread Łukasz Lenart
2012/6/18 Miguel Almeida mig...@almeida.at:
 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 support of resources


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 commands, e-mail: user-h...@struts.apache.org



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

2012-06-17 Thread Łukasz Lenart
2012/6/15 Omar Ngarigari ngarigar...@yahoo.com:
 The default value is list value. For example, my code is as follow:

 s:iterator value=myList var=record
 s:textfield name=stateName value={#record.stateName}/
 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
validation error happened, the values entered by user are put on top
of the stack. Looks like you override them.


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 commands, e-mail: user-h...@struts.apache.org



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

2012-06-15 Thread Łukasz Lenart
Use simple theme and add s:actionerror/ tag to display validation
messages or s:fielderror/ 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://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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

2012-06-15 Thread Łukasz Lenart
2012/6/15 Omar Ngarigari ngarigar...@yahoo.com:
 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 user entered in first place.

You must have something wrong with your code, as you said, it returns
to defaults which means you override what was entered by user.


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 commands, e-mail: user-h...@struts.apache.org



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

2012-06-11 Thread Łukasz Lenart
2012/6/8  struts@spamgourmet.com:
 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
-- 
Ł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 commands, e-mail: user-h...@struts.apache.org



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 jogaco...@gmail.com:
 A full example based on struts2 blank archetype attached.
 Run with maven2: mvn jetty:run
 Url: http://localhost:8080/struts-test/example/Login

 Enter as year of birth a bad integer: 1980aaa
 You'll see the timestamp still there, BUT the milliseconds are set to zero.
 Is this a bug?

 J.

 On Fri, Jun 8, 2012 at 8:47 PM, s srrem...@excite.com wrote:

 Tried with Struts 2.3.4 and still having the issue.

 Look at View Source in the browsee and note down value of field
 student.createdTimestmp. It will have both date  time.

 Remove Name (make it blank) and click on Save button.

 Error will be displayed Student Name is required. Now again take a look
 at View Source.
 Field student.createdTimestmp will only have date and time will be
 MISSING.



 -Original Message-
 From: J. Garcia [jogaco...@gmail.com]
 Date: 06/08/2012 05:15 AM
 To: Struts Users Mailing List user@struts.apache.org
 Subject: Re: Struts 2 losing timestamp in java.util.Date when validation
 failed

 With 2.3.3, it is working for me, in my own app.
 When input is returned, I can still see the timestamp value in the form.
 Haven't tried with your example.


 On Thu, Jun 7, 2012 at 7:39 PM, s srrem...@excite.com wrote:

  Yep..That's what I did
 
  But the question is, why it retains time information, if there is no
  validation error...?
 
 
 
  -Original Message-
  From: J. Garcia [jogaco...@gmail.com]
  Date: 06/07/2012 12:21 PM
  To: Struts Users Mailing List user@struts.apache.org
  Subject: Re: Struts 2 losing timestamp in java.util.Date when validation
  failed
 
  Try using date formatting like this:
 
  s:textfield key=student.date value='%{getText({0,date,dd/MM/
  HH:mm:ss.SSS},{student.date})}'/
 
  J.
 
  On Wed, Jun 6, 2012 at 11:08 PM, s srrem...@excite.com wrote:
 
   Here's an JSPs, action class and struts.xml
  
   http://localhost:8080/Sample/student_edit.action       calls form/jsp
   studentDetails.
  
   Erase name and submit form, this will result in validation being
   failed.
  
   This will erase timestamp from hidden field
   s:hidden name=student.createdTimestmp/
  
   If not validation error occurs, then it retains time.
  
  
  
   -Original Message-
   From: Dave Newton [davelnew...@gmail.com]
   Date: 06/06/2012 12:57 PM
   To: Struts Users Mailing List user@struts.apache.org
   Subject: Re: Struts 2 losing timestamp in java.util.Date when
   validation
   failed
  
   On Wed, Jun 6, 2012 at 12:54 PM, s srrem...@excite.com wrote:
  
I found following work around.
Sorry can't attach source JSP, because of client restrictions.
  
  
   Here's the trivial workaround:
  
   * Create a minimally-failing example containing essentially identical
  JSP.
   * Post it.
  
   Whether or not your client wishes to admit it, it's unlikely any sort
   of
  IP
   law would protect the usage of a hidden field and date render in an
  example
   JSP.
  
   Dave
  
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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

2012-06-11 Thread Łukasz Lenart
Yeah... I was wondering what are you doing ;-)

2012/6/11 J. Garcia jogaco...@gmail.com:
 Sorry, my mistake.

 Done: https://issues.apache.org/jira/browse/WW-3841


 On Mon, Jun 11, 2012 at 9:41 AM, J. Garcia jogaco...@gmail.com wrote:

 Done:
 https://issues.apache.org/jira/browse/WW-3833



 On Mon, Jun 11, 2012 at 9:32 AM, Łukasz Lenart
 lukasz.len...@googlemail.com wrote:

 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 jogaco...@gmail.com:
  A full example based on struts2 blank archetype attached.
  Run with maven2: mvn jetty:run
  Url: http://localhost:8080/struts-test/example/Login
 
  Enter as year of birth a bad integer: 1980aaa
  You'll see the timestamp still there, BUT the milliseconds are set to
  zero.
  Is this a bug?
 
  J.
 
  On Fri, Jun 8, 2012 at 8:47 PM, s srrem...@excite.com wrote:
 
  Tried with Struts 2.3.4 and still having the issue.
 
  Look at View Source in the browsee and note down value of field
  student.createdTimestmp. It will have both date  time.
 
  Remove Name (make it blank) and click on Save button.
 
  Error will be displayed Student Name is required. Now again take a
  look
  at View Source.
  Field student.createdTimestmp will only have date and time will be
  MISSING.
 
 
 
  -Original Message-
  From: J. Garcia [jogaco...@gmail.com]
  Date: 06/08/2012 05:15 AM
  To: Struts Users Mailing List user@struts.apache.org
  Subject: Re: Struts 2 losing timestamp in java.util.Date when
  validation
  failed
 
  With 2.3.3, it is working for me, in my own app.
  When input is returned, I can still see the timestamp value in the
  form.
  Haven't tried with your example.
 
 
  On Thu, Jun 7, 2012 at 7:39 PM, s srrem...@excite.com wrote:
 
   Yep..That's what I did
  
   But the question is, why it retains time information, if there is no
   validation error...?
  
  
  
   -Original Message-
   From: J. Garcia [jogaco...@gmail.com]
   Date: 06/07/2012 12:21 PM
   To: Struts Users Mailing List user@struts.apache.org
   Subject: Re: Struts 2 losing timestamp in java.util.Date when
   validation
   failed
  
   Try using date formatting like this:
  
   s:textfield key=student.date value='%{getText({0,date,dd/MM/
   HH:mm:ss.SSS},{student.date})}'/
  
   J.
  
   On Wed, Jun 6, 2012 at 11:08 PM, s srrem...@excite.com wrote:
  
Here's an JSPs, action class and struts.xml
   
http://localhost:8080/Sample/student_edit.action       calls
form/jsp
studentDetails.
   
Erase name and submit form, this will result in validation being
failed.
   
This will erase timestamp from hidden field
s:hidden name=student.createdTimestmp/
   
If not validation error occurs, then it retains time.
   
   
   
-Original Message-
From: Dave Newton [davelnew...@gmail.com]
Date: 06/06/2012 12:57 PM
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: Struts 2 losing timestamp in java.util.Date when
validation
failed
   
On Wed, Jun 6, 2012 at 12:54 PM, s srrem...@excite.com wrote:
   
 I found following work around.
 Sorry can't attach source JSP, because of client restrictions.
   
   
Here's the trivial workaround:
   
* Create a minimally-failing example containing essentially
identical
   JSP.
* Post it.
   
Whether or not your client wishes to admit it, it's unlikely any
sort
of
   IP
law would protect the usage of a hidden field and date render in
an
   example
JSP.
   
Dave
   
   
   
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
   
  
  
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: conversion error repopulation not working

2012-05-31 Thread Łukasz Lenart
2012/5/31 J. Garcia jogaco...@gmail.com:
 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/setter but I'm not sure if it does the trick


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 commands, e-mail: user-h...@struts.apache.org



Re: conversion error repopulation not working

2012-05-31 Thread Łukasz Lenart
2012/5/31 Łukasz Lenart lukasz.len...@googlemail.com:
 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, String[]
args) accepts only strings, so getText(format.number, {user.born})
is converted to call getText({0,number,#,##0.#}, String[]{1980}) -
notice that all params are Strings - and then MessageFormat throws
exception as it cannot format String as a Number.

Right now I don't see any bright solution, I think there should be a
short-circuit when conversion error occurs to  skip evaluating
getText() expression and just return what was specified as a key /
name property.


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 commands, e-mail: user-h...@struts.apache.org



Re: conversion error repopulation not working

2012-05-31 Thread Łukasz Lenart
2012/5/31 J. Garcia jogaco...@gmail.com:
 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:

s:textfield key=user.born value=%{getFormatted('format.number',
'user.born', {user.born})} /

and in ExampleAction (or any other base action class):

public String getFormatted(String key, String defaultValue, List? args) {
TextProviderFactory tpf = new TextProviderFactory();
if (container != null) {
container.inject(tpf);
}
TextProvider tp = tpf.createInstance(getClass(), this);
if (getFieldErrors().isEmpty()) {
return tp.getText(key, args);
} else {
return
ActionContext.getContext().getValueStack().findString(defaultValue);
}
}


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 commands, e-mail: user-h...@struts.apache.org



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 works just for one field ;-) There should check if there is a
error for given fieldName


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 commands, e-mail: user-h...@struts.apache.org



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 conversionErrorsFiledName, Message would be better ?

Then I could extend ActionSupport with getFormatted() but base on
conversionErrors instead. WDYT ?


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 commands, e-mail: user-h...@struts.apache.org



Re: Action inheritance and value automatic injection failure

2012-05-30 Thread Łukasz Lenart
2012/5/29 Dionis Argiri dio...@gmail.com:
 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 setFieldName(String[]
 value){/*make OGNL happy*/}. But then I get another error. OGNL can't
 determine, which method to use. Should I just ignore this stuff? Or there
 is some kind of better solution, than just ignoring a problem?

 Here's small stack trace:
 2012-05-29 20:03:35,618 [qtp28715691-16] WARN  OgnlValueStack  Error
 setting expression 'item.salePrice' with value '[Ljava.lang.String;@11258b2'
 ognl.MethodFailedException: Method setSalePrice failed for object
 model.Item@14e8936 [java.lang.NoSuchMethodException:
 model.Item.setSalePrice([Ljava.lang.String;)]

You should see that only during devMode, the WARN was introduced to
report any typo between JSPs and Actions. If you see that on
production please register an issue.


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 commands, e-mail: user-h...@struts.apache.org



Re: conversion error repopulation not working

2012-05-30 Thread Łukasz Lenart
2012/5/29 J. Garcia jogaco...@gmail.com:
 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 integer like this: AAA
 - submit. An error msg informing of conversion error is shown. However, the
 value AAA is not maintained. Instead, the current bean value is shown.

But you use Preparable each time, and prepare overrides what was sent
by user. I'm not sure if I understood that correctly but the same
works fine in showcase application.


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 commands, e-mail: user-h...@struts.apache.org



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 unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: conversion error repopulation not working

2012-05-29 Thread Łukasz Lenart
2012/5/29 J. Garcia jogaco...@gmail.com:
 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 unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 lukasz.len...@googlemail.com:
 2012/5/28 Łukasz Lenart lukasz.len...@googlemail.com:
 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 better
 to wrap them with quotas - at the end they're just strings ;-)


 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 commands, e-mail: user-h...@struts.apache.org



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

2012-05-28 Thread Łukasz Lenart
2012/5/25  struts@spamgourmet.com:
 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 argument #1 (class: 
 freemarker.ext.beans.BooleanModel, toString: true) to class java.lang.String
 at 
 freemarker.ext.beans.SimpleMemberModel.createArgumentTypeMismarchException(SimpleMemberModel.java:175
 at 
 freemarker.ext.beans.SimpleMemberModel.unwrapArguments(SimpleMemberModel.java:123)
 at 
 freemarker.ext.beans.SimpleMemberModel.unwrapArguments(SimpleMemberModel.java:100)
 at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:106)

Probably you're right, but we upgraded FreeMarker because of some
security issues and we don't plan to revert it because of your
problem. So, you can stay with 2.3.1.2 and start migrate your
application.


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 commands, e-mail: user-h...@struts.apache.org



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 commands, e-mail: user-h...@struts.apache.org



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

2012-05-28 Thread Łukasz Lenart
2012/5/25  struts@spamgourmet.com:
 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
-- 
Ł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 commands, e-mail: user-h...@struts.apache.org



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

2012-05-28 Thread Łukasz Lenart
2012/5/28 Łukasz Lenart lukasz.len...@googlemail.com:
 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 better
to wrap them with quotas - at the end they're just strings ;-)


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 commands, e-mail: user-h...@struts.apache.org



Re: pass action form

2012-05-28 Thread Łukasz Lenart
2012/5/28 Joby Joseph jobyjos...@almullagroup.com:
 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/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: pass action form

2012-05-28 Thread Łukasz Lenart
2012/5/28 Joby Joseph jobyjos...@almullagroup.com:
 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 action again. is there any
 method to do so?

Struts 2 or Struts 1 ?

And please direct your message to the group, not directly to me ;-)


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 commands, e-mail: user-h...@struts.apache.org



[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
streamline the full development cycle, from building, to deploying, to
maintaining applications over time.

All developers are strongly advised to update existing Struts 2
applications to Struts 2.3.4.

Struts 2.3.4 is available in a full distribution, or as separate
library, source, example and documentation distributions, from the
releases page.
* http://struts.apache.org/download.cgi#struts234

The release is also available from the central Maven repository under
Group ID org.apache.struts.

The 2.3.x series of the Apache Struts framework has a minimum
requirement of the following specification versions:
* Java Servlet 2.4 and JavaServer Pages (JSP) 2.0
* Java 2 Standard Platform Edition (J2SE) 5

The release notes are available online at:
* http://struts.apache.org/2.x/docs/version-notes-234.html

Should any issues arise with your use of any version of the Struts
framework, please post your comments to the user list, and, if
appropriate, file a tracking ticket.appropriate, file a tracking
ticket:
* https://issues.apache.org/jira/browse/WW


- The Apache Struts group.

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 commands, e-mail: user-h...@struts.apache.org



Re: conversion error repopulation not working

2012-05-24 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 additional commands, e-mail: user-h...@struts.apache.org



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

2012-05-22 Thread Łukasz Lenart
2012/5/22 Alapiessa Petri petri.alapie...@profitsoftware.com:
 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 more thing, Maven version ? You must use Maven 3 at least.


Pozdrawiam
-- 
Ł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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 - Confitura http://confitura.pl/

2012/5/21 Alapiessa Petri petri.alapie...@profitsoftware.com:
 Hello,
 I have downloaded sample nro 2 but build fails.

 http://code.google.com/p/struts2-examples/downloads/detail?name=Hello_World_Struts_2_Maven_2_3_1_2.zipcan=2q=

 [INFO] Compiling 2 source files to 
 /home/petri/Documents/learning/struts/samples/Hello_World_Struts2_Mvn/target/classes
 [INFO] -
 [ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR] Failure executing javac, but could not parse the error:
 javac: invalid flag: -s
 Usage: javac options source files

 Can you polease help? Thank you very much.

 Ystävällisin terveisin,
 With best wishes,

 Petri Alapiessa
 Software Developer
 Profit Software Ltd

 petri.alapie...@profitsoftware.commailto:petri.alapie...@profitsoftware.com

 www.profitsoftware.comhttp://www.profitsoftware.com/


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 - Confitura http://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 pass to it as a value object and inject
just stateless services.

That's what I mean by repackaging - to have my own context (a map of
values, a value bean, etc) that will be passed to
ExecAndWaitInterceptor and used by it in separation from other
threads.

And interceptors are singletons per package (package/ tag in
struts.xml) and even worst ExecAndWaitInterceptor creates its own
thread ;-)


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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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

2012-05-07 Thread Łukasz Lenart
2012/5/7  struts@spamgourmet.com:
 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-default.xml anymore.

 The juicy part is:   java.lang.IllegalArgumentException: URI scheme is not 
 file

 Is it possible for me to configure Struts2 2.3.3 (and by extension XWork 
 2.3.3) to work with JBoss 5.1?

Looks like a bug, added support for JBoss 7 broke support for JBoss 5.
Please register an issue, I'm already working on solution.


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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Does Struts support Servlet 3

2012-05-04 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/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



[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
streamline the full development cycle, from building, to deploying, to
maintaining applications over time.

This release includes many bug fixes and improvements:
* Upgraded to FreeMarker 2.3.19 to mitigate potential security
vulnerability, please check the version notes
* Added additional exclude parameters to ParameterInterceptor to
mitigate possibility of Session / Request tempering by users
* OGNL was upgraded to version 3.0.5 to solve problems when running
application in secured environment
* CDI Plugin was improved to work with servlet containers and also
documentation was added, check the CDI Plugin page for more details

All developers are strongly advised to update existing Struts 2
applications to Struts 2.3.3.

Struts 2.3.3 is available in a full distribution, or as separate
library, source, example and documentation distributions, from the
releases page.
* http://struts.apache.org/download.cgi#struts233

The release is also available from the central Maven repository under
Group ID org.apache.struts.

The #.#.x series of the Apache Struts framework has a minimum
requirement of the following specification versions:
* Java Servlet 2.4 and JavaServer Pages (JSP) 2.0
* Java 2 Standard Platform Edition (J2SE) 5

The release notes are available online at:
* http://struts.apache.org/2.x/docs/version-notes-233.html

Should any issues arise with your use of any version of the Struts
framework, please post your comments to the user list, and, if
appropriate, file a tracking ticket.appropriate, file a tracking
ticket:
* https://issues.apache.org/jira/browse/WW


- The Apache Struts group.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 biswajit.r...@hp.com:
 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 much :/

And send your questions to user@struts.apache.org only -
http://struts.apache.org/mail.html , sending them around the world
will not help you.


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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Behavior of s:param tags with date values

2012-04-19 Thread Łukasz Lenart
2012/4/19 Scott Williams scottfwilli...@yahoo.com:
 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 
 s:param tag behaves the way it does with Date objects, invoking toString(). 
 Given the behavior of the Date type conversion class, I assumed param would 
 output Date values in a compatible date format.

Register an issue if you want, but please attache an use case how to
reproduce the behaviour ;-)


Kind 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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 2 Plugin for Netbeans

2012-04-19 Thread Łukasz Lenart
2012/4/19 rob stone floripa...@gmail.com:
 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 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Jsession ID removal

2012-04-14 Thread Łukasz Lenart
Check if struts.url.includeParams = none


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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Accessing Map of Map in struts 2.3.1.2

2012-04-14 Thread Łukasz Lenart
2012/4/14 Niral Trivedi nira...@gmail.com:
 Am I missing something here ? Is there a different way to access Map of Map
 with latest version ?

It can be a side effect of security changes to OGNL and Struts2, do
you see anything unusual in logs ? Try to increase log level to Debug.


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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Current status in testing with struts2, spring3 +junit 4?

2012-04-06 Thread Łukasz Lenart
2012/4/5 Mounir Benzid m...@meetingmasters.de:
 I finally contacted the author. His response is quite positive I would say
  :-)

 As he pointed out we should also ask Zarar Siddiqi  for permission.


 Mounir

 
 Hi!

 Yes I'm the author / owner of the zapjava.com http://zapjava.com domain
 and also the content.
 Haven't had time to post much useful things there yet…

 YES - you may use and modify the class freely for documentation on ASF
 projects from my part
 (I use Apache projects daily and it's the least I can do to give something
 back to the community).

 It is how-ever loosely based on this:
 http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/
 http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/
 and as such I think you might want to check with Zarar Siddiqi also.

 With kind regards,
 Reigo Reinmets


Super, could attach a comment to that issue ?

https://issues.apache.org/jira/browse/WW-3778


Kind 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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Why doesn't StrutsJunit4TestCase invoke index() method

2012-04-03 Thread Łukasz Lenart
  constant name=struts.mapper.class
 value=org.apache.struts2.rest.RestActionMapper /

It should be rather

constant name=struts.mapper.class value=rest /


Kind 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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

2012-04-02 Thread Łukasz Lenart
2012/4/2 ALI YILDIRIM ayildiri...@sgk.gov.tr:
      filter
            filter-namestruts2/filter-name
            
 filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class
      /filter

Struts 2 version ?

Check that
http://struts.apache.org/2.x/docs/webxml.html
http://struts.apache.org/2.x/docs/websphere.html
http://www.ibm.com/developerworks/forums/thread.jspa?threadID=158327


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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 2.3.1.2 and Spring 3.1.1 integration in wls 10.3.4 server

2012-03-28 Thread Łukasz Lenart
2012/3/28 Rout, Biswajit biswajit.r...@hp.com:
 !DOCTYPE validators PUBLIC
 -//OpenSymphony Group//XWork Validator 1.0.2//EN
 http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd;

You're using the wrong DOCTYPE, check this out
https://cwiki.apache.org/confluence/display/WW/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: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Current status in testing with struts2, spring3 +junit 4?

2012-03-22 Thread Łukasz Lenart
2012/3/22 Mounir Benzid m...@meetingmasters.de:
 You mean some code demonstrating how I did my tests using [1]  ?

An example would be nice, but I'm talking about your test class from
the blog entry. It must be donated to ASF if I want to use it and the
simplest way is to attach it as a patch to the issue.


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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [S 1.3.8] action error

2012-03-22 Thread Łukasz Lenart
2012/3/22 Anjib Mulepati anji...@hotmail.com:
 In struts-config.xml I put global forwarding as
 global-forwards
 forward name=Login.do path=loginPage /
 /global-forwards

Login not Login.do, path should be /Login.do

Could you show how did you configure action Login ?


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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



  1   2   >