Still stuck with report problem

Hi guys,
As you said i downloaded crystal report and ireport.I tried to connect my database to ireport.i got it.i can view my report .but now i dont know how to call the jxrml file from jsp.i googled alot but couldnot find anything suitable for a jsp beginner.Please help me to solve this.I am in a dead end.

In your example you selected the pair with the greatest
distance from the first set, and the pair with the least
distance from the second. I don't see how the distance
function was used.
Also it's not clear to me that there is always a solution,
and, if there is, whether consistently choosing the
furthest or the closest pairs will always work.
The most obvious approach is to systematically try
all possibilities until the answer is reached, or there
are no possibilities left. This means backtracking whenever
a point is reached where you cannot continue. In this case
backtrack one step and try another possibility at this
step. After all possible choices of the previous step,
backtrack one more step and so on.
This seems rather involved, and it probably is.
Interestingly, if you know Prolog, it is ridiculously
easy because Prolog does all the backtracking for you.
In Java, you can implement the algorithm in much the same
way as Prolog implementations do it--keep a list of all the
choice points and work through them until success or there
are none left.
If you do know Prolog, you could generate lots of random
problems and see if there is always a solution.

Similar Messages

  • HT2204 I have recently immigrated to the US but my apple ID is still stuck with my previous country. How do I change the country? Preferably without using a credit card

    I have recently immigrated to the US but my apple ID is still stuck with my previous country. How do I change the country? Preferably without using a credit cardI've only been here in the US 2 months and still have no US credit card.

    Your credit or debit card credentials must be associated with the same country where you reside.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article

  • Still stuck with the same old producer consumer weight problem need help

    Hello All,
    This is the problem I am stuck with right now.
    I have two array lists one producer array list and one consumer array list denoted by a and b
    P1 P2 P3 P4 P5
    5 6 7 8 9
    C1 C2 C3 C4 C5
    2 3 4 5 6
    Now we find all those producer consumer pairs which satisfy the criteria Pi>=Ci
    We have the following sets
    (5,2)(6,2)(7,2),(8,2),(9,2)
    (5,3)(6,3)(7,3),(8,3),(9,3)
    (5,4)(6,4)(7,4),(8,4),(9,4)
    (5,5)(6,5)(7,5),(8,5),(9,5)
    (6,6)(7,6)(8,6),(9,6)
    Let us done each of them with Si
    so we have S1,S2,S3,S4,S5
    we assign a third parameter called weight to each element in Si which has satisfied the condition Pi>=Ci;
    so we we will have
    (5,2,ai),(6,2,bi),(7,2,ci)....etc for S1
    similarly for S2 and so on.
    We need to find in each set Si the the pair which has the smallest weight.
    if we have (5,2,3) and (6,2,4) then 5,2,3 should be chosen.We should make sure that there is only one pair in every set which is finally chosen on the basis of weight.
    Suppose we get a pair (5,2,3) in S1 and (5,2,3) in S2 we should see that (5,2,3) is not used to compare to compare with any other elements in the same set S2,
    Finally we should arrive at the best element pair in each set.They should be non repeating in other sets.
    Given a problem
    P0 P1 P2 P3 P4
    9 5 2 2 8
    6 5 4 5 3
    C0 C1 C2 C3 C4
    we have So as (P0,C0) and (P4,C0)
    assuming that the one with the smaller index has lesser weight PO is selected.In the program I have used random weights.from set S1 we select the pair PO,CO
    S1 =(P0,C1),(P1,C1) and (P4,C1)
    since P0 and P4 are already used in previous set we dont use them for checking in S1 so we have (P1,C1) as best.
    S2=(P0,C2),(P1,C2) and (P4,C2) so we dont use P0,C2 and P1 and C2 because PO and P1 are already used in S1.
    So we choose P4,C2
    in S3 and S4 ae have (P0,C3),(P1,C3),(P4,C3) so we dont choose anything
    and same in S4 also.
    So answer is
    (P0,C0),(P1,C1) and (P4,C2).
    My program is trying to assign weights and I am trying to print the weights along with the sets.It doesnt work fine.I need help to write this program to do this.
    Thanks.
    Regards.
    NP
    What I have tried till now.
    I have one more question could you help me with this.
    I have an array list of this form.
    package mypackage1;
    import java.util.*;
    public class DD
    private  int P;
    private  int C;
    private int weight;
    public void set_p(int P1)
    P=P1;
    public void set_c(int C1)
    C=C1;
    public void set_weight(int W1)
    weight=W1;
    public int get_p()
    return P;
    public int get_c()
    return C;
    public int get_x()
    return weight;
    public static void main(String args[])
    ArrayList a=new ArrayList();
    ArrayList min_weights_int=new ArrayList();
    ArrayList rows=new ArrayList();
    ArrayList temp=new ArrayList();
    Hashtable h=new Hashtable();
    String v;
    int o=0;
    DD[] d=new DD[5];
    for(int i=0;i<4;i++)
    d=new DD();
    for(int i=0;i<4;i++)
    d[i].set_p(((int)(StrictMath.random()*10 + 1)));
    d[i].set_c((int)(StrictMath.random()*10 + 1));
    d[i].set_weight(0);
    System.out.println("Producers");
    for(int i=0;i<4;i++)
    System.out.println(d[i].get_p());
    System.out.println("Consumers");
    for(int i=0;i<4;i++)
    System.out.println(d[i].get_c());
    System.out.println("Weights");
    for(int i=0;i<4;i++)
    System.out.println(d[i].get_x());
    for(int i=0;i<4;i++ )
    int bi =d[i].get_c();
    ArrayList row=new ArrayList();
    for(int j=0;j<4;j++)
    if( d[j].get_p() >=bi)
    d[j].set_weight((int)(StrictMath.random()*10 + 1));
    row.add("(" + bi + "," + d[j].get_p() + "," +d[j].get_x() + ")");
    else
    d[j].set_weight(0);
    row.add("null");
    rows.add(row);
    System.out.println(rows);
    int f=0;
    for(Iterator p=rows.iterator();p.hasNext();)
    temp=(ArrayList)p.next();
    String S="S" +f;
    h.put(S,temp);
    String tt=new String();
    for(int j=0;j<4;j++)
    if(temp.get(j).toString() !="null")
    // System.out.println("In if loop");
    //System.out.println(temp.get(j).toString());
    String l=temp.get(j).toString();
    System.out.println(l);
    //System.out.println("Comma matches" + l.lastIndexOf(","));
    //System.out.println(min_weights);
    f++;
    for(Enumeration e=h.keys();e.hasMoreElements();)
    //System.out.println("I am here");
    int ii=0;
    int smallest=0;
    String key=(String)e.nextElement();
    System.out.println("key=" + key);
    temp=(ArrayList)h.get(key);
    System.out.println("Array List" + temp);
    for( int j=0;j<4;j++)
    String l=(temp.get(j).toString());
    if(l!="null")
    System.out.println("l=" +l);
    [\code]

    In your example you selected the pair with the greatest
    distance from the first set, and the pair with the least
    distance from the second. I don't see how the distance
    function was used.
    Also it's not clear to me that there is always a solution,
    and, if there is, whether consistently choosing the
    furthest or the closest pairs will always work.
    The most obvious approach is to systematically try
    all possibilities until the answer is reached, or there
    are no possibilities left. This means backtracking whenever
    a point is reached where you cannot continue. In this case
    backtrack one step and try another possibility at this
    step. After all possible choices of the previous step,
    backtrack one more step and so on.
    This seems rather involved, and it probably is.
    Interestingly, if you know Prolog, it is ridiculously
    easy because Prolog does all the backtracking for you.
    In Java, you can implement the algorithm in much the same
    way as Prolog implementations do it--keep a list of all the
    choice points and work through them until success or there
    are none left.
    If you do know Prolog, you could generate lots of random
    problems and see if there is always a solution.

  • Stuck with grub problem (SOLVED)

    Today i tried to upgrade my Arch Linux, it downloaded everything that should be downloaded, it was installing upgrades but at the installing grub it stucks as like this
    "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg"
    I've waited it for about 15 minutes, it didn't move on. So i did ctrl+z to break. Then i tried to update again. But it gives an error which is:
    error: failed to commit transaction (conflicting files)
    python: /usr/bin/2to3 exists in filesystem
    Error occured, no packages were upgraded.
    Please help me guys!
    Last edited by bilgee0629 (2011-03-21 10:36:28)

    Problem solved by moving 2to3 to other directory.

  • In and not in - stuck with exclusion problem

    From the following data
    ID REF_NUM FLAG
    L000304T 117930 M
    L001538N 126199 R
    L001538N 126191 M
    L006339H 150427 N
    L008519X 139085 R
    L008519X 139075 M
    L008579J 402452 R
    L008579J 144668 M
    L008579J 402429 R
    L043884W 447519 R
    L043885H 303383 C
    L043886X 303383 R
    The valid records are those with R
    We want to delete only those records with the IDs are in valid record but REF_NUM is not corresponding to that valid id.
    e.g in the above case
    L001538N 126199 R --- is valid hence
    L001538N 126191 M -- is invalid, to be deleted
    similarly the other invalid records to be deleted are
    L008519X 139075 M
    L008579J 144668 M
    We tried the query below, it is doesnt work.
    select *
    from FLAG_LKP del
    Where del.REF_NUM not in
    (select sel.REF_NUM -- selects all records with FLAG as R
    from FLAG_LKP sel
    where sel. FLAG = 'R'
    and sel.ID = del.ID)
    The catch is that in the outer query you should not use del.FLAG<> R because it is arrived through join with multiple tables, so if we include del.FLAG<> R, then it is repeating the logic in the inner sub-query in a reserve fashion.

    The catch is that in the outer query you should not use del.FLAG<> R because it is arrived through join with multiple tables,
    Clarification - I have put FLAG = R so as to present the problem simply. Actually the selection criteria (which will replace FLAG = R) results from a multiple table join.
    To put FLAG <> R in outer query would be to replicate the multi table join which I don't want

  • Please Help Me - I am stuck with this problem for days

    O.k I have posted couple of problems here. But the latest one is as follows
    I trying to pass a Stiring Array from Java function to my native method. the native function in turn invokkes another function that takes a char [][] as its parameter. My native function basically converts teh jobjectarray into char [][] and then invoke the other function.
    JNIEXPORT jboolean JNICALL
    Java_copilotplus_DataTransferTab_GetStatus
    (JNIEnv *env, jobject o, jobjectArray fn, jlongArray size)
    char szStr[8][33];
    int len = env->GetArrayLength( fn );
    int i=0;
    for( i=0; i < len; i++ )
    jobject obj = env->GetObjectArrayElement(fn, i);
    jstring str = (jstring)obj;
    szStr[33] = (char)env->GetStringUTFChars( str, 0 );
         //*file = szStr[i];
    BOOL status = Upload(szStr);
    return status;
    BOOL Upload(char pFileName [][33])
         return TRUE;
    Now this compiles fine and makes a dll
    But when I run my java program it gives me this error
    HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Error ID: 4F533F57494E13120E43505002D4
    What am I doing wrong
    Please Help
    Vaishali

    The problem was that I did not ahve any actual values in the String Array. I was doing like this initially
    String []file = new String[8]
    and then when i pass file to the dll it was trying to read something which was not there. That's why it was crashing.
    But now I put some values in it and then it works fine.

  • HT201412 i can't restore it with i tunes already tried that and it is still stuck with tje screen sayinng connected to itunes

    I was on the phone for an hour and did not get any help. can someone please help. Itunes let me do a restore but now it is
    stuck on my Iphone screen sayinng connected to Itunes and i can not get further than than the language and the country.......??????

    solved!
    turn off your phone, then unplug from the usb cable, but leave that cable attached to the computer. Importaint!: Quit Itunes. Then with your phone off, hold down the home button and plug the usb cable into the phone. keep the home button pushed until you see the connect to itunes screen. Itunes will launch and it will see it in recovery mode.

  • Stuck with array problem

    Hi, I am new to programming with C # and wondering if
    anyone can help me with one thing.
    The only thing I got is this array of letters, but need to sort them
    int[] letters = { "c", "s", "a", "k", "x", "l", "j" };
    and then print and save the array in alphabetical order.
    But the thing is that I never have converted the letters to INT wich I
    would need to do in order to sort them with bubble sorting and
    then convert back to letters to print and save in the right
    order.
    How will this code / program look like? The whole thing.
    Thanks and much appreciated for help!
    If you want more information, ill answer as quick is possible!

    Almost the same code works even for bubble sorting strings. Just use the string.Compare method instead of the > operator:
    string[] letters = { "c", "s", "a", "k", "x", "l", "j" };
    string temp;
    for (int write = 0; write < letters.Length; write++)
    for (int sort = 0; sort < letters.Length - 1; sort++)
    if (string.Compare(letters[sort],letters[sort + 1]) == 1)
    temp = letters[sort + 1];
    letters[sort + 1] = letters[sort];
    letters[sort] = temp;
    And for chars:
    char[] letters = { 'c', 's', 'a', 'k', 'x', 'l', 'j' };
    char temp;
    for (int write = 0; write < letters.Length; write++)
    for (int sort = 0; sort < letters.Length - 1; sort++)
    if (letters[sort] > letters[sort + 1])
    temp = letters[sort + 1];
    letters[sort + 1] = letters[sort];
    letters[sort] = temp;
    Once again, please remember to mark helpful posts as answer to close the thread once you original question has been answered and start a new thread if you have a new question.
    Thank you, and i got a few more questions about this before ill mark this thread as answered.
    That codes u just sent me, whats the different between them, the string and char? They almost
    look the same except the string and char part.
    And then im wondering, how will i write down so i can see the results when im debugging it?
    Is it with Console.Write or WriteLine? I can't remember.

  • Stuck with classpath problem

    class HelloWorldApp {
           public static void main(String[] args)
                      System.out.println("Hello World!"); // Display the string.
                      JarClassLoader jcl=new  JarClassLoader("test-jcl.jar");
    }i have above program code in HelloWorldApp.java file
    this program is kept in directory /home/vipin/JCL/
    in the same directory i have two jar file jcl.jar and test-jcl.jar
    content of jcl.jar file is as
    META-INF/
    META-INF/MANIFEST.MF
    jcl.properties
    log4j.properties
    xeus/
    xeus/jcl/
    xeus/jcl/AbstractClassLoader.class
    xeus/jcl/ClasspathResources.class
    xeus/jcl/Configuration.class
    xeus/jcl/JarClassLoader.class
    xeus/jcl/JarResources.class
    xeus/jcl/JclObjectFactory.class
    xeus/jcl/exception/
    xeus/jcl/exception/JclException.class
    and content of test-jcl.jar is as
    META-INF/
    META-INF/MANIFEST.MF
    log4j.properties
    xeus/
    xeus/jcl/
    xeus/jcl/test/
    xeus/jcl/test/Test.class
    and i am compiling my HelloWorldApp.java as
    javac -classpath /home/vipin/JCL\ LIBRARY/jcl.jar HelloWorldApp.java
    but it gives error as:
    HelloWorldApp.java:7: cannot resolve symbol
    symbol  : class JarClassLoader
    location: class HelloWorldApp
                      JarClassLoader jcl=new  JarClassLoader("test-jcl.jar");
                      ^
    HelloWorldApp.java:7: cannot resolve symbol
    symbol  : class JarClassLoader
    location: class HelloWorldApp
                      JarClassLoader jcl=new  JarClassLoader("test-jcl.jar");what goes wrong with me?

    Vipin_Dahiya wrote:
    but it gives error as:
    HelloWorldApp.java:7: cannot resolve symbol
    symbol  : class JarClassLoader
    location: class HelloWorldApp
    JarClassLoader jcl=new  JarClassLoader("test-jcl.jar");
    ^
    HelloWorldApp.java:7: cannot resolve symbol
    symbol  : class JarClassLoader
    location: class HelloWorldApp
    JarClassLoader jcl=new  JarClassLoader("test-jcl.jar");what goes wrong with me?"cannot resolve symbol" is the compiler's way of saying "I don't know what JarClassLoader is!" You need to import JarClassLoader so that you can use it in your program.
    Remember to use the full name of the class in your import statement. And make sure whatever jar file it lives in is included as part of the classpath you use when compiling the program.

  • Stuck with a problem while inserting a record into infotype

    Hi Gurus,
    I have to insert all active record into 378 infotype. At particular pernr hr_operation_infotype is throughing with an error stating 'E00                  058Entry    does not exist - check your entry' . How to rectify it.
    Ravi

    error message is 'E00                  058Entry    does not exist - check your entry            '
    My code is as follows
      INFOTYPES : 0378.
      DATA: BEGIN OF abc1 OCCURS 0,
                  pernr   TYPE pa0000-pernr,
                  stat2   TYPE pa0000-stat2,
                  begda   TYPE pa0000-begda,
            END OF abc1.
      DATA lt_pernr_pa0000 LIKE TABLE OF abc1.
      DATA ls_pernr_pa0000 LIKE  abc1.
      DATA l_subrc LIKE sy-subrc.
      DATA l_return LIKE bapireturn1 VALUE ' '.
    DATA begda LIKE sy-datum.
      DATA endda LIKE sy-datum.
      CLEAR: ls_pernr_pa0000, lt_pernr_pa0000.
      SELECT  pernr stat2 begda
        INTO  CORRESPONDING FIELDS OF TABLE lt_pernr_pa0000
        FROM pa0000
        WHERE  stat2 = '3' AND endda = '99991231'  and pernr = 198.
      LOOP AT lt_pernr_pa0000 INTO ls_pernr_pa0000.
        REFRESH p0378.
        CALL FUNCTION 'HR_READ_INFOTYPE'
             EXPORTING
                  pernr           = ls_pernr_pa0000-pernr
                  infty           = '0378'
                  endda           = '99991231'
             IMPORTING
                  subrc           = l_subrc
             TABLES
                  infty_tab       = p0378
             EXCEPTIONS
                  infty_not_found = 1
                  OTHERS          = 2.
        IF l_subrc = 0.
          IF p0378-event = 'open' AND p0378-subty = 'open' AND
                        p0378-pernr = ls_pernr_pa0000-pernr.
            EXIT.
          ENDIF.
        ELSE.
    locking the pernr ********************
          CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
               EXPORTING
                    number        = ls_pernr_pa0000-pernr
                    validitybegin = ls_pernr_pa0000-begda
               IMPORTING
                    return        = l_return.
    change the end date to 12/31/2007*************
          IF l_return-number IS INITIAL.
            p0378-pernr = ls_pernr_pa0000-pernr.
            p0378-endda = '99991231'.
            p0378-begda = '20070909'.
            p0378-subty = 'OPEN'.
            p0378-event = 'OPEN'.
            p0378-barea = 'US'.
            MODIFY p0378 INDEX 1  TRANSPORTING pernr endda begda subty event
                barea.
            CALL FUNCTION 'HR_INFOTYPE_OPERATION'
                 EXPORTING
                      infty         = '0378'
                      number        = ls_pernr_pa0000-pernr
                      record        = p0378
                      operation     = 'INS'
                 IMPORTING
                      return        = l_return.
          ENDIF.
    unlocking the pernr ********************
          IF l_return-number IS INITIAL.
            COMMIT WORK AND WAIT.
          ELSE.
            ROLLBACK WORK.
            EXIT.
          ENDIF.
          CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
               EXPORTING
                    number        = ls_pernr_pa0000-pernr
                    validitybegin = ls_pernr_pa0000-begda
               IMPORTING
                    return        = l_return.
        ENDIF.
      ENDLOOP.
    ENDFUNCTION.

  • On part of my iPhone I have one apple ID which refuses to take my password, so I set up another Apple ID - but I am still stuck with the old user name.  How do I get rid of it without losing all the applications I already paid for?  Thanks.

    I have an apple id that i was using since september.  for some reason that user id is not working, so i created another.  but for my applications the old user id keeps coming up and i can't upgrade my apps - what do i do?

    Try here >  Frequently Asked Questions About Apple ID

  • Im stuck with this problem. I have lots of strings each linked with

    another string value. I want to store all of them somehow and then sort them out alphabetically while retaining the link between them and the second string value.
    basically I have a set of string values called displayname which i want to sort alphabetically and then display. Each display name is linked to another string called featureobjectcode. When i sort and display them i want that link between the two string to be there so that i can display the string name and the corresponding featureobjectcode.

    can u demonstrate its implementation by showing me an example of how the code would look like?

  • Updated Apple software iPhone driver, still stuck with my bricked iPhone!

    I downloaded the newly released driver from apple this morning, it didn't help at all! HELP!!!!!!!!!

    Hey BuePod,
    What the guy meant my "...kick the iphone out of recovery mode..." please read below & I had included a link below to his comments;
    "To kick the iPhone out of recovery mode following the downgrade you’ll also require Umbrella, handy little app which you can obtain from my site here (Umbrella-4.00.80.zip) or direct from the authors iPhone firmware site. I didn’t allow it access through my firewall (tries to save SHSH blobs, by design, on a remote server – not required to kick out of Recovery Mode). This simple app has the advantages of not requiring additional DLLs or other files installing, functions on x32 and x64 systems and not attempting to do anything untoward to your system."
    (http://williamfaulkner.co.uk/2010/07/downgrade-iphone-3g-from-ios-4-to-ios-3-1-3 -inc-windows-7-x64/)

  • Crystal report problem on window 2003 server

    Hi
    We had developed a web based application using .Net 2.0 (C#) , Crystal reports (bundled version within VS2005) on Window XP, SQL Server 2005, we are able to see all the reports on this development enviroment, but when the application is deployed on Windows 2003 server , IIS 6.0 and SQL server 2005 , we are not able to view the reports we are thrown with an error as
    Failed to open a rowset. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Procedure or Function 'sp_xxxx' expects parameter '@ppppp', which was not supplied. SQL State: 42000 Native Error: Failed to open a rowset. Error in File
    Could you please explain what the problem is ? as we are stuck with this problem for the migration of application to the user community.
    Regards
    varma

    We have same problem
    does anyone have the answer?

  • Stuck with the apple and the scrolling gear while booting

    Hi there
    i am using my mac for more than 2 years , i did not format it or even fix any thing into it but now something bad happend...
    accdentaly my genius friend preesed the power putton for more than 5 seconds to start up the computer and i heared a sound and a the normal flashing light under the track pad and suddenly i was stuck with the apple gray booting screen and the scrooling gear and the computer does not go further .. i left for 2 hours and it still stuck with the same screen ... try to restart do any thing no results also ...
    NOTE: THE BIG PROPLEM IS THAT I PUT A PASSWORD FOR THE FRIMWARE AND I FORGOOT IT SO I CAN NOT USE THE FOLLWOING:
    1-the ability to use the "C" key to start up from an optical disc.
    2-the ability to use the "N" key to start up from a NetBoot server.
    3-the ability to use the "T" key to start up in Target Disk Mode (on computers that offer this feature).
    4-Diagnostic volume of the Install DVD.
    5-mode by pressing the Command-S key combination during startup.
    6- a reset of Parameter RAM (PRAM) by pressing the Command-Option-P-R key combination during startup.
    Requires the password to use the Startup Manager, accessed by pressing the Option key during startup (see below).
    7- Safe mood.
    8-Single mode acsses and the other one i forrgot its name.
    SO I FIGURED THERE IS NO WAY BETER THAN THE PRIVIOUS WAYS TO SOLVE THE PROPLEM
    IF YOU HAVE ANY IDEAS OR ANY THING SO I CAN FIX THIS THING ?
    Thanks in advance >>>
    iBook G4 Mid 2005   Mac OS X (10.4.8)  

    I was mistaken about the PMU..with a little more digging I found that Open Firmware password can be removed if you change the amount of memory installed.
    I found this info here: http://archive.macosxlabs.org/documentation/firmwaresecurity/faqs/faqs.html#remove_passwordprotection
    The following is a link from Apple's site to download the user's manual for your iBook:
    http://manuals.info.apple.com/en/iBookG4(Mid2005)_UsersGuide.pdf
    It provides the instructions to add or remove memory from the machine. If you do have additional memory installed then you'll be able to remove the memory, and reset the PRAM, that way your password is gone. Hopefully from there we can figure out and fix your startup issue.
    Ben

Maybe you are looking for