ASF Bugzilla – Attachment 19351 Details for
Bug 34109
<c:url> doesn't merge slashes at the boundary of "context" and "value"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Unit test for this bug.
34109-test.patch (text/plain), 2.61 KB, created by
Bjorn Townsend
on 2007-01-03 17:14:26 UTC
(
hide
)
Description:
Unit test for this bug.
Filename:
MIME Type:
Creator:
Bjorn Townsend
Created:
2007-01-03 17:14:26 UTC
Size:
2.61 KB
patch
obsolete
>Index: test/org/apache/taglibs/standard/tag/url/core/Test34109.java >=================================================================== >--- test/org/apache/taglibs/standard/tag/url/core/Test34109.java (revision 0) >+++ test/org/apache/taglibs/standard/tag/url/core/Test34109.java (revision 0) >@@ -0,0 +1,45 @@ >+/* >+ * Copyright 1999,2004 The Apache Software Foundation. >+ * >+ * Licensed under the Apache License, Version 2.0 (the "License"); >+ * you may not use this file except in compliance with the License. >+ * You may obtain a copy of the License at >+ * >+ * http://www.apache.org/licenses/LICENSE-2.0 >+ * >+ * Unless required by applicable law or agreed to in writing, software >+ * distributed under the License is distributed on an "AS IS" BASIS, >+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. >+ * See the License for the specific language governing permissions and >+ * limitations under the License. >+ */ >+ >+package org.apache.taglibs.standard.tag.url.core; >+ >+import javax.servlet.jsp.*; >+import org.apache.cactus.*; >+import org.apache.taglibs.standard.testutil.TestUtil; >+ >+public class Test34109 extends JspTestCase { >+ >+ public Test34109(String name) { >+ super(name); >+ } >+ >+ protected void setUp() throws Exception { >+ super.setUp(); >+ } >+ >+ protected void tearDown() throws Exception { >+ super.tearDown(); >+ } >+ >+ public void test34109() throws Exception { >+ String toInclude = TestUtil.getTestJsp(this); >+ pageContext.include(toInclude); >+ >+ String genurl = (String) pageContext.getAttribute("genurl", PageContext.APPLICATION_SCOPE); >+ >+ assertEquals("The URL should be /foo/test.jsp", "/foo/test.jsp", genurl); >+ } >+} >Index: test/web/org/apache/taglibs/standard/tag/url/core/Test34109.jsp >=================================================================== >--- test/web/org/apache/taglibs/standard/tag/url/core/Test34109.jsp (revision 0) >+++ test/web/org/apache/taglibs/standard/tag/url/core/Test34109.jsp (revision 0) >@@ -0,0 +1,5 @@ >+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> >+ >+<c:set var="genurl" scope="application"> >+ <c:url context="/foo/" value="/test.jsp"/> >+</c:set>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 34109
:
19261
|
19262
| 19351