Advice to "thick as a brick" in Java-files tuning, please

I have just now installed on the NT ojsp, jswdk, jsdk, Apache
and tried OJSP "White papers"'s example with <%@ page
import="mybeans.NameBean" %>. I have compiled "NameBean.java"
to "NameBean.class" and put it into the same directory where a
jsp-coded page saved. But I got:
Request URI: /Usebean.jsp
Exception:
oracle.jsp.parse.JspParseException: Line #2, Error: Unable to
find class for bean 'pageBean' defined by tag with class:
mybeans.NameBean
Could somebody advice me where I can find descriptions of
Javabeans, classes and import USING and TUNING on the filesystem?
And where should I put NameBean.class to run "Usebean.jsp"?
null

GF (guest) wrote:
: Oracle Java Technical Team wrote:
: : GF (guest) wrote:
: : : I have just now installed on the NT ojsp, jswdk, jsdk,
: Apache
: : : and tried OJSP "White papers"'s example with <%@ page
: : : import="mybeans.NameBean" %>. I have
: compiled "NameBean.java"
: : : to "NameBean.class" and put it into the same directory
: where a
: : : jsp-coded page saved. But I got:
: : : Request URI: /Usebean.jsp
: : : Exception:
: : : oracle.jsp.parse.JspParseException: Line #2, Error: Unable
: to
: : : find class for bean 'pageBean' defined by tag with class:
: : : mybeans.NameBean
: : : Could somebody advice me where I can find descriptions of
: : : Javabeans, classes and import USING and TUNING on the
: : filesystem?
: : : And where should I put NameBean.class to run "Usebean.jsp"?
: : Your download also contains documentation; "Oracle JSP
: Developers
: : Guide". Read the first couple of chapters including the one
: : concerning JSP applications.
: : The short answer to you question is you put the bean in the
: : WEB-INF/classes directory of your application. If you have
no
: : application then the servers document root is considered the
: : application (root).
: : An alternative is to put the class where ever you want and
: : configure either OJSP or the underlying servers classpath to
: : include this location.
: ===========================================================
: Thanks a lot for the previous one.
: There is other point of question.
: I successfully tested "white paper"'s JDBCQuery.jsp but didn't
: the SQLJQuery.sqljsp.
: Could you help again? Where is the reason of Exception?
: So,
: It seems that I have all required records and over in
: the "jserv.properties" file:
: "wrapper.classpath=C:\Program Files\Apache Group\Apache
: JServ\ApacheJServ.jar
: wrapper.classpath=d:\Jsdk2.0\lib\jsdk.jar
: wrapper.classpath=d:\jswdk-1.0.1\lib\servlet.jar
: wrapper.classpath=d:\ojsp\lib\ojsp.jar
: wrapper.classpath=d:\ojsp\lib\xmlparserv2.jar
: wrapper.classpath=d:\jswdk-1.0.1\lib\jspengine.jar
: wrapper.classpath=d:\jswdk-1.0.1\lib\xml.jar
: wrapper.classpath=d:\orant\jdbc\lib\classes111.zip
: wrapper.classpath=d:\ojsp\lib\translator.zip"
: But running of http://nt-tst/SQLJQuery.sqljsp gives on the
: Browser's page:
: "JSP Error
: Request URI: /SQLJQuery.sqljsp
: Exception:
: oracle.jsp.provider.JspCompileException:
: Errors compiling: c:\jsps\\SQLJQuery.java
: Line # Error "
: and in "jserv.log":
: [26/11/1999 14:52:02:280 GMT+03:00] JspServlet: unable to
: dispatch to requested page:Exception:
: oracle.jsp.provider.JspCompileException: <H3>Errors compiling:
: c:\jsps\\SQLJQuery.java</H3>...
: I checked SQLJQuery.sqlj file in the Jdeveloper 2.0
environment.
: There were red painted items:
: "import oracle.jsp.runtime.*;
: import javax.servlet.jsp.*;
: import oracle.sqlj.runtime.Oracle;
: oracle.jsp.runtime.HttpJsp
: hireDate
: JspFactory
: PageContext
: JspWriter".
The error is being reported during page compile. Unfortunately,
the compile problem isn't being reported. It is possible that
the code is confused and the page compiled correctly -- check to
see if SQLJQuery.class exists.
Another thing to check is what files were generate? Does
SQLJQuery.java exist? If not an error occurred when the SQLJ
translator was run. If SQLJQuery.java exists but SQLJQuery.class
doesn't then the error occurred during Java compilation. My
advice in either case is to manually translate/compile thelast
generated file to determine the actual compile/translation error.
I.e. either SQLJQuery.sqlj via the SQLJ translator
or SQLJQuery.java via the Java compiler
null

Similar Messages

  • How to create windows executable file from a java file. Please help.

    Hi,
    For my project I developed the codes in Java. It is working well with java run time environment. But without that I can not run it. I need to create a exe file (windows executable file) from the java source code. If you have any idea please share it with me.
    Even if you know it very lightly, please help with what you know. That would be a big help for me.
    Thank you very much.

    Does anybody know how to read a manual?
    Matt Richardson
    Certified LabVIEW Developer
    MSR Consulting, LLC

  • How to convert .class files to .java files

    Hi,
    I want to convert .class files to .java files. Is there is any software for that doing except Dj DCompiler? Because if i am using this i am not getting proper code i mean as it is available in the file.
    I tried by writing simple java file and i compiled Sample.java file and i got a .class file then i converted this Sample.class to Sample.java file by using DjDcompiler but i was missing some statements i need entire code that is available in Sample.java file. Please tell me any other software for that doing.
    Thank you in advance

    I want to convert .class files to .java files.
    iles. Is there is any software for that doing except
    Dj DCompiler? Because if i am using this i am nothttp://www.google.com/search?hl=en&q=java+decompiler&meta=
    getting proper code i mean as it is available in the
    file.I doubt you ever will.
    I tried by writing simple java file and i compiled
    Sample.java file and i got a .class file then i
    converted this Sample.class to Sample.java file by
    using DjDcompiler but i was missing some statements i
    need entire code that is available in Sample.java
    file. Please tell me any other software for that
    doing.Did you hear about "compiler opimizations"?

  • How can I build EJB archive after changing java files?

    hello,
    I changed java beans file, and tried to build jar file again, then the "build EJB archive" context menu is disabled so I can not make EJB jar file!
    So frustrated.. NWDS recognizes the changes in the java files , right? How come there 's no Build menu..
    Is there any pre-requisite to enable the menu?
    I have no idea how I can build jar file..
    Please give me a advice.. Thanks~!

    I think that in order to create a RPM, you'd need to
    use some C.Nope - the RPM is all about packaging and the "magic" x.spec file. You can have anything you want in the RPM, but you have to use RPM tools to build the .rpm file. One of the features is that you can also indicate (via "install" scripts) modifications to other files or the filesystem to support the installation of whatever's in the RPM.

  • Trouble compiling java files inside the packages.

    Hello I have a question in Java when compiling with packages. Can anyone Help??
    My 2 java files BeerSelect2.java & BeerExpert.java are in packages com.example.web & com.example.model respectively.
    C:\MyProjects\beerV1\src\com\example\web\BeerSelect2.java
    and
    C:\MyProjects\beerV1\src\com\example\model\BeerExpert.java
    I have compiled the BeerExpert.java in the model package.(ie the class file for BeerExpert is in the com.example.model package.)
    My BeerSelect2 file which is inside the web folder is like this
    package com.example.web;
    import com.example.model.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class BeerSelect2 extends HttpServlet
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
    response.setContentType("text/html");
    PrintWriter out=response.getWriter();
    out.println("Beer Selection Advice<br>");
    String c=request.getParameter("color");
    out.println("<br> Got Beer color "+c);
    BeerExpert be=new BeerExpert();
    List result=be.getBrands(c);
    response.setContentType("text/html");
    out.println("BEER SELECTION ADVICE <br>");
    Iterator it=result.iterator();
    while(it.hasNext())
    out.print("<br> try: "+it.next());
    This shows 3 comile errors.
    & the BeerExpert.java file which is in the model folder is like this:
    package com.example.model;
    import java.util.*;
    public class BeerExpert
    public List getBrands(String color)
    List brands=new ArrayList();
    if(color.equals("amber"))
    brands.add("Jack Amber");
    brands.add("Red Moose");
    else
    brands.add("Jale pale Ale");
    brands.add("Gout Stout");
    return (brands);
    This compiles fine in the model folder.
    Now when I'm trying to compile my BeerSelect2.java in the 'web' folder in which I'm trying to import the com.example.model.* which is as follows
    C:\MyProjects\beerV1\src\com\example\web>javac BeerSelect2.java
    which gives 3 errors like this
    BeerSelect2.java:3: package com.example.model does not exist
    import com.example.model.*
    ^
    BeerSelect2.java:22:cannot find symbol
    symbol: class BeerExpert
    location: class com.example.web.BeerSelect2.
    BeerExpert be=new BeerExpert();
    ^
    BeerSelect2.java:22:cannot find symbol
    symbol: class BeerExpert
    location: class com.example.web.BeerSelect2.
    BeerExpert be=new BeerExpert();
    ^
    Can anyone help???

    Since the classes are part of the com.example.web and com.example.model packages the most straight forward way to compile is from the folder containing "com". Assuming you want the resulting .class files to be in the same folders are their associated .java source files:
    C:\MyProjects\beerV1\src\> javac -cp . com\example\model\BeerExpert.java
    C:\MyProjects\beerV1\src\> javac -cp . com\example\web\BeerSelect2.javaThe -cp . part is there to set the classpath (the location that the compiler will use to locate java classes) and thereby let the compiler make sense of the import statements.
    The presence of "src" in the directory path strongly suggests, however, that the intention is not to have source and class files end up in the same directory. If this is the case read up on the syntax of the http://download.oracle.com/javase/6/docs/technotes/tools/windows/java.html (java.exe) and http://download.oracle.com/javase/6/docs/technotes/tools/windows/javac.html (javac.exe) commands. (paying attention to how searching for types is done). Also read up on any documentation you were given for building the application (if you are modifying something already given).
    If you are using an IDE you should say.

  • CVS imports Java files but they do not appear!!

    Hi all,
    I am starting to use CVS and was able to set up the server import the project and to check it out and everything seems to work fine !!! But unfortunatly the java files that are imported do not appear in the application navigator. The folder in which they are normally contained appears but it seems to be empty. Also when i run my pages the code contained in the java files is executed but i cannot go and modify it !
    do you have any advices? please
    Regards,
    Carl

    hi Brenden,
    thx again for your reply,
    I have tryied opening closing re-importing the project always unsuccesfully!
    I tried the Project Content setting for my project and i was able to have some of the files to appear. but it never goes into the sub-directories even if the option is checked I really find this weird. Just to know if i try the same project with the same options all the java files are there!! so it is related to CVS.
    Regards,
    Carl

  • Trouble compiling .java file in 11.5.10.2 Apps

    Hi Gurus,
    We are trying to recompile QuoteRenderer.java after adding some lines to give us some more debug information regarding a Quoting issue. But when we try to recompile we are getting below errors. We have executed standard Apps env file and below is the CLASSPATH set in the environment. Please advice how to fix this.
    Thanks in advance.
    Apps Version: 11.5.10.2
    JDK Version: 1.6.0_16
    CLASSPATH=/usr/java/jdk1.6/jre/lib/rt.jar:/usr/java/jdk1.6/lib/dt.jar:/usr/java/jdk1.6/lib/tools.jar:/usr/java/jdk1.6/jre/lib/charsets.jar:/testappl/testcommon/java/appsborg2.zip:/testappl/testcommon/java/apps.zip:/testora/8.0.6/forms60/java:/testappl/xxx/11.5.0/java/CustomMobileApplication.zip:/testappl/xxx/11.5.0/java/itext-1.4.6.jar:/testappl/xxx/11.5.0/java/xxxCustomQuotevj.jar:/testappl/testcommon/java:/testappl/testcommon/java/oracle/apps/xdo/template/rtf/util/barcoder
    apps> javac QuoteRenderer.java
    QuoteRenderer.java:38: package javax.servlet.jsp does not exist
    import javax.servlet.jsp.JspWriter;
    ^
    QuoteRenderer.java:39: package javax.servlet.jsp does not exist
    import javax.servlet.jsp.PageContext;
    ^
    QuoteRenderer.java:162: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void loadQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, int i)
    ^
    QuoteRenderer.java:192: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    private static Quote loadQuoteLinesForDisplay(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, BigDecimal bigdecimal, HashMap hashmap, int i, BigDecimal abigdecimal[], PageContext pagecontext)
    ^
    QuoteRenderer.java:818: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void loadQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s, String s1)
    ^
    QuoteRenderer.java:929: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void loadQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s)
    ^
    QuoteRenderer.java:999: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    private static void partialLoadQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, int i)
    ^
    QuoteRenderer.java:1080: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void loadExpandList(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext)
    ^
    QuoteRenderer.java:1191: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void renderQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s, String s1)
    ^
    QuoteRenderer.java:2638: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void renderQuoteLineSmry1(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s)
    ^
    QuoteRenderer.java:2797: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static String getPriceListExists(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s)
    ^
    QuoteRenderer.java:2907: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void renderQuoteLineSmry(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s)
    ^
    QuoteRenderer.java:3207: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void XxreRenderQuoteSupportTotals(PageContext pagecontext)
    ^
    QuoteRenderer.java:3272: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static boolean XxSiebelIntPkgCall(PageContext pagecontext)
    ^
    QuoteRenderer.java:1199: cannot find symbol
    symbol : class JspWriter
    location: class oracle.apps.qot.util.QuoteRenderer
    JspWriter jspwriter = pagecontext.getOut();
    ^
    QuoteRenderer.java:2645: cannot find symbol
    symbol : class JspWriter
    location: class oracle.apps.qot.util.QuoteRenderer
    JspWriter jspwriter = pagecontext.getOut();
    ^
    QuoteRenderer.java:2811: cannot find symbol
    symbol : class JspWriter
    location: class oracle.apps.qot.util.QuoteRenderer
    JspWriter jspwriter = pagecontext.getOut();
    ^
    QuoteRenderer.java:2914: cannot find symbol
    symbol : class JspWriter
    location: class oracle.apps.qot.util.QuoteRenderer
    JspWriter jspwriter = pagecontext.getOut();
    ^
    QuoteRenderer.java:3210: cannot find symbol
    symbol : class JspWriter
    location: class oracle.apps.qot.util.QuoteRenderer
    JspWriter jspwriter = pagecontext.getOut();
    ^
    Note: QuoteRenderer.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    19 errors

    Hi Guarav,
    There was initial customization done by Oracle consulting some years back. Recently users have discovered a bug in the functionality. Oracle consulting have left .java files behind. We are trying to add few lines of debug code (printing variables and info) and trying to compile the .java file and we are getting above said errors.
    Please advice whether there is any better approach of dealing with the situation.
    Thank you.

  • Object made by 6 java files

    To create a fan object. Which file would become the user interface/ menu? What would the colour.java file contain, if colour is given a value in another class?
    The list of files will include:
    Fan.java
    Colour.java
    FanSpeed.java
    AirSpeed.java
    HeadMovement.java
    UserReply.java
    � Each file is holding a header inside it with your username and an advice of the class name.
    Assignment task
    1. Create instances of Colour, FanSpeed, AirSpeed, HeadMovement and UserReply
    2. A user can select one of three fan speeds apart from 0 that means the fan is off. The first one is to produce a �low� airspeed; the second will produce a �medium� airspeed while the third will produce �fast� airspeed.
    3. The class Fan is to assign a default value to the above variables:
    Colour = "White";
    FanSpeed = 1;
    AirSpeed = "Low";
    HeadMovement = "Y";
    4. Class UserReply will provide the Fan class with either a character �Y�/�N� as answer of Yes/No for a head movement or with an integer for different fan speeds.
    5. AirSpeed class will return one of three possible airspeeds; �Low� for fan speed �1�, �Medium� for fan speed �2� and �Fast� for fan speed �3�.
    6. If the user wanted to stop the fan head movement then the HeadMovement class will return �Fan Head is stopped moving� otherwise it will return �Fan Head is rotating�
    7. If the user input number 0 as FanSpeed, then display a message �The fan is switched off�. If the selected number is more than 3 or a character was used rather than a number then the message �Please select between 0 and 3� will be displayed.
    8. On user selection of fan speed and head movement, display the Colour, Fan Speed, Air Speed and whether the Fan Head is moving or not.

    To create a fan object. Which file would become the
    user interface/ menu? What would the colour.java file
    contain, if colour is given a value in another class?
    The list of files will include:
    Fan.java
    Colour.java
    FanSpeed.java
    AirSpeed.java
    HeadMovement.java
    UserReply.java
    None Of These!
    These are the classes your teacher wants you to write.
    None are to do with user interface.
    You might want to create something like:
    public class FanDemo
      // Build a user interface
      // Instantiate All the classes the teacher asked for
    // Allow the user to set the Fan speed using...
    � Each file is holding a header inside it with your
    username and an advice of the class name.
    Assignment task
    1. Create instances of Colour, FanSpeed, AirSpeed,
    HeadMovement and UserReply
    2. A user can select one of three fan speeds apart
    from 0 that means the fan is off. The first one is to
    produce a �low� airspeed; the second will produce a
    �medium� airspeed while the third will produce �fast�
    airspeed.
    3. The class Fan is to assign a default value to the
    above variables:
    Colour = "White";
    FanSpeed = 1;
    AirSpeed = "Low";
    HeadMovement = "Y";
    public class Colour
      private Color c;
      public Colour()
        c=Color.WHITE;
      public Colour( Color inColor )
         c = inColor;
      public Color getColor()
        return c;
    public class Fan
    private Colour Eeek;
    private FanSpeed Erk;
       public Fan()
         Eeek = new Colour();
         Erk = new FanSpeed();
    }blah blah and so on
    4. Class UserReply will provide the Fan class with
    either a character �Y�/�N� as answer of Yes/No for a
    head movement or with an integer for different fan
    speeds.
    5. AirSpeed class will return one of three possible
    airspeeds; �Low� for fan speed �1�, �Medium� for fan
    speed �2� and �Fast� for fan speed �3�.
    6. If the user wanted to stop the fan head movement
    then the HeadMovement class will return �Fan Head is
    stopped moving� otherwise it will return �Fan Head is
    rotating�
    7. If the user input number 0 as FanSpeed, then
    display a message �The fan is switched off�. If the
    selected number is more than 3 or a character was used
    rather than a number then the message �Please select
    between 0 and 3� will be displayed.
    8. On user selection of fan speed and head movement,
    display the Colour, Fan Speed, Air Speed and whether
    the Fan Head is moving or not.DO it however your teacher likes it.............

  • I am trying to use java  file as Model layer and jsf as presentation layer

    I am trying to use java file as Model layer and jsf as presentation layer and need some help
    I successfully get the value of h:outputText from java file by doing simple binding operation but I am facing problems when I am trying to fill h:dataTable
    I create java file
    package oracle.model;
    import java.sql.;*
    import java.util.;*
    *public class TableBean {*
    Connection con ;
    Statement ps;
    ResultSet rs;
    private List perInfoAll = new ArrayList();
    *public List getperInfoAll() {*
    perInfoAll.add(0,new perInfo("name","username","blablabla"));
    return perInfoAll;
    *public class perInfo {*
    String uname;
    String firstName;
    String lastName;
    *public perInfo(String firstName,String lastName,String uname) {*
    this.uname = uname;
    this.firstName = firstName;
    this.lastName = lastName;
    *public String getUname() {*
    return uname;
    *public String getFirstName() {*
    return firstName;
    *public String getLastName() {*
    return lastName;
    right click on the file and choose 'create data control'
    then i wrote the jsf file:
    *<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>*
    *<f:view>*
    *<h:dataTable id="dt1" value="#{bindings.perInfoAll}"*
    var="item" bgcolor="#F1F1F1" border="10"
    cellpadding="5" cellspacing="3" rows="4" width="50%"
    dir="LTR" frame="hsides" rules="all"
    *>*
    *<f:facet name="header">*
    *<h:outputText value="This is 'dataTable' demo" id="ot6"/>*
    *</f:facet>*
    *<h:column id="c2">*
    *<f:facet name="header">*
    *<h:outputText value="First Name" id="ot1"/>*
    *</f:facet>*
    *<h:outputText style="" value="#{item.firstName}"*
    id="ot2"/>
    *</h:column>*
    *<h:column id="c4">*
    *<f:facet name="header">*
    *<h:outputText value="Last Name" id="ot9"/>*
    *</f:facet>*
    *<h:outputText value="#{item.lastName}" id="ot8"/>*
    *</h:column>*
    *<h:column id="c3">*
    *<f:facet name="header">*
    *<h:outputText value="Username" id="ot7"/>*
    *</f:facet>*
    *<h:outputText value="#{item.uname}" id="ot4"/>*
    *</h:column>*
    *<f:facet name="footer">*
    *<h:outputText value="The End" id="ot3"/>*
    *</f:facet>*
    *</h:dataTable>*
    *</center>*
    *</af:document>*
    *</f:view>*
    but nothing is appear in my table
    I know that there is something wrong in calling the binding object
    I need help pls and where can i find some help to deal with another tag types
    thanks

    i dragged the "perInfoAll" from my "Data Controls" and choosed adf table (even I know that new table with adf tags well be generated and i want table with jsf tags)
    and this code is generated
    *<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"*
    *"http://www.w3.org/TR/html4/loose.dtd">*
    *<%@ page contentType="text/html;charset=UTF-8"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>*
    *<%@ taglib uri="http://xmlns.oracle.com/adf/faces/rich" prefix="af"%>*
    *<f:view>*
    *<af:document id="d1">*
    *<af:messages id="m1"/>*
    *<af:form id="f1">*
    *<af:table value="#{bindings.perInfoAll1.collectionModel}" var="row"*
    *rows="#{bindings.perInfoAll1.rangeSize}"*
    *emptyText="#{bindings.perInfoAll1.viewable ? 'No data to display.' : 'Access Denied.'}"*
    *fetchSize="#{bindings.perInfoAll1.rangeSize}"*
    *rowBandingInterval="0"*
    *selectionListener="#{bindings.perInfoAll1.collectionModel.makeCurrent}"*
    *rowSelection="multiple" id="t1">*
    *<af:column sortProperty="uname" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.uname.label}"*
    *id="c1">*
    *<af:inputText value="#{row.bindings.uname.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.uname.label}"*
    *required="#{bindings.perInfoAll1.hints.uname.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.uname.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.uname.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.uname.tooltip}"*
    *id="it3">*
    *<f:validator binding="#{row.bindings.uname.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="firstName" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.firstName.label}"*
    *id="c2">*
    *<af:inputText value="#{row.bindings.firstName.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.firstName.label}"*
    *required="#{bindings.perInfoAll1.hints.firstName.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.firstName.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.firstName.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.firstName.tooltip}"*
    *id="it2">*
    *<f:validator binding="#{row.bindings.firstName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="lastName" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.lastName.label}"*
    *id="c3">*
    *<af:inputText value="#{row.bindings.lastName.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.lastName.label}"*
    *required="#{bindings.perInfoAll1.hints.lastName.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.lastName.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.lastName.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.lastName.tooltip}"*
    *id="it1">*
    *<f:validator binding="#{row.bindings.lastName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *</af:table>*
    *</af:form>*
    *</af:document>*
    *</f:view>*
    but when run it i see the following errors
    *Class oracle.adf.model.adapter.bean.BeanDataControl can not access a member of class nl.amis.hrm.EmpManager with modifiers "private"*
    *Object EmpManager of type DataControl is not found.*
    *java.lang.NullPointerException*
    *Class oracle.adf.model.adapter.bean.BeanDataControl can not access a member of class nl.amis.hrm.EmpManager with modifiers "private"*
    *Object EmpManager of type DataControl is not found.*
    *java.lang.NullPointerException*
    :(

  • View Object to read data from a java file

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF-BC in my application.
    For one of my view objects , I want the data to be read from a java file which exposes some method to return a collection.
    I cannot use a static view object in this case.
    Please suggest the best way to implement this requirement.Basically build a view object that should read data from a java file.
    Thanks,
    Praveen

    Depending on your use case you can either use a programmatic VO or directly expose the JV class as a data control.
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_36/jdtut_11r2_36.html

  • Import statement in .java files and .jsp files

    Guys I have few mysteries about this import statement.
    Please correct me if I am wrong.
    1)Suppose if I have a folder c:\SourceFolder it has one.java and two.java files.If I compile one.java then one.class files is created in c:\ClassFolder .Now two.java uses one of the method of one.java,and without using import statement I am able to compile two.java, and two.class file is created in c:\ClassFolder.I assume that the path of one.class was taken from the CLASSPATH environment variable,hence I there was no need for import statement .........am i right ?
    BUT... in My.jsp,which is in C:\JspFolder, if I want to use one.class,then I have to specifically import the class I want to use.That is i have to say
    <%@page import="one"%>
    and since the classpath is C:\ClassFolder ,it finds one.class in the C:\ClassFolder.(Note that My.class is created in a folder different from c:\ClassFolder )
    But I am wondering why was there no need for me to import one.class in two.java.
    (Note I am using JDeveloper and Apache server)
    Please help.
    In this case the pSo I am wondering in JSP why it doesn't take the class I am looking for from the classpath .
    Help.

    You have to understand Java scoping rules. In the 1st scenario with the two Java files I am guessing neither one of them begins with a package statement. This means that they belong to the default package. When you compile the compiler uses the classpath to resolve method calls looking in the default package since there was no import statement specified in two.java. JSP is a little different. Now I just read this here in these forums a couple of days ago. Since the classfiles generated from the JSP files are not in the CLASSPATH they are loaded by a different classloader. This is why you have to import all references to all classes in the default package.

  • Import statement in .java files and .jsp files ..correction

    Guys I have few mysteries about this import statement.
    Please correct me if I am wrong.
    1)Suppose if I have a folder c:\SourceFolder it has one.java and two.java files.If I compile one.java then one.class files is created in c:\ClassFolder .Now two.java uses one of the method of one.java,and without using import statement in two.java I am able to compile two.java, and two.class file is created in c:\ClassFolder.I assume that the path of one.class was taken from the CLASSPATH environment variable,hence I there was no need for import statement .........am i right ?
    BUT... in My.jsp,which is in C:\JspFolder, if I want to use one.class,then I have to specifically import one.class in My.jsp .That is i have to say
    <%@page import="one"%>
    in My.jsp.
    and since the classpath is C:\ClassFolder ,it finds one.class in the C:\ClassFolder and MyJsp is compiled sucessfully.(Note that My.class is created in a folder different from c:\ClassFolder )
    But I am wondering why was there no need for me to import one.class in two.java.
    (Note I am using JDeveloper and Apache server)
    Please help.

    It has to do with packages. Most java classes are in a package, the name of which must conform to its place on the filesystem relative to the classpath. By that I mean that if you have com.mystuff.One.java, it must be in a folder com/mystuff where com is located somewhere in the classpath.
    What you've done is a little different. I'm assuming a couple of things:
    1. you have no package declaration at the top of one.java or two.java
    2. you have the current directory "." in your classpath.
    Java has the concept of the "default package", which covers classes without a declared package, and in your case is the current directory.
    So when you're in c:\sourcefolder and run the compiler, then "."="c:\sourcefolder", and that directory is part of the default package. No import statements are necessary for classes that are in the same package. This is why two.java can call methods in one.java without an import statement.
    When you run your jsp, the "current directory" part of your classpath is not c:\sourcefolder, but some other value (probably the directory you start your jsp engine from) You will have to import all non-java-library classes because the jsp itself becomes a java class, with a package that is determined by the jsp engine.

  • Can not see the design view nor the java file in CentOS

    Hi all. I've recently installed JSC2 in CentOS. I find this tool really useful. But I have a problem with the design view and the java file view. At the beginning, when I first create a Page1.jsp, I can see the design view and the java view with no problem. I run apps correctly. But after a while, I get a "null pointer exception" error and I am able to see only the jsp view, not the others. I don't even have the option to see the Design and Java views. And the page icon in the project window appears to be darker than a well working page. I'm not really sure what sequence of actions I do to get this error, it just suddenly happens. What I've done so far in JSC2 is to link to pages in the Page Navigation view. It works fine for a while, but after a while I get the error I've described.

    Yes, if I do that It happens the same. I've tried everything. Now I'm using Window$ 2000 and it works properly. Thanks anyway.

  • How do I include a JAVA file in my website  using DreamweaverCC ?

    Hi.  I searched the forums and it seems that all questions relating to JAVA and Dreamweaver elicit zero replies.
    I hope that someone has some direction.  Thanks again.
    I have a JAVA file that I want to include or have run within one of my pages in my WebSite.
    file > new > create > and there is not an option for JAVA but there is one for PHP etc. etc.
    How do I incorporate a java script into my Web Site ?
    I thought that I could just copy the code into the file here - at least to begin with  - but JAVA  runs in the background.
    I am lost
    conceptually
    and I do not know how to go about this task
    structurally.
    Thanks again,
    Regina

    JQuery is a core JavaScript library used by millions of web sites.  It's the "do more & write less code framework."  If you're into re-inventing the wheel every time you need an advanced feature (plugin), feel free to manually code it yourself with JavaScript.  However, you'll need to test & debug your scripts in every conceivable browser and OS before you can be sure it's viable for use on a production site.
    On the other hand, you could use a plugin and be up & running in 5 minutes or less. See the code below.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5, with Fancybox2 Viewer</title>
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!--LATEST JQUERY CORE LIBRARY-->
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <!--FANCYBOX plugins-->
    <link href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.css" rel="stylesheet" media="screen">
    <script src="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js"></script>
    <style>
    body {
        background: silver;
        font-family:Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
    #wrapper {
        width: 1000px; margin:0 auto;
        background:#FFF;
    /**this styles image container**/
    #thumbs p {
        float: left;
        width: 180px;
        height: 12.5em;
        margin: 10px 22px 0 22px; /**space between containers**/
        padding: 10px; /**space around containers**/
        border: 1px solid silver;
        /**rounded borders**/
        -moz-border-radius: 20px;
        -webkit-border-radius: 20px;
        border-radius: 20px;
        /**this styles caption text**/
        font: italic 14px/1.5 Geneva, Arial, Helvetica, sans-serif;
        color: #666;
        text-align: center;
    /**recommend using same size images**/
    #thumbs img {
        width: 160px; /**adjust width to thumbnail**/
        height: 120px; /**adjust height to thumbnail**/
        margin-bottom: 1.5em;
        opacity: 0.75;
    #thumbs img:hover { opacity: 1.0 }
    /**float clearing**/
    #thumbs:after {
        content: ".";
        clear: left;
        font-size: 0px;
        line-height: 0;
        display: block;
        visibility: hidden;
    </style>
    </head>
    <body>
    <div id="wrapper">
    <h1><a href="http://fancyapps.com/fancybox/">Fancybox2</a> Viewer with images</h1>
    <!--insert thumbnails with links to full size images below-->
    <div id="thumbs">
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 1" /></a> <br />
    Caption 1 </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 2" /></a> <br />
    Caption 2 </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 3" /></a> <br />
    Caption 3 </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 4" /></a> <br />
    Caption 4 </p>
    <!--end thumbs--></div>
    <!--end wrapper--></div>
    <!--FancyBox function code-->
    <script>
    $(document).ready(function() {
        $('.fancybox').fancybox();
    </script>
    </body>
    </html>
    Nancy O.

  • Problem - Scanner.java file not found

    Hello all, I've been having a problem with a Java installation on windows vista. I've installed both the Java 2 1.4.2_16 sdk, and the Java EE 5 update 3 sdk. However, neither install contains the Scanner.java file... On my desktop running XP, this is not the case. I've tried reinstalling but to no avail. My classpath is set correctly because my programs compile that import java.util.*; But when I create a scanner object I get the dreaded can't resolve symbol error, but only when I compile under vista... Any suggestions? Thanks in advance :)

    Scanner was implemented beginning with v1.5x, and comes in the JDK SE, not the EE.

Maybe you are looking for