Academic Tutorials



English | French | Portugese | Dutch | Italian
Google

on-line

Haupt Quellenprogramme E-Bücher Downloads Mit uns in Verbindung treten Über uns

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
CSS 1.0
CSS 2.0
HLML
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
CVS
Python
Apple Script
PL/SQL Tutorial
SQL Server
PHP
.NET (dotnet)
Microsoft.Net
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
VC++
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Photoshop Tutorial
Gimp Tutorial
Matlab
Gnuplot Programming
GIF Animation Tutorial
Scientific Visualization Tutorial
Graphics
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Weblogic Tutorial
SEO
Web Site Hosting
Domain Name
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Eclipse
J2ME
JBOSS
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Cobol
Assembly Language
Mainframe
Forth Programming
Lisp Programming
Pascal
Delphi
Fortran
OOPs
Data Warehousing
CGI Programming
Emacs Tutorial
Gnome
ILU
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills
Database Tutorials
Oracle
MySQL
Operating System
BSD
Symbian
Unix
Internet
IP-Masquerading
IPC
MIDI
Software Testing
Testing
Firewalls
SAP Module
ERP
ABAP
Business Warehousing
SAP Basis
Material Management
Sales & Distribution
Human Resource
Netweaver
Customer Relationship Management
Production and Planning
Networking Programming
Corba Tutorial
Networking Tutorial
Microsoft Office
Microsoft Word
Microsoft Outlook
Microsoft PowerPoint
Microsoft Publisher
Microsoft Excel
Microsoft Front Page
Microsoft InfoPath
Microsoft Access
Accounting
Financial Accounting
Managerial Accounting


JSP erstes Seite


Previous Next





Erstes JSP

JSP simply place Java inside the HTML pages.You can change HTML page extension to ".jsp" instead of ".html"extension.




Wie man einfache JSP Seite herstellt

<html>
<head>
<title>My first JSP page
</title>
</head>
<body>
<%@ page language="java" %>
<% out.println("Hello World"); %>
</body>
</html>


Type the above code into a text file. Name the file helloworld.jsp.
Place it in correct directory on your JSP web server and call it via your browser.
Notice that when page reload in the browser, it comes up with the current time.
The character sequence <%= and %> enclose Java expression, which are evaluated at run time.




Scriptlets

JSP erlauben dir, Block des Java Codes innerhalb des JSP zu schreiben, das du dies tust, indem Sie deinen Java Code zwischen <% setzen und %> Buchstabe (gerade wie Ausdrücke, aber ohne = Zeichen beim Anfang der Reihenfolge.) dieser Block des Codes bekannt als „scriptlet“. Trägt ein scriptlet selbst kein HTML (da wir unten unten. sehen), A scriptlet enthält Java Code bei, dem jedesmal das JSP wird hervorgerufen durchgeführt wird.
Ist hier eine geänderte Version unseres JSP und fügt in einem scriptlet hinzu.


<HTML>
<BODY>
<%
// This is a scriptlet. Notice that the "date"
// variable we declare here is available in the
// embedded expression later on.
System.out.println( "Evaluating date now" );
java.util.Date date = new java.util.Date();
%>
Hello! The time is now <%= date %>
</BODY>
</HTML>


Wenn über Beispiel durchführen, du beachtet den Ausgang vom „System.out.println“ auf dem Bedienermaschinenbordbuch. Dieses ist eine bequeme Weise, das einfache Ausprüfen zu tun.

Erzeugt ein scriptlet selbst nicht HTML. Wenn ein scriptlet HTML erzeugen möchten, kann es eine „heraus“ benannte Variable verwenden. Diese Variable braucht nicht erklärt zu werden. Sie wird bereits für scriptlet, zusammen mit einigen anderen Variablen vorbestimmt. Das folgende Beispiel zeigt, wie das scriptlet HTML Ausgang erzeugen kann.


<HTML>
<BODY>
<%
// This scriptlet declares and initializes "date"
System.out.println( "Evaluating date now" );
java.util.Date date = new java.util.Date();
%>
Hello! The time is now
<%
// This scriptlet generates HTML output
out.println( String.valueOf( date ));
%>
</BODY>
</HTML>


Hier erzeugen wir HTML, direkt indem wir „heraus“ zur Variable drucken.




Antrag-u. Warteschlüsselwort

Ein „Antrag“ ist eine Bedienerseite Verarbeitung, die auf die Verhandlung zwischen einer Datenbanksuchroutine und dem Bediener sich bezieht. Wenn jemand ein URL einträgt, schickt die Datenbanksuchroutine einen „Antrag“ zum Bediener für dieses URL und zeigt zurückgebrachte Daten. Da ein Teil dieses „Antrags“, verschiedene Daten vorhanden ist, einschließlich die Akte wünscht die Datenbanksuchroutine vom Bediener, und wenn der Antrag vom Betätigen einer EINREICHENtaste kommt, fangen die Informationen, die der Benutzer in die Form angemeldet hat auf.
Die JSP „Antrag“ Variable wird verwendet, um Informationen vom Antrag einzuholen, wie durch die Datenbanksuchroutine gesendet. Zum Beispiel kannst du den Namen des Wirtes des Klienten herausfinden zurückgebracht wird (wenn vorhanden, andernfalls das IP address.), ließest uns den Code wie gezeigt ändern:


<HTML>
<BODY>
<%
    // This scriptlet declares and initializes "date"
    System.out.println( "Evaluating date now" );
    java.util.Date date = new java.util.Date();
%>
Hello!  The time is now
<%
    out.println( date );
    out.println( "<BR>Your machine's address is " );
    out.println( request.getRemoteHost());
%>
</BODY>
</HTML>


Eine ähnliche Variable ist „Antwort“. Dieses kann verwendet werden, um die Antwort zu beeinflussen, die zur Datenbanksuchroutine gesendet wird. Zum Beispiel kannst du response.sendRedirect (anotherUrl) benennen; eine Antwort zur Datenbanksuchroutine senden, daß sie ein anderes URL laden sollte. Dieser Wartewille geht actualy vollständig zur Datenbanksuchroutine. Die Datenbanksuchroutine schickt dann einen anderen Antrag, „zum anotherUrl“.





Previous Next

Keywords: jsp source code,request getparameter jsp,jsp tutorial,jsp examples,jsp tags,jsp example,jsp forward,jsp include


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
CSS 1.0 Quiz
CSS 2.0 Quiz
HLML Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
CVS Quiz
Python Quiz
Apple Script Quiz
PL/SQL Quiz
SQL Server Quiz
PHP Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
VC++ Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Photoshop Quiz
Gimp Quiz
Matlab Quiz
Gnuplot Programming Quiz
GIF Animation Quiz
Scientific Visualization Quiz
Graphics Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Weblogic Quiz
SEO Quiz
Web Site Hosting Quiz
Domain Name Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Eclipse Quiz
J2ME Quiz
JBOSS Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Cobol Quiz
Assembly Language Quiz
Mainframe Quiz
Forth Programming Quiz
Lisp Programming Quiz
Pascal Quiz
Delphi Quiz
Fortran Quiz
OOPs Quiz
Data Warehousing Quiz
CGI Programming Quiz
Emacs Quiz
Gnome Quiz
ILU Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz
Database Quizes
Oracle Quiz
MySQL Quiz
Operating System Quizes
BSD Quiz
Symbian Quiz
Unix Quiz
Internet Quiz
IP-Masquerading Quiz
IPC Quiz
MIDI Quiz
Software Testing Quizes
Testing Quiz
Firewalls Quiz
SAP Module Quizes
ERP Quiz
ABAP Quiz
Business Warehousing Quiz
SAP Basis Quiz
Material Management Quiz
Sales & Distribution Quiz
Human Resource Quiz
Netweaver Quiz
Customer Relationship Management Quiz
Production and Planning Quiz
Networking Programming Quizes
Corba Quiz
Networking Quiz
Microsoft Office Quizes
Microsoft Word Quiz
Microsoft Outlook Quiz
Microsoft PowerPoint Quiz
Microsoft Publisher Quiz
Microsoft Excel Quiz
Microsoft Front Page Quiz
Microsoft InfoPath Quiz
Microsoft Access Quiz
Accounting Quizes
Financial Accounting Quiz
Managerial Accounting Quiz

Privacy Policy
Copyright © 2003-2024 Vyom Technosoft Pvt. Ltd., All Rights Reserved.