Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an index.jsp file and uploaded it into the www folder of WAMP (apache). When I try to run it via localhost, it only displays the code. Can you please explain me how to run the index.jsp file on my WAMP server?

share|improve this question

JSP-files are Java Server Pages files. You need servlet container to run them (e.g. tomcat).

Nowadays it is quite uncommon to write web application just using jsp. More common way is that jsp is used as view technology with some application framework. So I'd make sure the jsp-file you have is a complete application instead of some page in some bigger application.

Note that this very highly simplified answer, more from wikipedia.

share|improve this answer
Well, then the answer is you can't (at least in pure meaning of wamp). Probably the most used way to view jsp in apache is to install tomcat and use mod_proxy or mod_jk2 in apache. More about these apache modules: – Ahe May 26 '11 at 7:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.