Struts 2.5 ParameterAware and HttpParametersAware

2017-09-16 Thread Alireza Fattahi
it in struts 2.3.x. how ?! ~Regards, ~~Alireza Fattahi

Struts 2 and Spring 4, how to get the validator or action object from spring application context

2016-09-26 Thread Alireza Fattahi
    applicationContext.getBean("MyValidator");     applicationContext.getBean("foo.bar.MyValidator"); I look at `applicationContext.getBeanDefinitionNames()` but could not find the `validator`. So how can I get the struts validator from spring `applicationContext` ~Regards, ~~Alir

Define a bean of java.io.FileInputStream in Spring makes the Struts stream result not work

2015-10-25 Thread Alireza Fattahi
Also asked at:Define a bean of java.io.FileInputStream in Spring makes the Struts stream result not work |   | |   | |   |   |   |   |   | | Define a bean of java.io.FileInputStream in Spring makes...We are using the struts with spring in a project. Consider a simple action with stream result @Ac

Re: Struts 2 'top' object in struts 2.5

2015-09-28 Thread Alireza Fattahi
Also Asked at:  http://stackoverflow.com/questions/32816417/struts-2-top-object-in-struts-2-5  ~Regards, ~~Alireza Fattahi From: Alireza Fattahi To: Struts Users Mailing List Sent: Monday, 28 September 2015, 17:49 Subject: Struts 2 'top' object in struts 2.5 Accordi

Struts 2 'top' object in struts 2.5

2015-09-28 Thread Alireza Fattahi
struts 2.5 |   | |   | |   |   |   |   |   | | Struts 2 'top' object in struts 2.5According to http://struts.apache.org/docs/s2-026.html : Support for expression using top will be dropped in upcoming Struts version 2.5! We used the top object in ... | | | | View on stackoverflow.com | Preview by Yahoo | | | |   |  ~Regards, ~~Alireza Fattahi

Struts 2.5 BETA1

2015-08-08 Thread Alireza Fattahi
moved packages.  ~Regards, ~~Alireza Fattahi

Re: Struts 2 manually call a custom validation in an action

2015-04-14 Thread Alireza Fattahi
Please see: http://stackoverflow.com/questions/29603916/struts-2-manually-call-a-custom-validation-in-an-action  ~Regards, ~~Alireza Fattahi From: Alireza Fattahi To: Struts Mailing List Sent: Monday, 13 April 2015, 16:40 Subject: Struts 2 manually call a custom validation in an

Struts 2 manually call a custom validation in an action

2015-04-13 Thread Alireza Fattahi
orms too, it would be best if we could call validations here  ~Regards, ~~Alireza Fattahi

Upgrading to Struts 2.3.20 and jCaptcha 1.0

2015-02-08 Thread Alireza Fattahi
.. 40 more  ~Regards, ~~Alireza Fattahi

Struts 2 override resource messages keys

2015-01-25 Thread Alireza Fattahi
essages/default"); LocalizedTextUtil.addDefaultResourceBundle("messages/customize"); Is it possible to keep the list of default properties in xml and only add customize ones at run time  ~Regards, ~~Alireza Fattahi

Re: OGNL Static Method call wrapper

2015-01-19 Thread Alireza Fattahi
envocation in action and JSPs ?!  ~Regards, ~~Alireza Fattahi From: Martin Gainty To: Struts Users Mailing List Sent: Monday, 19 January 2015, 17:00 Subject: RE: OGNL Static Method call wrapper No *Unless* you configure app to implement max heap  -Xmx2048M -XX:PermSize=2048M

OGNL Static Method call wrapper

2015-01-19 Thread Alireza Fattahi
view http://stackoverflow.com/questions/28018861/struts-2-refactoring-code-to-avoid-ognl-static-method-access  ~Regards, ~~Alireza Fattahi

STRUTS_2_3_21

2015-01-18 Thread Alireza Fattahi
, ~~Alireza Fattahi

Re: OGNL is used to call action's methods

2014-12-16 Thread Alireza Fattahi
Yes I am using the convention plugin !!Well, will this be fixed, or we should try the suggested workaround ?! ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List Sent: Tuesday, 16 December 2014, 11:02 Subject: Re: OGNL is used to call action's methods

Re: OGNL is used to call action's methods

2014-12-15 Thread Alireza Fattahi
. Hope I could describe what I mean ;) If you like I can send some sample codes or a sample application. ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List Sent: Monday, 15 December 2014, 17:04 Subject: Re: OGNL is used to call action's methods 2014-

Re: OGNL is used to call action's methods

2014-12-15 Thread Alireza Fattahi
I checked and it was no same method name. Do you suggest I check other places too ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List Sent: Monday, 15 December 2014, 15:51 Subject: Re: OGNL is used to call action's methods 2014-12-15 13:17 GMT+

OGNL is used to call action's methods

2014-12-15 Thread Alireza Fattahi
exception, I got below warning DEBUG accessor.XWorkMethodAccessor   Error calling method through OGNL: object: [foo.LoginProcess@61d18d46] method: [result] args: [[]]  I think it is because OGNL is used to call action's methods.  ~Regards, ~~Alireza Fattahi

Re: The %{#attr.counter.index} is not working in 2.3.20

2014-12-15 Thread Alireza Fattahi
Thanks. Issue created https://issues.apache.org/jira/browse/WW-4432   ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List Sent: Monday, 15 December 2014, 12:00 Subject: Re: The %{#attr.counter.index} is not working in 2.3.20 2014-12-15 9:15 GMT+01:00

The %{#attr.counter.index} is not working in 2.3.20

2014-12-15 Thread Alireza Fattahi
[javax.servlet.jsp.jstl.core.LoopTagSupport$1Status@680cabbd] or package of member [public int javax.servlet.jsp.jstl.core.LoopTagSupport$1Status.getIndex()] are excluded! When I set struts.excludedPackageNamePatterns to empty, it works: Is it correct ?!  It was working with 2.3.16.  ~Regards, ~~Alireza Fattahi

Json result

2014-08-30 Thread Alireza Fattahi
},"anString":"hello","anotherList":{"0":{"prop1":"a","prop2":"b"},"1":{"prop1":"c","prop2":"d"}}} Is it possible to configure json result to make below result {"samples":{"0":{"property":"a"},"1":{"property":"b"},"2":{"property":"c"}}} ~Regards, ~~Alireza Fattahi

Find action method in interceptor ( One action class with lots of action methods in it)

2014-06-06 Thread Alireza Fattahi
;)       public String action3(){           }         }       Is there any way in an inerceptor which I can find which method was really executed. I can find the class with myActionClass = invocation.getAction().getClass(); As I have many action methods in one class, how can I found which method was e

Re: Struts 2 get custom action anotation in interceptors

2014-06-06 Thread Alireza Fattahi
Thanks! A complete code sample at: http://stackoverflow.com/questions/24021534/struts-2-get-custom-action-anotation-in-interceptors   ~Regards, ~~Alireza Fattahi On Wednesday, 4 June 2014, 12:22, Lukasz Lenart wrote: Take a look on com.opensymphony.xwork2.util.AnnotationUtils 2014-06

Struts 2 get custom action anotation in interceptors

2014-06-03 Thread Alireza Fattahi
String[] {"action1", "action3"}          //in interceptor     String actionName = ActionContext.getContext().getName();     if (Arrays.asList(AJAX_ACTIONS).contains(actionName)) {                // do something             }   ~Regards, ~~Alireza Fattahi

Re: Struts 2 Access messages with JSTL instead of s:text

2014-06-02 Thread Alireza Fattahi
As mentioned the ${action.getText('sample')} will work, but this is JSTL method invocation and you need JSTL 2.2 (ex: tomcat 7)   ~Regards, ~~Alireza Fattahi On Friday, 30 May 2014, 16:20, Yaragalla Muralidhar wrote: you have to use fmt tags in jstl. Using jstl is a good idea

Struts 2 Access messages with JSTL instead of s:text

2014-05-27 Thread Alireza Fattahi
t I should still use ``   ~Regards, ~~Alireza Fattahi

Access messages with JSTL instead of s:text

2014-05-24 Thread Alireza Fattahi
(container !=null){container.inject(tpf);}returntpf.createInstance(getClass(),this);} }  In jsp: ${provider.text("label.password")}//Error The function text must be used with a prefix when a default namespace is not specified   ~Regards, ~~Alireza Fattahi

Make ${} operator XSS safe in Struts 2 (same as tapestry)

2014-04-29 Thread Alireza Fattahi
to model driven sample, and enter alert('') as gangester name you can see the alert!   ~Regards, ~~Alireza Fattahi

Re: globaly escapeAmp

2014-02-25 Thread Alireza Fattahi
I found this in some pages, and thought may be the option is there: http://code.google.com/p/struts2-jquery/issues/detail?id=51‎ https://github.com/Dinous/d3kode/blob/master/src/struts.xml‎   ~Regards, ~~Alireza Fattahi On Tuesday, 25 February 2014, 13:48, Lukasz Lenart wrote: 2014-02

Struts 2 defining a base action

2014-02-25 Thread Alireza Fattahi
n same namespace (package) In above case, struts ( struts convention plugin) randomly took one action A or B and map export action to that class. Do you think we are using correct approach?!   ~Regards, ~~Alireza Fattahi

Assign html id to token

2014-02-24 Thread Alireza Fattahi
I try to ready token via javascript. The  will not generate the id ! and still the output is:   Should I read it by name ?! ~Regards, ~~Alireza Fattahi

globaly escapeAmp

2014-02-24 Thread Alireza Fattahi
Is there any way to globally disable escape when generating url with s:url ?! I found some one mentioned this: But it seems it is not working !    ~Regards, ~~Alireza Fattahi

Dynamic ID generated by FreeMaker

2014-01-21 Thread Alireza Fattahi
parameters.id??>  id="${parameters.id?html}"<#rt/>   Which means if id is defined use it. But I could not find where/how the autumatic generated ID is used here. ~Regards, ~~Alireza Fattahi

Showing Action Exception as Ajax Errors

2013-11-15 Thread Alireza Fattahi
uot;");             sb.append("Bussiness Exception Happend");             sb.append("\"]}");             response.setContentType("application/json");             response.getWriter().print(sb.toString());                return Action.NONE;         }   ~Regards, ~~Alireza Fattahi

Re: Passing jsp tag attribute to Struts 2 tags

2013-10-19 Thread Alireza Fattahi
Actually I am not calling any action class getKeyLable   I try to: 1- Make the s:label tag get a dynamic (Is it poosibel ?!) 2- The above dynamic value must be read from jsp tag ( The s:label is used in a tag itself) ~Regards, ~~Alireza Fattahi On Saturday, 19 October 2013, 15:35, Martin

Re: [ANN] Struts 2.3.15.3 GA release available - security fix

2013-10-19 Thread Alireza Fattahi
css and error label" pageEncoding="UTF-8"%>     <%@attribute name="name" required="true" %>     <%@taglib prefix="s" uri="/struts-tags"%>                     I tried `#attr.name` and `#param.name` but none of them worked!   Do you know any solution ?!     ~Regards, ~~Alireza Fattahi

Passing jsp tag attribute to Struts 2 tags

2013-10-19 Thread Alireza Fattahi
ired css and error label" pageEncoding="UTF-8"%>     <%@attribute name="name" required="true" %>     <%@taglib prefix="s" uri="/struts-tags"%>                   I tried `#attr.name` and `#param.name` but none of them worked! Do you know any solution ?!     ~Regards, ~~Alireza Fattahi

Re: Prevent Ajax Multi-Request in Struts 2

2013-10-07 Thread Alireza Fattahi
Jose,   I am still in the middel of this problem :( Can you please let me know what do you mean by "check HTTP header" ?! ~Regards, ~~Alireza Fattahi From: JOSE L MARTINEZ-AVIAL To: Struts Users Mailing List ; Alireza Fattahi Sent: Thursday, 26

config-browser plugin and validateAnnotatedMethodOnly

2013-10-07 Thread Alireza Fattahi
and @Action for defining actions.   Please let me know if anyone has seen this issue before.   ~Regards, ~~Alireza Fattahi

Re: Prevent Ajax Multi-Request in Struts 2

2013-09-30 Thread Alireza Fattahi
Thanks, I was lootking Multi-Request preventation, is my problem  equals to  CSRF issue.     ~Regards, ~~Alireza Fattahi From: Martin Gainty To: Struts Users Mailing List Sent: Friday, 27 September 2013, 0:12 Subject: RE: Prevent Ajax Multi-Request in

Prevent Ajax Multi-Request in Struts 2

2013-09-25 Thread Alireza Fattahi
issue at http://stackoverflow.com/questions/13353577/howto-do-csrf-protection-in-struts2-application-for-ajax-requests but I wonder if there is any better way for that? (I think this is a very common issue which must have been managed in struts)   ~Regards, ~~Alireza Fattahi

Re: report.conversion.errors

2013-09-21 Thread Alireza Fattahi
I found it in java doc http://struts.apache.org/release/2.0.x/struts2-core/apidocs/com/opensymphony/xwork2/util/XWorkConverter.html ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List Sent: Saturday, 21 September 2013, 19:18

report.conversion.errors

2013-09-21 Thread Alireza Fattahi
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) ~Regards, ~~Alireza Fattahi

Re: How configure struts2 to get validation rules from Spring via @value

2013-09-20 Thread Alireza Fattahi
Let me ask this way. In below validation @IntRangeFieldValidator(type =ValidatorType.FIELD,min ="10" is there any way we can read '10' from external resource files !   ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users

Re: How configure struts2 to get validation rules from Spring via @value

2013-09-20 Thread Alireza Fattahi
Let me ask this way. In below validation @IntRangeFieldValidator(type =ValidatorType.FIELD,min ="10" is there any way we can read '10' from external resource files !   ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users

How configure struts2 to get validation rules from Spring via @value

2013-09-17 Thread Alireza Fattahi
int.min") The error message is fetched resource bundle correctly! If I can use annotation in this way, please let me know what is my mistake! If I can not use annotations like this, please let me know what is the best way to avoid hard coding the validaiton rolls in actions. ~Regards, ~~Alireza Fattahi

Re: s:if and locale

2013-09-10 Thread Alireza Fattahi
Thanks for your solution . The did not work! I don't know why ! But I used your solution which seems much better tahn mine ! ~Regards, ~~Alireza Fattahi From: Chris To: Struts Users Mailing List ; Alireza Fattahi ; Chris Sent: Monday, 9 September

s:if and locale

2013-09-08 Thread Alireza Fattahi
ValueStack with the locale value is correct and is what it has too. Is there any thing wrong with my test conditin please help! ~Regards, ~~Alireza Fattahi

Spring Plugin

2013-08-26 Thread Alireza Fattahi
Hi, When we are using spring plugin, all the objects actions, interceptors, filters are managed by spring. Is it correct?!   ~Regards, ~~Alireza Fattahi

convetion maps parent actions too!

2013-08-19 Thread Alireza Fattahi
Hi,   I am usging convetion. All my actions extended a base action like   public class AccountAction extends MyBaseActionSupport{   }   The convention maps the MyBaseActionSupport too. Is there any way we can avoid it. ~Regards, ~~Alireza Fattahi

Spring Anotaction with Strust

2013-08-17 Thread Alireza Fattahi
EditServiceInMemory{  @Bean  public  void editService() {     }   }     Accroding to spring above should be same as:     But the anotation is not working! Is is any thing regarding to spring plug in ?! I also added the below in applicationContext.xml:     ~Regards, ~~Alireza Fattahi

Re: Test with StrutsJUnit4TestCase

2013-08-17 Thread Alireza Fattahi
I forgot to merntion: When I extend StrutsJUnit4TestCase the assertTrue method is not found ! ~Regards, ~~Alireza Fattahi From: Alireza Fattahi To: Struts Users Mailing List Sent: Saturday, 17 August 2013, 13:18 Subject: Test with StrutsJUnit4TestCase Hi

Test with StrutsJUnit4TestCase

2013-08-17 Thread Alireza Fattahi
har.     ~Regards, ~~Alireza Fattahi

Re: AJAX Jsp tags

2013-08-12 Thread Alireza Fattahi
server! The page1.jsp will only have the required content of page1, it will not have any header, menu and footer. I though that with Ajax technology there we will not required to use tiles any more.  ~Regards, ~~Alireza Fattahi From: Chris Pratt To: Struts

Re: AJAX Jsp tags

2013-08-10 Thread Alireza Fattahi
Thanks for your comment. Did you have any experience with struts jquery tag or other tags too? Or you complete suggest that we write our own tags !   ~Regards, ~~Alireza Fattahi From: Ken McWilliams To: Struts Users Mailing List Sent: Friday, 9 August 2013

AJAX Jsp tags

2013-08-08 Thread Alireza Fattahi
how to use the taglib. The standard Struts 2 taglib includes several Ajax JSP tags," 5- The "Ajax JSP tags" link above will redirect to http://struts.apache.org/release/2.3.x/docs/ajax-tags.html, which is deprecated!! I don't get it ! Can we use AJAX Jsp tags or they are depre

Re: Plug in page link broken

2013-07-21 Thread Alireza Fattahi
Hi, I also could not find the OVAL plugin link in Strust2Pluginfs/Home. But you can visit it by directly going to: https://cwiki.apache.org/confluence/display/S2PLUGINS/OVal+Plugin   ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing

Tags Attributes

2013-07-15 Thread Alireza Fattahi
Hi, Does anyone why: generates error:  Attribute un_defined_attribute invalid for tag fielderror according to TLD But Does not generate an error and creates below html: is it hard coded some where ?!   ~Regards, ~~Alireza Fattahi

Re: json validation with utf-8 error messages

2013-07-15 Thread Alireza Fattahi
but the   did not show correct messages, just question marks. I added <%@ page contentType="text/html; charset=utf-8" %> to the page and now I have correct  json validation messages AND  I don't know is it best practice or not.   ~Regar

json validation with utf-8 error messages

2013-07-15 Thread Alireza Fattahi
            SetEncoding         *     But it did not fix the issue. Any comments?!   ~Regards, ~~Alireza Fattahi

Re: Int Validator

2013-07-13 Thread Alireza Fattahi
Thanks. Do you know how can I change below message: Invalid field value for field "amount" ?!   ~Regards, ~~Alireza Fattahi From: Dave Newton To: Struts Users Mailing List Sent: Saturday, 13 July 2013, 16:16 Subject: Re: Int Validator The f

Int Validator

2013-07-12 Thread Alireza Fattahi
he amount as int, Integer or String ! ~Regards, ~~Alireza Fattahi

Plug in page link broken

2013-07-12 Thread Alireza Fattahi
Hi, The plugin page link : https://cwiki.apache.org/S2PLUGINS/home.html in struts site is broken: Not Found The requested URL /S2PLUGINS/home.html was not found on this server. Apache/2.2.22 (Ubuntu) Server at cwiki.apache.org Port 80  ~Regards, ~~Alireza

Re: Using Two Parent Pakages!!

2013-07-11 Thread Alireza Fattahi
y question is: If the struts finds the result-type "json",in struts2-json-plugin.jar , why doesn't it make this result-type available to all actions ? Why should I address struts where this result type is defined ? ~Regards, ~~Alireza Fattahi ____________

Re: Define the a property

2013-07-11 Thread Alireza Fattahi
interceptor creates this ?   ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Alireza Fattahi Sent: Wednesday, 10 July 2013, 16:43 Subject: Re: Define the a property Could you ask such questions on the User Mailing List? And this was introduced to warn developer

Re: Global Validation

2013-07-11 Thread Alireza Fattahi
ates: The username must be string. The address must be string. . Or should I do it:     Username     Username must be string.     Address     Address must be string.   ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing L

Global Validation

2013-07-10 Thread Alireza Fattahi
Hi, Are there Global Validation  in struts 2 ?!   ~Regards, ~~Alireza Fattahi

Re: Possible client side validation bug in Struts 2.3.15

2013-07-10 Thread Alireza Fattahi
.interceptor.ParametersInterceptor:56) - Parameter [struts.validateOnly] is on the excludeParams list of patterns! How can I fix it ?! I put below in struts.xml     But it did not help.   ~Regards, ~~Alireza Fattahi

REST Plugin with convention plugin

2013-07-10 Thread Alireza Fattahi
Hi, I am trying to use REST Plugin with convention plugin . For all REST actions I should extend RestActionMapper, After I extend RestActionMapper instead of ActionSuppor, the convention plugin those not find the action any more !   ~Regards, ~~Alireza Fattahi

Re: Using Two Parent Pakages!!

2013-07-10 Thread Alireza Fattahi
Hi, So I define some thing like     Is it possible that I say the struts that this the default package for all packages ?! ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List ; Alireza Fattahi Sent: Wednesday, 10 July

Re: Using Two Parent Pakages!!

2013-07-09 Thread Alireza Fattahi
Thanks ! I found a code here:http://struts.apache.org/release/2.0.x/docs/zero-configuration.html @ParentPackage({"my-parent-package1, my-parent-package2"}) package com.mycompany.myapp.actions import org.apache.struts2.config.ParentPackage; Can I do it ?!   ~Regards, ~~Alire

Using Two Parent Pakages!!

2013-07-09 Thread Alireza Fattahi
Hi, I am using the convention in with json plugin so I add: Now I want to use the REST plugin so I should add: How can I solve it !   ~Regards, ~~Alireza Fattahi

Re: convention redirect to slash

2013-07-09 Thread Alireza Fattahi
uld describe any thing else !!   ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List ; Alireza Fattahi Sent: Tuesday, 9 July 2013, 17:40 Subject: Re: convention redirect to slash Ok, but could you share configuration of res

by pass the validation

2013-07-09 Thread Alireza Fattahi
  ~Regards, ~~Alireza Fattahi

Re: convention redirect to slash

2013-07-09 Thread Alireza Fattahi
Here it is: I acutally downloaded the struts 2 jquery plug in and add       to it!                               ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List ; Alireza Fattahi Sent: Tuesday, 9 July 2013, 17:22

convention redirect to slash

2013-07-09 Thread Alireza Fattahi
Hi, The is not working ! It keeps redirecting to slash any comments ?!   ~Regards, ~~Alireza Fattahi

Re: Extending Template

2013-07-08 Thread Alireza Fattahi
Yes it is a typo. I have this in the struts.xml      ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List Sent: Tuesday, 9 July 2013, 11:12 Subject: Re: Extending Template 2013/7/9 Alireza Fattahi : > Hi, > > I want

Extending Template

2013-07-08 Thread Alireza Fattahi
ftl not found.  -- I expect that every thing should go fine !! I have just extended the template, should I copy all the css_xhtml folder from struts2-core jar.     ~Regards, ~~Alireza Fattahi

Struts2+Hinerneta Validator+Spring

2010-07-10 Thread Alireza Fattahi
use "Full Hibernate Plugin",  "Hibernate Validation" feature only. 2- If not, are there any other frameworks which helps us with that. 3- I found a method described in http://vamshisomanchi.wordpress.com/2008/07/26/struts-20-hibernate-validator/ any other simpler way ~Regards, ~~Alireza Fattahi

@result dosenot have value

2010-07-05 Thread Alireza Fattahi
s = { @Result( value="register.jsp",location = "register", name = "input", type = "tiles" ) }) ~Regards, ~~Alireza Fattahi