Re: S2 custom authentication: remembering original request

2013-07-15 Thread Antonio Sánchez
Hi Antonios. Thank you very much. I was using invocation.getProxy().getConfig().getParams() instead, but that returns an immutable map. It works using getInvocationContext().getParameters(). Thank you. I have to say that I'm not chaining actions: it doesn't make sense to remember the orig

Re: Tags Attributes

2013-07-15 Thread Lukasz Lenart
2013/7/15 Alireza Fattahi : > Hi, > > Does anyone why: > > > generates error: > Attribute un_defined_attribute invalid for tag fielderror according to TLD > > But > > un_defined_attribute="test"/> > Does not generate an error and creates below html: > value="" name="amount"> > > is it hard code

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: Error while using struts-jquery-plugin 3.6.0 + sitemesh-2.4.2.jar + struts 2.3.15

2013-07-15 Thread Sreekanth S. Nair
Even extracting static content to local web-app also throwing the same error if we don't mapped with /*. -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 On Mon, Jul

Re: S2 custom authentication: remembering original request

2013-07-15 Thread Antonios Gkogkakis
Hi Antonio, You can't modify the parameter map from the Servlet request, but you can pass the extra params from your first request to your action by putting them in the struts parameters map by calling invocation. getInvocationContext().getParameters().#put. So to recap, you have your intercepto

Re: json validation with utf-8 error messages

2013-07-15 Thread Alireza Fattahi
Hi, I used to save the messages.resources with UTF-8 encoding and the showed correctly but the json validation messages not! I saved mesages.resource with ansi encoding and chaned all strings from native to ascii ( by http://native2ascii.net/ ) the json validation messages displayed correctly

Re: S2 custom authentication: remembering original request

2013-07-15 Thread Antonio Sánchez
The problem was I did not consider the namespace in the interceptor, config file and login action. ${#session.action} ${#session.space} Well, this is actually the easy part but the original question remains: How do I r

Re: json validation with utf-8 error messages

2013-07-15 Thread Lukasz Lenart
2013/7/15 Alireza Fattahi : > Any comments?! Any example?!?!?!?!?!?! Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: us

json validation with utf-8 error messages

2013-07-15 Thread Alireza Fattahi
Hi, The characters of error messages with json validation and a utf-8 error message is not displayed correctly. I added              SetEncoding         org.apache.catalina.filters.SetCharacterEncodingFilter                     encoding             UTF-8             and             SetEnco

Re: Error while using struts-jquery-plugin 3.6.0 + sitemesh-2.4.2.jar + struts 2.3.15

2013-07-15 Thread Sreekanth S. Nair
Sorry i didn get you. You mean directly under WebContant folder? Is like this the following struts2-core.jar/ template to WebContent/template struts2-jquery-plugin/template to WebContent/template (as it is or static and .flt should be in seperate folder ) strust2-core.jar/org/apache/struts2/stat

Re: Error while using struts-jquery-plugin 3.6.0 + sitemesh-2.4.2.jar + struts 2.3.15

2013-07-15 Thread Lukasz Lenart
2013/7/15 Sreekanth S. Nair : > Sorry to bother you, > templates (.flt) has to be put inside template folder thats quite right but > still confused with freemarker template to be moved or not. > > My doubt is not about template files but about the these static contents. > Where i have to add these

Re: Error while using struts-jquery-plugin 3.6.0 + sitemesh-2.4.2.jar + struts 2.3.15

2013-07-15 Thread Lukasz Lenart
2013/7/15 Sreekanth S. Nair : > Some legacy jsp's are still using dojo tags, to keep it we are maintaining > dojo. And about Jquery, template/jquery/ folder contains .flt, what i have > to do with this? once i extracted where i suppose to add in My web app, > static or struts directory? Put next

Re: Error while using struts-jquery-plugin 3.6.0 + sitemesh-2.4.2.jar + struts 2.3.15

2013-07-15 Thread Sreekanth S. Nair
Sorry to bother you, templates (.flt) has to be put inside template folder thats quite right but still confused with freemarker template to be moved or not. My doubt is not about template files but about the these static contents. Where i have to add these static files ? inside a *static* or *stru

Re: Error while using struts-jquery-plugin 3.6.0 + sitemesh-2.4.2.jar + struts 2.3.15

2013-07-15 Thread Sreekanth S. Nair
Some legacy jsp's are still using dojo tags, to keep it we are maintaining dojo. And about Jquery, template/jquery/ folder contains .flt, what i have to do with this? once i extracted where i suppose to add in My web app, static or struts directory? -- Thanks & Regards Srikanth Software Develop

Error while using executeAndWait interceptor

2013-07-15 Thread Sreekanth S. Nair
Hi, getting the following exeception while using executeAndWait filter @ line Number 186 i have the following line of code, which causing the NPE, without executeAndWait this Action works pretty much fine. final HttpServletRequest req = ServletActionContext.getRequest(); [0m13:03:43,031

Re: Error while using struts-jquery-plugin 3.6.0 + sitemesh-2.4.2.jar + struts 2.3.15

2013-07-15 Thread Lukasz Lenart
2013/7/15 Sreekanth S. Nair : > Struts2-core & dojo-plugin is fine and its straight forward. But in jquery > plugin there is no static folder, one template folder is there (this > contains both flt and some js and css). Why do you mix dojo plugin (deprecated) with jquery? And what I see, the folde

Re: Error while using struts-jquery-plugin 3.6.0 + sitemesh-2.4.2.jar + struts 2.3.15

2013-07-15 Thread Sreekanth S. Nair
Struts2-core & dojo-plugin is fine and its straight forward. But in jquery plugin there is no static folder, one template folder is there (this contains both flt and some js and css). -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.ego

Re: Error while using struts-jquery-plugin 3.6.0 + sitemesh-2.4.2.jar + struts 2.3.15

2013-07-15 Thread Lukasz Lenart
It's very easy, extract struts2-core and check folder structure, the same with jquery plugin. You can also disable serving static content by Struts http://struts.apache.org/development/2.x/docs/static-content.html Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/7/15 Sreekanth

Re: Error while using struts-jquery-plugin 3.6.0 + sitemesh-2.4.2.jar + struts 2.3.15

2013-07-15 Thread Sreekanth S. Nair
/* basically works but i felt its unnecessary to map filter with /* url pattern. As you said extracting all static resource to appropriate folder would work. But i have no idea about which / what all have to be extracted (even this may help in strust2 performance). Since i have posted a query long