Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 79120 invoked from network); 16 Aug 2007 03:55:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Aug 2007 03:55:55 -0000 Received: (qmail 56569 invoked by uid 500); 16 Aug 2007 03:55:43 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 56538 invoked by uid 500); 16 Aug 2007 03:55:43 -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 56527 invoked by uid 99); 16 Aug 2007 03:55:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2007 20:55:43 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of meisam.sarabadani@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO py-out-1112.google.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 03:55:41 +0000 Received: by py-out-1112.google.com with SMTP id p76so233363pyb for ; Wed, 15 Aug 2007 20:55:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=CPEyeQsd9X17sFKHDTFDhy6J6VvZ5E6uIqtdHaO+R3aniv+wAPl9S6DNy7dne3Anzl0Myctpa2ZFsOBsz02osZ4EyqxoZfX8NWHblKaco/cuAPpQxmU7MMd6Pod4q521akP2uEvLqWtWY1//HzXG4fc/Hq+I2FN0wH+Wzj3E4uw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=KFsnZt2UX0XoF5+s4pXqsodPFTVra3mEkyHACZA1+E5GbxXAo4Q/yxNDZUDBIQap/jS4BvXGb+rDZCPL0Rza9vkvyA3FKRUufUKswBbGYGvpP2Tlcr1Zo3KExhMyJXEFJXtBf08X3smvMjZdYpWwe6umKGJzIO4vnweynjrmm8g= Received: by 10.142.14.20 with SMTP id 20mr68427wfn.1187236518987; Wed, 15 Aug 2007 20:55:18 -0700 (PDT) Received: by 10.142.97.10 with HTTP; Wed, 15 Aug 2007 20:55:18 -0700 (PDT) Message-ID: <642df5650708152055x1f7748f5m7cb9fb98b9ffba8c@mail.gmail.com> Date: Thu, 16 Aug 2007 11:55:18 +0800 From: "meisam sarabadani" To: "Struts Users Mailing List" Subject: Serious need MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_80116_29619555.1187236518979" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_80116_29619555.1187236518979 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I have downloaded the full pack of struts and the all exampels, and also i have deployed it manually by putting it into my container (tomcat), but when im going to use the eclipse as IDE to develop and start a struts everything messes and I can`t continue, actually it is not working, I have seen so many tutorials but none of is 100% sure about what they are saying, can you help me with this ? On 8/16/07, meisam sarabadani wrote: > > hey > > thanks for your help but the thing is that it does not work like that in > eclipse, yeah I have downloaded the full pack of struts and the all > exampels, and also i have deployed it manually by putting it into my > container (tomcat), but when im going to use the eclipse as IDE to develop > and start a struts everything messes and I can`t continue, actually it is > not working, I have seen so many tutorials but none of is 100% sure about > what they are saying, can you help me with this ? > > > On 8/16/07, Andvar Woo wrote: > > > > You can refer to the Struts doc. > > The easiest way is to use the struts2-blank-2.0.9.war as a start. > > you can find it from the http://struts.apache.org > > You'd better download a struts-2.x.all.zip from the download pages. > > Hope that helps,good luck. > > 2007/8/16, meisam sarabadani : > > > > > > Does anybody know how to configure struts on eclipse and build anew > > > project > > > by struts in eclipse ? > > > > > > On 8/16/07, red phoenix wrote: > > > > > > > > For general Java class,we can make construction function,like this: > > > > public class test{ > > > > String a; > > > > public test(String a){ > > > > this.a=a; > > > > } > > > > } > > > > > > > > I don't know if I can do it like above code under struts2 action,for > > > > > some > > > > reason,I want to initialize some variable and assign some value to > > > it,like > > > > follows: > > > > public class MyClass extends ActionSupport{ > > > > private ....; > > > > public MyClass(SomeType s){ > > > > //make some common operaction,such get session and so > > on,because > > > I > > > > want to run them only once > > > > } > > > > public String execute() throws Exception { > > > > .... > > > > } > > > > public String .....{ > > > > } > > > > ... > > > > } > > > > > > > > I can successly compile above code,but when I run above code,it will > > say > > > > error: > > > > 1)MyClass action error > > > > 2)java.lang.NullException because some code in MyClass(SomeType s) > > > > > > > > When I remove the code in the MyClass(SomeType s) into execute() > > > > function,it > > > > can run well. I am puzzle with it! Anybody could tell me how to do > > > > it? An > > > > example is better. > > > > > > > > Thanks, > > > > phoenix > > > > > > > > > > > > > > > > -- > > > Appreciated much, > > > > > > Meisam Sarabadani > > > IBM Student Ambassador > > > Vice president II, IT Society > > > Multimedia University, Cyberjaya Capmus > > > ------------------------------------------------------------------ > > > "The day the Lord created hope was probably the same day he created > > > Spring." Bern Williams. > > > ------------------------------------------------------------------ > > > > > > > > > -- > Appreciated much, > > Meisam Sarabadani > IBM Student Ambassador > Vice president II, IT Society > Multimedia University, Cyberjaya Capmus > ------------------------------------------------------------------ > "The day the Lord created hope was probably the same day he created > Spring." Bern Williams. > ------------------------------------------------------------------ > -- Appreciated much, Meisam Sarabadani IBM Student Ambassador Vice president II, IT Society Multimedia University, Cyberjaya Capmus ------------------------------------------------------------------ "The day the Lord created hope was probably the same day he created Spring." Bern Williams. ------------------------------------------------------------------ ------=_Part_80116_29619555.1187236518979--