How to use JSP


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

Who is Participating?
ZylochConnect With a Mentor Commented:
Hi nadine-gibson,

You would need a server. Most people use Tomcat (

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.

lhankinsConnect With a Mentor Commented:
Here are some freely downloadable books on learning JSP programming:

MogalManicConnect With a Mentor Commented:
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.

     <title>jsp Demo</title>

<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'/>
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

sompol_kiatkamolchaiConnect With a Mentor Commented:
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

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

Good link
ronan_40060Connect With a Mentor Commented:

Check out the discussion of compiling jsp under tomcat at
MacroLandConnect With a Mentor Commented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.