This essay developed out of conversations I've had with several other programmers about why Java smelled suspicious. It's not a critique of Java!
Sycorax - complete tutorials
Programming Tutorials
" Java provides the industry - software companies and customer alike , an opportunity to create a true open computing environment where software is portable,
and customers benefit from increase competition. "
Java and the Future
December 1, 2008-LEJB 3.1: EJB New and Improved!
The EJB 3.0 specification was a huge improvement from what you were used to in the early versions of EJB. Available as an early draft, EJB 3.1 has many more features and is even easier to use.
December 1, 2008-Should Java Assert that Network I/O Can't Occur on the UI Thread?
Doing network I/O on the user interface (UI) thread is bad. Most developers know that and can tell you why; unfortunately, it's still done.
Register now to recieve special alert and latest technology news!
JSP Introduction
In developing web components, we normally use JavaServer Pages (JSPs) for the
presentation.
JSP is a technology
that combines the HTML/XML markup languages and elements of the Java programming
language to return dynamic content to a web client.
A powerful and easy way to create dynamic web pages, they allow you to cleanly separate dynamically generated content from the presentation of that content.
Dynamic content is created by embedding statements (scripts) or re-usable components (such as JavaBeans) directly into your HTML. The default scripting language used by JavaServer Pages is the powerful Java language. (Currently this is the only scripting language supported. Support for other scripting languages might be added in the future.)
To Run a jsp page you need to install a web server or application server.
Servers that support JSP -
- Apache Tomcat.
Tomcat is the official reference implementation of the servlet 2.2 and JSP 1.1 specifications. It can be used as a small stand-alone server for testing servlets and JSP pages, or can be integrated into the Apache Web server.
- Allaire JRun.
JRun is a servlet and JSP engine that can be plugged into Netscape Enterprise or FastTrack servers, IIS, Microsoft Personal Web Server, older versions of Apache, O'Reilly's WebSite, or StarNine WebSTAR. - New Atlanta's ServletExec.
ServletExec is a fast servlet and JSP engine that can be plugged into most popular Web servers for Solaris, Windows, MacOS, HP-UX and Linux. You can download and use it for free, but many of the advanced features and administration utilities are disabled until you purchase a license. - Gefion's LiteWebServer (LWS). LWS is a small free Web server that supports servlets version 2.2 and JSP 1.1.
- GNU JSP. free, open source engine that can be installed on apache web server.
- PolyJSP. PolyJsp is based on XML/XSL and has been designed to be extensible.
- JRUN. Available for IIS server.
- WebSphere. IBM's WebSphere very large application server now implements JSP.
- JSWDK . It is used as a small stand-alone server for testing servlets and JSP pages before they are deployed to a full Web server
- JBOSS. Its a application server that supports jsp.
Any HTML file can bechanged into a JSP file by changing its extension to .jsp. Of course, what makes JSP useful is the ability to embed Java. Put the following text in a file with .jsp extension (let us call it hello.jsp), place it in your JSP directory, and view it in a browser.
hello.jsp
<HTML>
<BODY>
Hello! The time is now <%= new java.util.Date() %>
</BODY>
</HTML>
Then put this file at the server.
For tomcat server put this file - C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\webapps
Create a folder of your application name(like banking_app, retail_web) inside webapps folder.
Suppose your folder name is sycoraxjsp. Then create folder WEB-INF and inside that create two folder classes and lib
Then put the jsp file at C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\webapps\sycoraxjsp
Start the server . Open a browser like IE, opera etc . Then give the address http://localhost:8080/sycoraxjsp/hello.jsp

