i am working on th ticket that requires me to create a manageExtensions page similar to the manageApps page within the reference apllication module.First,i have created a mageExtensions.gsp under webapp/pages.i also created a ManageExtensionsPageController under org.openmrs.module.referenceapplication.page.controller.This is the code that i have written in ManageExtensionsPageContoller https://pastebin.com/ZNp79Nwc ,so as to render the manageExtensions page.After building the .chmod ,i install it in my referenceaplication so as i can aceess the manageExtensions page,but i get this error https://pastebin.com/JBE6yRJh Could there be a problem with my controller?i just want to basically render the manageExtensions .gsp Page
Hello @herbert24, I noticed you missed out the kind of method you are interested in (and that is GET) in the mappings annotation
could you try this
out by replacing the above mapping plus don’t forget to do this import
see if it works out . . . .
@herbert24 do you find this https://wiki.openmrs.org/display/docs/Technical+Overview resourceful too ?
hi,after replacing with the above mapping i run into this error ( HTTP Status 404 - /openmrs-standalone/WEB-INF/view/referenceapplication/manageExtensions.jsp).I can render jsp pages very well,could there be a difference when rendering gsp pages when using spring mvc?
thanks for the link it widened on my knowledge on files served by the web app
@herbert24 gsp’s are templates ,why are you considering these View Technologies ?
the ticket whose link is above involves use of gsp’s instead of jsp’s
this is the link https://pastebin.com/ZNp79Nwc
Did you place the manageExtension.gsp in the correct file path of your local repo of the ticket you are working on i.e.
If possible you can also share the link to your git repo just to make the issue/problem clear enough.
You can also consult this guide to help dive smoothly into groovy
@herbert24 on top of @ruhanga "s link i hink among other things uses uiframework ,hence has a special kind of springlike controllers which you want to use.The gsp templates used are slightly modified too so does the rendering so you may also want to follow those conventions. You may want to look at Flexible method signatures and this example