Return-Path: <hidden>
Received: from pool-68-239-44-142.bos.east.verizon.net ([68.239.44.142] helo=[10.0.1.2])
by esc49.midphase.com with esmtpsa (TLSv1:RC4-SHA:128)
(Exim 4.52)
id 1EwISZ-0000dp-AO
for hidden; Tue, 10 Jan 2006 06:18:43 -0600
Message-Id: <hidden>
Date: Tue, 10 Jan 2006 07:18:48 -0500
From: Tim Fennell <hidden>
Reply-To: hidden
Sender: hidden
To: hidden
Subject: Re: [Stripes-dev] JSP reference in ActionBean...
In-Reply-To: <hidden>
Errors-To: hidden
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-To: hidden
Delivered-To: hidden
References: <hidden>
X-Mailer: Apple Mail (2.746.2)
Received-SPF: unknown (socket error)
X-AntiAbuse: Sender Address Domain - tfenne.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-Spam-Score: 1.0 (+)
X-Spam-Report: Spam Filtering performed by sourceforge.net.
See
http://spamassassin.org/tag/ for more details.
Report problems to
http://sf.net/tracker/?func=add&group_id=1&atid=200001 1.0 FORGED_RCVD_HELO Received: contains a forged HELO
X-BeenThere: hidden
X-Mailman-Version: 2.0.9-sf.net
Precedence: bulk
List-Unsubscribe: <
https://lists.sourceforge.net/lists/listinfo/stripes-development>, <mailto:hidden?subject=unsubscribe>
List-Id: Mailing list for discussion of development of Stripes itself. <stripes-development.lists.sourceforge.net>
List-Post: <mailto:hidden>
List-Help: <mailto:hidden?subject=help>
List-Subscribe: <
https://lists.sourceforge.net/lists/listinfo/stripes-development>, <mailto:hidden?subject=subscribe>
List-Archive: <
http://sourceforge.net/mailarchive/forum.php?forum=stripes-development>
Status:
Hi Arnaud,
I actually disagree with the view that it's bad practice to reference
a JSP from your code. I tend to think that pushing it off to a
configuration file (like Struts) doesn't really make your code more
independent of the JSP, it just means you have one more artifact to
maintain! So, out of the box, Stripes does not have a way to
externalize or centralize your JSP filenames.
What I'd suggest you do is keep things fairly simple, and perhaps use
a simple class that looks something like this:
public class Pages {
public static Resolution BULK_ADD_EDIT_BUGS = new
ForwardResolution("/bugzooky/BulkAddEditBugs.jsp");
...
}
If you really, really want to put this stuff out in an XML or
properties file, there's nothing stopping you doing that, but I'd
suggest you stop and think about what value that gives you, versus
the added complexity of maintaining related information in yet
another place...
-t
On Jan 10, 2006, at 7:05 AM, Arnaud Viguier wrote:
> I'have an design issue with stripes, the forward resolution in the
> ActionBean reference a JSP pages:
>
> return new ForwardResolution("/bugzooky/BulkAddEditBugs.jsp");
>
> Which is a bad practice in design.
> Is there a way of using reference like Struts does?
>
>
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Stripes-development mailing list
hidden
https://lists.sourceforge.net/lists/listinfo/stripes-development