Blogger templates

what is cloud computing?

Click her to know.

about anroid jobs?

click her for more information

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Wednesday, June 13, 2012

java

java programs:

tiles:
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>chainConfig</param-name>
    <param-value>org/apache/struts/tiles/chain-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>3</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>3</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>/home.jsp</welcome-file>
  </welcome-file-list>
</web-app>

tiles-defs.xml



 <!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN"
       "http://struts.apache.org/dtds/tiles-config_1_3.dtd">
<tiles-definitions>
<definition path="/layout.jsp" name="logindef">
<put name="header" value="/header.jsp">
</put>
<put name="footer" value="/footer.jsp"/>
<put name="menu" value="/menu1.jsp"/>
<put name="body" value="/body1.jsp"/>

</definition>
<definition name="regiserdef" extends="logindef">
<put name="body" value="/body3.jsp">
</put>

</definition>

<definition name="userhomedef" extends="logindef">
<put name="body" value="/body2.jsp"/>
<put name="menu" value="/menu2.jsp"/>
</definition>

</tiles-definitions>

struts-config.xml


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

<struts-config>
  <data-sources />
  <form-beans />
  <global-exceptions />
  <global-forwards />
  <action-mappings >
  <action path="/login" forward="logindef"/>
  <action path="/register" forward="regsiterdef"/>
  <action path="/userhome" forward="userhomedef"/>
  </action-mappings>
 
  <message-resources parameter="com.suriit.ApplicationResources" />
  <plug-in className="org.apache.struts.tiles.TilesPlugin" >
   <!-- Path to XML definition file -->
   <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
   <!-- Set Module-awareness to true -->
   <set-property property="moduleAware" value="true" />
</plug-in>
  
</struts-config>

layout.jsp



<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %>
<%@taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles" %>
<html>
<body bgcolor="wheat">
<table border="1" width="100%" height="100%">
<tr>
<td colspan="2">
<tiles:insert attribute="header" />
</td>
</tr>
<tr>
<td width="30%" ><tiles:insert attribute="menu" />

</td>
<td>
<tiles:insert attribute="body" />
</td>
</tr>
<tr>
<td colspan="2"><tiles:insert attribute="footer" />
</td>
</tr>
</table>

</body>
</html>


Wednesday, April 11, 2012

new

hai i develop one website check it
http://183.82.164.224:2525/jobportal/