Controller not recongnised

Hi Team,

I am new to openmrs, I have an issue having my newly created controller to work for my newly created gsp page.Here is what I did:

1- I created a gsp page called addDepartment.gsp in …/webapp/pages/

2- I created a controller for the page called addDepartmentPageController.java in …omod/…/department/page/controller/

So I was expecting something to be printed on my console when I open the addDepartment page or when submit the form

below is the contain of the controller:

package org.openmrs.module.department.page.controller;

import org.openmrs.api.context.Context;

import org.springframework.web.bind.annotation.RequestParam;

/**

  • Created by denis on 2/21/18.

*/

public class addDepartmentPageController {

public String get() {
	System.out.println("==========================================================");
	System.out.println("get.....");
	System.out.println("==========================================================");
	
	return null;
}

public String post(@RequestParam("name") String name, @RequestParam("description") String description) {
	System.out.println("==========================================================");
	System.out.println("Name: " + name);
	System.out.println("description: " + description);
	System.out.println("==========================================================");
	
	return null;
}

}

Sorry I finally solve my issue.The issue was the class name not well written