Solved

About JSP

Posted on 2004-08-12
7
241 Views
Last Modified: 2010-04-01
Hi Experts..
I decided to learn JSP but i have some Questions.
1- Is JSP Secure than ASP,ASP.NET and PHP ?
2- Which WebServer Needed for JSP ?
3- What's JDK ?
4- What's the relation (or difference) between JSP and JServlets ?
5- What are steps to run my first example (helloWorld.jsp)?
6- what's the best editor to write jsp code (can i write jsp code in frontpageXP?

0
Comment
Question by:anasalama
  • 3
  • 3
7 Comments
 
LVL 18

Expert Comment

by:bobbit31
ID: 11788084
1. Depends on your web/app-server
2. it's up to you... some choices, I personally use the free apache/tomcat combo. (web/app server respectively)
3. Java development kit. The classes you'll need to develop in java (the API).
4. JSP is simply another way of creating a Servlet. JSP pages are compiled into servlets.
5. Put this in a .jsp file:
  <%
      PrintWriter out = response.getWriter();
      out.writeLine("Hello World");
  %>
6. I'd assume you could in frontpage XP though i've never used it. I like JCreator Pro (www.jcreator.com)... though there are many others like NetBeans, IDEA, etc...
0
 
LVL 11

Accepted Solution

by:
sompol_kiatkamolchai earned 250 total points
ID: 11789951
1.you can set security in jsp by config in web.xml. you can protect web resource collection by defining security role and define which resource they can use. and if you want to protect http connection you can use SSL also.
2.There are many web server support JSP. for free I recommend Tomcat like bobbit31. for commercial e.g. WebLogic, WebSphere.
3.JDK stand for Java Development Kit. It is a java library classes that you can use to develop and it also bundle Java Runtime.
4.JSP emphasizes on presentation and come after Servlet. Servlet is not suitable for developing presentation I will show you by snippet code.

out.println("<html>");
out.println("<body>");
out.println(helloString);
out.println("</body>");
out.println("</html");

but if you use jsp. it's easier and you can use any html editor to do

<html>
<body>
<%=helloString%>
</body>
</html>

5. for simple helloworld.jsp. it's just one line.

helloworld.jsp
=========
<%="Hello World!"%>

6. I am not reccomend frontpage since it microsoft and suite for ASP. for jsp I think you can use any java editor that can highlight java syntax for you e.g. eclipse(www.eclipse.org it's for free)
0
 

Author Comment

by:anasalama
ID: 11791621
Hi Folks..
Is JDK necessary to run JSP? If yes which version should i use and what steps should i follow to setup JDK?

0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 11

Expert Comment

by:sompol_kiatkamolchai
ID: 11791667
0
 

Author Comment

by:anasalama
ID: 11791703
About JDK which link Should I click ?
I found many links in the link you sent.
0
 
LVL 11

Expert Comment

by:sompol_kiatkamolchai
ID: 11791755
Download J2SE SDK
0
 

Author Comment

by:anasalama
ID: 11791860
Thank's alot :-)
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question