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

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





------- Additional Comments From [EMAIL PROTECTED]  2005-08-25 18:31 -------
Attached is an updated version of ActionRedirect that supports appending 
anchors.  I am unable to generate a patch at the moment, so I hope this will 
be OK.  I used the same basic model as the parameters in that there is a new 
addAnchor() method and a new getAnchorString() method and a new anchorValue 
istance variable... The slight difference is that it is simply appended to the 
URL in getPath() because it doesn't need all the logic involved in properly 
forming the parameter string... it will either append a blank string or an 
actual anchor string, so it's quite a bit simpler.  Verified to work in my 
simple test case, which is nothing but a form submitted to an Action with the 
following in execute():

ActionRedirect ar = new ActionRedirect(mapping.findForward("defaultForward"));
ar.addParameter("MyAddedParam", "SomeValue");
ar.addAnchor("MyAnchor");
return ar;

The MyAddedParam is present in the target JSP, and it jumps to the appropriate 
anchor.  Not sure there's much else to do as far as testing goes :)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to