it in struts 2.3.x. how ?!
~Regards,
~~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
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
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.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
moved packages.
~Regards,
~~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
orms too, it would be best if we could call validations here
~Regards,
~~Alireza Fattahi
.. 40 more
~Regards,
~~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
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
view
http://stackoverflow.com/questions/28018861/struts-2-refactoring-code-to-avoid-ognl-static-method-access
~Regards,
~~Alireza Fattahi
,
~~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
.
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-
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+
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
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
[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
},"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
;)
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
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
String[] {"action1",
"action3"}
//in interceptor
String actionName = ActionContext.getContext().getName();
if (Arrays.asList(AJAX_ACTIONS).contains(actionName)) {
// do something
}
~Regards,
~~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
t I should
still use ``
~Regards,
~~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
to model driven sample, and enter
alert('') as gangester name you can see the alert!
~Regards,
~~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
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
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
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
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
uot;");
sb.append("Bussiness Exception Happend");
sb.append("\"]}");
response.setContentType("application/json");
response.getWriter().print(sb.toString());
return Action.NONE;
}
~Regards,
~~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
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
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
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
and @Action for defining actions.
Please let me know if anyone has seen this issue before.
~Regards,
~~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
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
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
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
~Regards,
~~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
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
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
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
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
Hi,
When we are using spring plugin, all the objects actions, interceptors, filters
are managed by spring. Is it correct?!
~Regards,
~~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
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
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
har.
~Regards,
~~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
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
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
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
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
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
SetEncoding
*
But it did not fix the issue.
Any comments?!
~Regards,
~~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
he amount as int, Integer or String
!
~Regards,
~~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
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
____________
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
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
Hi,
Are there Global Validation in struts 2 ?!
~Regards,
~~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
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
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
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
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
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
~Regards,
~~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
Hi,
The
is not working !
It keeps redirecting to slash
any comments ?!
~Regards,
~~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
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
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
s = { @Result( value="register.jsp",location = "register",
name = "input", type = "tiles" ) })
~Regards,
~~Alireza Fattahi
79 matches
Mail list logo