Return-Path: Delivered-To: apmail-beehive-user-archive@www.apache.org Received: (qmail 83276 invoked from network); 1 May 2007 17:49:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 May 2007 17:49:42 -0000 Received: (qmail 19719 invoked by uid 500); 1 May 2007 17:49:48 -0000 Delivered-To: apmail-beehive-user-archive@beehive.apache.org Received: (qmail 19433 invoked by uid 500); 1 May 2007 17:49:47 -0000 Mailing-List: contact user-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Users" Delivered-To: mailing list user@beehive.apache.org Received: (qmail 19422 invoked by uid 99); 1 May 2007 17:49:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 10:49:47 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of noofiz@yandex.ru designates 213.180.223.102 as permitted sender) Received: from [213.180.223.102] (HELO webmail12.mail.yandex.net) (213.180.223.102) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 10:49:38 -0700 Received: from YAMAIL (webmail12.yandex.ru) by mail.yandex.ru id ; Tue, 1 May 2007 21:49:06 +0400 Received: from [87.240.15.29] ([87.240.15.29]) by mail.yandex.ru with HTTP; Tue, 1 May 2007 21:49:05 +0400 (MSD) Date: Tue, 1 May 2007 21:49:05 +0400 (MSD) From: =?KOI8-R?B?Iu3JyMHJzCBOb29maXoi?= Sender: noofiz@yandex.ru Message-Id: <46377D91.000003.13394@webmail12.yandex.ru> MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] Errors-To: noofiz@yandex.ru To: user@beehive.apache.org Subject: Re: handling all requests X-MsgDayCount: 1 X-BornDate: 1173042000 In-Reply-To: Reply-To: noofiz@yandex.ru References: <46330196.000004.10157@webmail15.yandex.ru> X-Source-Ip: 87.240.15.29 Content-Type: text/plain; charset="KOI8-R" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org I`am a PHP programmer, but I learnt java. Now I want to learn web programming in java. I was looking for somthing like mod_rewrite. ;) I understood that NetUI is not the same, its more powerfull. As I`ve written in my previous letter. I want to have url: localhost/users/your_login instead localhost/login.jsp?name=your_login I`am not keen on NetUI. Tell me if you know better ways to reach it. >Hi there, > >Just curious, why do you want all requests to go through the same >action? This doesn't really fit the model of NetUI and page flows. >With NetUI, the Page Flow Controller class centralizes navigation >logic, state, metadata, and exception handling and allows you to >create modular "page flows". If there's some request handling you >want to perform before forwarding on to the desired actions, you could >use a servlet filter. You might also look at the support for request >interceptors in NetUI. > >Your web.xml "/*" has all request, including >presentation JSP, etc. all going to the page flow action servlet. The >configuration of the action servlet should just be for the actions. > >Kind regards, >Carlin > >On 4/28/07, noofiz wrote: >> Hello. >> >> How can I make one controller class`s action(not simple) to handle all >> requests for a web application? >> For example, I want to have >> localhost/users/your_login >> instead >> localhost/login.do?name=your_login >> or for example: >> localhost/page1/param1/param2/param3/ >> >> The firs thing I`ve tried: >> >> action >> org.apache.beehive.netui.pageflow.PageFlowActionServlet >> >> config >> /_pageflow/struts-config.xml >> >> 2 >> >> >> >> action >> /* >> >> >> I thought the begin action will be called. >> But I`ve got an exception, unfortunately I cant place full stack trace now. >> >> Thanks. >> -- ������� ����� ��������������: http://moikrug.ru/