Solved

How to use JSP

Posted on 2004-09-19
8
192 Views
Last Modified: 2010-04-01


Hi,

I have never used JSP. i need help urgently.

where  and how do i create my JSP page

how do i execute/run my JSP page.

do i need special software

0
Comment
Question by:nadine-gibson
8 Comments
 
LVL 36

Accepted Solution

by:
Zyloch earned 85 total points
ID: 12098082
Hi nadine-gibson,

You would need a server. Most people use Tomcat (http://jakarta.apache.org/tomcat/index.html)

Then, you would need to learn JSP and configure your server correctly. There are instructions how to do that, but if it gets messy, you could always post here.

Regards,
Zyloch
0
 
LVL 7

Assisted Solution

by:lhankins
lhankins earned 83 total points
ID: 12098204
Here are some freely downloadable books on learning JSP programming:

    http://www.freeprogrammingresources.com/jspbook.html

0
 
LVL 21

Assisted Solution

by:MogalManic
MogalManic earned 83 total points
ID: 12098293
To get a feel on how JSP works, the Tomcat installation comes with some examples you should check out.  The simple definition would be that is is simalar you PHP and/or JSP in that it is normal HTML on the client side with Java scriptlets which run on the server side.  This is a simple page that prompts for you name and then says hi.

<html>
  <head>
     <title>jsp Demo</title>
   </head>

<body>
<form action='' method='post'>
  <%if (request.getMethod().equalsIgnoreCase("POST")) {%>
         <h1>Hello, <%=request.getParameter("name")%></h1>
  <%} else {%>
        <input type='text' name='name'/> <br/>
        <input type='submit' name='submit' value='submit'/>
   <%}%>
</form>
</body>
</html>
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 11

Assisted Solution

by:sompol_kiatkamolchai
sompol_kiatkamolchai earned 83 total points
ID: 12098577
You must have servlet container such as Tomcat like Zyloch provide link above.
Then  install it, and try to start server and run its example.
If everything ok, try to create you first JSP by

HelloWorld.jsp
=========
<%
String name = request.getParameter("name");
%>
Hello World, <%=name%>.

and put it to C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT

then access them by opening browser and type this in address bar

http://localhost:8080/HelloWorld.jsp?name=My Name


Free e-book
========
http://www.theserverside.com/books/addisonwesley/ServletsJSP/index.tss

Good link
======
http://www.jsptut.com/
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-JSP.html
http://java.sun.com/products/jsp/docs.html
http://java.sun.com/j2ee/learning/tutorial/
http://www.visualbuilder.com/jsp/tutorial/
0
 
LVL 9

Assisted Solution

by:ronan_40060
ronan_40060 earned 83 total points
ID: 12100020

Check out the discussion of compiling jsp under tomcat at
http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_21133304.html
0
 
LVL 4

Assisted Solution

by:MacroLand
MacroLand earned 83 total points
ID: 12166271
To use JSP you need to know java and HTML. You can use JSP like ASP or PHP. But JSP is purely a mixture of java and HTML.
You can build dynamic pages with JSP and support them with servlets which are pure Java code. Actually JSP is turned into servlets before execution but you dont see them unless you want to trace an error within the code.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
A safe way to clean winsxs folder from your windows server 2008 R2 editions
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now