At least a forward. That way we can just refer to the logical name in
the link tag. It is also a convenient way to pass any parameters, so you
can have
<forward name="item" path="/pages/item/form.jsp"/>
<forward name="itemEdit"
path="/do/item/Form?action=edit"/>
Saves a lot of slashes, and lets you do things like switch between pages
and actions, as needed.
<forward name="item"
path="/do/item/Form?action=new"/>
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/
Bryan Field-Elliot wrote:
>
> I've tried this with Struts but found it to be unwieldly in the
> struts-config.xml file.
>
> Do you make an <action>, and a <forward>, for every single "real" JSP
> page?
>
> Kind of a pain in the buttocks if you ask me, but I see where you're
> going with the idea of centralizing access control, exception handling,
> etc.
>
> I wonder if I'm not doing it as elegantly as I could (with respect to
> the struts-config file).
>
> I also wonder if using the new Filtering scheme (which Struts doesn't do
> anything with), is a more elegant way of inserting that layer in front
> of every JSP access, rather than a Struts action.
>
> Thanks,
> Bryan
>
> On Tue, 2001-12-18 at 10:53, Ted Husted wrote:
>
> I do strongly recommend that all references go through actions or
> forwards, and that a Struts application never link directly to a JSP.
> This makes where the JSPs are kept less of an issue, since that location
> is never revealed on the address bar. Heck, there's no reason for anyone
> to even know that they are JSPs back there to access ;-)
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>