juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Custom icon in page
Date Fri, 22 Dec 2017 18:45:14 GMT
Hi All:

I adapted this from Juneau examples:

@RestResource(
// @formatter:off
path="/",
title="My Product",
description="Administration",
htmldoc=@HtmlDoc(
        header={
                "<h1>$R{servletTitle}</h1>",
                "<h2>$R{methodSummary,$R{servletDescription}}</h2>",
                "<a href='https://www.rocketsoftware.com'><img
src='$U{servlet:/htdocs/juneau.png}'
style='position:absolute;top:5;right:5;background-color:transparent;height:30px'/></a>"
                },
widgets={
ContentTypeMenuItem.class,
StyleMenuItem.class,
},
navlinks={
"options: servlet:/?method=OPTIONS",
        "$W{ContentTypeMenuItem}"
}
),
children={
ConfigResource.class,
LogsResource.class
}
// @formatter:on
)

How do I change:

img src='$U{servlet:/htdocs/juneau.png}'

to point to either a png file in the jar file that makes up my app. I embed
Juneau in my app. Or to a local file?

Thank you,
Gary

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message