I am working on to send email to another user of the same application for approving the purchase order where the 2nd user will click on the link and if s/he is not logged in, the application will prompt the user to log-in and once logged in, it will direct the user to the link. The e-mail sending part is working perfectly but the link is not working.
Here is the link generation text code:
String screenName =entityName+".edit";
String itemName = entityName; //EntityName is sent by entity.getMetaClass().getName();
String linkString = globalConfig.getWebAppUrl()+"/open?screen="+screenName+"&item="+itemName+"-"+entityId+"";
When I run the application I am getting the following link which is not working.
http//localhost:8080/inteaccERP/open?screen=erp$AnnualObjective.edit&item=erp$AnnualObjective-4f776900-9a6c-dce2-871e-93e87d33ba6e
But it is not taking me to the page I refer to.
Here is my link code:
String linkString = globalConfig.getWebAppUrl()+"/open?screen="+screenName+"&item="+itemName+"-"+entityId+"";
I get the following error.
Thanks for your help.