Store Hindi Text in SQLServer and Display in JSP

I've list of users for which I'm preparing objects of User class in which the user name is stored in hindi text.
In the servlet which is storing the values in the database, the code is
User = new User();
user.setName(java.net.URLEncoder.encode(request.getParameter("userName"), "UTF-8"));I've submitted *कैसे हो* It is stored in the database in the following format
*%C3%A0%C2%A4%C2%95%C3%A0%C2%A5%C2%88%C3%A0%C2%A4%C2%B8%C3%A0%C2%A5%C2%87+%C3%A0%C2%A4%C2%B9%C3%A0%C2%A5%C2%8B*
When I get the data from the database and create user object and then stored it in a vector and put it in session.
In the JSP,
user.getName()is displaying
*%C3%A0%C2%A4%C2%95%C3%A0%C2%A5%C2%88%C3%A0%C2%A4%C2%B8%C3%A0%C2%A5%C2%87+%C3%A0%C2%A4%C2%B9%C3%A0%C2%A5%C2%8B*
and
java.net.URLDecoder.decode(user.getName(), "UTF-8")is displaying
कैसे हो
I tried using
request.setCharacterEncoding("UTF-8");in the servlet and
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>in the JSP.
Any suggessions?

hi ravi...
i had also did the same one but not in Hindi it is in Chinese language.before inserting the data into database we need convert hexadecimal code to your hindi string and you store that hex decimal value into database.
when you retrive data from database again u convert this string to general integer format and display it.
observe the below code..
public String settingValue(String call) {
          System.out.println("String Value in setting::\n" + call);
          String chineseName = "";
          StringTokenizer unicodeArray = new StringTokenizer(call, "\\\\u");
          while (unicodeArray.hasMoreTokens()) {
               String s = (String) unicodeArray.nextToken();
               System.out.println("\nValue In setting Value::" + s);
               chineseName += unicodeTochineseCharacter(s);
          return chineseName;
public static String unicodeTochineseCharacter(String unicode) {
          String output = "";
          try {
               System.out.println("\nValue In U2C::" + unicode);
               char i = ' ';
               i = (char) Integer.parseInt(unicode.trim(), 16);
               output = String.valueOf(i);
               System.out.println(" before returning..." + output);
          } catch (Exception e) {
               System.out.println("Exception In Unicode to Chinese::\n" + e);
          return output;
     }let me know weather you need any other details...

Similar Messages

  • Store UTF-8 in Datatbase and Display in JSP

              Hi all,
              I am developing a software with unicode support, but I am in trouble with it.
              The System configuration is:
              OS: Windows2000 (English)
              Database: Oracle8i 8.1.7.0.1 (NLS_LANG = .UTF8)
              Application Server: Bea WebLogic Server 6.1
              My problem is:
              I have 3 JSP.
              The first one is a form for data input.
              The second one is validation. It displays the data user filled in first jsp.
              The third one is the result. It displays the data user filled in first jsp.
              The data will be packed into a value object and this value object will be set to
              session.
              The data of second jsp is got from the value object that is set in session.
              The data of third jsp is got from database. The data fetched from database will also
              be packed into
              a value object.
              When I input &#38651;&#35222;(Big5) in the first JSP, the second JSP will display
              &#40635;&#35219;(Big5),
              but the third JSP will be fine, it display &#38651;&#35222;(Big5) correctly.
              (If the data of second JSP is got from request, the result is same.
              You may need to use Big5 Encoding to view this page if the characters do not display
              correctly.)
              The main problem is that if the data is got from database, it will be fine.
              But if it is got request or session, the result is incorrect.
              I would be appreciate if anyone can help me to solve this problem !
              Kammau
              

              Thanks for your help.
              If I add
              <context-param>
              <param-name>weblogic.httpd.inputCharset./*</param-name>
              <param-value>UTF-8</param-value>
              </context-param>
              in web.xml
              I also need to add
              "<%@page contentType="text/html;charset=Big5" %>" in all jsps
              Then, it will be fine in the validate page(It is the second JSP).
              However, it will not display correctly in the third JSP that the data is got from
              database.
              Thanks in advance!
              Kammau
              "Piotr Czarnas" <[email protected]> wrote:
              >Maybe you need to tell weblogic to parse requiest parameters as UTF-8?
              >This WEB-INF/web.xml file should help:
              >
              ><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
              >2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              ><web-app>
              > <context-param>
              > <param-name>weblogic.httpd.inputCharset./*</param-name>
              > <param-value>UTF-8</param-value>
              > </context-param>
              ></web-app>
              >
              >This parameter "weblogic.httpd.inputCharset./*" makes weblogic treat request
              >parameters as UTF-8.
              >
              >Piotr Czarnas
              >Finex@q
              >
              >
              >
              

  • Store UTF-8 in Database and Display in JSP(URGENT)

    Hi all,
    I am developing a software with unicode support, but I am in trouble with it.
    The System configuration is:
    OS: Windows2000 (English)
    Database: Oracle8i 8.1.7.0.1 (NLS_LANG = .UTF8)
    Application Server: Bea WebLogic Server 6.1
    My problem is:
    I have 3 JSP.
    The first one is a form for data input.
    The second one is validation. It displays the data user filled in first jsp.
    The third one is the result. It displays the data user filled in first jsp.
    The data will be packed into a value object and this value object will be set to session.
    The data of second jsp is got from the value object that is set in session.
    The data of third jsp is got from database. The data fetched from database will also be packed into
    a value object.
    When I input �q��(Big5) in the first JSP, the second JSP will display ���V(Big5),
    but the third JSP will be fine, it display �q��(Big5) correctly.
    (If the data of second JSP is got from request, the result is same.
    You may need to use Big5 Encoding to view this page if the characters do not display correctly.)
    The main problem is that if the data is got from database, it will be fine.
    But if it is got request or session, the result is incorrect.
    I would be appreciate if anyone can help me to solve this problem !
    Kammau

    If I add "<%@page contentType="text/html;charset=Big5" %>",
    I also need to add the following lines in web.xml
    <context-param>
    <param-name>weblogic.httpd.inputCharset./*</param-name>
    <param-value>UTF-8</param-value>
    </context-param>
    Then, it will be fine in the validate page(It is the second JSP).
    However, it will not display correctly in the third JSP that the data is got from database.
    Thank you in advance.
    Kammau

  • How to retrieve data and display in JSP page

    hi,
    i am trying to retrieve data from SQL server 2000 and display in JSP Page. I have already place the codes of the retrieve in the bean file. I wanna ask is that how to display in the JSP page. If possible, can provide example codings for mi to reference?
    Thanks
    Regards,
    shixuan

    HI Tan ,
    I pressume that you wanted to make use of PDK, the code can go like this .
    <b><u>1) JAVA file</u></b>
    import com.sapportals.htmlb.DropdownListBox;
         import com.sapportals.htmlb.InputField;
         import com.sapportals.htmlb.event.Event;
         import com.sapportals.htmlb.page.DynPage;
         import com.sapportals.htmlb.page.PageException;
         import com.sapportals.portal.htmlb.page.JSPDynPage;
         import com.sapportals.portal.htmlb.page.PageProcessorComponent;
         import com.sapportals.portal.prt.component.IPortalComponentRequest;
         import com.sapportals.portal.prt.component.IPortalComponentSession;
         import com.sapportals.portal.prt.component.IPortalComponentContext;
         import java.sql.*;
         public class P_SAP_B_User extends PageProcessorComponent
         * Method          :           getPage()
         * Description      :                         
         * Input Parameters     :     None
         * Returns          :          Object of Class DynPage     
              public DynPage getPage()
                  return new P_SAP_B_UserDynPage();
                }     // end of dynPage()
                public static class P_SAP_B_UserDynPage extends JSPDynPage
                  /* Variable Declaration     */
                   /* Object of bean class P_SAP_B_CreateUser initialised to null */
                       private P_SAP_B_CreateUser createUserBean = null;
                  /* Flags for checking the occurance of Event & Error. */
                  private int iFlag=0;
                  private int iErrFlag=0;
                  /* Variables for storing the information
                          entered by user in each text field */
                  private String sFname;
                  private String sSname;
                  private String sAge;
                  private String sExp;
                  private String sSkill;
                  private String sUnit;
         * Method          :           doInitialization()
         * Description      :                         
         * Input Parameters     :     None
         * Returns          :          None
                  public void doInitialization()
                         IPortalComponentSession componentSession = ((IPortalComponentRequest)getRequest()).getComponentSession();
                         Object o = componentSession.getValue("createUserBean");
                         if(o==null || !(o instanceof P_SAP_B_CreateUser))
                           createUserBean = new P_SAP_B_CreateUser();
                           componentSession.putValue("createUserBean",createUserBean);
                        }     // end of if
                         else
                             createUserBean = (P_SAP_B_CreateUser) o;
                         }     // end of else
                   }//end of doInitialisation()
         * Method          :           onUpdate()
         * Description      :                         
         * Input Parameters     :     object of Event class
         * Returns          :          None
                   public void onUpdate(Event e)throws PageException
                        /*     sets flag to 1 when update button is clicked. */
                        iFlag=1;
         * Method          :           doProcessAfterInput()
         * Description      :                         
         * Input Parameters     :     None
         * Returns          :          None
                  public void doProcessAfterInput() throws PageException
                             InputField ifFirstName = (InputField) getComponentByName("FirstName");
                             InputField ifSecondName = (InputField) getComponentByName("SecondName");
                             InputField ifAge = (InputField) getComponentByName("Age");
                             InputField ifExp = (InputField) getComponentByName("Exp");
                             InputField ifSkill = (InputField) getComponentByName("Skill");
                             DropdownListBox dlbUnit = (DropdownListBox) getComponentByName("Unit");
                             int iAge,iExp;
                             IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
                            IPortalComponentContext myContext = request.getComponentContext();
                             P_SAP_B_CreateUser myNameContainer = (P_SAP_B_CreateUser) myContext.getValue("createUserBean");
                             if(ifFirstName != null)
                                  this.sFname = ifFirstName.getValueAsDataType().toString() ;
                             }     // end of if
                             if(ifSecondName!= null)
                                  this.sSname = ifSecondName.getValueAsDataType().toString() ;
                             }      // end of if
                             if(ifAge!= null)
                                  this.sAge = ifAge.getValueAsDataType().toString() ;
                             }     // end of if
                             if(ifExp!= null)
                                  this.sExp = ifExp.getValueAsDataType().toString() ; 
                             }     // end of if                         
                             if(ifSkill != null)
                                  this.sSkill = ifSkill.getValueAsDataType().toString() ;          
                             }     // end of if
                             if(dlbUnit != null)
                                  this.sUnit = dlbUnit.getSelection().toString() ;     ;
                             }      // end of if
                          /* Data Validation */
                             /* try block for numeric Exception */
                             try
                                 /* checking for any field left blank by the user */
                                  if(sFname.equals("") || sSname.equals("") ||  sAge.equals("")|| sExp.equals("") || sSkill.equals(""))
                                        /* set error flag to 1 in case of any field left blank */
                                        iErrFlag=1;
                                  } // end of if
                                  else
                                        /* converting Age and Experience fields (String) to integer */
                                         iAge= Integer.parseInt(sAge);
                                         iExp= Integer.parseInt(sExp);
                                       /* setting the boundaries on the value in Age Field */
                                         if(iAge<0)
                                             /* set error flag to 2 in case of age below 0 */
                                             iErrFlag=2;
                                         }// end of if
                                       /* setting the boundaries on the value in Experience field */
                                          else if(iExp<0 ||(iExp/12)>=iAge)
                                              /* set error flag to 3 in case of experience below 0 or exceeding the age in years */
                                              iErrFlag=3;
                                          }// end of else if
                                          /* In case of no error */
                                          else
                                             /* setting the bean variables */
                                             try
                                                 Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                                                 Connection con = DriverManager.getConnection("jdbc:odbc:Test");
                                                 String query="insert into UserData values(?,?,?,?,?,?)";
                                                 PreparedStatement prestat=con.prepareStatement(query);
                                                 /* setting the values to be inserted into the user table */
                                                 prestat.setString(1,sFname);
                                                 prestat.setString(2,sSname);
                                                 prestat.setString(3,sAge);
                                                 prestat.setString(4,sExp);
                                                 prestat.setString(5,sSkill );
                                                 prestat.setString(6,sUnit);
                                                 prestat.executeUpdate() ;
                                                 prestat.close();
                                                 con.close();
                                                 myNameContainer.setSFname(sFname);
                                                 myNameContainer.setSLname(sSname);
                                                 myNameContainer.setSAge(sAge);
                                                 myNameContainer.setSExp(sExp);
                                                myNameContainer.setSSkill(sSkill);
                                                myNameContainer.setSUnit(sUnit);
                                             } // end of inner try block
                                              catch(Exception sqle)
                                                 myNameContainer.setErrMessage("Update failed ! Please try again." );
                                              } // end of catch corresponding to inner try
                                                           } // end of inner else
                                                      } //end of outer else
                                   } //end of outer try block
                                   catch(Exception e)
                                     /* setting flag to 4 in case of non-numeric age/experience values */
                                     iErrFlag = 4;
                                     /* Displaying error message corresponding to the value of error flag */
                                  switch(iErrFlag)
                                    /* Empty Field */
                                    case 1:myNameContainer.setErrMessage( "Please Fill all the fields");
                                    break;
                                    /* Invalid Value in the age field */
                                    case 2:myNameContainer.setErrMessage( "Enter a valid value in Age field.(Hint : Have you entered Age<0 ?");
                                    break;
                                    /* Invalid Value in the experience field */
                                    case 3:myNameContainer.setErrMessage( "Enter a valid value in Experience field.(Hint : Experince should not be negative or greater than your age in months)");
                                    break;
                                    /* Non-numeric value in the Age/ experience fields */
                                    case 4:myNameContainer.setErrMessage( "Please Enter Numeric Value for Age and Experience");
                                    break;
                                 } // end of switch-case block
              } //end of doProcessAfterInput()
         * Method          :           doProcessBeforeOutput()
         * Description      :                         
         * Input Parameters     :     None
         * Returns          :          None
                  public void doProcessBeforeOutput() throws PageException
                       /* Displays Form for new user creation by default */
                       this.setJspName("P_SAP_B_UserCreationForm.jsp");
                         /* In case of an error display an error message page */
                         if(iErrFlag!=0)
                              setJspName("ErrorPage.jsp");
                         } //end of if
                         /* Displays the user's information as entered in the SQL
                            database after its been uploaded by the user */
                         else if(iFlag==1)
                             setJspName("hello.jsp");      
                          } // end of else if
                  } // end of doProcessBeforeOutput()
              } // end of P_SAP_B_UserDynPage Class
         } // end of P_SAP_B_User class
    * End of File P_SAP_B_User.java
    2) Bean
    package com.sap.usercreation;
    import java.io.Serializable;
    public class P_SAP_B_CreateUser implements Serializable
         private String sFname;
         private String sLname;
         private String sUnit;
         private String sSkill;
         private String sExp;
         private String sAge;
         private String errMessage;
         * @return
         public String getSFname() {
              return sFname;
    * @return
    public String getSLname() {
         return sLname;
    * @param i
    * @param string
    public void setSFname(String string) {
         sFname = string;
    * @param string
    public void setSLname(String string) {
         sLname = string;
    * @return
    public String getSUnit() {
         return sUnit;
    * @param string
    public void setSUnit(String string) {
         sUnit = string;
    * @return
    public String getSSkill() {
         return sSkill;
    public void setSSkill(String string) {
         sSkill = string;
    * @return
    public String getSAge() {
         return sAge;
    * @return
    public String getSExp() {
         return sExp;
    * @param string
    public void setSAge(String string) {
         sAge = string;
    * @param string
    public void setSExp(String string) {
         sExp = string;
    * @return
    public String getErrMessage() {
         return errMessage;
    * @param string
    public void setErrMessage(String string) {
         errMessage = string;
    3) The Jsp file i have already posted.
    See if you copy this code and paste it wont work as i have not given you full code ,But yes this gives you an overview of how things can be done .
    Thanx
    Pankaj

  • Add text item data and display the output in another text item

    Hi! All,
    I have four text item. like HA,DA,basic_salary and total_sal.I want to add the data entered in the text item in HA,DA,basic_salary and display in total_sal text item.How can I do this.Please help in this matter.
    Thanks,
    Abha

    1.Select the text item TOTAL_SAL
    2.Open property palette
    3.Under Calculation node
         Set calculation mode as Formula
         Set Formula as nvl(:ha,0)+nvl(:da,0)+nvl(:basic_salary,0)                                                                                                                                                                                                                                                                                                                                                                                               

  • Creating Bar Charts using Java and Display in jsp

    Hi..Is it possible to create a servlet that processes data from database and display the values as Bar Charts in jsp pages. If its possible, is there any examples on how to achieve that?

    I don't get it. You already know what needs to be done to solve your problem, the only thing you are missing is the HOW. That's the easy part, if only you break down what you have to know:
    1) how do I show an image on a website (this is a basic HTML question actually, not actually related to servlets/JSPs directly)
    2) how do I fetch the path from a database (JDBC question) so that I can use this path to link to my image on disc
    So what is preventing you from figuring out how to do these two simple tasks? Some clever google searches should give you all the information you need in no time.
    by the way: are you sure that you need to store these paths in the database? Is this part of some file upload component?

  • How to pass arraylist of object from action class to jsp and display in jsp

    I need to do the following using struts
    I have input jsp, action class and action form associated to that. In the action class I will generate the sql based on the input from jsp page/action form, create a result set. The result set is stored as java objects in a ArrayList object.
    Now I need to pass the arraylist object to another jsp to display. Can I put the ArrayList object in the request object and pass to the success page defined for the action? If this approach is not apprpriate, please let me know correct approach.
    if this method is okay, how can I access the objects from arraylist in jsp and display their property in jsp. This java object is a java bean ( getter and setter methods on it).
    ( need jsp code)
    Can I do like this:
    <% ArrayList objList = (ArrayList)request.getattribute("lookupdata"): %> in jsp
    (***I have done request.setattribute("lookupdata", arraylistobj); in action class. ***)
    Assuming the java object has two properties, can I do the following
    <% for (iint i=0. i<objList.size;I++){ %>
    <td> what should i do here to get the first property of the object </td>
    <td> what should i do here to get the first property of the object </td>
    <% }
    %>
    if this approach is not proper, how can I pass the list of objects and parse in jsp?
    I am not sure what will be the name of the object. I can find out how many are there but i am not sure I can find out the name
    thanks a lot

    Double post:
    http://forum.java.sun.com/thread.jspa?threadID=5233144&tstart=0

  • I want to reduse size of BLOB and display in jsp

    Please help me ,and if is possible than send me code for resize and display BLOB image injsp page

    Resizing: check the Java2D API. Tutorial.
    Displaying: create a servlet which writes the InputStream from the ResultSet to the OutputStream of the HttpServletResponse. Then call that servlet along an unique parameter in the <img> tag. Example.
    Resizing is a fairly expensive task, have you considered resizing it before saving in database? Then you need to do it only once.

  • Scanning and displaying in JSP

    Hai
    I want to sacn an image and i want to display in the browser i mean in jsp page is there any API is doing this or else how can i achieve this
    thanx in advance
    suresh

    Hai,
    Thanx for ur reply.
    But my reqirement is that i want to scan an image from the scanner and then i want to display that image in the browser i mean in the jsp page is there anyway to access an image from the scanner and display it in the browser
    thanx in advance
    suresh

  • Poor text font rendering and display resolution

    While I am a software database developer, I know VERY little about HTML/CSS coding.
    After updating to Firefox v18 yesterday, the font text rendering seriously degraded! The resolution now is very poor and fuzzy! IE9's resolution is "perfect."
    Both browsers are running on a fresh new custom install of Win7-64 where NO special global display config settings have been made.
    Since this problem occurred after the FF v18 upgrade and did NOT exist in IE9, it seems as if this problem is specific to Firefox.
    After searching Google for several hours now without finding any intuitive-sounding solution nor knowing what to look for, I have posted this request for help in hopes someone will please kindly reply back with a fix.
    PS: Sorry for the duplicate post... Had problems with the first submission due to the Email Registration process.

    Try to set the gfx.content.azure.enabled pref to false or if this didn't help disable Direct2D by setting the gfx.direct2d.disabled pref to true on the about:config page and leave hardware acceleration otherwise enabled.
    *http://kb.mozillazine.org/about:config
    You can also try to uninstall Windows update KB2670838 if you have this update.
    *http://support.microsoft.com/kb/2670838
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Difference in workschedule text between T508A and display in IT0007

    Hi,
    I have made a change in text description for a workschedule in T508A and then transport my change into Test system. But I have now no correspondance between the value in T508A and the value displayed in IT0007 with F4 or when WS selected.
    I have tryied to transport again my entry but this is not solving the problem.
    Does anyone already have this issue ?
    Thanks a lot,
    KR
    Greg

    Hi Gregory,
    Please review this thread, your solution is there.
    Re: work Schedule rule Text
    why don't you debug it?
    you can break-point RE508S routines.
    MODULE GET_RTEXT INPUT.
      PERFORM RE508S USING P0007-SCHKZ.
    ENDMODULE.
    alternativlely this is the abap select sentence:
    CHECK T508S-SPRSL NE SY-LANGU
         OR T508S-ZEITY NE T503-ZEITY
         OR T508S-MOFID NE T001P-MOFID
         OR T508S-MOSID NE T001P-MOSID
         OR T508S-SCHKZ NE T508S_SCHKZ.
      SELECT SINGLE * FROM T508S WHERE SPRSL EQ SY-LANGU
                                 AND   ZEITY EQ T503-ZEITY
                                 AND   MOFID EQ T001P-MOFID
                                 AND   MOSID EQ T001P-MOSID
                                 AND   SCHKZ EQ T508S_SCHKZ.
      CHECK SY-SUBRC NE 0.
      CLEAR T508S.
    You probably have corresponding entry with no text (if sy-subrc is 0) or no corresponding entries (if sy-subrc has other value than 0).
    Good luck.
    Cheers.

  • Font change in text enum ring and display issue

    Hi,
    I was finally able to update the text in a text ring programmatically, but for some reason, when I choose it as a drop-down menu, I just see blanks.  Also, for some reason, the font used is changed - it is more spread out and and block letters.  Any ideas why this is happening?  I am using the "strings[]" property from a property node to update the items in the list.
    Thanks,
    Jason

    Hi Jason,
    Can you please post a simple VI that demonstrates this issue.
    Ankita

  • Fetching record from table and displaying in JSP while loading page -struts

    Hi all,
    I have a problem relating to struts .
    I am fetching records from database and I want to diaplay those records in corresponding fields in the jsp page.
    I am using Struts MVC Framework.
    I am giving the sample code below.
    In my action class i am giving the following code.
    String sql="Select empname from emp where empcode='1' ";
    ResultSet rs=S.executeQuery(sql);
    if(rs.next()){
    EditForm e=new EditForm();
    e.setEmpname(rs.getString(1));
    In my Action Form
    I gave setter and getter methods for Empname
    public String getEmpname() {
    return empname;
    public void setEmpname(String empname) {
    this.empname = empname;
    In my jsp gave
    <html:form method="POST" action="submitForm.do?action=1" >
    <html:text property="empname" />
    </html:form>
    The targets given are correct and it is being redirected.
    But the value is not displaying in the textbox while the jsp is loading.
    There is a record for the sql query.
    Anybody please help me out
    It is very urgent
    Thank You
    Parvathy

    Now in the following code, why are u creating a new form?
    Why dont you use the form which is input to the Action Class's execute methof?
    if(rs.next()){
    EditForm e=new EditForm();
    e.setEmpname(rs.getString(1));
    }Thanks and regards,
    Pazhanikanthan. P

  • Database connection and display in JSP page

    hi,
    I am new to SAP netweaver. I have created a project using JSPDynPage, Beans and java file. I have configure the datasouce in Visual Composer. I deploy the project on the portal itself. I have try all kinds of codes bt cannot retrieve. Is there anyone can give a same codes for mi to connect to the datasource in Visual Composer and able to retrieve data, insert data and update data in SQL Server 2000. Thanks
    Regards,
    shixuan

    Hai Shixuan,
    Refer this link. I will helps
    Access data from SqlServer through Visual Composer.....?
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fe/68e343cc68414da4426258d3e896ae/content.htm
    Write this code wher you need in JSPDynPage
    And
    MSSQL DataBase Access -> Help me
    Thanks and Regards
    Venkatesh
    Message was edited by:
            Venkatesh Ranganathan
    Message was edited by:
            Venkatesh Ranganathan

  • Read a property file value and display in jsp page

    I need a solution for the below mentioned scenario,
    I want to read a value from the property file in JSP page.
    For Example, Let us have a property file called A.properties, in the file, we have a value, username = Sam.
    I want to bring this value in the jsp page.
    Please assist in this issue.
    thanks in advance.

    If you are using struts, then you have to first load the taglib like
    <%@ taglib uri="/WEB-INF/strutsresources/struts-bean.tld" prefix="bean" %>and then access the particular property like
    <bean:message key="welcome"/>Also, you have to define <message-resources> in struts-config. Though I am not into struts for year now, So, please confirm the code.

Maybe you are looking for

  • Create a new iTunes database, reload my iPod - or both?

    I have a very large number of albums and songs in my copy of iTunes. I also have a very large number of diverse song lists. At some point, album art from different albums began appearing on my 160 Gb iPod's screen with songs from other albums by othe

  • How to put the alv output into the spool request?

    Hi guys, How to put the alv output into the spool request? Thanks!

  • Problem in communication b/w MB90 and spool request

    Hi Experts,                I am trying to print the Goods Movements in MB90. I am choosing print preview and number copies more than 1, But when I went to SP02 and trying to look at the request it only displaying one copy of the request, Please guide

  • Audio conferencing through MSN?

    Is there anyway to do this?

  • Google meta info in template?

    I put my Google meta info in the header section of my template, but it's not transferring to the individual pages.  Yes, I'm putting the code on the template whwere  want the ads to appear.  I check in live view and preview in browser.  It seems like