webwork/src/main/webwork/dispatcher ServletDispatcher.java,1.65,1.66
[email protected] Sun, 02 Nov 2003 16:19:30 -0800
| Newsgroups | gmane.comp.java.open-symphony.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/opensymphony/webwork/src/main/webwork/dispatcher
In directory sc8-pr-cvs1:/tmp/cvs-serv2700/src/main/webwork/dispatcher
Modified Files:
ServletDispatcher.java
Log Message:
if view contains a hash, then strip it away before trying to get a request dispatcher
Fixes WW-362
Index: ServletDispatcher.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/dispatcher/ServletDispatcher.java,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- ServletDispatcher.java 1 Nov 2003 05:24:05 -0000 1.65
+++ ServletDispatcher.java 3 Nov 2003 00:19:28 -0000 1.66
@@ -203,6 +203,9 @@
RequestDispatcher dispatcher = null;
try {
+ //strip away the anchor
+ int hash = view.indexOf('#');
+ if(hash>-1) view = view.substring(0, hash);
dispatcher = aRequest.getRequestDispatcher(view);
} catch (Throwable e) {
// Ignore
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/