Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 2596 invoked from network); 11 Aug 2007 03:59:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Aug 2007 03:59:41 -0000 Received: (qmail 37808 invoked by uid 500); 11 Aug 2007 03:59:28 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 37776 invoked by uid 500); 11 Aug 2007 03:59:28 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 37765 invoked by uid 99); 11 Aug 2007 03:59:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2007 20:59:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.227.215.170] (HELO chiron.lunarpages.com) (216.227.215.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Aug 2007 03:59:21 +0000 Received: from c-71-230-43-254.hsd1.pa.comcast.net ([71.230.43.254] helo=[192.168.123.6]) by chiron.lunarpages.com with esmtpa (Exim 4.63) (envelope-from ) id 1IJi7q-0003Sf-Nw for user@struts.apache.org; Fri, 10 Aug 2007 20:58:54 -0700 Message-ID: <46BD33F9.70900@omnytex.com> Date: Fri, 10 Aug 2007 23:58:49 -0400 From: "Frank W. Zammetti" User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Add Web Service to Struts Web App References: <12102392.post@talk.nabble.com> In-Reply-To: <12102392.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - chiron.lunarpages.com X-AntiAbuse: Original Domain - struts.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - omnytex.com X-Virus-Checked: Checked by ClamAV on apache.org One simple answer might be the StrutsWS project: http://sourceforge.net/projects/strutsws/ In CVS you'll find a version for the 1.3.x branch of Struts. Simply put, it allows you to call your existing Struts Actions as Web Services without any changes to them. This means any validation you have configured should still work, they don't know they are being accessed as services versus part of a Struts app. I have to say the project hasn't been developed lately, but we left it in a stable state, and anyone is free to pick up where we left off if they wanted to. Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: fzammetti@hotmail.com Author of "Practical Ajax Projects With Java Technology" (2006, Apress, ISBN 1-59059-695-1) and "JavaScript, DOM Scripting and Ajax Projects" (2007, Apress, ISBN 1-59059-816-4) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! semaj.najraham wrote: > Hi, > > I've been googling and looking at the user mailing list if I add web service > to a struts based application, but didn't find my answers. Currently I am > developing a struts based application with Struts 1.3.8 with Struts > validator framework. I've implemented business layer and data layer. > > In future, I need to integrate my app with other applications such as portal > using web service. Therefore, I would like to think ahead on how I can > integrate since I've not worked with web service before. > > By googling and reading some of the articles, I found out that web service > can call struts actions. My real concern is the data validation. > 1. Can I use Struts validator framework? > 2. If not, do I need to do validation at data layer? > 3. If I need to do validation at data layer, can I use Commons Validator ? > 4. If I use Commons Validator, should I use it in both presentation layer > and data layer. > > Commons Validator was a part of Struts Validator. I'm totally lost! > > Any help will be greatly appreciated. > > Thanks, > semaj --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org