How can I get a contextPath and baseUrl to retrieve file resource?

Minyoung Cho November 3, 2016

Hi.

Recently, I have developed JIRA plugins for our project.

And I'm new to JIRA.

What I want to do is reading .xml resource file which has some contents like properties that i need.

And I want to use them in my rest web service (for example , CustomResource that has "@Path("myrest")")

in JiraWebActionSupport, I know the way how to do this.

But , in REST , I can't have HttpServletRequest I think even if i have to use it to get contextPath.

Is there any way to solve my problems? Thank you for reading my question.

 

1 answer

1 accepted

0 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2016
Minyoung Cho November 6, 2016

Hi . Thank you smile that is what i'm looking for!

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events