URGENT: I am getting Null in my JSP

Below is my bean containing all the data access logic - the jsp file follows also is my presentation file, when i render i get null value at display, do anyone know why?
Help me experts.
import java.io.Serializable;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class Licensee implements Serializable {
private String artist_name;
private String recording_title;
private String Code;
private String title;
private String email;
private String contact;
public static Connection getConnection() throws Exception {
String driver = "oracle.jdbc.driver.OracleDriver";
String url = "jdbc:oracle:thin:@IP
String username = "username";
String password = "password";
Class.forName(driver);
Connection conn = DriverManager.getConnection(url, username, password);
return conn;
public void ConnectMe() {
ResultSet rs = null;
Connection conn = null;
PreparedStatement pstmt = null;
try {
conn = getConnection();
String query = "SELECT code, title, email, contact " +
"FROM address '";
pstmt = conn.prepareStatement(query); // create a statement
//pstmt.setInt(1, 1001); // set input parameter
rs = pstmt.executeQuery();
//extract data from the ResultSet
while (rs.next()) {
setCode(rs.getString(1));
setTitle(rs.getString(2));
setEmail(rs.getString(3));
setContact(rs.getString(4));
System.out.println(Code + " " + title + " " + email + " " +
contact + " ");
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
rs.close();
pstmt.close();
conn.close();
} catch (SQLException e) {
e.printStackTrace();
public String getArtist_name() {
return artist_name;
public void setArtist_name(String artist_name) {
this.artist_name = artist_name;
public String getRecording_title() {
return recording_title;
public void setRecording_title(String recording_title) {
this.recording_title = recording_title;
public String getCode() {
return this.Code;
public void setIseries_Code(String Code) {
this.Code = Code;
public String getTitle() {
return this.title;
public void setTitle(String title) {
this.title = title;
public String getEmail() {
return this.email;
public void setEmail(String email) {
this.email = email;
public String getContact() {
return this.contact;
public void setContact(String contact) {
this.contact = contact;
This is my JSP file
<jsp:useBean id="param" class="com.catco.rrd.Licensee"/>
<jsp:setProperty name="param" property="*" />
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Simulating the RRD protype application</title>
</head>
<center>
<body>
<table width="900">
<tr>
<td>Iseries Code</td>
<td>Title</td>
<td>Contact</td>
<td>Email</td>
</tr>
<tr>
<td><%= param.getEmail() %>
</td>
<td><%= param.getTitle() %></td>
<td><%= param.getEmail() %></td>
<td><%= param.getEmail() %></td>
</tr>
</table>
</body>
</center>
</html>
If i run the project and and render the jsp in browser i get null values for the get event. Can someone spot what i am doing wrong here?

mport java.io.Serializable;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class Licensee implements Serializable {
private String artist_name;
private String recording_title;
private String Code;
private String title;
private String email;
private String contact;
public static Connection getConnection() throws Exception {
String driver = "oracle.jdbc.driver.OracleDriver";
String url = "jdbc:oracle:thin:@IP
String username = "username";
String password = "password";
Class.forName(driver);
Connection conn = DriverManager.getConnection(url, username, password);
return conn;
public void ConnectMe() {
ResultSet rs = null;
Connection conn = null;
PreparedStatement pstmt = null;
try {
conn = getConnection();
String query = "SELECT code, title, email, contact " +
"FROM address '";
pstmt = conn.prepareStatement(query); // create a statement
//pstmt.setInt(1, 1001); // set input parameter
rs = pstmt.executeQuery();
//extract data from the ResultSet
while (rs.next()) {
setCode(rs.getString(1));
setTitle(rs.getString(2));
setEmail(rs.getString(3));
setContact(rs.getString(4));
System.out.println(Code + " " + title + " " + email + " " +
contact + " ");
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
rs.close();
pstmt.close();
conn.close();
} catch (SQLException e) {
e.printStackTrace();
public String getArtist_name() {
return artist_name;
public void setArtist_name(String artist_name) {
this.artist_name = artist_name;
public String getRecording_title() {
return recording_title;
public void setRecording_title(String recording_title) {
this.recording_title = recording_title;
public String getCode() {
return this.Code;
public void setIseries_Code(String Code) {
this.Code = Code;
public String getTitle() {
return this.title;
public void setTitle(String title) {
this.title = title;
public String getEmail() {
return this.email;
public void setEmail(String email) {
this.email = email;
public String getContact() {
return this.contact;
public void setContact(String contact) {
this.contact = contact;
This is my JSP file
<jsp:useBean id="param" class="com.catco.rrd.Licensee"/>
<jsp:setProperty name="param" property="*" />
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Simulating the RRD protype application</title>
</head>
<center>
<body>
<table width="900">
<tr>
<td>Iseries Code</td>
<td>Title</td>
<td>Contact</td>
<td>Email</td>
</tr>
<tr>
<td><%= param.getEmail() %>
</td>
<td><%= param.getTitle() %></td>
<td><%= param.getEmail() %></td>
<td><%= param.getEmail() %></td>
</tr>
</table>
</body>
</center>
</html>{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Year getting null??

    In this code, the year value is getting null.. why is it so? Am not able to insert the date, as the year value is getting null?
    where should i change the year value, to get the user selected year??
    please help??
    <%@ page import="java.util.List"%>
    <%@page import="java.sql.*, java.util.*, java.text.*" %>
    <%@page import="java.sql.Connection, java.sql.DriverManager,java.sql.ResultSet,java.sql.SQLException" %>
    <html>
    <head>
    <title>Print a month page.</title>
    <meta name="version">
    <script>
         var lastId = "";
         var curId  = "";
         function selectDate(f)
              if(document.forms[0].lastDateId != null)
              lastId = document.forms[0].lastDateId.value;
              if(lastId != document.forms[0].todayId.value)
                if(document.getElementById(lastId).title == "")
       document.getElementById(lastId).style.backgroundColor='white';
                           if(f.id != document.forms[0].todayId.value)
       document.getElementById(f.id).style.backgroundColor='blue';
                            document.forms[0].lastDateId.value=f.id;
                        curId = f.id;
           document.getElementById("descr").style.visibility='visible';
                     document.forms[0].descText.value = f.title;
         function setTitle()
    document.getElementById(curId).title=document.forms[0].descText.value;
    if(document.forms[0].descText.value == "" && curId != document.forms[0].todayId.value)
    document.getElementById(curId).style.backgroundColor='white';
               else
    if(document.forms[0].list.value == "" )
    document.forms[0].list.value = curId+":"+document.getElementById(curId).title;
                   else
         list = replaceList(document.forms[0].list.value,curId);
         list = list+","+curId+":"+document.getElementById(curId).title;
                   document.forms[0].list.value = list;
    document.getElementById("descr").style.visibility='hidden';
         function replaceList(list,id)
              arr = list.split(",");
              newlist = "";
              for(i in arr)
                   if(arr.match(id) == null)
                        if(newlist == "")
                        newlist = arr[i];
                             else
                        newlist += ","+arr[i]+",";
              return newlist
         function showCalendar()
    location.href="CalendarPage.jsp?year="+document.forms[0].year.value;
    </script>
    </head>
    <body bgcolor="#c6d9e4">
    <%
    Connection con = null;
    response.setContentType("text/html");
         try
         String driverName = "com.mysql.jdbc.Driver";
         Class.forName(driverName);
         String serverName = "192.168.10.5";
         String mydatabase = "Trainees";
    String url = "jdbc:mysql://" + serverName + "/" + mydatabase;
         String username = "venkat";
         String password = "venkat";
    con = DriverManager.getConnection(url, username, password);
         Statement stmt = null;
         ResultSet rset = null;
         PreparedStatement PREPstmt1;
         stmt = con.createStatement();     
    String year = request.getParameter("year");
    out.println("year value is : "+year);
    String date="",descr="";
         String list = request.getParameter("list");
    if(list != null)
              String dateDescrList[] = list.split(",");
              for(int i=0;i<dateDescrList.length;i++)
              String listObj = dateDescrList[i];
    if(!listObj.equals("") || !listObj.trim().equals(""))
    date= year+"-"+listObj.substring(0,listObj.indexOf(":"));
         descr = listObj.substring(listObj.indexOf(":")+1);
              out.println("date is : "+date);
              out.println("description is : "+descr);               
    String query = "insert into Holiday(HolidayDate, Description) VALUES (?, ?)";
         PREPstmt1=con.prepareStatement(query);
         PREPstmt1.setString(1,date);
    PREPstmt1.setString(2,descr);
    PREPstmt1.executeUpdate();
    catch(Exception e)
    System.err.println("Exception: " + e.getMessage());
    finally
    try
    if(con != null)
    con.close();
    catch(SQLException e)
    %>
    <%
    Calendar c = Calendar.getInstance( );
         boolean yyok = false;
         int yy = 0, mm = 0;
    String yyString = String.valueOf(c.get(Calendar.YEAR)); //setting calendar with current year
    String STyear = request.getParameter("year"); //to get selected year
    if(STyear != null) //If an year is selected, then set that year. Else Current Year
    yyString=STyear;
         if (yyString != null && yyString.length() > 0)
         try
         yy = Integer.parseInt(yyString);
    yyok = true;
         catch (NumberFormatException e)
         out.println("Year " + yyString + " invalid");
    if (!yyok)yy = c.get(Calendar.YEAR);
    mm = c.get(Calendar.MONTH);
    String todayId = "";
    %>
    <form method=get action="CalendarPage.jsp">
    Enter Year : <select name="year">
    <%
         for(int i=2000;i<=2015;i++)
              if(i==Integer.parseInt(yyString))
    %>
         <OPTION SELECTED= <%=i%> > <%=i%> </option>
    <%
              else
    %>
         <OPTION VALUE= <%=i%> > <%=i%> </option>
    %>      
    <%
    %>
         </select>

    Add a print statement here:
    String query = "insert into Holiday(HolidayDate, Description) VALUES (?, ?)";
    out.println(date);
    PREPstmt1=con.prepareStatement(query);
    PREPstmt1.setString(1,date);
    Have a look at the output and check whether the value is in the correct format for your database.

  • While running a report through workspace getting "Null" error

    While running a report through workspace i am getting "Null" error.i have checekd the db connection and also access to hfm.
    Thanks

    Hi Raj,
    There are a few OSS Notes for your issue.
    If your Query has hierarchy in it then check 734184
    If your query is based on Infoset then check Note 784502 and 701941.
    Also check 668921.
    Bye
    Dinesh

  • How can I get null values for the later weeks

    Hi All,
    When I execute this code I get the records till current week.
    How can I display the output so that I get null values for the later weeks. (with the help of v_numOfWeeks variable in the code)
    Thanks,
    Vikram
    DECLARE
       v_query VARCHAR2(4000);
       TYPE ref_cursor IS REF CURSOR;
       v_refcur ref_cursor;
       v_sum NUMBER;
       v_id NUMBER;
       v_name VARCHAR2(1000);
       v_weeknum NUMBER;
       v_pernum NUMBER;
       v_numOfWeeks NUMBER := 5;
    BEGIN
    v_query := ' SELECT SUM(product_bkg), postn_id, postn_tbl.postn_name, b.week_num, b.period_num
                              FROM ops_cv_extract b, (SELECT row_id, desc_text postn_name
                          FROM s_postn) postn_tbl
                          WHERE lvl_6_id = 5767
                          AND fiscal_year = 2008
                          AND b.week_num < 4
                          AND b.period_num = 3
                          AND b.postn_id = TO_NUMBER(postn_tbl.row_id)
                          GROUP BY postn_id, postn_tbl.postn_name, b.week_num, b.period_num
                          ORDER BY  postn_tbl.postn_name, b.week_num';
    OPEN v_refcur FOR v_query;
    LOOP
       FETCH v_refcur INTO v_sum, v_id, v_name, v_weeknum, v_pernum;
       EXIT WHEN v_refcur%notfound;
       dbms_output.put_line('P'|| v_pernum||'W'|| v_weeknum||' '||v_name||' '||v_sum);
    END LOOP;
    END;
    This is the output when I execute this code.
    P3W1 COMM CNTRL ISAM 213 26961.61
    P3W2 COMM CNTRL ISAM 213 12870.4
    P3W3 COMM CNTRL ISAM 213 245.88
    P3W1 COMM CNTRL ISAM 273 72831.2
    P3W2 COMM CNTRL ISAM 273 8739.38
    P3W3 COMM CNTRL ISAM 273 3764.92
    P3W1 COMM CNTRL TAM 213 49844
    P3W2 COMM CNTRL TAM 213 20515.17
    P3W3 COMM CNTRL TAM 213 16167.46
    P3W2 COMM CNTRL TAM 216 12561.4
    P3W3 COMM CNTRL TAM 216 2027.1
    P3W1 COMM CNTRL TAM 273 -3336.71
    P3W2 COMM CNTRL TAM 273 -1376.68
    P3W3 COMM CNTRL TAM 273 19707.42
    P3W1 Damon Walters -609.07
    P3W2 Damon Walters 30030.24
    P3W3 Damon Walters 37475.1
    This is the output I'd like to get
    P3W1 COMM CNTRL ISAM 213 26961.61
    P3W2 COMM CNTRL ISAM 213 12870.4
    P3W3 COMM CNTRL ISAM 213 245.88
    P3W4 COMM CNTRL ISAM 213
    P3W5 COMM CNTRL ISAM 213
    P3W1 COMM CNTRL ISAM 273 72831.2
    P3W2 COMM CNTRL ISAM 273 8739.38
    P3W3 COMM CNTRL ISAM 273 3764.92
    P3W4 COMM CNTRL ISAM 273
    P3W5 COMM CNTRL ISAM 273
    P3W1 COMM CNTRL TAM 213 49844
    P3W2 COMM CNTRL TAM 213 20515.17
    P3W3 COMM CNTRL TAM 213 16167.46
    P3W4 COMM CNTRL TAM 213
    P3W5 COMM CNTRL TAM 213
    P3W1 COMM CNTRL TAM 273 -3336.71
    P3W2 COMM CNTRL TAM 273 -1376.68
    P3W3 COMM CNTRL TAM 273 19707.42
    P3W4 COMM CNTRL TAM 273
    P3W5 COMM CNTRL TAM 273
    P3W1 Damon Walters -609.07
    P3W2 Damon Walters 30030.24
    P3W3 Damon Walters 37475.1
    P3W4 Damon Walters
    P3W5 Damon Walters Edited by: polasa on Oct 28, 2008 6:42 PM

    Sure, in a Single SQL ->
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>
    satyaki>-- Start Of Test Data --
    satyaki>with week_tab
      2  as
      3    (
      4      select 1 period_num, 1 week_num, 10 bkg1 from dual
      5      union all
      6      select 1, 2, 40 from dual
      7      union all
      8      select 1, 3, 30 from dual
      9      union all
    10      select 1, 2, 20 from dual
    11      union all
    12      select 1, 1, 10 from dual
    13      union all
    14      select 1, 1, 20 from dual
    15      union all
    16      select 1, 3, 10 from dual
    17      union all
    18      select 2, 1, 15 from dual
    19      union all
    20      select 2, 2, 20 from dual
    21      union all
    22      select 2, 3, 10 from dual
    23      union all
    24      select 2, 1, 15 from dual
    25      union all
    26      select 2, 2, 30 from dual
    27      union all
    28      select 2, 3, 20 from dual
    29    )
    30  -- End Of Test Data --
    31  select period_num,
    32         week_num,
    33         (
    34            select sum(week_tab.bkg1)
    35            from week_tab
    36            where period_num = m.period_num
    37            and   week_num   = m.week_num
    38            group by week_num, period_num
    39         ) sum_bkg1
    40  from (
    41        select dum.week_num,
    42              wk.period_num
    43        from (
    44                select 1 week_num from dual
    45                union all
    46                select 2 from dual
    47                union all
    48                select 3 from dual
    49                union all
    50                select 4 from dual
    51                union all
    52                select 5 from dual
    53              ) dum ,
    54              (
    55                select distinct period_num
    56                from week_tab
    57          ) wk
    58      ) m;
    PERIOD_NUM   WEEK_NUM   SUM_BKG1
             1          1         40
             1          2         60
             1          3         40
             1          4
             1          5
             2          1         30
             2          2         50
             2          3         30
             2          4
             2          5
    10 rows selected.
    Elapsed: 00:00:00.48
    satyaki>Regards.
    Satyaki De.

  • Getting null values from nodes using DOMParser

    Hi
    I'm having problems retrieving the values from an XML doc.
    I'm using the DOMParser, but instead of retrieving the values
    from the nodes, I just get null.
    Code fragment :
    DOMParser parser = new DOMParser();
    parser.parse(url);
    XMLDocument doc = parser.getDocument();
    NodeList nl = doc.getElementsByTagName("*");
    Node n;
    iNode = nl.getLength();
    for (int i=0; i<iNode; i++)
    n = nl.item(i);
    String szNodeName = n.getNodeName();
    System.out.print(szNodeName+ " (" );
    System.out.print(n.getNodeValue()+")");
    System.out.println();
    The result is
    course (null)
    Name (null)
    All the node names are correct, but the node values are NOT
    displayed.
    Any idea ?
    Rodrigo
    null

    According to the DOM Level 1 spec, the "value" of an ELEMENT node
    is null and the getNodeValue() method will always return null for
    an ELEMENT type node. You have to get the TEXT children of an
    element and then use the getNodeValue() method in the text nodes.
    Oracle XML Team
    Rodrigo Loureiro (guest) wrote:
    : Hi
    : I'm having problems retrieving the values from an XML doc.
    : I'm using the DOMParser, but instead of retrieving the values
    : from the nodes, I just get null.
    : Code fragment :
    : DOMParser parser = new DOMParser();
    : parser.parse(url);
    : XMLDocument doc = parser.getDocument();
    : NodeList nl = doc.getElementsByTagName("*");
    : Node n;
    : iNode = nl.getLength();
    : for (int i=0; i<iNode; i++)
    : n = nl.item(i);
    : String szNodeName = n.getNodeName();
    : System.out.print(szNodeName+ " (" );
    : System.out.print(n.getNodeValue()+")");
    : System.out.println();
    : The result is
    : course (null)
    : Name (null)
    : All the node names are correct, but the node values are NOT
    : displayed.
    : Any idea ?
    : Rodrigo
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • I am facing problem while reading values from properties file ...i am getting null pointer exception earlier i was using jdeveloper10g now i am using 11g

    i am facing problem while reading values from properties file ...i am getting null pointer exception earlier i was using jdeveloper10g now i am using 11g

    hi TimoHahn,
    i am getting following exception in JDeveloper(11g release 2) Studio Edition Version 11.1.2.4.0 but it works perfectly fine in JDeveloper 10.1.2.1.0
    Root cause of ServletException.
    java.lang.NullPointerException
    at java.util.PropertyResourceBundle.handleGetObject(PropertyResourceBundle.java:136)
    at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
    at java.util.ResourceBundle.getString(ResourceBundle.java:334)
    at org.rbi.cefa.master.actionclass.UserAction.execute(UserAction.java:163)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

  • OIM to OID Provisioning - Userid getting 'null' in OID

    OIM provisioned to OID. When Im creating a user in OIM and provisioning the OID resource, the userid is getting 'null' value in OID.
    Any reasons? How to fix this ?
    I have checked the design console and the ldapuserDNPrefix is mapped to uid.

    Hi,
    You have to had an another atrribute in order to make it work:
    Solution
    While creating a user account on Oracle Internet Directory through Oracle Identity Manager, the
    user ID that you specify is assigned to the cn field of Oracle Internet Directory.
    If required, you can customize the mapping so that the user ID is assigned to the uid field of
    Oracle Internet Directory.
    1.In the Design Console, open the AttrName.Prov.Map.OID lookup definition.
    2.Change the decode value of the ldapUserDNPrefix code key to uid.
    *3.Add the following item to AttrName.Prov.Map.OID lookup defintion*
    Code key "User ID", decode value "uid".
    Please note that Key is case sensitive.

  • Getting import error in jsp in creating war project of masthead for portal 7.31

    Hi,
    I am getting error in customize masthead war project in jsp for import statement.
    <%@ page import="com.sapportals.htmlb.*"%>
    <%@ page import="com.sapportals.htmlb.hovermenu.*"%>
    <%@ page import="com.sap.security.api.UMFactory"%>
    <%@ page import="com.sapportals.portal.prt.service.license.ILicenseService"%>
    <%@ taglib uri="prt:taglib:tlhtmlb" prefix="hbj"%>
    I have asked basis team for jar relative to these but they have not found in system.
    We are using portal 7.31 version.
    Kindly help me to remove this error from jsp.
    Thanks in advance.

    Hi Hemendra,
    At first i have done this and after that even i was facing error that's why i created this thread.
    Kindly check my first post for error.
    Getting import error in jsp in creating war project of masthead for portal 7.31
    This question is Not Answered.(Mark as assumed answered)
    Swati Joshi  Apr 29, 2015 12:34 PM  
    Hi,
    I am getting error in customize masthead war project in jsp for import statement.
    <%@ page import="com.sapportals.htmlb.*"%>
    <%@ page import="com.sapportals.htmlb.hovermenu.*"%>
    <%@ page import="com.sap.security.api.UMFactory"%>
    <%@ page import="com.sapportals.portal.prt.service.license.ILicenseService"%>
    <%@ taglib uri="prt:taglib:tlhtmlb" prefix="hbj"%>
    I have asked basis team for jar relative to these but they have not found in system.
    We are using portal 7.31 version.
    Kindly help me to remove this error from jsp.
    Thanks in advance.

  • Getting NULL with function in the select Query

    Hi all,
    SELECT
    ,a.TRANSACTIONAL_CURR_CODE     
    --,gl.CONVERSION_RATE
    ,get_rate(a.transactional_curr_code,NVL(gsob.attribute1,gsob.currency_code),a.conversion_type_code,TRUNC(a.ordered_date)) CONVERSION_RATE
    FROM               
    oe_order_headers_all a,               
    oe_order_lines_all b,                 
    gl_sets_of_books gsob
    --gl_daily_rates gl
    WHERE 1=1
    and a.header_id         = b.header_id
    --and  from_currency = 'USD' --a.transactional_curr_code
    --and conversion_type = 'Corporate' --a.CONVERSION_TYPE_CODE
    --and conversion_date = '23-APR-12' --a.ORDERED_DATE
    and a.header_id =1234;
    With commented above Line
    0.749400479616307
    NULL                                        ---->Why i am getting NULL , i have a Value (0.07809)
    18.521
    Without comment above Code(Hardcoded Code or Commented Line)
    18.521
    0.749400479616307
    0.07809
    select transactional_curr_code,ORDERED_DATE from oe_order_headers_all
    where header_id=1234
    o/p:-
    USD      '23-APR-12'
    select CONVERSION_RATE from gl_daily_rates
    where from_currency = 'USD' --transactional_curr_code
    and conversion_type = 'Corporate' --CONVERSION_TYPE_CODE
    and conversion_date = '23-APR-12' --ORDERED_DATE
    --and to_currency = 'USD'
    CONVERSION_RATE
    18.521
    0.749400479616307
    0.07809
    select gsob.attribute1,gsob.currency_code from gl_sets_of_books
    where SET_OF_BOOKS_ID=1
    gsob.attribute1  gsob.currency_code
    USD                   USD

    Hi ,
    Same as below code in the Function
    select CONVERSION_RATE from gl_daily_rates
    where from_currency = 'USD' --transactional_curr_code
    and conversion_type = 'Corporate' --CONVERSION_TYPE_CODE
    and conversion_date = '23-APR-12' --ORDERED_DATE
    and to_currency = 'USD'

  • Urgent: How to get value from Element Node?

    Hi All,
    I have an xml like below:
    <?xml version="1.0"?>     
    <Accounts>
    <Account rowid="1">
    <Account_Id>1</Account_Id>
    <Customer_Id>1</Customer_Id>
    <Account_Type>SB</Account_Type>
    <Balance>1000.00</Balance>
    </Account>
    <Account rowid="2">
    <Account_Id>2</Account_Id>
    <Customer_Id>1</Customer_Id>
    <Account_Type>CD</Account_Type>
    <Balance>1000.00</Balance>
    </Account>
    </Accounts>
    I am trying to get the value in the Account_Id element, but I am getting null everytime. Here is my code:
    import com.sun.org.apache.xerces.internal.impl.xs.dom.DOMParser;
    DOMParser parser = new DOMParser();
    parser.parse("D:\\Temp\\PCORDBMS\\"+tableName+".xml");
    Document doc = parser.getDocument();
    NodeList nodes = doc.getElementsByTagName("Account");
    for(int i=0;i<nodes.getLength();i++) {
    Node fc=nodes.item(i).getFirstChild();
    System.out.println(fc.getNodeValue());
    I think, since fc node is of the type Element - getNodeValue() is not returning the value. I also tried getting child nodes, getting attributes for fc & then getNodeValue.
    Am I missing something? Appreciate your help.
    Thanks,
    Niranjan

    Hi Niranjan,
    I used the JAXP DocumentBuilder and DocumentBuilderFactory classes. I use JSE 5.
    Here's the complete code that works for me:
    package com.trfsol.domtester;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    public class DomTester {
         * @param args
         public static void main(String[] args) {
              String filename = "C:\\Java workspaces\\Eclipse\\Workspace\\Test\\test.xml";
              try {
                   // Parse XML file
                   DocumentBuilderFactory factory =
                        DocumentBuilderFactory.newInstance();
                   DocumentBuilder parser = factory.newDocumentBuilder();
                   Document document = parser.parse(filename);
                   // Get all "Account" nodes
                   NodeList accountNodes = document.getElementsByTagName("Account");
                   // Iterate over nodes
                   for (int index = 0; index < accountNodes.getLength(); index ++) {
                        NodeList childNodes = accountNodes.item(index).getChildNodes();
                        for (int subIndex = 0; subIndex < childNodes.getLength(); subIndex ++) {
                             Node childNode = childNodes.item(subIndex);
                             System.out.println(childNode.getTextContent());
              catch (Exception e) {
                   System.err.println("Exception: " + e.getMessage());
    Regards, Ronald

  • How to get the size of JSP html output?

    Hi,
    Is there a JSP method to get the size of JSP HTML output.
    e.g. I would like to print the size of the JSP e.g.
    Size of this page is <%=pageContext.getPageSize()%> Kb ???
    Any ideas? Thanks.
    George
    Edited by: googchro on Jan 5, 2010 4:45 PM

    Would you like to print "the size of this page is..." before or after you calculate the size of the page.
    Because adding that bit of text to the page will make the page bigger...
    Doing it in java, the best approach would probably to have a filter counting the number of bytes that gets sent to the writer/output stream.
    A client side tool measuring the amount of bytes received would probably be easier though.
    You can always look at the Content-length header sent with a response. Though you normally don't have access to that on the java/jsp side, as it is sent by the container.
    cheers,
    evnafets

  • When passing Node to parse() method get NULL pointer exception.

    All,
    I trying to pass a Node to parse method to get the NodeType object back and getting
    null pointer exception.
    Example
    xml
    <root>
    <Test>
    <someData>ABC</someData>
    </Test>
    </root>
    if pass the Test node to get Test object back I am getting null pointer exception.
    Thanks for all ur help
    Shoeb

    file 2
    ~~~~
    import javax.swing.*;
    public class ExtendedPage extends BasePage
    private JTextField objJTextField = null;
    private JButton objJButtonBrowse = null;
    Change the line in bold to
    private JTextField objJTextField;
    And everything works.

  • Weblogic JMS EJB : ThreadLocal access query : getting null in same thread

    We have two applications(one is jms and other is ejb) on single instance of weblogic managed server.
    On receving a new jms message the jms application call the ejb application by passing the new xml message.
    ejb application creates a threadlocal object and allocated transaction id to this transaction. I want to access this transactionid(present in threadlocal) in my jms application. But i am getting null.
    I believe i am in the same thread as i printing the thread number in the both the application log. I verified that same thread number was present for multiple messages
    in both logs [Except if one scenario of thread pooling is present that when jms calls ejb it frees the thread(23) and when ejb completes its job if gives back the thread(23) to jms...but it resets thread local]
    I need answer to following question
    1. Why is my transaction id null when i access through jms application.
    2. I believe i am in the same jvm instance.
    3. I believe i am in the same thread instance...( looking at logs except if someone can tell me i am not.....)
    4. Or if there is alternative solution to pick up threadlocal variable in my jms application.
    JMS application is new application trying to connect to existing ejb application which had the thread local design and we want to use that existing architecture before we decide to change. We need the transactionid for log corelation.

    I assume that either your JMS destination is backed by a database or your application is doing some database operations in the same transaction as the JMS send operation. I suspect that there is some kind of database maintenance process going on every night, which causes the database operations to be slow or not responding, which in turn causes the MDB transaction that the JMS send operation participates in to timeout.

  • Getting null value while parsing "XML String" with  encoding WINDOWS-1252.

    Hi,
    when I am converting the Follwoing "xml string " to Document, I am getting the "null" as a document value.
        String strXML =  "<?xml version="1.0" encoding="WINDOWS-1252"?>
                              <category name="SearchByAttributes" value="Search By Attributes">
                                <item name="ORDER_LINE_ID" description="Application Search Attributes" >
                                   <attribute name="Sequence" value="0001"/>
                                 </item>
                                </category>"      
    My "xml string" has the encoding vaule: WINDOWS-1252.
    I am using the following code to convert the "xml string" to Document. I am getting the Document values as a "null" while converting the above "string xml"
            String strXML = //my above string xml.
            DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
            docBuilderFactory.setIgnoringElementContentWhitespace(true);
            docBuilder = docBuilderFactory.newDocumentBuilder();
            doc = docBuilder.parse(new InputSource(new StringReader(strXML)));              
            System.out.println("doc value.."+doc)//I am getting null value for "doc".
    Can anyone help me to resolve the issue.

    Thagelapally wrote:
    I am coverting the below "XML string" to Document, once it is converted I am reading that Document,which have an "attribue" Element in.
      String strXML = "<?xml version="1.0" encoding="WINDOWS-1252"?>
    <category name="SearchByAttributes" value="Search By Attributes">
    <item name="ORDER_LINE_ID" description="Application Search Attributes" >
    <attribute name="Sequence" value="0001"/>
    </item>
    </category>" I am using the above code to read the Document. When run the code in "OC4J Server" and using Jdeveloper as an editor,I am able to perfectly read the "attribute" element in the document with out any problem.Println statement printing as I expected.
    System.out.println("Element Name..."+listOfAtt.getNodeName());
    //getting Element Name as...."attribute"(as expected)
    System.out.println("Element Attibrute list....."+elementAtt);
    //getting Element Attribute list as an...."oracle.xml.parser.v2.XMLAttrList@afe"But when run the same code(reading the same Document) in Tomcat and Eclipse,println satatement not printing as i expected.
    System.out.println("Element Name..."+listOfAtt.getNodeName());
    //getting Element Name as...."#text"(I am expecting output value "attribute" but it is printing "#text" which i don't know)
    System.out.println("Element Attibrute list....."+elementAtt);
    //getting Element Attribute list as an...."null"(I am expecting output value object reference but it is printing "null"
    (without the rest of the code, i'm guessing that) most likely you are grabbing the first child node of the item element. however, you are not accounting for some text nodes that are most likely in that list, like the whitespace between the item element and the attribute element. please go read some tutorials on xml, there are thousands of them out there, and they will answer all you initial questions much more efficiently than posting each step to the forums.

  • Getting Null Value

    Hi
    I have made on Bapi as webservice.. and i imported that webservice in model...
    The structure of the model is like this.....
    Request_Z_Bapi_Customer_GetDetail
    .......|
    .......|----- parameter
    ................|
    ................|-------customerNo
    ................|-------division
    ................|-------distributionchannel
    ................|-------saleOrg
    ................|-------passbuffer
    .......|-------Response
    ................|------Result
    .......................|-------peAddress
    ...............................|---city
    ...............................|---country
    ...............................|----name
    ...............................|----.....
    ...............................|----......
    <b>I have writtin the following code in my Custom Controller</b>
    Request_Z_BAPI_CUSTOMER_GETDETAIL_WS_customerGetDetail customer = new Request_Z_BAPI_CUSTOMER_GETDETAIL_WS_customerGetDetail();
        customer._setUser("abap");
        customer._setPassword("quinnox");
        wdContext.nodeRequest_Z_Bapi_Customer_GetDetail().bind(customer);
    <b>I have executed the fuction like this...............</b>
    public void executeCustomerDetails( )
        //@@begin executeCustomerDetails()
        try{
             wdContext.currentRequest_Z_Bapi_Customer_GetDetailElement().modelObject().execute();
             wdComponentAPI.getMessageManager().reportSuccess("Check "+wdContext.currentPeAddressElement().getFirstName());
        }catch(Exception e){
             wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
    but when i am priniting the results i am getting the null values.........
    ex:
    wdComponentAPI.getMessageManager().reportSuccess("Check "+wdContext.currentPeAddressElement().getFirstName());
    here i am trying to get the FirstName but i am getting null value.....
    how to solve this problem....
    please help me
    Best Regards
    Ravi Shankar B

    Hi Ravi,
    First i would suggest you to test/execute the webservice to makesure that its working properly.
    If yes, pass all the madatory fields to the webservice input parameters. In your case customerID could be a madatory parameter to get the address.
    You can pass that parameter by customer.setCustomerNo().
    Regards, Anilkumar

Maybe you are looking for