Include html snippet into jelly view

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Include html snippet into jelly view

Dzmitry Kashlach-2
Hi,

Need to update view of plugin with html.

Try to do it with
<st:include "snippet.html">
but failed.

Which way is the best for this ?

Thanks.


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/46b78128-b61d-4e4c-99bb-fc6ef66789aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Include html snippet into jelly view

Daniel Beck

> On 17. Jul 2017, at 15:02, Dzmitry Kashlach <[hidden email]> wrote:
>
> but failed.
>

It's generally a good idea to include the full error message when asking for help. In this case, it would probably tell you that your snippet isn't legal XML.

Try <j:include uri="something.html"/>; assuming the file is in the same dir.  I only tried it in hpi:run though; so may fail properly deployed.  It's not something I've done before (and cannot really think of a use case for either).

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7BB29176-6045-46F6-B1E6-0FB0E09F1E40%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Include html snippet into jelly view

Dzmitry Kashlach-2
It's generally a good idea to include the full error message when asking for help. In this case, it would probably tell you that your snippet isn't legal XML.
  
No error neither in jenkins.log nor at UI.
 Try <j:include uri="something.html"/>; assuming the file is in the same dir.  I only tried it in hpi:run though; so may fail properly deployed.  It's not something I've done before (and cannot really think of a use case for either). 
 
It didn't help, but anyway thank you for answer.



On Monday, July 17, 2017 at 4:21:35 PM UTC+3, Daniel Beck wrote:

> On 17. Jul 2017, at 15:02, Dzmitry Kashlach <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="2P0pVpl7AgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dzmitry....@blazemeter.com> wrote:
>
> but failed.
>

It's generally a good idea to include the full error message when asking for help. In this case, it would probably tell you that your snippet isn't legal XML.

Try <j:include uri="something.html"/>; assuming the file is in the same dir.  I only tried it in hpi:run though; so may fail properly deployed.  It's not something I've done before (and cannot really think of a use case for either).

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/0e908512-0971-403e-bdb4-2e3e6ac93c87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...