DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15921>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15921

Allow relative actions in struts-config.xml





------- Additional Comments From [EMAIL PROTECTED]  2003-02-05 08:41 -------
The new patch is more comprehensive than the old one.

In addition to applying a check for relative URLs in the struts-config.xml file,
the behaviour of the FormTag tags must change too.

Current behaviour of FormTag is rather simplistic: If a relative action "foo" is
specified in FormTag, a slash is prepended to form the path (ie "/foo") and
"/foo" is checked against struts-config.xml.

The new behaviour applies the relative URL "foo" against the current absolute
path as passed by the browser. Thus, if the struts page "/bar/yack/index.do"
containing the FormTag action "foo" is referenced, the resultant path becomes
"/bar/yack/foo.do", and this path is then tested against struts-config.xml.

What this allows you to do is to allow the browser to keep state. For example,
if you have a registration page which appears in many places in a website, eg at
/bar/registration and /foo/registration. If the FormTag action is set to post to
"registration", the resultant path will become "/bar/registration" and
"/foo/registration" respectively. Thus: the registration page no longer needs to
be aware of where it sits within the URL space. The different locations of
registration need only be specified in struts-config.xml, giving the layout of
tiles on the page, but nothing else.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to