How To Edit/Add JSP Pages in NetBeans IDE

15 April 2007

NetBeans IDE is very useful for J2EE application development. It provides support for developing EJB, WebServices, JSP, Servlets along with the J2EE components. Here is an introduction of developing JSP pages using NetBeans IDE.

NetBeans has full feature support for generating HTML elements, JSP tags, database JSP tags automatically.

Some basic information of JSP tags are listed below to brush up your knowledge in JSP.

  1. Tag ” taglib ” is used to include JSTL library in JSP page. Listed below is an usage.
    <%@taglib uri=”http://java.sun.com/jsp/jstl/core” prefix=”c”%>
  2. Tag “c:” tag is used to check some conditions. Listed below is an usage.
    <c:if test=”isNew” var=”car” scope=”request”>
    </c:if>
  3. Tag ” sql” is used for database related operations.

There are various tags in JSTL Library. Netbeans help us to include those to the our JSP pages without much programming effort..

Follow these steps to get familiar with JSP development in NetBeans

  1. Create a “Web Project” in the “Projects” tab in the IDE.
  2. Then “ Web Pages ” - > “ JSP …” - > “ New ”.
  3. Following screen will be displayed where file related information can be filled.
  4. Fill the information, Click “ Finish ” .JSP page will be created with some default JSP code. A palette viewer will be displayed at right side in IDE, where various options for generating JSP tags can be found.
  5. Here user can click on buttons to generate necessary HTML/JSP code. For Example click on “ Use Bean ” button inside the JSP category then following window will be appeared .Fill the required information.
  6. Code will be generated in the JSP page .

del.icio.us:How To Edit/Add JSP Pages in NetBeans IDE digg:How To Edit/Add JSP Pages in NetBeans IDE spurl:How To Edit/Add JSP Pages in NetBeans IDE wists:How To Edit/Add JSP Pages in NetBeans IDE simpy:How To Edit/Add JSP Pages in NetBeans IDE newsvine:How To Edit/Add JSP Pages in NetBeans IDE blinklist:How To Edit/Add JSP Pages in NetBeans IDE furl:How To Edit/Add JSP Pages in NetBeans IDE reddit:How To Edit/Add JSP Pages in NetBeans IDE fark:How To Edit/Add JSP Pages in NetBeans IDE blogmarks:How To Edit/Add JSP Pages in NetBeans IDE Y!:How To Edit/Add JSP Pages in NetBeans IDE smarking:How To Edit/Add JSP Pages in NetBeans IDE magnolia:How To Edit/Add JSP Pages in NetBeans IDE segnalo:How To Edit/Add JSP Pages in NetBeans IDE gifttagging:How To Edit/Add JSP Pages in NetBeans IDE

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: How To Edit/Add JSP Pages in NetBeans IDE

Leave a Reply