Re: Authorization and Authentication

2011-03-18 Thread Jordi Fernandez
Same advice here. Spring Security supports many authentication/authorization scenarios, can be extended and is well documented. On 3/18/11 4:17 PM, Dave Newton wrote: On Fri, Mar 18, 2011 at 11:16 AM, Alessio Bandini wrote: I read about Acegi in 2007, but maybe now there are others solutions

Re: OT static resources, cache control, and versioning

2011-02-11 Thread Jordi Fernández
You can reference every static content with: /js/site.js?version= If using Maven or Ant, in the building process generate a timestamp and substitute it wherever applicable. On Thu, Feb 10, 2011 at 3:56 PM, Greg Lindholm wrote: > I'm trying to find out what are the "Best Practices" and if there

Re: Strategy to consume JSON/REST SErver

2011-02-10 Thread Jordi Fernández
You can check the rest showcase sample application from the struts 2 distribution: http://svn.apache.org/repos/asf/struts/struts2/trunk/apps/rest-showcase/ On Thu, Feb 10, 2011 at 8:31 PM, Frans Thamura wrote: > hi all > > we know REST is getting popular, and we know Struts2 can produce REST/JSO

Re: Why ActionProxy is used

2011-01-28 Thread Jordi Fernández
Via a Factory: http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java Look for config.getContainer().getInstance(ActionProxyFactory.class).createActionProxy(... Jordi. On Fri, Jan 28, 2011 at 12:57 PM, Nuwan Arambage wrote: >

Re: Why ActionProxy is used

2011-01-28 Thread Jordi Fernández
ire struts architecture. > so thing is thing.. as a design decision , why struts2 designers made > the it interceptor call via ActionProxy class.What is the fundamental > reason for that > > thanks > > Nuwan > > > -- Forwarded message -- > From: Jordi Fe

Re: Why ActionProxy is used

2011-01-28 Thread Jordi Fernández
Have you already seen this? http://struts.apache.org/2.2.1/docs/big-picture.html On Fri, Jan 28, 2011 at 10:32 AM, Nuwan Arambage wrote: > Hi all , >  this might be a trivial question and I hope  this is the right place > to raise my question. > Why do stuts2 implementers use ActionProxy. What is

Re: Setting session time out at run time

2010-12-28 Thread Jordi Fernandez
setMaxInactiveInterval(int seconds) will work for a specific user session timeout. It is set in the httpsession object, for example http://bit.ly/g2WdSW. In Struts 2 you can gain access to the HttpSession object by accessing HttpServletRequest (http://struts.apache.org/2.0.14/docs/how-can-we-

Re: Field validation

2010-12-28 Thread Jordi Fernandez
Try jQuery validation http://docs.jquery.com/Plugins/validation for client side javascript validation. On 28/12/2010 6:54, karthick.gunaseka...@wipro.com wrote: Any One tell me how to do field validation in struts 2, i need to show the error message on top of the each field not in top of the s

Re: Authorization/ Authentication

2010-12-27 Thread Jordi Fernandez
Have you considered Spring Security? http://static.springsource.org/spring-security/site/ On 27/12/2010 14:17, Greg Akins wrote: I'm just starting to research the appropriate Struts2 way to do Authorization/Authentication. Looks like a LoginInterceptor on the default stack is the way to go (th

Re: REST and Web API

2010-10-28 Thread Jordi Fernandez
I recommend you "REST in Practice" http://amzn.to/a5svl3 On 28/10/2010 17:22, Frans Thamura wrote: hi all anyone have a literature or reference to create good WebAPI i want to create a good Web API using S2/REST like FB API, why is it good? or GData API F -

Re: REST plugin and validations

2010-10-21 Thread Jordi Fernandez
When you say "written to the response" do you mean everything is ok on the server side processing? The browser keeps waiting forever? On 21/10/2010 13:40, Stefan Magnus Landrø wrote: Hi there, I'm trying to add validation to a REST-plugin based struts2 application. I'm using using jsr 303 for

Re: Can't deploy on server

2010-10-20 Thread Jordi Fernandez
XML parsers are accessed via factories from Java code. Which concrete parser will be used is something that will be decided at runtime by the factory code, which is implemented by the app server. Your app server is using a concrete implementation by Oracle that is causing the exception. Usuall

Re: SOAP on REST

2010-10-19 Thread Jordi Fernandez
I don't understand your question clearly. Can you provide more detail on the expected behaviour/outcome? On 19/10/2010 8:57, Frans Thamura wrote: hi all we have REST plugins, is it possible to implement SOAP on REST, so the output is not XML or JSON, but a SOAP i just getting confuse about SO

Re: URL "format" advice

2010-09-06 Thread jordi
You can do that with wildcard mappings. I'm using Advanced wildcard mappings with regex... check it out http://struts.apache.org/2.x/docs/wildcard-mappings.html <http://struts.apache.org/2.x/docs/wildcard-mappings.html>jordi On Wed, Aug 25, 2010 at 4:46 PM, Greg Akins wrote:

Re: Ajax support for Struts 2.2.1

2010-08-20 Thread jordi
We're using full dojo 1.5 but without any tag library and we are very happy with it. We stopped using the plugin long time ago... it was always far away from latest dojo release On Fri, Aug 20, 2010 at 10:19 AM, Lukasz Lenart < lukasz.len...@googlemail.com> wrote: > Take a look on jQuery plugin

Re: Struts 2.2.1 static params being included in redirects

2010-08-17 Thread jordi
.ognl.OgnlUtil.setValue(OgnlUtil.java:209) at com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:405) ... 94 more On Tue, Aug 17, 2010 at 10:49 AM, jordi wrote: > Hey there, > > since 2.2.1, all my static params are being includes as parameters after > any redirect (redir

Re: [S2] 2.2.1 Appended .xhml to back of the url

2010-08-17 Thread jordi
i'm using struts.action.extension=, On Tue, Aug 17, 2010 at 12:23 PM, Dave Newton wrote: > Okay, so extrapolate, and try setting it to an empty string. > > On Tue, Aug 17, 2010 at 6:20 AM, wrote: > > > Hi, > > > > This solution not work for me, because it now append .action to back > > instead

Struts 2.2.1 static params being included in redirects

2010-08-17 Thread jordi
this? is it intended? I've checked 'merge' parameter from staticparams interceptor but i'm getting the same result. I'm using regex pattern matcher cheers jordi

RE: [S2] Freemarker vs struts taglibs

2007-05-28 Thread Jordi Rubio Moreno
Hi Dave, Thanks a lot for the advice! I have use the template_update_delay=6 too, and have noticed some improvement :) Cheers Jordi Rubio Moreno -Mensaje original- De: Dave Newton [mailto:[EMAIL PROTECTED] Enviado el: lunes, 28 de mayo de 2007 14:43 Para: Struts Users Mailing

RE: [S2] Freemarker vs struts taglibs

2007-05-28 Thread Jordi Rubio Moreno
Hi Jeromy, > > Is JSP taglib too slow and not recommended solution for production portals? > Hi Jordi, I'm impressed you made the effort to compare Freemarker vs Jsp > performance. I've re-posted your question at the top of this email in the > hope > that it ga

RE: [S2] Freemarker vs struts taglibs

2007-05-28 Thread Jordi Rubio Moreno
Hi, An important info to comment... The total Action execution time is 60ms (again, perhaps the problem is slow taglib execution (?)) Cheers! Jordi Rubio Moreno -Mensaje original- De: Jordi Rubio Moreno [mailto:[EMAIL PROTECTED] Enviado el: lunes, 28 de mayo de 2007 13:25 Para

RE: [S2] Freemarker vs struts taglibs

2007-05-28 Thread Jordi Rubio Moreno
${o.offDescr} <@s.url id="addToShortListUrl" action="ShortList!add" includeParams="none" offId="${o.offId}" /> <@s.text name="Results.addToShortList"/>

RE: Weird behavior - Struts 2 - Firefox vs. IE

2007-05-24 Thread Jordi Rubio Moreno
Hi Charbel, If you are using , try to use instead of this the simple HTML tag , and tell me if this works (I don't know why this happens, but I found this solution). Cheers Jordi Rubio Moreno -Mensaje original- De: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] Enviado el: vi

RE: Re: [S2] Understanding RestfulActionMapper and Restful2ActionMapper

2007-05-21 Thread Jordi Rubio Moreno
{2} /Results.jsp /Error.jsp and my friendly URLs looks like http://localhost/app/Search/manager/london.action Best regards! Jordi Rubio Moreno -Mensaje original- De: news [mailto:[EMAIL PROTECTED] En nombre de Laurie Harper Enviado el: martes, 15 de mayo de

RE: [S2] Freemarker vs struts taglibs

2007-05-21 Thread Jordi Rubio Moreno
Hi Musachy, Thanks a lot for the response :) Cheers! Jordi Rubio Moreno -Mensaje original- De: Musachy Barroso [mailto:[EMAIL PROTECTED] Enviado el: jueves, 17 de mayo de 2007 17:55 Para: Struts Users Mailing List Asunto: Re: [S2] Freemarker vs struts taglibs FreeMarker is a

[S2] Freemarker vs struts taglibs

2007-05-17 Thread Jordi Rubio Moreno
Hi, I'm a bit confused. I need to decide if I'll use Freemarker or Struts taglibs, and I don't know the differences between both. E.g. what's the difference between and <@s.iterator>, and <@s.url>, etc etc... I have seen all the tutorials and examples I have found working with taglibs, but pe

[S2] Understanding RestfulActionMapper and Restful2ActionMapper

2007-05-15 Thread Jordi Rubio Moreno
http://localhost:8080/example/1/HelloWord.action always with the same result: There is no Action mapped for action name blablabla/blablabla Please, I need to understand what I'm doing wrong, because I believe I'm doing the things as tutorials and articles show, but without right results... Thanks a lot! Jordi Rubio Moreno

RE: [S2] Slow s:url execution

2007-05-15 Thread Jordi Rubio Moreno
Hi, Finally I have created the project from the scratch, with the minimum jar files possible, and now works fine! I believe there was a jar version conflict, and this was the cause of slow s:url execution. Thanks a lot! Cheers Jordi Rubio Moreno -Mensaje original- De: Jordi Rubio

RE: [S2] Slow s:url execution

2007-05-14 Thread Jordi Rubio Moreno
Hi Musachy, I'm installing TPTP plugin for Eclipse to control the project execution. When I have more information I'll send you :) ATM I can say the ArrayList offers has only 10 Offer objects. Cheers! Jordi Rubio Moreno -Mensaje original- De: Musachy Barroso [mai

[S2] Slow s:url execution

2007-05-14 Thread Jordi Rubio Moreno
Hi, I'm testing s:iterator and s:url tags vs #foreach and #surl velocity tags, and my surprise is that Struts s:url tag is "slower" than #surl invocation. When I work with Velocity, the test page is rendered immediately, but when I execute the same test (in the same machine and Tomcat) with s:url

RE: [S2] Using complex objects in JSP

2007-05-11 Thread Jordi Rubio Moreno
tResultSet(), in your jsp you could access it via ${resultSet} Don On 5/11/07, Jordi Rubio Moreno <[EMAIL PROTECTED]> wrote: > Hi, > > I'm newbie in Struts, and I have begin with Struts 2. I have an > ActionSupport object that contains a complex object TResultSet (this &g

[S2] Using complex objects in JSP

2007-05-10 Thread Jordi Rubio Moreno
Hi, I'm newbie in Struts, and I have begin with Struts 2. I have an ActionSupport object that contains a complex object TResultSet (this object communicates with a remote server and this server sends a lot of information that is stored into the TResultSet client). class TResultSet { private