Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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
1  
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: rimuhosting.com/mod_jk2_and_mod_proxy_ajp.jsp –  Ahe May 26 '11 at 7:44

Your Answer

 
discard

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.