I’m less experienced with Java. Currently in my app all of my URLs are set to things like http://localhost:8080/cmt/content/3068fc93/edit.html
On LIVE, my url will need to go to http://www.domain.com/content/3068fc93/edit.html
This is my first java app and I don’t want to reinvent the wheel. I’d like to just be able to link to pages using an absolute path (without a domain) such as /content/3068fc93.html.
update
Anytime I do <a href='/content/edit.html'>Edit Content</a> it will work on LIVE but not on DEV because DEV requires the extra /cmt. How do I fix this between my 2 environments?
You use jstl tag as :
where ‘c’ came from
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>Update
about the cmt portion, you should a rewritte url or change your url param on the servlet mapping
Update
in prod you got :
in dev you must have :