Solved

About JSP

Posted on 2004-08-12
7
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

The conference as a whole was very interesting, although if one has to make a choice between this one and some others, you may want to check out the others.  This conference is aimed mainly at government agencies.  So it addresses the various compli…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

691 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