struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Pierce <Todd.Pie...@hubbub.com.au>
Subject RE: global forwards in forms.
Date Mon, 09 Sep 2002 03:17:13 GMT
Thanks for the information, Ted. I note with amusement that the debate for
this feature is still warm ;-) I'd vote for it!

-----Original Message-----
From: Ted Husted [mailto:husted@apache.org]
Sent: Friday, 6 September 2002 8:41 PM
To: Struts Users Mailing List
Subject: Re: global forwards in forms.


There's actually a feature requite there, but it's been marked "later".
A patch has also been submitted, but with everything else going on, I 
haven't been able to look at it closely enough to commit it.

http://issues.apache.org/bugzilla/show_bug.cgi?id=7202

I do agree that now that we can do things like specify the input 
parameter as a forward, it only makes sense to use these as the standard 
Struts URI wrapper. In the case of an Action form, it may still be a 
requirement that it resolve to an Action. But being able to flex the 
target of a form (without a RTE) makes it easier to share forms between 
workflows (see also #10550).

What really made be a believer is when I needed to change from 
application-based to container-based security. The targets of all the 
forms had to be changed to accomodate the URI pattern. The URIs may be 
virtual, but they are not logical. Other components have expectations 
about how they are used. If the targets of the forms had been specified 
as ActionForwards, I could have made ALL the changes from within the 
Struts configuration.

-Ted

John Yu wrote:

> 
> I see. Perhaps you can file a feature request in Bugzilla.
> 
> 
> At 07:44 am 06-09-2002, you wrote:
> 
>> I understand, however I read in http://husted.com/struts/catalog.htm
>>
>> "Rather than embed the path to an ActionMapping in a JSP, a link should
>> refer to a Global Forward instead...
>> <forward name="itemSearch"  path="/item/Search.do"/>
>> <forward name="itemFindDonor" path="/item/Search.do?column=donor"/>"
>>
>> I thought this was good advice. Also, since a form action is 
>> essentially a
>> link with parameters hidden from the browser's address bar I can't see 
>> why
>> we shouldn't be able to use a global forward here as well.
>>
>> -----Original Message-----
>> From: John Yu [mailto:john@scioworks.com]
>> Sent: Thursday, 5 September 2002 3:46 PM
>> To: Struts Users Mailing List
>> Subject: Re: global forwards in forms.
>>
>>
>> doesn't support forwarding to global forwards. What global forwards 
>> give you is globally visible symbolic URIs. In a sense, the actions 
>> are already globally visible symbolic URIs. (Watch out that using may 
>> not be compatible with multi subapps.)
> 
> 


-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
<http://husted.com/struts/book.html>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message