ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

I am trying to run a simple program of JSP but I wasn't able to compile by apache?

my program is:- <html> <head><title>First JSP</title></head> <body> <% double num = Math.random(); if (num > 0.95) { %> <h2>You'll have a luck day!</h2><p>(<%= num %>)</p> <% } else { %> <h2>Well, life goes on ... </h2><p>(<%= num %>)</p> <% } %> <a href="<%= request.getRequestURI() %>"><h3>Try Again</h3></a> </body> </html>

user-image
تم إضافة السؤال من قبل Mayank Gaur , Senior Software Engineer , Azilen Technology Pvt Ltd
تاريخ النشر: 2013/05/07
مستخدم محذوف‎
من قبل مستخدم محذوف‎

All what you need is here http://www.ntu.edu.sg/home/ehchua/programming/java/JSPByExample.html Step by step...
good Luck dude.

AbdelMalek AIT AMOKHTAR
من قبل AbdelMalek AIT AMOKHTAR , SharePoint Freelancer , DotNet Partners

Do you use Apache HTTP server or Apache Tomcat ? Tomcat is necessary to execute jsp

Muhammad Anzar
من قبل Muhammad Anzar , DevOps/DevSecOps Architect , Confidential

JSP will support on Tomcat. Apache requires mod_jk module to support JSP

 

Mayank Gaur
من قبل Mayank Gaur , Senior Software Engineer , Azilen Technology Pvt Ltd

Thank you very much to Ali sir and Abdel Sir.Sir I sorted out my error.Again thanks.

المزيد من الأسئلة المماثلة