Re: [MODERATE EMAIL] Proposal to use Servlet annotations for configuration.

2017-09-26 Thread Jacques Le Roux
Le 26/09/2017 à 16:16, Jacques Le Roux a écrit : Note that I have already a number of HTTP headers securing in RequestHandler . This is what happens when I rewrite sentences, I meant: Note that I have already secured a number of HTTP headers in RequestHandler . Jacques

Re: [MODERATE EMAIL] Proposal to use Servlet annotations for configuration.

2017-09-26 Thread Jacques Le Roux
Ah Pradhan, Note that I have already a number of HTTP headers securing in RequestHandler . But I'd not be against using stuff we have now in Tomcat 8.5 https://tomcat.apache.org/tomcat-8.5-doc/config/filter.html#HTTP_Header_Security_Filter/Initialisation_parameters And of course also CORS

Re: [MODERATE EMAIL] Proposal to use Servlet annotations for configuration.

2017-09-26 Thread Jacques Le Roux
Hi Yash, It's not what I wanted to put there :) But anyway, since I can't remember, after a quick look I have no real ideas on how you will use @ServletSecurity (I guess with @HttpConstraint and@HttpMethodConstrain). So please feel free to provide patches in Jiras to continue your ideas

Re: [MODERATE EMAIL] Proposal to use Servlet annotations for configuration.

2017-09-26 Thread Yash Sharma
Thank you, Jacques. We can even take it further with @*WebInitParam *annotation to initialize values once it for all for all webapps and @*ServletSecurity *for basic servlet security. On Tue, Sep 26, 2017 at 2:23 PM Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: > Le 24/09/2017 à 10:27,

Re: [MODERATE EMAIL] Proposal to use Servlet annotations for configuration.

2017-09-26 Thread Jacques Le Roux
Le 24/09/2017 à 10:27, Jacques Le Roux a écrit : and certainly more things using @WebInitParam and @WebInitParam Not sure what I wanted to add there :D Jacques

Re: [MODERATE EMAIL] Proposal to use Servlet annotations for configuration.

2017-09-26 Thread Jacques Le Roux
Hi Yash, All, I also tried to factorise as much things as possible in the past regarding HTTP headers and cookies for security. It worked for most part but at r1719762 I failed with in and we finally ended with OFBIZ-6655 which is good, but duplicates things everywhere in web.xml files I

Re: [MODERATE EMAIL] Proposal to use Servlet annotations for configuration.

2017-09-24 Thread Jacques Le Roux
Thanks Yash, For me it's interesting only if we can factorise things. I mean the web.xml files are easy to read but if we can centralise repeating things it's better. And then the web.xml files will be even easier to read (less stuff). Fortunately we can factorise

Re: [MODERATE EMAIL] Proposal to use Servlet annotations for configuration.

2017-09-23 Thread Yash Sharma
Hello Jacques, First of all, thank you for your response, while we declare Servlet definition in web.xml file we can also do it the java file itself. Here is an example of declaring a Servlet through annotation: @WebServlet(name = "/mypluginweb/WelcomeServlet", urlPatterns =

Re: [MODERATE EMAIL] Proposal to use Servlet annotations for configuration.

2017-09-18 Thread Jacques Le Roux
Hi Pradhan, Could you give us a quick example of what you want to do with it exactly? Actually more to the point, what advantages this gives to us? TIA Jacques Le 18/09/2017 à 07:19, Deepak Dixit a écrit : Hi Yash, Your email has been moderated, Please subscribe to mailing list

[MODERATE EMAIL] Proposal to use Servlet annotations for configuration.

2017-09-17 Thread Deepak Dixit
Hi Yash, Your email has been moderated, Please subscribe to mailing list http://ofbiz.apache.org/mailing-lists.html Thanks & Regards -- Deepak Dixit www.hotwaxsystems.com www.hotwax.co -- Forwarded message -- From: Pradhan Yash Sharma To: