juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: Custom icon in page
Date Fri, 22 Dec 2017 20:59:35 GMT
Hi James,

The only mention of "htdocs" is in the release notes on
https://juneau.apache.org/site/apidocs/overview-summary.html

Is this mentioned in the docs and I did not find it?

I dug around the source code to figure it out.

Gary

On Fri, Dec 22, 2017 at 1:34 PM, James Bognar <jamesbognar@apache.org>
wrote:

> 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