... point
#mkdir /raid5
Mounting the raid device to the created mount point
http://helpinlinux.blogspot.com/search/label/storage
How tocreate a Raid Device using madadm in linux rhel5
with level 5, ... disks
Raid 0 :need 2 disks
Raid 1 :need 2 disks
first partition disks
***RAID 5***
Here we'll show howtocreate a Level 5 raid device. Here we use three partitions /dev/sda5
/dev/sda6 /dev/sda7. ... levels and howto install and
configure a raid device in a linux system using the software mdadm. This is tested in Redhat
rhel5 and also works with other distributions as fedora, centos etc....
... request.getParameter("param3") %>
<br>
</body>
< /html& gt;
Save the code as ParamId.jsp in the C:\Tomcat 5.5\Webapps\basic directory.
< ;html& gt;
<body>
<h2>Called page: </h2> ... request.getParameter("param3") %>
<br>
</body>
< /html& gt;
Save the code as ParamObj.jsp in the C:\Tomcat 5.5\Webapps\basic directory. The
http://localhost:8080/basic/ParamObj.jsp?param1= ...
http://localhost:8080/basic/ParamObj.jsp?param1= Alice¶m2=Bob¶m3=Cathy path is
entered into the Web browser. This passes the three parameters Eric, Alice, and Bob to the
ParamId.jsp page.
...
...
Figure 6.1: Output of Series.jsp
2. Write a program to display the session ID, creation time, and the last accessed time of the
Web page. Using session.getID, session.getCreationTime(), and ...
Solution:
The file used in this exercise is Expression.jsp. The file is saved in basic directory.
< ;html& gt;
<head>
<title> JSP Expressions </title>
</head>
<body ... <%=
new java.util.Date(session.getLastAccessedTime())%>
</ul>
</body>
< /html& gt;
6 Ver 1.0 â 2005 Aptech Limited JSP and Struts
Figure 6.4: Output of Login.jsp...
... to display an error message to the user if an exception occurs in the JSP
page. In the JSP page, consider a null string and find out the length of the string using
length()method of Java. Create ... error handler to handle the exception thrown by this
JSP page.
Solution:
The files used to run the application are:
1. Exception.jsp
2. Example .html
//Exception.jsp
< ;html& gt;
<body> ...
</body>
< /html& gt;
The output appears as shown in Figure 10.4.
JSP Application Models Ver 1.0 â 2005 Aptech Limited 3
Figure 10.2: Output after clicking Submit button
2....
... <taglib-location> /WEB- INF/c.tld</taglib-location>
</taglib>
< /web- app>
Enter the code in Notepad, and save the file as web. xml’ in %TOMCAT_HOME%/webapps/
counter /WEB- INF.
... Write a program to count and display the number of active sessions connected to the Tomcat
server.
Solution:
The files used in this exercise are:
1. session.jsp
2. web. xml
3. SessionCount.java ... encoding="UTF-8"?>
<!DOCTYPE web- app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN"
"http://java.sun.com/dtd /web- app_2_3.dtd">
< ;web- app>
<listener>...
... user details form to the user. After the user clicks Submit button,
the details entered should be saved in the database. Display a message to the user after the
data is saved to the database. ...
//success.jsp
< ;html& gt;
<head>
<title> User Validation Page </title>
</head>
<body>
You have successfully logged in to our Website
</body>
< /html& gt;
... clicks on Submit button, the details are saved in
database, and a message is displayed to the user as shown in Figure 14.5.
Figure 14.5: Message
2. Write a program to display the user...
... Yourself
1. Write a program to add a link requesting for an Account closure. Extend example 3 to add a
link to the welcome page. A page should be created to display to the user that the request ... Extend example 3 to add a
link to the welcome page. A page should be created to display to the user that the request for
the chequebook has been placed.
Solution:
The files used to run the ... the MainServlet.java page, to redirect the request to the new chequebook page. Save the
file in %TOMCAT_HOME%/webapps/Application.
The output of the program is as shown in the Figure 15.1....
... you put into it.
This is the assignment operator. Everything to its right is put into a variable named to its
left.
The third and fourth assignments are putting numerical data into variables. ... it's Internet, intranet, or extranet, the
Web is no longer about plain HTML files. Webpages are being replaced with Web
applications. The issue many Web engineers face is choosing among hundreds ... PHP began life as a simple way to
track visitors to Rasmus Lerdorf's online resume. It also could embed SQL queries in
Web pages. But as often happens on the Web, admirers quickly asked for...
... Create_ a_Local_Yum_Repository
How tocreate a yum repository on RHEL/CentOS 5.x with CD/DVD or ISO images.
ã Howtocreate a yum repository on RHEL/CentOS 5.x with CD/DVD ...
o Create yum repository
Create metadata
Define yum repository
Test it
How tocreate a yum repository on
RHEL/CentOS 5.x with CD/DVD or
ISO images
We need several packages tocreate ... dvd-rom first, and then create yum repository:
# mkdir /mnt/dvd/
# mount /dev/cdrom /mnt/dvd/
ã If you use DVD iso, please copy it to the system, and then create yum repository:
# mkdir /mnt/dvd/
#...