Archive for January, 2008

PHP HTML forms and Post Method Code

PHP HTML forms and Post Method Code
PHP html function
With the given PHP HTML Code one can retrieve the form data and display the input on same page.
PHP HTML Code

<HTML><BODY>
<FORM METHOD=”POST” ACTION=”index.php”>
<H2>Please Enter your Details…</H2>
<BR>Name:
<BR><INPUT TYPE=”TEXT” NAME=”Nickname”><BR>
<BR>Age:
<BR><INPUT TYPE=”TEXT” NAME=”age”><BR>
<BR>Contact Number:
<BR><INPUT TYPE=”TEXT” NAME=”number”><BR>
<BR>Email Address:
<BR><INPUT TYPE=”TEXT” NAME=”emailid”><BR>
<BR>
<INPUT TYPE=”SUBMIT” name=”Go”>
</FORM>
<?php
$Nickname = $_POST[”Nickname”];
$Age = $_POST[”age”];
$Number = $_POST[”number”];
$Email = […]

EJB 3.1 - EJB Interfaces are Optional

In EJB 3.1, now you do not need to define any interfaces for Session Beans, just like JPA Entities and Message Driven Beans. All you have to do is annotate a POJO with the @Stateless or @Stateful to get a fully functional EJB.

The Singleton Beans A new feature of […]

config.php File - Common database connectivity code file for all files in PHP

Coding of config.php file in PHP
Now in this section of database connectivity code I’ll tell you how to write your config.php file to get rid off writing the connectivity code everywhere.
These simple examples will fascinate you towards PHP programming.
Here is the next example of PHP config file…

<?php
$host=”HostName”;
$username=”Username”;
$pass=”password”;
[…]

Database Connectivity – PHP and MySql

PHP database connectivity code – Below I am giving you the database connectivity code of PHP, this is what that will connect your PHP application with MySql database.

Here it ‘s …

<?php
$host=”HostName”;
$username=”UserName”;
$pass=”password”;

$conn = mysql_connect ($host, $username, $pass)
or die
(‘Database Connectivity Error‘);
[…]

JSF Architecture

MVC is one of the most widely used design pattern for developing applications so that applications can be designed well with greater maintainability. JSF also uses the MVC pattern. “JSF Architecture” article in roseindia.net explains the architecture of a JSF application.
Read about the topic at
JSF Architecture

Life Cycle of Java Server Faces

When the user makes a request for the page and get the response back to the browser, many events happen in between. The series of steps that an application follows is called life cycle. The article “JSF Life Cycle” explains all the life cycle phases of JSF that is very useful for the developer who […]

JSF Component Tags

JSF creates various components like command button, input text box, radio buttons etc. and present it on the JSP page normally. JSF ships with two standard component tag libraries, JSF Core and the JSF HTML tags containing core and html tags respectively. These tags are used to create associated components and enhance the view of […]

Creating Custom Components using JSF

JSF contains its basic set of UI components and provides an easy way of creating custom components of your own according to the need of the application. Components in JSF are elements like text box, button, table etc. that are used to create user interface of JSF Applications. One of the greatest powers of JSF […]

How JSF fits for Web Application

“How JSF Fits For Web Applications?” at roseindia.net is very good article to understand the importance of JSF in the web application development. JSF is a framework of best choice for the web applications development because of its support for wide range of qualities like:
Standard Java framework
Easy creation of UI
Capacity to handle complexities of […]

A Standard rich featured framework – Java Server Faces

JSF is the standard, rich featured framework that makes it powerful among the existing frameworks of Java Technology. Features of JSF are included in the article “JSF Features”. Read the article and get a short view of JSF features.
Click the link below:
JSF Features