Add jsp in Velocity

How to add jsp code in \decorators\includes\topnav.vm

3 answers

1 accepted

i want to add this html part at top of confluence for that i need to fetch json contents How can i do this please help me

see, that helps a lot..... In that situation, I'd put some jquery into the template and pull the data directly from the client, not the server.

Here's a stack overflow question which may help

because i want to fetch contents of page into any variable for example

i want to fetch inside any variable $s

just tell me is it possible to fetch any page using velocity template ?

what are you trying to do? Maybe better ways of doing it?

You can access the data model in Velocity

i want to add jsp tag <% jsp code %> at top of head in topnav.vm

but it is not interpeting jsp tags and printing as it is.

That's still not explaining WHY you want to to do it.

That's telling me WHAT you want to do.

Why try to add the JSP code, what is the end purpose?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published 8 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

85 views 2 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you