Re: Strategy to consume JSON/REST SErver

2011-02-10 Thread Frans Thamura
We see that struts2 is better See our prototype For struts2 see github.com/blueoxygen/cimande Vs Springmvc rest Github.com/meruvian/yama Hope after this code u will see We modify the json plugins using jackson, because it is unstable, see the org.blueoxygen.cimande.rest /m/ -Origin

RE: XSS Validation

2011-02-10 Thread Altenhof, David Aron
Greg- There seems to be two issues that you've talked about. 1) Input sanitization: OWASP doesn't directly address this, as I recall. They do have a canonicalization library that you can use to prevent funny character tricks that let characters sneak past your filtering, however. You should us

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: Strategy to consume JSON/REST SErver

2011-02-10 Thread Eduard Neuwirt
Hi, I think the spring-web is better candidate for REST. I have not seen until now a well Struts2-REST prototype. Eduard Am 10.02.2011 20:31, schrieb Frans Thamura: hi all we know REST is getting popular, and we know Struts2 can produce REST/JSON but.. any idea to consume REST/JSON in Str

Strategy to consume JSON/REST SErver

2011-02-10 Thread Frans Thamura
hi all we know REST is getting popular, and we know Struts2 can produce REST/JSON but.. any idea to consume REST/JSON in Struts2 approach anyone working on this? I want like hibernate way, but hibernate connectes to database. F

XSS Validation

2011-02-10 Thread Greg Akins
I'm looking to do some general input santization on a Struts2 application. Thinking that the OWASP validators might be a good place to start; maybe along with a Struts CustomValidator Has anyone done anything like this? Does anyone have some advice for providing "general" protection againts XSS

OT static resources, cache control, and versioning

2011-02-10 Thread Greg Lindholm
I'm trying to find out what are the "Best Practices" and if there are any utilities available to assist with versioning of static resources and cache-control. I'm working on an application (written with Struts 2) that uses a filter to apply cache-control headers to the static resources, javascript

Re: Decent tutorial or working example of Hibernate 3 + Struts 2 +Tiles 2 on myeclipse

2011-02-10 Thread Emi Lu
Good morning, Although I did not use hibernate but mybatis - struts2 + tiles2.0.7 + mybatis3, I had the similar problem long time ago. It was related to the tiles version. If I use tiles 2.2.2, I have an exception. But with 2.0.7, no compile error. You may try. -- Lu Ying On 02/10/2

RE: cannot run a simple struts application, server start error - myeclipse

2011-02-10 Thread Martin Gainty
take a look at /WEB-INF/classes/struts-tiles.xml which should look something like http://struts.apache.org/dtds/struts-2.0.dtd";> showcase.index showcase.index Martin _

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-10 Thread Mohamed SIDI
you try to parse a XML File, but there is a null value, you may put out more trace of exception 2011/2/10 abhishek jain > hi > here is another error: > cannt understand what it is: > > Digester.getParser: java.lang.UnsupportedOperationException: This > parser does not support specification "null

Re: Decent tutorial or working example of Hibernate 3 + Struts 2 +Tiles 2 on myeclipse

2011-02-10 Thread Nuwan Arambage
On Thu, Feb 10, 2011 at 3:49 PM, Nuwan Arambage wrote: > Hi, > This link might be helpful to you.explore this by your own.It contains > good examples :) > http://www.mkyong.com/struts2/struts-2-hibernate-integration-example/ > cheers !! > > On Thu, Feb 10, 2011 at 3:22 PM, wrote: >> >> Look on in

Re: Decent tutorial or working example of Hibernate 3 + Struts 2 +Tiles 2 on myeclipse

2011-02-10 Thread Nuwan Arambage
Hi, This link might be helpful to you.explore this by your own.It contains good examples :) http://www.mkyong.com/struts2/struts-2-hibernate-integration-example/ cheers !! On Thu, Feb 10, 2011 at 3:22 PM, wrote: > > Look on internet. It's a problem with the parser, you are using the wrong > vers

Re: Decent tutorial or working example of Hibernate 3 + Struts 2 +Tiles 2 on myeclipse

2011-02-10 Thread jlmagc
Look on internet. It's a problem with the parser, you are using the wrong version. I had the same problem and needed to change it using a JVM parameter. Sent via BlackBerry from T-Mobile -Original Message- From: abhishek jain Date: Thu, 10 Feb 2011 15:12:36 To: Struts Users Mailing List

Re: Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse

2011-02-10 Thread abhishek jain
the tiles is creating a problem with the following exception: Digester.getParser: java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null" at javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448) at org.apache.commons.

RE: Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse

2011-02-10 Thread adam pinder
i would start with the struts2 sample app, get it working then add hibernate3 (this adds a lot of new jars) get struts2 and hibernate3 working then add tiles2 and get that working - don't try and throw them all in together then try to work out which one is causing the issue. > Date: Thu, 10 F

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-10 Thread Kushan Jayathilake
This one also relates with the XML parser, What are you going to do in your application, how it interacts with a parser? On Thu, Feb 10, 2011 at 2:49 PM, abhishek jain wrote: > hi > here is another error: > cannt understand what it is: > > Digester.getParser: java.lang.UnsupportedOperationExcepti

RE: Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse

2011-02-10 Thread adam pinder
make sure you only add additional jars into the web app itself and avoid (mostly) adding jars into common library folders. i use struts2 and hibernate3 but not tiles and have no problems like yours. adam > Date: Thu, 10 Feb 2011 14:53:52 +0530 > Subject: Decent tutorial or working example of Hi

Decent tutorial or working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse

2011-02-10 Thread abhishek jain
Hi, Can anyone forward me to a good tutorial or a working example of Hibernate 3 + Struts 2 + Tiles 2 on myeclipse. Maybe a project i can import in myeclipse or so, any simple skeleton will do, I tried my hand directly but cannt get through i get some exceptions everytime i add struts and hiberna

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-10 Thread abhishek jain
hi here is another error: cannt understand what it is: Digester.getParser: java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null" at javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448) at org.apache.commons.digeste