ASF Bugzilla – Attachment 11649 Details for
Bug 29194
xml-namespaces not supported
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
class for the bindNamespace tag
BindNamespaceTag.java (text/plain), 1.65 KB, created by
Jesper Zedlitz
on 2004-05-25 10:48:18 UTC
(
hide
)
Description:
class for the bindNamespace tag
Filename:
MIME Type:
Creator:
Jesper Zedlitz
Created:
2004-05-25 10:48:18 UTC
Size:
1.65 KB
patch
obsolete
>/* > * 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.xtags.xpath; > >import java.util.HashMap; >import java.util.Map; > >import javax.servlet.jsp.JspException; >import javax.servlet.jsp.tagext.TagSupport; > >import org.dom4j.DocumentFactory; > >/** > * @author Jesper Zedlitz <jesper@zedlitz.de> > * > */ >public class BindNamespaceTag extends TagSupport { > private String prefix; > private String uri; > > public int doStartTag() throws JspException { > if (prefix == null) > throw new JspException("prefix not set"); > if (uri == null) > throw new JspException("uri not set"); > > Map namespaceURIs = > DocumentFactory.getInstance().getXPathNamespaceURIs(); > if (namespaceURIs == null) { > namespaceURIs = new HashMap(); > DocumentFactory.getInstance().setXPathNamespaceURIs(namespaceURIs); > } > > namespaceURIs.put(prefix, uri); > > return SKIP_BODY; > } > > /** > * @param prefix > * The prefix to set. > */ > public void setPrefix(String prefix) { > this.prefix = prefix; > } > > /** > * @param uri > * The uri to set. > */ > public void setUri(String uri) { > this.uri = uri; > } > >}
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 Raw
Actions:
View
Attachments on
bug 29194
: 11649 |
11650