juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Bognar <jamesbog...@apache.org>
Subject Re: Custom icon in page
Date Fri, 22 Dec 2017 20:34:35 GMT
Sorry I didn't reply faster. :-)

I'm glad you found the solution.  Let me know if the documentation needs
improvement.

Thanks!

On Fri, Dec 22, 2017 at 3:05 PM, Gary Gregory <garydgregory@gmail.com>
wrote:

> Nevermind, I found the package.htdocs trick.
>
> Gary
>
> On Fri, Dec 22, 2017 at 11:45 AM, Gary Gregory <garydgregory@gmail.com>
> wrote:
>
> > 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