Re: have plan to upgrade version of spring in struts 2 Spring plugin?

2019-12-15 Thread John Bush
.5.22 -Original Message- From: Sai Man Yau Sent: Wednesday, December 11, 2019 7:58 AM To: user@struts.apache.org Subject: have plan to upgrade version of spring in struts 2 Spring plugin? Dear Struts 2 Team, Thanks for your hard work to maintain such great framework to sustain all other devel

RE: have plan to upgrade version of spring in struts 2 Spring plugin?

2019-12-14 Thread Yasser Zamani
ifact/org.apache.struts/struts2-core/2.5.22 >-Original Message- >From: Sai Man Yau >Sent: Wednesday, December 11, 2019 7:58 AM >To: user@struts.apache.org >Subject: have plan to upgrade version of spring in struts 2 Spring plugin? > >Dear Struts 2 Team, > >Thank

have plan to upgrade version of spring in struts 2 Spring plugin?

2019-12-10 Thread Sai Man Yau
Dear Struts 2 Team, Thanks for your hard work to maintain such great framework to sustain all other developers. Thanks!! Since struts is using spring is some of the component, I would like to ask will there a plan to upgrade the spring dependencies for Struts 2 Spring plugin because of the Spr

Re: Support for sub-resources in struts 2 rest plugin

2019-03-21 Thread DevaGerald
Any update on this requirement? Or atleast any workaround? -- Sent from: http://struts.1045723.n5.nabble.com/Struts-User-f3426046.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mai

Re: Support for sub-resources in struts 2 rest plugin

2018-04-30 Thread DevaGerald
I have created a new ticket. https://issues.apache.org/jira/browse/WW-4935 Thanks, Deva. -- Sent from: http://struts.1045723.n5.nabble.com/Struts-User-f3426046.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

Re: Support for sub-resources in struts 2 rest plugin

2018-04-30 Thread Lukasz Lenart
This isn't supported right now. I think it would be good re-use @Action annotation ro define a new (e.g. @Resource) to allow define custom paths. Could you register a ticket? 2018-04-29 15:55 GMT+02:00 DevaGerald : > Thanks for your reply. > > I am already using struts-2 rest plugin in production.

Re: Support for sub-resources in struts 2 rest plugin

2018-04-29 Thread DevaGerald
Thanks for your reply. I am already using struts-2 rest plugin in production. What we are trying to solve here, is a hierarchical resource entity API implementation. Let me give an example of what I am trying to do. For getting an organization info, we can use a REST API like /organizations/orga

Re: Support for sub-resources in struts 2 rest plugin

2018-04-29 Thread Yasser Zamani
On 4/27/2018 11:45 AM, DevaGerald wrote: > Hi, > > Sorry if i miss something here. As of my knowledge, the struts 2 rest plugin > supports only the following : > /resource - GET > /resource - POST > /resource/$resource_id - GET > /resource/$resource_id - PUT > /resource/$resource_id - DELETE >

Support for sub-resources in struts 2 rest plugin

2018-04-27 Thread DevaGerald
Hi, Sorry if i miss something here. As of my knowledge, the struts 2 rest plugin supports only the following : /resource - GET /resource - POST /resource/$resource_id - GET /resource/$resource_id - PUT /resource/$resource_id - DELETE and also the custom methods like /resource/$resource_id/my_cus

Re: Security Vulnerability for Struts 1.3.10 in Struts 2.x

2016-05-10 Thread Christopher Schultz
find that > struts-core-1.3.10 jar is present in struts 2.x. Can you please let > me know if the presence of this jar makes Struts 2.x vulnerable to > security issues such as CVE-2012-1007 > <https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-1007>. It's worth pointing out th

Re: Security Vulnerability for Struts 1.3.10 in Struts 2.x

2016-05-03 Thread Christoph Nenning
> Hi, > > As Apache Struts 1.x is pretty old and it suffers from many security > vulnerabilities, I decided to use a recent version of Apache Struts 2.x > (Struts 2.3.24.1). However, I find that struts-core-1.3.10 jar is present > in struts 2.x. Can you please let me know if th

Re: Security Vulnerability for Struts 1.3.10 in Struts 2.x

2016-05-02 Thread Dave Newton
n of Apache Struts 2.x > (Struts 2.3.24.1). However, I find that struts-core-1.3.10 jar is present > in struts 2.x. Can you please let me know if the presence of this jar makes > Struts 2.x vulnerable to security issues such as CVE-2012-1007 > <https://web.nvd.nist.gov/view/vuln/de

Security Vulnerability for Struts 1.3.10 in Struts 2.x

2016-05-02 Thread Anu Krishna Rajamohan
Hi, As Apache Struts 1.x is pretty old and it suffers from many security vulnerabilities, I decided to use a recent version of Apache Struts 2.x (Struts 2.3.24.1). However, I find that struts-core-1.3.10 jar is present in struts 2.x. Can you please let me know if the presence of this jar makes

Re: Allow max. file upload size of more than 2gb in struts 2

2015-12-09 Thread Adam Brin
You may also want to check the docs: https://struts.apache.org/docs/file-upload.html which has a section on size limits. > On Dec 9, 2015, at 1:38 AM, punter wrote: > > > Hello, > I am using Struts 2.1 in my project. For the file upload process, is it > possible to supersede the normal 2 gb

Re: Allow max. file upload size of more than 2gb in struts 2

2015-12-09 Thread Christoph Nenning
> Hello, > I am using Struts 2.1 in my project. For the file upload process, is > it possible to supersede the normal 2 gb file limit for struts2.The > struts.xml maxsize element in my project is as follows : >               value="2147483648" /> > P

Allow max. file upload size of more than 2gb in struts 2

2015-12-09 Thread punter
Hello, I am using Struts 2.1 in my project. For the file upload process, is it possible to supersede the normal 2 gb file limit for struts2.The struts.xml maxsize element in my project is as follows :   Please update

Re: Mapped Properties in Struts 2

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

Mapped Properties in Struts 2

2014-09-02 Thread Harish Panwar
Hi All, We are migrating our website from Struts 1 to Struts 2. Everything is working fine except the mapped properties. Lets say we have text-field in our jsp: Getter-Setter for this field were like this in struts1: public String getArp(String key) { int index=Integer.parseInt(key);

Re: Please give a good documentation link for custom tags in struts 2

2014-07-08 Thread jaikar gupta
You can try these Demos to create Custom tag in struts > 2 > > Custom Tag Struts 2[1], Custom tag struts2[2], > > > > > > > > > > > > > > > > Please give a good documentation link for custom tags in struts 2 > > > > Ratna

Re: Please give a good documentation link for custom tags in struts 2

2014-07-08 Thread manoj . sharma
Hi Ratna, Please find Links : http://joshuajava.wordpress.com/2008/12/27/creating-custom-components-with-struts-2/ , http://bodez.wordpress.com/2009/03/13/customising-struts2-jsp-tags/ Re: Please give a good documentation link for custom tags in struts 2 Ratna Kar to

Re: Please give a good documentation link for custom tags in struts 2

2014-07-08 Thread Ratna Kar
You can try these Demos to create Custom tag in struts 2 > Custom Tag Struts 2[1], Custom tag struts2[2], > > > > > > > > Please give a good documentation link for custom tags in struts 2 > > Ratna Kar > to: > Struts Users Mailing List > 07/08/2014 01:0

Re: Please give a good documentation link for custom tags in struts 2

2014-07-08 Thread manoj . sharma
Hi Ratna, You can try these Demos to create Custom tag in struts 2 Custom Tag Struts 2[1], Custom tag struts2[2], Please give a good documentation link for custom tags in struts 2 Ratna Kar to: Struts Users Mailing List 07/08/2014 01:05 PM Please respond to "S

Please give a good documentation link for custom tags in struts 2

2014-07-08 Thread Ratna Kar
Please point me a good documentation link w.r.t tags in *struts 2*. 1) I would like create a new tag. 2) Extend(Enhance) the existing tag. ex: add additional attributes to supported attributes. Thanks, Ratnakar

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

2014-04-29 Thread Lukasz Lenart
2014-04-29 15:55 GMT+02:00 Alireza Fattahi : > Hi, > > As mentioned in > http://www.disasterarea.co.uk/blog/xss-vulnerabilities-in-web-frameworks-2/ > The ${} is not xss safe in struts 2 while it is safe in tapestry 5. > I am not a Tapestry guy, but I want to know if above is co

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

2014-04-29 Thread Alireza Fattahi
Hi, As mentioned in http://www.disasterarea.co.uk/blog/xss-vulnerabilities-in-web-frameworks-2/ The ${} is not xss safe in struts 2 while it is safe in tapestry 5. I am not a Tapestry guy, but I want to know if above is correct. As far as I know the ${} is part of JSLT and it does not depend on

Re: How to handle business exceptions from service layer in struts 2 at only one place

2013-10-29 Thread Lukasz Lenart
2013/10/29 Vaishampayan, Shailesh Arvind : > ClientAction extends ActionSupport throws Exception{ > > > > try{ > > clientService.searchClient(); > > }catch(InvalidClientSearchCriteriaException e){ > > addActionMessage("Invlid Search Crit

Re: How to handle business exceptions from service layer in struts 2 at only one place

2013-10-29 Thread Antonios Gkogkakis
Have a look at the ExceptionMappingInterceptor, with a bit of tweaking I believe you can achieve what you want. http://struts.apache.org/release/2.0.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/ExceptionMappingInterceptor.html Antonios On 29 October 2013 10:15, Vaishampayan, Shail

How to handle business exceptions from service layer in struts 2 at only one place

2013-10-29 Thread Vaishampayan, Shailesh Arvind
I am working with an application involving Struts2 in web layer and Spring in business layer. I also have BusinessException class which will be used by all business services to create business related validation failures which must go up to web layer and should be shown to users as validati

Re: Prevent Ajax Multi-Request in Struts 2

2013-10-07 Thread jlmagc
- From: jlm...@gmail.com Date: Tue, 8 Oct 2013 05:23:05 To: Struts Users Mailing List; Alireza Fattahi Reply-To: jlm...@gmail.com Subject: Re: Prevent Ajax Multi-Request in Struts 2 What are you using on the client for the ajax calls? Dojo? Jquery? They both generate an http header “x

Re: Prevent Ajax Multi-Request in Struts 2

2013-10-07 Thread jlmagc
from T-Mobile -Original Message- From: Alireza Fattahi Date: Mon, 7 Oct 2013 22:01:47 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Re: Prevent Ajax Multi-Request in Struts 2 Jose,   I am still in the middel of this problem :( Can you please let me

Re: Prevent Ajax Multi-Request in Struts 2

2013-10-07 Thread Alireza Fattahi
September 2013, 16:13 Subject: Re: Prevent Ajax Multi-Request in Struts 2 Hi,   Since XHR request can not be cross-domain, you can not get a CSRF through XHR( the browser will not allow other page to send a XHR to your server). The only option would be a normal post against your supposed-ajax URL

Re: Prevent Ajax Multi-Request in Struts 2

2013-09-30 Thread Alireza Fattahi
Struts 2 To Mitigate add a "nonce" to the form https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF) Saludos Martin-   > Date: Thu, 26 Sep 2013 08:43:12 -0400 > Subject: Re: Prevent Ajax Multi-Request in Struts 2 > From: jlm...@gmail.com > To: user@st

RE: Prevent Ajax Multi-Request in Struts 2

2013-09-26 Thread Martin Gainty
To Mitigate add a "nonce" to the form https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF) Saludos Martin- > Date: Thu, 26 Sep 2013 08:43:12 -0400 > Subject: Re: Prevent Ajax Multi-Request in Struts 2 > From: jlm...@gmail.com > To: user@struts.apache.o

Re: Prevent Ajax Multi-Request in Struts 2

2013-09-26 Thread Paul Benedict
er, so if the request is suppose to be ajax, > and it does not have the header, you can reject it, because it is a CSRF > attempt > > > Regards > > JL > > > > 2013/9/25 Alireza Fattahi > > > Hi, > > > > We want to avoid multi-request sent via Aj

Re: Prevent Ajax Multi-Request in Struts 2

2013-09-26 Thread JOSE L MARTINEZ-AVIAL
e want to avoid multi-request sent via Ajax in struts 2 web based > application. > > The `s:token` can be used in regular request-response jsp pages, but it > will not work for ajax requests. The problem is the returned respond, which > does not populate new value for struts token. &

Prevent Ajax Multi-Request in Struts 2

2013-09-25 Thread Alireza Fattahi
Hi, We want to avoid multi-request sent via Ajax in struts 2 web based application. The `s:token` can be used in regular request-response jsp pages, but it will not work for ajax requests. The problem is the returned respond, which does not populate new value for struts token. I found this

Re: Extending base class and accessing implementation's fields in Struts 2

2012-12-03 Thread Lukasz Lenart
2012/12/3 Eric Lentz : > I'm almost there. I didn't suspect that it would work that way with the > iterator. Should have tried it first! Thanks Dave. > > On the way back, such as in a post, if BaseObject is an interface or > abstract, as I'm hoping for it to be, then Struts tries to instantiate the

Re: Extending base class and accessing implementation's fields in Struts 2

2012-12-03 Thread Eric Lentz
I'm almost there. I didn't suspect that it would work that way with the iterator. Should have tried it first! Thanks Dave. On the way back, such as in a post, if BaseObject is an interface or abstract, as I'm hoping for it to be, then Struts tries to instantiate the BaseObject type, which it can't

Re: Extending base class and accessing implementation's fields in Struts 2

2012-12-03 Thread Dave Newton
You're making OGNL calls against an object; it doesn't care about the type--if you access foo.bar it'll call getBar() on foo, setBar() on submission. Dave On Mon, Dec 3, 2012 at 11:19 AM, Eric Lentz wrote: > I have > List foo > > The list is of type BaseObjectImpl > > BaseObject has fields: > St

Extending base class and accessing implementation's fields in Struts 2

2012-12-03 Thread Eric Lentz
I have List foo The list is of type BaseObjectImpl BaseObject has fields: String a String b BaseObjectImpl has fields: String c String d Now I'm in a JSP and want to iterate foo (using ), accessing fields c and d (inside iterator using , for example). How? As far as Struts knows I'm dealing wit

getUserPrincipal() in Struts 2 Action

2012-09-09 Thread vsendhil
always null in struts 2 action. My existing application uses Struts 1.3 and WAS 7.0. We are using JSecurity for authentication. I am able to get the Principal object inside my struts 1 action. But the principal object is null inside the struts 2 action. Do we need to do any thing specific to expose

Re: REST in Struts 2 Web Applications

2012-02-20 Thread Łukasz Lenart
It should be like this: Regards -- Łukasz Mobile +48 606 323 122 Office +27 11 0838747 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr..

Re: REST in Struts 2 Web Applications

2012-02-16 Thread developer researcher
Hello, Seems that there is not much documentation, examples or tutorials on this topic. The only resource I have found on a similar case is in the following forum: http://forum.springsource.org/showthread.php?83417-How-to-use-struts2-rest-style-and-default-style-at-same-time This s

Re: REST in Struts 2 Web Applications

2012-02-10 Thread developer researcher
Hello Lukasz, thank you for your answer, *1.* I have severals problems when include the configuration for the rest-plugin in struts.xml (attachment the file): - Get HTTP for http://ipserver:port/weapp/index.action (for example) return HTTP 404 code error. Before include the rest plugin confi

Re: REST in Struts 2 Web Applications

2012-02-09 Thread Łukasz Lenart
2012/2/9 developer researcher : > 1. both normal action and restful action in the same web application. Define struts.rest.namespace as mentioned in the docs > 2. The URL structure for resources must be: > - /list/ ==> show a list of resoruces in json format > - /list/{id} ==> show the resource i

REST in Struts 2 Web Applications

2012-02-09 Thread developer researcher
Hello, I am using Struts2 2.3.1. I am evaluating the rest plugin and I have the next requirements: 1. both normal action and restful action in the same web application. 2. The URL structure for resources must be: - /list/ ==> show a list of resoruces in json format - /list/{id} ==> show

Re: XSS Vulnerability in Struts 2 before 2.2.3

2011-05-11 Thread Maurizio Cucchiara
2:37 PM > To: Struts Users Mailing List > Subject: Re: XSS Vulnerability in Struts 2 before 2.2.3 > > I did not checked before, but I bet it works (Please Let us know if it > doesn't). > > > On 11 May 2011 16:47, Sarr, Nathan wrote: >> Hello, >> &g

RE: XSS Vulnerability in Struts 2 before 2.2.3

2011-05-11 Thread Sarr, Nathan
I did a quick test and it appeared to work correctly. -Nate -Original Message- From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] Sent: Wednesday, May 11, 2011 12:37 PM To: Struts Users Mailing List Subject: Re: XSS Vulnerability in Struts 2 before 2.2.3 I did not checked

Re: XSS Vulnerability in Struts 2 before 2.2.3

2011-05-11 Thread Maurizio Cucchiara
I did not checked before, but I bet it works (Please Let us know if it doesn't). On 11 May 2011 16:47, Sarr, Nathan wrote: > Hello, > > > >   I noticed the solution mentions turning off DMI support in > struts.xml.  Would the same result be achieved by setting it in the > struts.properties file:

XSS Vulnerability in Struts 2 before 2.2.3

2011-05-11 Thread Sarr, Nathan
Hello, I noticed the solution mentions turning off DMI support in struts.xml. Would the same result be achieved by setting it in the struts.properties file: # don't allow dynamic method invocation struts.enable.DynamicMethodInvocation = false Thanks, -Nate

[ANN][SECURITY] Security Announcement: XSS Vulnerability in Struts 2 before 2.2.3

2011-05-10 Thread Rene Gielen
Problem: A security vulnerability affecting all versions of Struts 2 before Struts 2.2.3 has been reported by Dr. Marian Ventuneac (Genworth). The vulnerability allows an attacker to inject malicious client side Javascript code in Struts 2 based applications that have Dynamic Method

RE: Any TabbedPanel specialist in struts 2 + dojo

2011-04-12 Thread bharathnav
Again, Bachchu... -- View this message in context: http://struts.1045723.n5.nabble.com/Any-TabbedPanel-specialist-in-struts-2-dojo-tp4290083p4298449.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscrib

RE: Any TabbedPanel specialist in struts 2 + dojo

2011-04-11 Thread Mahendru, Ajay
What kind of help are u looking for? Can you be more specific? -Original Message- From: bharathnav [mailto:bharath...@gmail.com] Sent: Thursday, April 07, 2011 11:41 PM To: user@struts.apache.org Subject: Any TabbedPanel specialist in struts 2 + dojo Hello All, Is there anyone active

Any TabbedPanel specialist in struts 2 + dojo

2011-04-11 Thread bharathnav
Hello All, Is there anyone active and help me regarding the tabbedpanel in dojo of struts. Thanks in advance. -- View this message in context: http://struts.1045723.n5.nabble.com/Any-TabbedPanel-specialist-in-struts-2-dojo-tp4290083p4290083.html Sent from the Struts - User mailing list

integrating web flow plugin for spring in struts 2

2011-02-26 Thread Muneer Malik
I am having problem with validation framework to work with the webflow plugin. ALL webflow transactions revolves around the FlowAction in struts config, correct ? All your Jsp forms are submitting against FlowAction correct ? So the validation XMLs have to go against the FlowAction -.how would yo

Re: Problem using JSP expressin in Struts 2

2011-02-12 Thread Chris Pratt
You can use JSP EL just fine (I'd still suggest getting rid of Scriplets, they're just bad mojo), you just can't pass them to the Struts Tags as attributes. You can use your own JSP Tag Libraries (I do), and use EL anywhere on the page with the exception of the tag attributes. And there are alte

Re: Problem using JSP expressin in Struts 2

2011-02-12 Thread Ashish Shrivastava
Thanks a lot Chris. I tried with the option and it is working fine :). We will think about the security risk and decide whether to update or not. But as you mentioned that JSP EL is not supported in struts this mean old JSP applications (which uses scriptlet or JSP EL) either can not be upgraded or

Re: Problem using JSP expressin in Struts 2

2011-02-12 Thread Chris Pratt
JSP Expressions are not allowed in the Struts 2 Tag Libs because of security concerns allowing hackers to use JSP EL to inject OGNL into the tags to do bad things. If you don't care about this problem, you can copy the struts .tld file out of the struts.jar file and add true to all the attributes,

Problem using JSP expressin in Struts 2

2011-02-11 Thread Ashish Shrivastava
Hi, We are in the process to upgrade our application. Currently our aplication is on *Weblogic: 8.1sp5 Java: 1.4 Struts: 1.2 * We are upgrading it to: *Server: Weblogic 10.3 Java: 1.6.0_5 Current Struts: 2.0.14 *We are facing issue with jsp expression in struts tag. All the expression which uses JS

Re: Creating Tabs in Struts 2

2010-12-28 Thread Johannes Geppert
View this message in context: http://old.nabble.com/Creating-Tabs-in-Struts-2-tp30543356p30547386.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: Creating Tabs in Struts 2

2010-12-28 Thread Li Ying
You can use the tag, as Maurizio Cucchiara has told you. http://struts.apache.org/2.2.1.1/docs/tabbedpanel.html Or you can use JQuery UI. Here are demos and docs: http://jqueryui.com/demos/tabs/ - To unsubscribe, e-mail: user-

Re: Creating Tabs in Struts 2

2010-12-28 Thread Maurizio Cucchiara
Have you already take a look at http://struts.apache.org/2.1.8/struts2-core/apidocs/org/apache/struts2/components/TabbedPanel.html ? 2010/12/28 : > > I want to create a three tab in jsp using struts 2 and > call 3 separate jsp for each tab any one give the example > Thanks and Regards, > Kart

Creating Tabs in Struts 2

2010-12-27 Thread karthick.gunasekaran
I want to create a three tab in jsp using struts 2 and call 3 separate jsp for each tab any one give the example Thanks and Regards, Karthick G Mobile:8971318927 Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any at

Re: Asking about BigDecimal in Struts 2

2010-12-07 Thread Li Ying
I hate MS SQL Server~ 2010/12/7 Yanto Bong : > Hi Mead, > > thanks for the suggestion, but we want to keep the minimum changes on the > code. > if we convert into string in jsp/view pages, there are quite a lot of > changes. > however we already change our formatting script in our js  library

Re: Asking about BigDecimal in Struts 2

2010-12-07 Thread Burton Rhodes
I always just used the following to display my BigDecimal values... package.properties file: format.money = {0,number,\u00A4###,##0} On Mon, Dec 6, 2010 at 9:29 PM, Yanto Bong wrote: > Hi Mead, > > thanks for the suggestion, but we want to keep the minimum changes on the > code. > if we conver

Re: Asking about BigDecimal in Struts 2

2010-12-06 Thread Yanto Bong
Hi Mead, thanks for the suggestion, but we want to keep the minimum changes on the code. if we convert into string in jsp/view pages, there are quite a lot of changes. however we already change our formatting script in our js library and it solved the issue. also this issue just happend when we

Re: Asking about BigDecimal in Struts 2

2010-12-06 Thread Mead Lai
Hello, 1,convert the munber into string in the jsp/view page. 2,write a JSTL to render that dataType by your self. Regards, Mead On Tue, Dec 7, 2010 at 10:25 AM, Yanto Bong wrote: > Hi Li, > > thanks...unfortunately we already use this model in many places and we need > to have BigDecimal ret

Re: Asking about BigDecimal in Struts 2

2010-12-06 Thread Yanto Bong
Hi Li, thanks...unfortunately we already use this model in many places and we need to have BigDecimal return datetype. However we already solve this issue by changing our java script lib. Thanks On Mon, Dec 6, 2010 at 11:47 AM, Li Ying wrote: > This looks like the result of toString() of BigDe

Re: Asking about BigDecimal in Struts 2

2010-12-05 Thread Li Ying
This looks like the result of toString() of BigDecimal. May be you can try this: http://download.oracle.com/javase/1.5.0/docs/api/java/math/BigDecimal.html#toPlainString%28%29 2010/12/6 Yanto Bong : > Hi All, > > We've using BigDecimal as datatype in hibernate and model for Numeric (20,8) > da

Asking about BigDecimal in Struts 2

2010-12-05 Thread Yanto Bong
Hi All, We've using BigDecimal as datatype in hibernate and model for Numeric (20,8) datatype in database. however when we display it in JSP using struts 2, if the value <> 0 then it will display correctly. However if the value is 0. in database, then it will display in JSP it will shown a

Re: Issues in Struts 2 and WASCE

2010-12-02 Thread Maurizio Cucchiara
I've never heard of such behavior. The only thing I can advise is to enable struts2 log and see in what the correct and the wrong behavior differ. Are you sure there isn't any error log? 2010/12/2 Swapnil Raverkar : > Hi, > > We are observing issues in our Struts 2 based application, when deployed

Issues in Struts 2 and WASCE

2010-12-01 Thread Swapnil Raverkar
Hi, We are observing issues in our Struts 2 based application, when deployed on WAS-CE server. Details are as follow:- Struts 2 version : 2.0.11.1 Platform : Suse Linux App. Server : WAS-CE 2.1.1.4 We are observing a behaviour that the request paramaters (i.e http post/get params) are not get

Re: RequestHeaderAware in Struts 2?

2010-10-27 Thread Dave Newton
ptor, that's why I > ask for any ideas about the best way to implement it. > >        Jose > > -Original Message- > From: Dave Newton [mailto:davelnew...@gmail.com] > Sent: Wednesday, October 27, 2010 3:39 AM > To: Struts Users Mailing List > Subject: Re: Reques

RE: RequestHeaderAware in Struts 2?

2010-10-27 Thread Jose Luis Martinez Avial
best way to implement it. Jose -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Wednesday, October 27, 2010 3:39 AM To: Struts Users Mailing List Subject: Re: RequestHeaderAware in Struts 2? What's wrong with the ideas you've been given? Ying's

Re: RequestHeaderAware in Struts 2?

2010-10-27 Thread Dave Newton
Setting the value into the action is both cleaner, and more expressive, and unless you inject a utility class instance, easier to test. On Wednesday, October 27, 2010, Li Ying wrote: > I would implement this function as a Utility Class, > and call it from the Action class. > > In the Utility Clas

Re: RequestHeaderAware in Struts 2?

2010-10-27 Thread Li Ying
I would implement this function as a Utility Class, and call it from the Action class. In the Utility Class you can get the HttpServletRequest instance by [ServletActionContext.getRequest()]. In this case, you even don't need RequestHeaderInterceptor to inject Headers into your action, because th

Re: RequestHeaderAware in Struts 2?

2010-10-27 Thread Dave Newton
27;s not present, set the IP into the > action. What do you think? > > Jose > > -Original Message- > From: Li Ying [mailto:liying.cn.2...@gmail.com] > Sent: Tuesday, October 26, 2010 3:32 AM > To: Struts Users Mailing List > Subject: Re: RequestHeaderAware in Stru

RE: RequestHeaderAware in Struts 2?

2010-10-27 Thread Jose Luis Martinez Avial
the action. What do you think? Jose -Original Message- From: Li Ying [mailto:liying.cn.2...@gmail.com] Sent: Tuesday, October 26, 2010 3:32 AM To: Struts Users Mailing List Subject: Re: RequestHeaderAware in Struts 2? What Chris has said is right. But what Jose Luis asked for is a in

Re: RequestHeaderAware in Struts 2?

2010-10-26 Thread Li Ying
What Chris has said is right. But what Jose Luis asked for is a inject mechanism likes ParameterAware which takes all the request params through one Map, but not through several property. So I think the simpler (also more Quick And Dirty) way is: (1)Create a interface, likes: public interface He

Re: RequestHeaderAware in Struts 2?

2010-10-25 Thread Chris Pratt
As far as I'm aware, there's not. But it wouldn't be hard to write one. You could use the ParameterInterceptor as a pattern, but have it take it's data from the headers rather than the parameters and you'd be done in 1/2 hr. You could get fancier, to make sure Parameters and Headers with the same

RequestHeaderAware in Struts 2?

2010-10-25 Thread Jose Luis Martinez Avial
Hello, I'm working on an application that for security reasons needs to access to the request headers from an action. I know I can access to the request, but I'm also aware that that is not recomended. Is there a RequestHeaderAware or something like that, that fits that the same behaviour as Par

Re: Reduce Java Script Depecency in Struts 2

2010-10-06 Thread Jason Ferguson
I've tried the jquery plugin, but it just doesn't work for me. A bug in publishing and subscribing to topics had been ignored on the Google Groups site for it since July, but once I just wrote the straight jquery code it worked fine. I also didn't want to resort to Javascript to put content into a

Re: Reduce Java Script Depecency in Struts 2

2010-10-06 Thread Maurizio Cucchiara
Greg is right. JQuery is very easy to use and provides a new approach to write non-intrusive javascript. Maurizio Cucchiara - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@s

Re: Reduce Java Script Depecency in Struts 2

2010-10-06 Thread Greg Lindholm
I haven't used the jQuery plugin but I would highly recommend just using straight jQuery. I've been very impressed with how easy it is to use and how much you can accomplish with very little jQuery code. As far as the jQuery plugin goes; it appears to give you a bunch of snazzy UI elements via jsp

Re: Reduce Java Script Depecency in Struts 2

2010-10-05 Thread Yanto Bong
Hi Hantsy, Jose, thanks, we'll take a look at the plug in. Best Regards Yanto On Wed, Oct 6, 2010 at 11:48 AM, Jose A. Corbacho wrote: > I meant, yep, using the plugin provided for jQuery. > > On Wed, Oct 6, 2010 at 10:40 AM, Hantsy Bai wrote: > > > There is a project which integrated JQuery

Re: Reduce Java Script Depecency in Struts 2

2010-10-05 Thread Jose A. Corbacho
I meant, yep, using the plugin provided for jQuery. On Wed, Oct 6, 2010 at 10:40 AM, Hantsy Bai wrote: > There is a project which integrated JQuery into Struts2... > http://code.google.com/p/struts2-jquery/ > > The dojo plugin shipped with Struts 2 is too old... > > Hantsy > > 于 2010/10/6 11:28

Re: Reduce Java Script Depecency in Struts 2

2010-10-05 Thread Hantsy Bai
There is a project which integrated JQuery into Struts2... http://code.google.com/p/struts2-jquery/ The dojo plugin shipped with Struts 2 is too old... Hantsy 于 2010/10/6 11:28, Jose A. Corbacho 写道: I changed to jQuery not long time ago and I have to say the system has improved its performanc

Re: Reduce Java Script Depecency in Struts 2

2010-10-05 Thread Jose A. Corbacho
I changed to jQuery not long time ago and I have to say the system has improved its performance (I was using before the dojo plugin) as well as the code being cleaner. You'll still need to do some "javascripting" but using jQuery API that is, as said, cleaner. On Wed, Oct 6, 2010 at 10:05 AM, Yant

Reduce Java Script Depecency in Struts 2

2010-10-05 Thread Yanto Bong
Hi All, We've use Struts 2+Spring+Hibernate as our framework and use JSP as the UI. After we review the application, our application having quite a lot Java Script that cause certain form not working propertly in one of the browser. Any suggesstion how we can reduce Java Script in the JSP ? is th

Re: How to Configure a DataSource in Struts 2.X

2010-05-31 Thread aum strut
t; How do we configure a Datasource in Struts 2.X. > 1. Do we put Driver and url in the Action Class file or > 2. Do we configure the Driver and Url in the Web.xml or > 3. Do we configure in struts.xml instead of web.xml. > > A Small example would be helpful. &g

How to Configure a DataSource in Struts 2.X

2010-05-31 Thread VR Venugopal Rao
Dear All, How do we configure a Datasource in Struts 2.X. 1. Do we put Driver and url in the Action Class file or 2. Do we configure the Driver and Url in the Web.xml or 3. Do we configure in struts.xml instead of web.xml. A Small example would be helpful. Regards, VR Venugopal Rao

problem in struts 2 tag in jsp calling spring bean

2010-04-13 Thread Supratim Bandyopadhyaya
Greetings to all, I have a spring dao class like this public class RoleDaoImpl extends SimpleJdbcDaoSupport implements RoleDao { public Role findRoleById(Long id) { . and I have added it to spring as when I am calling a method in this dao

set-property in action-mapping in Struts 2

2010-01-13 Thread Jose Luis Martinez Avial
Hi, In Struts 1 I was able to extend the class ActionMapping and declare additional properties for a mapping in the struts-config.xml by creating the method setPublica in the class MyActionMapping. Is it possible to do something similar in Struts 2? I've seen that there is a

RE: Localization in struts 2

2009-12-09 Thread Muthu Velappan
rom larger group rather than specific individual. -Original Message- From: sarava...@elogic.co.in [mailto:sarava...@elogic.co.in] Sent: Thursday, December 10, 2009 10:34 AM To: muthu.velap...@aspiresys.com Subject: RE: Localization in struts 2 Hi Muthu, I would like to know ab

How to refresh a div in struts 2

2009-11-30 Thread Sandy Beer
Hi, I am newbie to Struts 2. I am trying to refresh a part of my page without submitting the whole page, so I am trying to use ajax theme. is it possible to refresh the contents in the div? with the settings below, it always replaces the intial contents with the result JSP of the ajax action. I do

RE: Preserving Messages and Garbage values Across a Redirect in Struts 2

2009-11-26 Thread Raghuveer.V
n instead of redirectaction and use same properties in Action1 and Action2. Regards, Raghuveer Vellanki -Original Message- From: Siddiq Syed [mailto:siddiq...@yahoo.com] Sent: Friday, October 30, 2009 1:43 AM To: user@struts.apache.org Subject: Re: Preserving Messages and Garb

Re: Preserving Messages and Garbage values Across a Redirect in Struts 2

2009-11-02 Thread Musachy Barroso
;> The >> >> > action you redirect to will return a result of 'input' because the >> >> > workflow >> >> > interceptor sees that there are errors. (Maybe this is why you though >> >> > chain >> >> > wasn't

Re: Preserving Messages and Garbage values Across a Redirect in Struts 2

2009-11-02 Thread Siddiq Syed
Input${considTypeCode}         Thanks Siddiq. From: Greg Lindholm To: Struts Users Mailing List Sent: Mon, November 2, 2009 2:10:57 PM Subject: Re: Preserving Messages and Garbage values Across a Redirect in Struts 2 Here is the link [1] for "Parameters in con

Re: Preserving Messages and Garbage values Across a Redirect in Struts 2

2009-11-02 Thread Greg Lindholm
ss.com/category/struts-2/) > >> >> and I specified that in the strust.xml, > >> >> This interceptor is to preserve the error messages. > >> >> > >> >> > >> >> >> >> class="com.interceptor.RedirectMe

Re: Preserving Messages and Garbage values Across a Redirect in Struts 2

2009-11-02 Thread Siddiq Syed
>> >> >> >> >> >> > >> class="com.interceptor.RedirectMessageInterceptor" /> >> >> >> >>> /> >> >>

  1   2   3   4   5   6   >