Hi,
I have a working jira plugin, with a servlet. But at this point my servlet only prints out "Hello world" as shown on a picture below. It is linked to a simple .vm file.Now I would like to link my servlet to a .jsp file, but I can't find a proper tutorial for that or a good answer that fix my problem. When I try to connect servlet with jsp I get 500 error.
Hello,
How did you develop the servlet? Why do you want to connect it to JSP file?
HI,
I have developed servlet following this tutorial https://developer.atlassian.com/server/jira/platform/creating-a-jira-issue-crud-servlet-and-issue-search/ , I want to connect (link) it to jsp file because I have web application that I have to integrate as jira plugin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should choose first the place in Jira UI, where you would like to connect your servlet. Then you can create a web item, which would call your servlet. Here is a tutorial:
https://developer.atlassian.com/server/jira/platform/adding-menu-items-to-jira/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have no problem with location, first one I created was in new tab, and I had a button (web-item) which called servlet. Only problem that I have is JSP I don't know how to call JSP from servlet I used
RequestDispatcher rd = getServletContext().getRequestDispatcher("locatio");
rd.forward(request, response);
RequestDispatcher rd = request.getRequestDispatcher("/start.jsp");
rd.forward(request, response);
request.getRequestDispatcher(request.getServletContext().getContextPath() + "/start.jsp").forward(request, response);
but none of the above worked for me. Is there a specific folder where JSP files have to be?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why would you need a jsp? You can return a vm or soy templates for user interface.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Because web app that I have uses jsp files so if I don't have to change them I wouldn't, but if there is no other option I will have to change them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I put jsp pages in the webapp folder. Have a look inside the folder and you will see other jsp page there. Then you can call the jsp by base_url/yourjsp.jsp
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.