Help! ADO with JAVA, STRUTS

Hi,
Can any body of you help me in coming up with DAO using java code.
I don't what are the steps to be followed and what to write. I dileberately need your help. Plz take an example of a student program where we need to enter Name and Age. I want to implement this using struts framework in my project. So, Kindly help meeeeeee plzzzzzzzzzzzzzzzzzzz
. I what everything related to this example and also detailed steps to come up with. Heyy we use DB2 as database.
Thanking you.
Prassu

Cross posted in more appropriate forum
http://forum.java.sun.com/thread.jspa?threadID=767899

Similar Messages

  • Can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    Java is no longer included in Mac OS X by default. If you want Java, you will have to install it.
    However, note that you should think twice before installing Java for such a trivial need as looking at stock market quotes. There are other ways to get that information that don't involve Java, and using Java in your web browser is a HUGE security risk right now. Java has been vulnerable to attack almost constantly for the last year, and has become a very popular, frequently used method for getting malware installed via "drive-by downloads." You really, truly don't want to be using it. See:
    Java is vulnerable… Again?!
    http://java-0day.com

  • Help needed with java

    Hello everyone
    I'm a Student and new to java and I have been given a question which I have to go through. I have come across a problem with one of the questions and am stuck, so I was wondering if you guys could help me out.
    here is my code so far:
    A Class that maintains Information about a book
    This might form part of a larger application such
    as a library system, for example.
    @author (your name)
    *@version (a version number or a date)*
    public class Book
    // instance variables or fields
    private String author;
    private String title;
    Set the author and title when the book object is constructed
    public Book(String bookAuthor, String bookTitle)
    author = bookAuthor;
    title = bookTitle;
    Return The name of the author.
    public String getAuthor()
    return author;
    Return The name of the title.
    public String getTitle()
    return title;
    and below are the questions that I need to complete. they just want me to add codes to my current one, but the problem is I don't know where to put them and how I should word them, if that makes sense.
    Add a further instance variable/field pages to the Book class to store the number of pages in the book.
    This should be of type int and should be set to 0 in the Constructor.
    Add a second Constructor with signature
    public Book(String bookAuthor, String bookTitle, int noPages) so it has a third parameter passed to it as well as the author and title;
    this parameter is used - obviously?? - to initialise the number of pages.
    Note: This is easiest done by making a copy of the existing Constructor and adding the parameter.
    Add a getPages() accessor method that returns the number of pages in the book.
    Add a method printDetails() to your Book class. This should print out the Author title and number of pages to the Terminal Window. It is your choice as to how the data is formatted, perhaps all on one line, perhaps on three, and with or without explanatory text. For instance you could print out in the format:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:226
    Add a further instance variable/field refNumber() to your Book class. This stores the Library's reference number. It should be of type String and be initialised to the empty String "" in the constructor, as its initial value is not passed in as a parameter. Instead a public mutator method with the signature:
    public void setRefNumber(String ref) should be created. The body of this method should assign the value of the method parameter ref to the refNumber.
    Add a corresponding getRefNumber() accessor method to your class so you can check that the mutator works correctly
    Modify your printDetails() method to include printing the reference number of the book.
    However the method should print the reference number only if it has been set - that is the refNumber has a non-zero length.
    If it has not been set, print "ZZZ" instead.
    Hint Use a conditional statement whose test calls the length() method of the refNumber String and gives a result like:
    Title: Jane Eyre, Author: Charlotte Bronte, Pages:226, RefNo: CB479 or, if the reference number is not set:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:347, RefNo: ZZZ
    Modify your setRefNumber() method so that it sets the refNumber field only if the parameter is a string of at least three characters. If it is less than three, then print an error message (which must contain the word error) and leave the field unchanged
    Add a further integer variable/field borrowed to the Book class, to keep a count of the number of times a book has been borrowed. It should (obviously??) be set to 0 in the constructor.
    Add a mutator method borrow() to the class. This should increment (add 1 to) the value of borrowed each time it is called.
    Include an accessor method getBorrowed() that returns the value of borrowed
    Modify Print Details so that it includes the value of the borrowed field along with some explanatory text
    PS. sorry it looks so messey

    1. In the future, please use a more meaningful subject. "Help needed with java" contains no information. The very fact that you're posting here tells us you need help with Java. The point of the subject is to give the forum an idea of what kind of problem you're having, so that individuals can decide if they're interested and qualified to help.
    2. You need to ask a specific question. If you have no idea where to start, then start here: [http://home.earthlink.net/~patricia_shanahan/beginner.html]
    3. When you post code, use code tags. Copy the code from the original source in your editor (NOT from an earlier post here, where it will already have lost all formatting), paste it in here, highlight it, and click the CODE button.

  • Poll: Which sites have helped you with Java mobile development?

    [Which sites have helped you with Java mobile development?|http://www.polldaddy.com/p/1158419/]

    Spam blocked, spammer blocked for life.
    db

  • Help - Problem with Java Updating

    In updating to the latest version of Java - 8.45 - I must also load the Unlimited Strength encryption files.  At least, that's what the README file sez ...
    Unfortunately - when I agree to the terms, and download the "Unlimited Policy" zip file, it contains the US Export Policy encryption file, and NOT the Unlimited Policy File. 
    Can someone help me with what's going on here?  Thanks in advance ... !

    My friend looks like that u are using javax.swing.filechooser.FileFilter class as your file filter. Nothing wrong with it, but it works only with JFileChooser and not with the java.io.File.listFiles method. for that u will have to implement the java.io.FileFilter interface.
    He is the code example...
    import javax.swing.*;
    import java.io.*;
    public class FileTest implements FileFilter {
         public static void main (String args[]) throws Exception {
              new FileTest();
         public FileTest() {
              File f = new File(".");
              File [] list = f.listFiles(this);
              for (int i = 0; i < list.length; i++) {
                   System.out.println(list);
    class MyFileFilter implements FileFilter {
         public boolean accept(File pathName) {
              if (pathName.isDirectory()) return true;
              String ext = pathName.getName();
              ext = ext.substring(ext.lastIndexOf(".") + 1, ext.length());
              if (ext.equals("java")) { //check for any extension you want to list
                   return true;
              return false;

  • Help! ADO with JAVA

    Hi,
    Can any body of you help me in coming up with DAO using java code.
    I don't what are the steps to be followed and what to write. I dileberately need your help. Plz take an example of a student program where we need to enter Name and Age. I want to implement this using struts framework in my project. So, Kindly help meeeeeee plzzzzzzzzzzzzzzzzzzz
    . I what everything related to this example and also detailed steps to come up with. Heyy we use DB2 as database.
    Thanking you.
    Prassu

    Hi,
    Can any body of you help me in coming up with DAO using java code.Yes.
    I don't what are the steps to be followed and what to
    write. I dileberately need your help. Do you mean "deliberately"?
    Plz take an
    example of a student program where we need to enter
    Name and Age. Here's the model object, with Hibernate annotations so you can generate the mappings an schema:
    package model;
    import javax.persistence.*;
    import java.io.Serializable;
    import java.util.Date;
    import java.util.Calendar;
    import java.util.GregorianCalendar;
    * Created by IntelliJ IDEA.
    * User: Michael
    * Date: Sep 13, 2006
    * Time: 5:14:17 PM
    * To change this template use File | Settings | File Templates.
    @SuppressWarnings({"JavaDoc"})
    @Entity
    @Table(name = "students")
    public class Student implements Serializable
        private Long id;
        private String name;
        private Date birthday;
        private Student()
            this(null, "", new Date());
        public Student(String name, Date birthday)
            this(null, name, birthday);
        public Student(Long id, String name, Date birthday)
            this.id = id;
            this.name = name;
            this.birthday = new Date(birthday.getTime());
        @Id
        @Column(name = "student_id")
        @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "students_student_id_seq")
        @SequenceGenerator(name = "students_student_id_seq", sequenceName = "students_student_id_seq")
        public Long getId()
            return id;
        private void setId(Long id)
            this.id = id;
        @Column(name = "full_name", unique = false, nullable = false, length = 32)
        public String getName()
            return name;
        private void setName(String name)
            this.name = name;
        @Column(name = "birthday", unique = false, nullable = false)
        public Date getBirthday()
            return birthday;
        private void setBirthday(Date birthday)
            this.birthday = birthday;
        public int getAge()
            int age = 0;
            Calendar calendar = GregorianCalendar.getInstance();
            Date today = new Date();
            calendar.setTime(today);
            int currentYear = calendar.get(Calendar.YEAR);
            calendar.setTime(birthday);
            int birthYear   = calendar.get(Calendar.YEAR);
            age = currentYear - birthYear;
            return age;
        public boolean equals(Object o)
            if (this == o)
                return true;
            if (o == null || getClass() != o.getClass())
                return false;
            Student student = (Student) o;
            if (id != null ? !id.equals(student.id) : student.id != null)
                return false;
            return true;
        public int hashCode()
            return (id != null ? id.hashCode() : 0);
        public String toString()
            return "Student{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    ", birthday=" + birthday +
    }Here's the DAO interface:
    package persistence;
    public interface StudentDao
        public Student find(Long id);
        public List<Student> findAll();
        public List<Student> find(String name);
        public void saveOrUpdate(Student s);
        public void delete(Long id);
        public void delete(Student s);
    }I'll leave the rest for you.
    I want to implement this using struts
    framework in my project. So, Kindly help meeeeeee
    plzzzzzzzzzzzzzzzzzzz
    . I what everything related to this example and also
    detailed steps to come up with. Heyy we use DB2 as
    database.
    Thanking you.
    PrassuYou're welcome. My rate will be $200 USD per hour, so have a credit card ready when you come for the rest.
    %

  • Help needed with Java 1.4 and xml Runtime problem

    I am working on a java 1.3 and JAXP1.1 written code. Now I want to compile and run it using J2SE 1.4. Here are the import statements from the existing code.
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.Locator;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.Attributes;
    import org.xml.sax.XMLReader;
    import org.xml.sax.InputSource;
    import java.sql.*;
    import java.net.*;
    import java.io.*;
    When I run the existing(using java 1.3 and Jaxp1.1) code I have to include the files crimson.jar and jaxp.jar in the windows 2000 CLASSPATH and works fine.
    But when I compile and run it using J2SE 1.4 which has the built in support for the saxp, I thought that I don't have to specify any CLASSPATH for the new 1.4 so I don't specify any Classpath and it gives me the Microsoft "ClassFactory cannot find the requested class" error which means that even thought the new java 1.4 has the xml classes as libraries yet it still requies some .jar files to be listed in the CLASSPATH.
    If I am right then what path will work(i.e what jar class I need to add to the CLASSPATH).
    Thanks for your help.
    RA.

    Thanks for your reply,
    I think I didn't specify when the error occurs. The ClassFactory related error occurs when I run the program, it compiles without any error.
    From what I understood somewhere in the java 1.4 docs, that the new 1.4 has the xml libraries built in by default so one doesn't need to give the classpaths just like we don't give any CLASSPATH for using swing and many of the other java packages. That is one thing.
    Second thing is that I also tried to use the java_xml_pack-spring02 and java_xml_pack-summer02; but non of them include the crimson.jar and the jaxp.jar files in them which are the 2 .jar files that makes the program run fine when used under the java 1.3 with combination of the jaxp1.1(which was downloaded seperately and then the CLASSPATH for it was set.).
    Can you please help what .jar files do I need to use instead. I tried to use the ones that the new java_xml_pack-spring02 and java_xml_pack-summer02 has for the jaxp in them.
    Thanks again.
    RA

  • Please Help me with this Struts Application

    Hi All,
    I am trying the lesson 1 in struttin with struts from http://www.reumann.net/struts/lesson1.do.
    For some reason I am not getting the values submitted on the studentForm.jsp to be displayed on the confirmation.jsp page.
    Can anyone help me out with this.
    This code doesnt seem to be working....
    <c:out value="${student.firstname}"/>
    Any help would be greatly appreciated.Please let me know whether you require the sources...
    Thanks
    AS

    <c:out> is not in Struts; I guess you are using JSTL as well. :)
    Richard.

  • Please help me with java packages...

    Hey guys,
    Im pretty new to java and I have some questions on packages.
    My friend gave me a bunch of .java files. Now, each of the files has package edu.nyu.sejava.gc.util; as the beginning.
    I know that the package name = directory structure but Im not sure on other things.
    Do I have to put all of the .class files in a directory
    C:\edu\nyu\sejava\gc\util? Is there a specific way I need to compile the files?
    I compiled the files with 'javac -d c:\classes *.java' and the class files were put in a dir C:\classes\edu\nyu\sejava\gc\util. However, when I try to run one of them, I get
    C:\classes\edu\nyu\sejava\gc\util>java LogTest
    Exception in thread "main" java.lang.NoClassDefFoundError: LogTest (wrong name: edu/nyu/sejava/gc/util/Log)
    Im confused. Why doesnt it see my class def for LogTest?
    Any help is greatly appreciated. :)
    Thanx
    Flack

    Run the class using the full name. e.g.
    java edu.nyu.sejava.gc.util.LogTest
    Make sure the classpath includes c:/classes and/or the current directory.

  • Kindly help me with this Struts 1.0 and Ibatis issue

    Hi All,
    Hoping that this question will get posted.I am working on the example provided by http://www.reumann.net for the Ibatis.
    I am using tomcat 5.0.28 , eclipse 3.0 and Java 1.4.2.I get the index page of the application
    Once I click either of the links I get the following error on the browser.Http 500 eoor
    "javax.servlet.ServletException: Cannot find bean under name departments
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.employeeForm_jsp._jspService(employeeForm_jsp.java:154)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)"
    It would be great if someone helps me out in detail as to what is to be done to get this application up and running.I am trying to use MS access database.
    Many thanks in advance.
    Thanking you
    AS

    AS,
    I'll answer you here as I did on TSS. You need to pass a bean called "departments" in whichever scope you used in your jsp page.
    As for a detailed explanation of how to integrate MSAccess, you'll probably need to read a few tutorials online. Ask again when you have specific questions that aren't answered by them.
    sv

  • Help please with java programming

    ok so i need a little help on getting started on this program.
    i need to make a program where the user can enter the last names of candidates and the votes recieved by each candidate. then the program should output both the candidates names and the total votes recieved by each candidate and the perctage of votes each recieved.
    can anyone help me get started with some sample code. thanks.

    ok so this is what i have so far . . . . it goes through the array and works.
    im suppose to also have these two methods . . .
    sumVotes- Which will receive the votes array by reference.
    Calculate the total votes.- Return the calculated integral total votes.winnerIndex- Which will receive the votes array by reference.- Identify the top candidate who received more votes. - Return the identified index.
    my program is suppose to do this . . .The program should then output each candidate?s name, votes received by that candidate, and the percentage of the total votes received by the candidate. The program should also output the winner of the election.
    ok so anyone out there nice enough to tutor me through making these 2 methods i need?
    here is code of what i have so far
    package assign11942;
    import javax.swing.*;
    public class Assign11942 {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String strLast[],strNumCand, strVotes[];
              int numCand;
              double votes[], percentage, totalVotes[];
              strNumCand = JOptionPane.showInputDialog("Enter Number of Candidates: ");
              numCand = Integer.parseInt(strNumCand);
              strLast=new String[numCand];
              strVotes=new String[numCand];
              votes=new double[numCand];
              totalVotes=new double[numCand];
              for (int i =0 ; i < numCand; i++)  {
                   strLast= JOptionPane.showInputDialog("Enter Candidates Last Name: ");
                   strVotes[i]=JOptionPane.showInputDialog("Enter Number of Votes: ");

  • Help me with Java iterators, please.

    I'm supposed to convert an algorithm that's working on a simple array to work on a linked list, but I have to keep it with the same complexity. I've tried using iterators to replicate the nested fors, but I'm running into an issue. For instance:
    ListIterator it = listname.listIterator();
    Listiterator it2 = it;
    System.out.println(it.next());
    System.out.println(it2.next());
    System.out.println(it.next());
    System.out.println(it2.next());With a list of [5, 4, 3, 2, 1], I'd get 5, 4, 3 and 2 instead of 5, 5, 4 and 4. The problem is that the iterators aren't moving idenpendently. I guess a shallow copy was created instead of a deep copy. This is pretty dumb from where I'm standing, because it's pointless to copy the iterator if they aren't going to be independant.
    Anyway, is there a way to make it so that I can copy a iterator while keeping him independant from its source? I can't create another iterator from scratch and traverse the list.
    I've also tried doing a new class implementing ListIterator and Cloneable, but this:
    IteratorClass it3 = listname.IteratorClassgave me an error. I did the class so it was abstract and I wouldn't have to implement methods that I wouldn't be using, so I'm not sure if that was the problem. I'm new to Java, so I'm pretty confused to be honest. I know cloneable is supposed to allow me to create a deep copy, but since I'm calling the ListIterator from the LinkedList, I'd have to implement my own kind of iterator with Cloneable and ListIterator and then create a subclass of LinkedList?
    Anyway, thanks in advance.

    BananaPow3 wrote:
    I'm supposed to convert an algorithm that's working on a simple array to work on a linked list, but I have to keep it with the same complexity. I've tried using iterators to replicate the nested fors, but I'm running into an issue. For instance:
    ListIterator it = listname.listIterator();
    Listiterator it2 = it;
    System.out.println(it.next());
    System.out.println(it2.next());
    System.out.println(it.next());
    System.out.println(it2.next());
    What's the point of it2? The above code is identical to
    ListIterator it = listname.listIterator();
    System.out.println(it.next());
    System.out.println(it.next());
    System.out.println(it.next());
    System.out.println(it.next());
    With a list of [5, 4, 3, 2, 1], I'd get 5, 4, 3 and 2 instead of 5, 5, 4 and 4. Because you're calling next on the same iterator each time. The = opeator never copies objects in Java, only references.
    Iterator it2 = it;All that line does is copy the value from variable it into variable it2. That value is a refrence. Both variables now refer to the same Iterator object.
    The problem is that the iterators aren't moving idenpendently. I guess a shallow copy was created instead of a deep copy. This is pretty dumb from where I'm standing, because it's pointless to copy the iterator if they aren't going to be independant.You didn't copy an Iterator. You copied a reference.
    If you want a second ListIterator over that list, then do ListIterator it2 = listname.listIterator();(By the way, why are you using ListIterators instead of just Iterators? Will you be going backward as well?
    Anyway, is there a way to make it so that I can copy a iterator while keeping him independant from its source? Nope.
    I can't create another iterator from scratch and traverse the list.Why not?
    Edited by: jverd on Aug 9, 2008 2:50 PM

  • Please help me with java

    Hi,
    I've finally able to get Java running on my mac again. But in the process I delete an unrecoverable folder. Without it, anything written with ObjCJava will not run. Can someone be kind enough to zip up your copy of this folder and let me download it? or email it to me?
    /System/Library/Java/com
    Thank you. Cool
    Oh, I forgot the mention that I'm using 10.4.6 on MBP. So I would appreciate if it was from an intel mac, thanks.

    Hi,
    Thanks for your suggestion. But those files are not included in the java update. Those are the ObjCJava class file that apple wrote, not sun. And the only way to get it is either reinstall Tiger or copy from someone else's computer. And I would prefer to skip the pain or reinstalling.
    Cheers

  • Help me with java file io

    Good day Sir!
    Its been a few months already that i have started learning the Java programming language on my own.
    My name is Rykiel Ramos and i am an engineering student. A subject of mine this semester actually covers C programming only, I am studying Java
    because I think it's the defacto programming language nowadays.I used book a as my reference to solve C program exercises that my teacher gives. My understanding is that whatever problems that can be solved by C can also be solved using Java.
    However, I have encountered a particular problem I
    cant solve. And the problem is :
    Suppose you have a file. Read the contents of that
    file and print the file's two consecutive lines. Then
    print two empty lines. Then print the next two
    consecutive. And so on and so fort.
    Please do help me. Thank you very much.
    Example:
    ***********************Hello.txt***********************
    Hello
    World!
    How
    are
    you?
    *************after executing the program**************
    Hello
    World!
    How
    are
    you?
    The implementation I have tried and failed is the BufferedReader-FileReader-File combination then assigning to a String array per line of the lines read. But, my implementation isn't working. Do you have any suggestions? Or better yet, can you show me a simple source code that works?
    Thank you very much for your help.Pls send your response also to my e-mail so that i can save it.thanks again

    class X {
         static boolean print(String s) {
              if (s == null)
                   return true;
             System.out.println(s);
             return false;
         public static void main(String[] args) throws Exception {
             BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream("x.txt")));
             while (true) {
                  String s;
                  if (print(in.readLine()) || print(in.readLine()))
                       break;
                  System.out.println("\n\n");
             in.close();
    }Enjoy Java!

  • How to use VPD in Java/Struts JSP portlet with SSO

    DB = 10.1.0 (Standard Edition)
    Portal = 9.0.4.1
    10gAS = 9.4.0.1 (EE)
    I am in the beginning stages of developing some portlets that will be Java/Struts JSP based. We use SSO and have implemented some VPD security in our DB by creating some views that use SYS_CONTEXT('USERENV','CURRENT_USERID').
    These Java portlets connect to the DB using a defined JDBC connection for the OC4J container they are deployed in. The problem I'm having is that the call to SYS_CONTEXT is returning the user of the JDBC connection and not the SSO user. So far I have been unable to find any documentation that will point me in the right direction to get this configured properly.
    Deployment and configuration are as follows. Deploy war file to custom container on app server. In the configuration of the OC4J contain the app used the containers default JDBC connection using the oracle.jdbc.pool.OracleDataSource class. Max and Min open connections are blank.
    In the portal configuration under Navigator - Providers tab we defined a new Registered Provider. In the Connections tab for the provider we Specify the URL Http://hpsrv02.simsol.com:7777/discovery-portlets/providers. Under "Specify how the user's identity will be set by the Portal..." the "The user has the same identity in the Web providers application as in the Single Sign-On identity" is selected. Under "User/Session Information" User is selected and Login Frequency is set to "Once per user session". Then we created a new portal page and created a new portlet with the new provider.
    Just an FYI I do have Discoverer working with VPD and any report portlet, dynamic page portlet and any other type of portlet I created all work correctly with VPD it is just the java/struts one that is not working.
    So does any one have any insight into what configuration steps I have missed?
    Any help is much appreciated,
    Ed Klinger

    Ed,
    Your java code must get the SSO username (it's just a HTTP header variable) :
    ie: code sample...
    Enumeration e = request.getHeaderNames();
    while (e.hasMoreElements()) {
    String name = (String)e.nextElement();
    String value = request.getHeader(name);
    out.println("<br> "+name + " = " + value);
    if (name.toUpperCase().trim().equals("OSSO-USER-DN")){
    dn_user=value;
    out.println("<br>******** USER DN = "+dn_user);
    Then, the SSO username can be used in the VPD policy.
    Note that there is a difference between the sso username and the database username . SSO username is not known by database (CURRENT_USERID will return a database username)
    Discoverer worked OK in your case with the SYS_CONTEXT (.. CURRENT_USERID) because authentication is made by database user, probably.

Maybe you are looking for

  • 5.0 Syncing issues with multiple I products

    All 5 members of my family have either and iPhone or iPod touch. Since the 5.0 upgrade all of our contacts and calendars have blended together. Is there a way to avoid this from happening?

  • IMessage getting "Not Delivered" error, Message Send Failure

    I upgraded to ios5 on my 3GS last night, seemed to have no problems, no errors.  When I try sending a text another iphone users, it defaults to sending an iMessage, but then says "Not Delivered" in red, with a red exclamation point next to it.  My da

  • Dynamic Image As A email Signaure

    Good Day All. I have the following code the will randomly get an image from a folder. It works Great. Now what i would like to do is add that image as an inline image in my email signature. eg <img src="http://websiteadd/getsingle.cfm"> However this

  • How can I get rid of the extra data page on a pdf?

    Whatever happened to the old pdf creater?  It was so easy to use!  Now I get this extra page of data and the other pages are reversed.  How can I get back to what works?

  • Issue in Oracle Business Intelligence Mobile

    hi am kind of new with this app , i create the tables and repository .. now in the login page in the application everytime i try to connect with the server to locate my repository i can't .. i get error (( server authenication failed  error [-1001 ]