JDev 10.1.2 ADF UIX - Help required in wrinting java code

Ok here is wher iam stuck.
I have used a method which is used to run search form.
That is the field name to be searched and the value is sent into this method.
The uix page is a master detail page.
So from the UIX page the user selects the field and the value, which is then sent to the customised method of mine.
The method code is as given below.
public final void setCourseRegistrationSearch(String p_field, String p_value)
ViewObject REGDETAILVO=findViewObject("RegistrationDetailView4");
ViewObject REGMASTERVO=findViewObject("RegistrationMasterView1");
if (p_value.equalsIgnoreCase(""))
String whereclause="1=1";
REGDETAILVO.setWhereClause(whereclause);
REGDETAILVO.executeQuery();
else
if( (p_field.equalsIgnoreCase("mod_name")))
String whereclause="reg_master_id in
(select reg_master_id from registration_detail where "
p_field"LIKE '%"+p_value+"%')";
REGMASTERVO.setWhereClause(whereclause);
REGMASTERVO.executeQuery();
if((p_field.equalsIgnoreCase("bt_description")))
String whereclause= "reg_master_id in
(select reg_master_id from registration_detail where bt_id in
(select bt_id from batch_timing where"
p_field" LIKE '%"+p_value+"%'))";
REGMASTERVO.setWhereClause(whereclause);;
REGMASTERVO.executeQuery();
Now when I use the first if statement where mod_name is filtered it works fine.
When I use the second option for bt_description its doesn't work.
The error i get is an oracle error which says missing right parenthesis.
So I checked through the debugger for the whereclause String.
There I found that the string gets trimmed to...
(select reg_master_id from registration_detail where bt_id in
(select bt_id from b
hence the error.
Could someone tell me why this is happening? Is there a workaround method for this?
Would be of great help.
Regards,
Vineet

Solved it!! :-)
In the UIX page I check for the proxy in the event result, if it is there I take it, otherwise I take it from bindingcontext. Is this the right way to do it? Here is the UIX code:
                        <hGrid id="pptoHGrid" alternateText="No items were found"
                               treeData="${bindings.bindingContext['tree']}">
                          <boundAttribute name="proxy">
                            <if>
                              <comparison type="equals">
                                <null/>
                                <dataObject default="${uix.eventResult.hGridProxy}"/>
                              </comparison>
                              <dataObject default="${bindings.bindingContext['hGridProxy']}"/>
                              <dataObject default="${uix.eventResult.hGridProxy}"/>
                            </if>
                          </boundAttribute>Greets,
Fernando

Similar Messages

  • Help required in compiling Java Code.

    I have java1.6 installed on my PC but I want to compile my code in such a way that
    it will run on PCs with lower versions of java installed.
    I am not using any feature specific to java1.6 in my program.
    I am using Netbeans IDE 6.1
    Thanks in advance.

    calypso wrote:
    Im not 100% sure of this but I would of thought a program will compile on any version of java as long as you dont use classes that are exclusive to higher version of java
    for example i would think if you comiled the helloworld tutorial on v.1.6 it will run on computers with lower versions.
    However a program which uses the scanner class (i think exclusive to 1.6 or 1.5 not sure though) will not run on say 1.2
    CalypsoIve tested to run an complied class(version 1.6) on an computer with jre 1.5 installed(before), and it doesnt work. Dont remember precisly the error but it didnt run atleast.

  • How doest jdk docs help as in writing java code?

    hi i wonder how does jdk docs help as in writing java code because if i google a java code the jdk docs always becomes the result of my search but in my experience jdk docs never helps me.
    is there any one know how to use jdk docs? and how to get the code from there.
    im telling about jdk docs from here http://download.oracle.com/javase/1.4.2/docs/api/
    cross posted from http://www.thenewboston.com/forum/viewtopic.php?f=119&t=13778
    Edited by: 871484 on Jul 18, 2011 4:18 PM

    871484 wrote:
    ok can any one give me example how to use jdk docs? for example this code
    Your question still does not make any sense, and you still haven't clarified what you're not understanding.
    However, if you think that just by reading the API docs, with no other training or study, that you will be able to write that code, then you are seriously misunderstanding the purpose of the docs.
    Obviously English is not your native language. You grew up speaking some other language at home and with your friends, and at some point in school or as private study, you started to learn English. You learned about the grammar and the alphabet and pronunciation, sentence structure, word order, etc. Now you have the basics of how the language works, and you know some words. When you want to learn new words to fit into the structure you have learned, you use a dictionary.
    If you didn't study the grammar, sentence structure, etc., and just said, "I want to learn English. I will look at a dicationary," clearly that would not work.
    Right?
    So, since you now understand and agree with the English example, let me state something that I hope is obvious to you by now: The API docs are your dictionary. They are not a substitute for learning the language basics.
    Furthermore, once you know the language basics in English and have your dictionary, you still won't know how to write a resume (which you may know as a CV). You will look at examples and perhaps take a course on resume (CV) writing. Just reading a dictionary won't help you write a resume(CV). Similarly, if you know some Java basics, you can't learn how to write a Swing app just by reading the Javadocs. You'll look at tutorials and examples. Then, once you know the basic structure of a Swing app, you'll look to the javadocs for more details about more kinds of GUI classes--different buttons and windows and panes and panels and layout managers, etc.

  • JDev 10.1.2 / ADF UIX: Approach to render data in levels/groups

    Hi guys, I'm looking for ideas on how to use ADF (UIX and BO) to render (and let the user work with) a structure of 3 tables which have a parent->child->child-of-the-child relationship.
    The need is to show a table with the parent in one row and below of it all its children and below of each children its own children. Also, the lowest level rows have numeric data which have to be summarized by the parent and so on upwards; and the lowest level rows should be selectable for edition in another page, and after edition return to the table.
    Is the recommended approach to use the hGrid to do this?
    Or should I use plain JSP and customized tags to achieve this (for easiness)?
    Are there any other options?

    Solved it!! :-)
    In the UIX page I check for the proxy in the event result, if it is there I take it, otherwise I take it from bindingcontext. Is this the right way to do it? Here is the UIX code:
                            <hGrid id="pptoHGrid" alternateText="No items were found"
                                   treeData="${bindings.bindingContext['tree']}">
                              <boundAttribute name="proxy">
                                <if>
                                  <comparison type="equals">
                                    <null/>
                                    <dataObject default="${uix.eventResult.hGridProxy}"/>
                                  </comparison>
                                  <dataObject default="${bindings.bindingContext['hGridProxy']}"/>
                                  <dataObject default="${uix.eventResult.hGridProxy}"/>
                                </if>
                              </boundAttribute>Greets,
    Fernando

  • ADF Faces: Making a selectOneChoice in java code?

    I need to make a selectOneChoice to reuse in my pages (country selection) but can't seem to find how to do it on the web?
    here is what i've attempted with the error output...
    -------------------- the java code:
    public void contextInitialized(ServletContextEvent event)
    ServletContext servletContext = event.getServletContext();
    Utils.log(servletContext, "Initializing Supply Chain Management System...");
    // intitilize selectOne component
    CoreSelectOneChoice countrySelectOne = new CoreSelectOneChoice();
    List countrySelectItems = new ArrayList();
    CountryCoordinator countryCoordinator = new CountryCoordinator();
    try
    List all = countryCoordinator.getAllCountries();
    Iterator i = all.iterator();
    for(;i.hasNext();)
    Object object = i.next();
    CoreSelectItem item = new CoreSelectItem();
    item.setValue((Country)object);
    item.setLabel(((Country)object).getCountry_name());
    countrySelectItems.add(item);
    // place the list of select items into the selectOne component
    countrySelectOne.setValue(countrySelectItems);
    servletContext.setAttribute("countrySelectOne", countrySelectOne);
    Utils.log(servletContext, "Initializing Countries [SUCCESS]");
    } catch(Exception e)
    Utils.log(servletContext, "Initializing Countries [FAILED]");
    Utils.log(servletContext, "Initialization complete...");
    ------------------------------ the JSP:
    <af:selectOneChoice label="#{bundle.ADDRESS_COUNTRY}:" required="#{region_entity_address.required_entity_address_country}" binding="#{applicationScope.countrySelectOne}"/>
    ------------------------------ the error:
    15:36:48,984 INFO [STDOUT] Sep 16, 2005 3:36:48 PM oracle.adfinternal.view.face
    s.renderkit.core.xhtml.SimpleSelectOneRenderer _getSelectedIndex
    WARNING: Could not find selected item matching value "CoreSelectItem[UINodeFaces
    Bean, id=null]" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=_id30]
    ....

    That's right. JSF produces such IDs. They are causing problems with JAAS login forms, so we should use plain JSPs for login, but for the rest of the tasks such IDs are okay.
    What I meant is that currenty the buttons are not rendered as
    <input type="button" ... />but as pictures embedded in hyperlinks (&lt;a>).
    It's possible, though not likely, that in some future version of ADF Faces some component will be rendered as an HTML element that doesn't support tab ordering (although I haven't really considered if there are such elements). Then the trick with manually setting the tabIndex of the parent HTML element won't work.
    Of course, I deeply appreciate the fact that you take the time to help us on this forum. In fact, I will go ahead and do just that -- I will dynamically set the tabIndex via JavaScript. I was simply wanting to make sure that I wasn't taking such a hack-like approach, if there was a better method.
    Thank you again.
    Best regards,
    Bisser

  • Who can help me write this Java code show the prime number ???? PLEASEEEEEE

    Write java code print prime number like this
    Sample Screen Print:
    Initial matrix with N = 37
    2 3 4 5 6 7 8 9 10
    11 12 13 14 15 16 17 18 19 20
    21 22 23 24 25 26 27 28 29 30
    31 32 33 34 35 36 37
    Intermediate results (after 1st iteration)
    2 3 5 7 9
    11 13 15 17 19
    21 23 25 27 29
    31 33 35 37
    Intermediate results (after 2nd iteration)
    2 3 5 7
    11 13 17 19
    23 25 29
    31 35 37
    Intermediate results (after 7th iteration)
    2 3 5 7
    11 13 17 19
    23 29
    31 37
    Final results
    2 3 5 7 11 13 17 19 23 29
    31 37
    How to write this code ?
    Please Help me!
    Thank you so muchhh ?????

    h2. {color:#ff0000}Multiplepost{color}
    Replies here: http://forum.java.sun.com/thread.jspa?threadID=5241012&tstart=0
    There is a useful answer the original thread. Answer it, or ignore it as you like, but don't create multiple threads.

  • Download file from URL using ADF (urgent help required)

    We have the following requirement:
    On clicking a button we need to download the file present at a particular location(we have the URL).
    I have written the following in .jspx file :
    <af:commandButton  id="btn1" >
                        <af:fileDownloadActionListener contentType="text/plain; charset=utf-8" method="#{bean.getFile}"/>
    </af:commandButton>
    The corresponding method in bean is :
    public void getFile(FacesContext facesContext, OutputStream outputStream) {
    HttpServletResponse response = null;
    ServletOutputStream ouputStream = null;
    currUrl = getFileURL("ID", 281);
    response =
    (HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();
    try {
    ouputStream = response.getOutputStream();
    ouputStream.write(this.getFileBytes(), 0,this.getFileBytes().length);
    ouputStream.flush();
    ouputStream.close();
    } catch (IOException ioe) {
    System.out.println("IO Exception");
    public byte[] getFileBytes() {
    URLConnection urlConn = null;
    InputStream iStream = null;
    URL url;
    byte[] buf;
    int byteRead;
    try {
    url= new URL("http://hjhj:34104/test.pdf");
    urlConn = url.openConnection();
    iStream = urlConn.getInputStream();
    buf = new byte[5000000];
    byteRead = iStream.read(buf);
    if (byteRead > 0) {
    System.out.println("Downloaded Successfully.");
    return buf;
    } catch (FileNotFoundException fnfe) {
    System.out.println("File not found Exception");
    fnfe.printStackTrace();
    } catch (Exception e) {
    System.out.println("Exception:" + e.getMessage());
    e.printStackTrace();
    } finally {
    try {
    iStream.close();
    } catch (IOException e) {
    System.out.println("IO Exception");
    e.printStackTrace();
    System.out.println("File");
    return null;
    The file is opening in same window but in some encrypted format. My requirement is to :
    1. Have a pop (as in Mozilla or IE) which asks if I want to save the file or open.
    2. Depending on that the file should be opened in pdf format and not in browser same window neither in browser tab.

    Jdev version : 11.1.2.1.0
    in .jspx file : we have a button. On clicking the button file from URL should be downloaded. I have used fileDownloadActionListener in commandButton. Corresponding code :
    <af:commandButton  id="btn1" >
                        <af:fileDownloadActionListener contentType="text/plain; charset=utf-8" method="#{bean.getFile}"/>
    </af:commandButton>
    in bean class : the method corresponding to fileDownloadActionListener is :
    public void getFile(FacesContext facesContext, OutputStream outputStream) {
         HttpServletResponse response = null;
         ServletOutputStream ouputStream = null;
         response =(HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();
         try {
              ouputStream = response.getOutputStream();
              ouputStream.write(this.getFileBytes(), 0,this.getFileBytes().length);
              ouputStream.flush();
              ouputStream.close();
              } catch (IOException ioe) {
                   System.out.println("IO Exception");
    public byte[] getFileBytes() {
         URLConnection urlConn = null;
         InputStream iStream = null;
         URL url;
         byte[] buf;
         int byteRead;
         try {
              url= new URL("http://hjhj:34104/test");
              urlConn = url.openConnection();
              iStream = urlConn.getInputStream();
              buf = new byte[5000000];
              byteRead = iStream.read(buf);
              if (byteRead > 0) {
                   System.out.println("Downloaded Successfully.");
              return buf;   
        } catch (FileNotFoundException fnfe) {
              System.out.println("File not found Exception");
         } catch (Exception e) {
              System.out.println("IO Exception");
    The URL given in the code is for a file which can be a PDF file or an EXCEL file.
    My requirement is when i click the button:
    1. A pop should come (as in Mozilla or IE) which asks if I want to save the file or open.
    2. if i click on save file should save in a particular location.
    3. if i click on open it should open as PDF/EXCEL format and NOT in browser.
    Message was edited by: 1001638

  • Urgent help required to write the code in  update routine

    Hi all,
    i want to calculate open purchase order qty in update routine
    formula is
    open purchase order qty = scl qty - rec qty
    where schd line date is less then or equal to 90 days from the current date.
    I have written one code : but its giving error that comm_structure is not defined in abap dictionary,can any body help to write appropriate routine. this calculation i am making for MM, and data source and cube are 2lis_02_scl and cube is zc_pur01 ( made by coping the 0pur_c01), data source scl has all fields required in the foumula...here is my code
    DATA:  COMM_STRUCTURE LIKE  /BIC/CS2LIS_02_SCL.
    DATA: SCL_QTY LIKE COMM_STRUCTURE-/BIC/ZK_SCLQTY.
    DATA:      GR_QTY LIKE COMM_STRUCTURE -/BIC/ZK_GRQTY.
    DATA: SCL_DATE.
    SCL_DATE = SY-DATUM + 90.
    SELECT COMM_STRUCTURE -/BIC/ ZK_SCLQTY COMM_STRUCTURE -/BIC/ ZK_GRQTY FROM
    /BIC/CS2LIS_02_SCL INTO   SCL_QTY     GR_QTY  
    WHERE
    COMM_STRUCTURE -/0SCHED_DATE LE SCL_DATE.
    IF SYSUBRC  = 0
    RESULT = SCL_QTY - GR_QTY.
    ELSE = NOVALUE.
    ENDIF.
    Can any body help me soon its very urgent.
    thanks

    Hi Anupam,
    I am not a very good ABAP Programmer, but found some things to notify u inyour code..
    DATA: COMM_STRUCTURE LIKE /BIC/CS2LIS_02_SCL,
          SCL_QTY LIKE COMM_STRUCTURE-/BIC/ZK_SCLQTY,
          GR_QTY LIKE COMM_STRUCTURE -/BIC/ZK_GRQTY.
    DATA  SCL_DATE LIKE SY-DATUM.
    SCL_DATE = SY-DATUM + 90.
    SELECT COMM_STRUCTURE -/BIC/ ZK_SCLQTY COMM_STRUCTURE -/BIC/ ZK_GRQTY FROM
    /BIC/CS2LIS_02_SCL INTO SCL_QTY GR_QTY
    WHERE
    COMM_STRUCTURE -/0SCHED_DATE LE SCL_DATE.
    IF SYSUBRC = 0
    RESULT = SCL_QTY - GR_QTY.
    ELSE.
    What should be the return value if you dont have to    calculate the result."
    ENDIF.
    try it.. and see..
    regards,
    kishore.

  • Help required - running a Java program from the command line

    Hi,
    I have a small non-graphical Java application, packaged into a Jar file. My program relies on classes in another (external) Jar file.
    When I run the application from the IDE, everything works fine. However, when I try to run the application from the command line, I keep getting a NoClassDefFoundError for classes in the external jar.
    Both the application jar file and the external jar file are in my root directory (C:\).
    My command line call is as follows:
    java -cp c:MyExternalLib.jar -jar MyApp.jar
    Any help greatly appreciated.
    Thanks,
    Walter

    hi,
    set classpath=%classpath%;c:\myjar.jar;
    here i have specified myjar.jar file as an example u give ur location.after setting the classpath run ur java application.
    java mypgm
    this will solve ur problem
    regards,
    Ganesh

  • Help required!! Java WebService

    Hello everyone.
    I'm working in JAVA making a WebService using Netbeans IDE. The purpose of webservice is to call an API of another application to do some work. Now that application is installed in another server not on my local system. I am provided with a class file (input.class) to access that JAVA API of application.
    Now my problem starts here that i downloaded that class file in my local system but i don't have that whole application. So i developed my webservice included that class too and build my webservice without any problem. Now when i deployed webservice at the server and tested it gives some errors.
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: input
    com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:371)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:452)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:633)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    I googled and found out to be classpath problem, but i set classpath too the same path from where i downloaded that class in application folder. but still its giving the same error. can anybody help me in this. ???????

    Bottom line is that it cannot find your input.class. You need to make sure that whatever package that class has is in the same package as you place it.
    So if the input.class was compiled with a package of com.mydomain.myproject, you need to put it in that folder structure.

  • Help required in endeca java application

    Hi,
    I am creating a java application of the endeca wine application. I am able to display the results but facing issue in creating the product links for individual products which we redirect me to the product detail page. How will the string query created append the R parameter to the query?
    Pls let me know.
    Thanks,
    Vineet

    There multiple ways you can do this
    1. As you mentioned using R (Record Query) - where you should pass the endeca record ID, not the product ID for this to work
    2. if you have unique product ids, you can use ntk param to look at only ID property and set ntt value as product id
    hope this helps.
    Ram

  • Help Required with Enterprise Java Trainings

    Conference and Workshop on Java Enterprise, Agile, JDK, Mobile, Spring, BPEL, EJB 3, Eclipse, Java EE, Cloud Computing and more..
    If you work on Java there�s no way you can afford to miss the Daring Java Conference @ Developer Summit 2008, being held May 22-23 in Bangalore. And there�s no reason to either. The first-of-its-kind conference offers the ultimate value of leading-edge skills and luminary speakers from the works over. From frameworks and middleware technologies to Open Source Java, Java Mobile, and real time technologies, you will come back to work more productive and valuable to your company. So if you�re keen on taking your knowledge and your capabilities beyond mere industry standards, you know where you need to be!
    To know more about the benefits and the registration procedure visit the summit on the Web *http://developersummit.com/conference.html#jav [http://developersummit.com/conference.html#java] a*.
    On May 23 2008, Java technology transitions into teenage years. Celebrate this achievement at the �Java Teenage Party� on the evening May 23, which will conclude the Daring Java conference.
    You will not find talks of this caliber at other events. Some very good speakers are already lined up (*http://developersummit.com/speakers.htm [http://developersummit.com/speakers.html] l*)
    �     The Future of Enterprise Java by Jim Farley
    �     Building Java-based Cloud Architectures by Amazon's Jinesh Varia
    �     Using Persistent Java Objects in Multiple Tiers by Craig Russell
    �     Enterprise Mashups Using Java by Greg Murray
    �     Java Performance Tooling by Holly Cummins
    �     Beginning Drools - Rule Engines in Java by Brian Sam-Bodden
    �     Develop Secured Ajax Applications by Olivier Poupeney
    �     Leveraging Open Source in Java EE Projects by Peter Thomas
    �     Web Services Development in Java without JEE by Sanjaya Karunasena
    �     Ajax and Comet: Implementing the Real-Time Web by Alessandro Alinone
    �     EJB 3 Java Persistence API in Action by Deb Panda
    The workshops include:
    �     Workshop: Rich Internet Applications with Flex and Java
    �     Workshop: Master Class: The Elements of User Experience
    �     Workshop: SQL Server 2008 Deep Dive
    �     Workshop: Java Data Objects Tutorial
    �     Workshop: Wicket, Spring and Hibernate: Putting It all Together
    �     Workshop: Harnessing Domain-Specific Languages (DSLs)
    �     Workshop: Parachuting Into Brownfields
    �     Workshop: Acceptance Test-Driven Development
    You can register online: *http://developersummit.com/registration.htm [http://developersummit.com/registration.html] l*
    Thanks,
    #3/18, Corporation Buildiing, Residency Road, Bangalore - 560 025
    ph +91 80 4005 1000 Fax: +91 80 2221 0148 Email: *[email protected] [[email protected]] m*
    Conference venue: J N Tata Auditorium IIsc, Bangalore- 560025

    People, Do register

  • Can anybody help me produce a Java code??? HELP GREATLY APPRECIATED!!!

    This is the goal:
    Write a program that produces block letters for the following letters which could be read into your program: A, B, C, E, F, G, H, I, L, O, P, T, or U.
    The user should input ONE letter from the keyboard. The user should also input a width as an integer to determine the width of the letters. This input should be at least 5 and up to 20; if the user enters less than 5 or more than 20, issue an error message for the user and quit the program.
    Replies are gratly appreciated!!!

    jk89computer wrote:
    To add to my original topic,
    My question is can anybody produce a java program that can do the following:
    Write a program that produces block letters for the following letters which could be read into your program: A, B, C, E, F, G, H, I, L, O, P, T, or U.
    The user should input ONE letter from the keyboard. The user should also input a width as an integer to determine the width of the letters. This input should be at least 5 and up to 20; if the user enters less than 5 or more than 20, issue an error message for the user and quit the program.
    For example, the letter A would be formed by:
    * *Thank you for adding more complete requirements for us to do your homework for you. We'll get right on that. Donuts are on the table, help yourself to them while you wait.

  • Help AVL Tree in JAVA code (remove) question-answer

    Hi,
    everyone. I have question.
    I want codes in Java for AVL Tree.
    I but must have remove methods or choose elements.
    It`s main for me.
    If you know, please write in code JAVA or contact e-mail.
    or link to page or if you have self code.
    thanks,
    regards
    [email protected]

    I have a better idea.
    Why don't you try to do it yourself, and when you get stuck, post your code and details of what difficulty you're having.
    When you post code, please use[code] and [/code] tags as described in Formatting tips on the message entry page. It makes it much easier to read.

  • Please help me whit this java code

    Hi!
    I have a litle problem whit this question:
    I try to write a program about Salary. The user writes(puts in from keyboard)
    the workers name, hourePayment and hour(how many hours He has worked).
    The program must compute first week ,second week....fourth week
    The user writes just one time name and hourPayment,
    but he must write hours(total hours he has worked)
    for every week(may be ha has worked 30 hours first week and 40 hours second week.....).
    when the user puts in zero the program stops(while(hour!=0)).
    I wrote the program but I have problem whit
    Test class when the program computes first ,second and...weeks, and if the user don not put in zero the program must compute another persons salary
    we should give new name new houre payement....
    how do I use the same information for second person and computes his salary.
    class Salary{
    private String name;
    private double hourPayment;
    public Salary (String name, double hourPayment, ..){
    this.name= name;
    this.hourPayment=hourPayment;
    public String getNamn(){
    return name;}
    public double getHourPayment(){
    return hourPayment;
    public double compute(int time){
    if(time<=40){
    normalSalary =(hourPayment*time);}
    else if(time>40){
    ....=(((40*hourPayment)+(time-40)*(3/2)*hourPayment));
    else if(timmar>70){
    System.out.println("WARRNING:"+" "+"You have worked more than 30

    The code you wrote only computes one week's salary. You need to wrap that inside loops that collect names, rates and hours. Here's some pseudocode to get you started:
    get name
    while name NOT ""
        get rate
        for i = 1 to 4
            get hours worked
            compute pay // this is the part you've coded
        next i
        get name
    end while

Maybe you are looking for

  • Network shared folders appear as 'sharepoint'

    Hello I have 1 iMac and 2 windows 7 computers on my local small office network. From the Mac I can see and access all shares on one PC, on the other, when I access via finder, the shared folders appear as 'sharepoint' and I cannot see any sub folders

  • Display won't go to sleep / screen saver won't turn on

    Since upgrading to Snow Leopard instead of the screen saver activating or the screen going to sleep when inactive, the screen goes dark for about a second and then flashes back on. It's resulted in images being burned into my screen a couple of times

  • Usage Tracking Setting error

    Hi Experts, I'm trying to set Usage Tracking in BIEE11.1.1.6, I met with some problem and need your help. I built the S_NQ_ACCT table in a seperated DB other than the one where repository metadata was. I imported the table into my repository and conf

  • How would you react to this?

    Might not be a bad idea to show your director the cost savings of having you do the upgrade versus a consultant. Since you did the upgrade from 2003 to 2010, I'd be curious whether or not Exchange was considered mission critical then. I think you're

  • How do we know currently active call time in 6680?

    How do we know currently active call time? Whenever we receive or make a call, how can we know the call duration in Nokia 6680?