Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 4.08 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Creating site with hindi fonts with I18n feature of Struts2
  2. <struts>
  3.         <constant name="struts.custom.i18n.resources" value="global" />
  4.         <constant name="struts.devMode" value="true" />
  5.         <package name="default" extends="struts-default, tiles-default,jfreechart-default">
  6.             <interceptors>
  7.                 <interceptor name="loginInterceptor" class="common.AuthenticationInterceptor" />
  8.                 <interceptor-stack name="chkSession">
  9.                     <interceptor-ref name="i18n"/>
  10.                     <interceptor-ref name="defaultStack" />
  11.                     <interceptor-ref name="loginInterceptor" />
  12.                 </interceptor-stack>
  13.             </interceptors>
  14.  
  15.             <global-results>
  16.                 <result name="invalid.token">common/doublePost.jsp</result>
  17.                 <result name="loginAction" type="redirect">/sessionnotfound.jsp</result>
  18.  
  19.             </global-results>
  20.  
  21.  
  22.             <action name="showHomePage">
  23.                 <result type="tiles">Login</result>
  24.             </action>
  25.             <action name="locale">
  26.                 <result type="tiles">Login</result>
  27.             </action>
  28.         </package>
  29. </struts>
  30.        
  31. <%@page contentType="text/html;charset=utf-8" pageEncoding="UTF-8"%>
  32.     <%@ taglib prefix="s" uri="/struts-tags" %>
  33.     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  34.        "http://www.w3.org/TR/html4/loose.dtd">
  35.     <html xmlns="http://www.w3.org/1999/xhtml" >
  36.  
  37.         <head>
  38.             <title>Administration Login</title>
  39.             <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  40.             <link href="/LiquorShopManagementSystem/css/stylesheet.css" type="text/css" rel="stylesheet">
  41.  
  42.             <s:head/>
  43.         </head>
  44.         <body>
  45.             <div id="header"></div>
  46.             <s:form name="frmAdminLogin" id="frmAdminLogin" method="post" action="doLogin" validate="true">
  47.                 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  48.                     <tr>
  49.                         <td style="border-right:fuchsia 2px solid;">
  50.                             <img src="/LiquorShopManagementSystem/images/BookShop.jpg" height="250"/>
  51.                         </td>
  52.                         <td valign="middle">
  53.                             <table align="center" cellspacing="0" cellpadding="4" border="0" width="248px">
  54.                                 <tr>
  55.                                     <td colspan="2" class="spanHeader">
  56.                                         <span>Back Officeghj</span>
  57.                                     </td>
  58.                                 </tr>
  59.                                 <tr>
  60.                                     <td colspan="2" align="left" class="error">
  61.                                         <s:property value="message" />
  62.                                     </td>
  63.                                 </tr>
  64.                                 <tr>
  65.                                     <td valign="middle">
  66.                                          <s:textfield required="true" requiredposition="left" maxLength="25" key="global.username" name="userMaster.loginid" title="Enter Username"/>
  67.                                          <s:password required="true" requiredposition="left" maxLength="8" key="global.password" name="userMaster.Password" title="Enter Password"/>
  68.                                     </td>
  69.                                 </tr>
  70.                                 <tr>
  71.                                     <td>
  72.                                         <s:submit cssClass="buttonText" cssStyle="background:url(/BookShop/images/submit_bg.gif) no-repeat scroll 37px 0px;" name="login" key="global.submit" />
  73.                                     </td>
  74.                                 </tr>
  75.                             </table>
  76.                         </td>
  77.                     </tr>
  78.                 </table>
  79.             </s:form>
  80. </body>
  81. </html>
  82.        
  83. #Global messages
  84. global.username = Username
  85. global.password =u0938u092Eu094Du092Eu0947u0932u0928
  86. global.submit =u0938u092Eu094Du092Eu0947u0932u0928
  87.        
  88. global.password=u092Au093Eu0938u0935u0930u094Du0921