I suggest you to learn java as it is easy to learn and you can move on JSP,AJAX after you have done with java.As this technology can be learnt only after learning java