ASF Bugzilla – Attachment 246 Details for
Bug 349
Suport for relative URLS in XSL taglib BugRat Report#627
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
small addition to ApplyTag to support this feature (tested, worked for me)
ApplyTag-getInputSource.java (text/plain), 917 bytes, created by
hboutemy
on 2001-06-22 03:03:27 UTC
(
hide
)
Description:
small addition to ApplyTag to support this feature (tested, worked for me)
Filename:
MIME Type:
Creator:
hboutemy
Created:
2001-06-22 03:03:27 UTC
Size:
917 bytes
patch
obsolete
> private XSLTInputSource getInputSource(String name, String property, > String resource) > throws JspException { > > // If the resource is specified, use that for the input source > if (resource != null) { > ServletContext context = pageContext.getServletContext(); > if (context == null) > throw new JspException("Cannot find servlet context"); > if (! resource.startsWith("/")) { > // resolve relative resource name > HttpServletRequest req = (HttpServletRequest)pageContext.getRequest(); > String servletPath = req.getServletPath(); > String servletBase = servletPath.substring(0, servletPath.lastIndexOf('/') + 1); > resource = servletBase + resource; > } > InputStream stream = > context.getResourceAsStream(resource); > if (stream == null) > throw new JspException("Missing resource '" + resource + "'"); > return new XSLTInputSource(stream); > } >...
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 349
: 246