Object's Overwrited

Hi Dears,
        I have a problem in the creation of the interactive PDF. This document for example have a header and a body, in this last section, have inserted a table that come from a RFC, and it deployed succefully. But i need to show after of this, a line to separate the infos. Actually the info from the table and another object like a line, are overwriting. So, how can fix this trouble.
Thanks in advance,
Jorge.

hi,
PLease go thru this link, here I have provided a solution for a similar kind of problem.
Re: Display more lines of table than size of current page
let me know if you require further help.
Thanks,
kris

Similar Messages

  • How to create ods object with overwrite option

    Hi all,
    I have two ods objects for Billing and Delivery and one cube for Sales.
    Billing and Delivery ODS objects are based on item level data source while sales cube is based on Schedule line level data source.
    Now i want to create a new ODS object which will get the data from these there object and update the ods object.Basically i want all the sales order attributes and billing quantity and delivered quantity from the ODS objects.
    how to update the new ods object in overwrite mode ??/
    Regards,
    Viren.

    HI,
    yes OK but what i mean is that (you might have a perfect reason for this) normally it's nota good idea to have an info cube as a data source (for Performance, look-up reasons etc). If your goal is to load Billing/Delivery/Sales data into one ODS, then make sure that you model this correct.
    If you want to use the ODS'es as data sources I would recommend you to use and ODS as data source also for the Sales data.
    Kind regards
    /martin

  • Overwrite Object Instance or all Attributes of it

    Hello,
    i have an question regarding ABAP OO,
    i like to do following:
    1) i like to give the reference me into a attribute of an local object.
    2) edit attributes of this object
    3) overwrite attributes of me with changed on of the atrribute of the local attribute
    Step 1 and 2 is no problem,
    but when i tried it like this.
    me = lo_test->test.
    i get the message that "me" is not overwriteable,
    sure i can make it by every attribute of my class:
    me->test1 = lo_test->test->test1.
    me->test2 = lo_test->test->test2.
    but i want a dynamic why to overwrite all attributes.
    Thank you for any idea!
    Regards
    Marcus

    Hi Marcus!
    'me' (or 'lo_test') are pointer to an object. In case of attributes handling looks similar to a structure with their fields, but you discover the main difference: the structure name is just the head for all components - but 'me' is not a pointer to a (structured) field string.
    You have to handle the attribute level (or make your assignments in a method). Maybe you can get a more dynamic access by using one structure with all values as single attribute.
    Regards,
    Christian

  • Regarding Overwrite option in ODS

    Dear experts,
    I have an elementary doubt. Why is that in DSO SAP is allowing for overwrite, while not in infocubes.. Any special reasons? As far i thought since ODS has flat tables its easier to maintain change logs as compared to infocubes (denormalization might be a problem too)
    Do correct me if I am wrong and if anything has to added to it...
    Thanks.,
    Rajarathnam.S

    Hi....
    In data load ODS is used as an intermediate object.......For delta process the overwrite option of ODS is very important.....
    The delta process is a property of the extractor and tells you how data will be transferred ie after extraction which image is transfferred. As an attribute of the DataSource, it indicates how the data in the DataSource will be transferred to the data target. This enables you to derive the data targets for which a DataSource is suitable, how to update them, and how the serialization has been done, for example.
    The type of delta process influences how data is updated to a data target.Serialization is necessary for updating to a DataStore object, as overwriting is supported too. Depending on the delta process, the system decides whether
    serialization is necessary per request or per data package.
    There are various delta processes for SAP source systems (R/3, B2B, CRM, and
    so on):
    1. Creation of deltas with after, before and reverse images that are updated directly to the delta queue.
    An after image provides the status after the change, a before image the status before the change with a minus sign. A reverse image sends the record with a minus sign too, indicating at the same time that it is to be
    deleted. The data packages are serialized in the process. The delta process controls whether adding or overwriting is allowed. In this case, both adding and overwriting is allowed. This process permits data to be updated in a DataStore object and in an InfoCube. (Technical name of the delta process in
    the system is ABR.)
    2. The extractor provides additive deltas that are serialized on a request basis.This serialization is necessary since the extractor provides each key once in a request, and changes to the non-key fields would otherwise not be transferred
    correctly. It only allows fields to be added. It permits data to be updated in a DataStore object as well as an InfoCube. This delta process is used by LIS DataSources. (Technical name of the delta process in the system: ADD)
    3. Creation of deltas with after image that are updated directly to the delta queue. The data is serialized by package, because the same key can be transferred a number of times within a request. It does not allow data to be updated directly to an InfoCube. To update an InfoCube, you always have to have a
    DataStore object as a go-between. With numeric key figures, for example, this process only allows you to overwrite data. Adding is not permitted,as this would produce incorrect results. It is used to transfer line items in FI-AP/AR, whilst the variation on this process, in which the extractor can also send records marked for deletion, is used in this function in the BBP.
    (Technical name of the delta process in the system is AIM or AIMD.)
    Also check this Blog :
    How does a datasource communicates "DELTA" with BW?
    Hope this helps you to understand the utility........
    Regards,
    Debjani.........

  • Issues in the import of Design & Configuration objects

    Hi SDNers,
    I have a small doubt. In one of our scenario we have exported the Design & Configuration objects (all objects) from DEV to ACC.
    But actually we want only selected objects to be imported into ACC.
    Will the import of objects under the same namespace append / overwrite the already imported objects ??
    Kindly advice us.
    Thanks in advance,
    Anguraj

    Hi Roger,
    Thanks for your reply..
    Actually with IR we are not facing any issues.. but with ID when we are importing the objects from Dev to Acc , some objects are getting overwritten and some are getting appended.
    Could you please let me know what is the actual behaviour in PI 7.0
    When  the object will overwrite and will append.
    Appreciate for exact reply.
    Regards,
    Anguraj

  • Modify objects in file

    Hi guys...i am new to java and i face problem with an assignment. I am totally stack with the part where i have to modify objects in a file. Well i know how to write objects i know how to read them but i have no clue how to write again in the same file new objects without overwrite the file. Can u give me some help i wud appreciate it.

    I'm not sure exactly what it is you're trying to do. However, the objects in a serialization stream depend on each other; you can't just snip an object out of it or meddle with it freely without incurring side effects. It sounds like the simplest way to do what you want is to open the stream, read objects and write them to a new file, and change the object you want to change when it comes along.
    If you wanted to have a really delightful time of it, you could learn to interpret the serialization format used by ObjectOutputStream and manipulate it yourself using a RandomAccessFile or whatever... but that sounds like it's beyond the scope of your assignment.
    Does that help? If not, what exactly is it you need to do?

  • Session Data Overwriting

    Using weblogic 5.1.0
              I create an object and store it in the httpsession when a client
              accesses a servlet. When a second client logs in, a similar object is
              created for him and put in the session.
              When the first client makes another request and the object from the
              session is retrieved, that session contains the second clients object.
              In brief the second clients object is overwriting the first client's
              object.
              The object does not have any static member variables.
              Please help
              Thanks in advance
              Ranganath
              [email protected]
              

    Show your code. How do you get the session and how do you store the item in
              it?
              Cameron Purdy, LiveWater
              "Ranganath C.S." <[email protected]> wrote in message
              news:[email protected]..
              > Using weblogic 5.1.0
              >
              > I create an object and store it in the httpsession when a client
              > accesses a servlet. When a second client logs in, a similar object is
              > created for him and put in the session.
              > When the first client makes another request and the object from the
              > session is retrieved, that session contains the second clients object.
              >
              > In brief the second clients object is overwriting the first client's
              > object.
              >
              > The object does not have any static member variables.
              >
              > Please help
              > Thanks in advance
              >
              > Ranganath
              > [email protected]
              >
              

  • Class that creates objects?

    Hello everyone! Im quite new to java and oop, but im enjoying using it quite a lot. I have read some books but everything is so fresh it is easy to get confused. I think this is a very basic questions but, here it goes:
    I have this simple class:
    public class Soda {
    int id;
    int sid;
    String brand;
    String flavor;
    }And now i want to fetch an URL that will return a text string for example "|1|23|Fanta|Orange". Now i want to create a Soda Object from this string (The String could have several Sodas)".... forget the parsing needed and the fectching for the text and everything else (Im using J2ME, and i have it solved)... but more basically:
    how can i make a *method that creates Soda objects*? Funny how i get confused with the simplest things.
    Thank you everyone for your comments and help!
    Alejandro

    AlexR wrote:
    while(something) {
    Soda soda=new Soda();}and each iteration of the while loop will create a different object? or overwrite over and over the created soda object?Each iteraion will create a new Soda object, and overwrite the soda variable with a reference to that object. If you want to have access to all the Soda objects after the loop exits, you need to add references to them to a collection or array.
    [http://java.sun.com/docs/books/tutorial/collections/]
    [http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html]
    Also, you can create constructors that take arguments.
    String brand = (parse brand from string);
    String flavor = (parse flavor from string);
    Soda soda = new Soda(brand, flavor);
    public class Soda {
      private final String brand;
      private final String flavor;
      public Soda(String brand, String flavor) {
        this.brand = brand;
        this.flavor = flavor;
    }

  • Object = Object ??

    Hello together,
    I have following constellation and problem:
    I have two Objects A & B. Both are from the same Class "Class". Now I make this...
    Class B = new Class();
    Class A = new Class();
    A = B;
    In this way I just reference A to B, and every change made on B will be "taken" from A too... How is it possible to copy the content of B to A without reference and without copying field per field from B to A.
    My Object B has no clone()...
    I hope on efficient answers :)

    Examine the below codes...
    public class Person {
    private int yas;
    private String isim;
    public Person(int yas,String isim){
    this.yas= yas;
    this.isim= isim;
    public Object clone(){ // overwrite clone()-Method from Object
    return new Person(this.yas, this.isim);
    }

  • Make more movieclip object from 1 button

    Hai Flasher, I need some help.
    I make a flash project which can create rectangle from some input then will be created after click "process" button. but the problem is, second object has overwrite into front of first object. how can I make more object in one button but other object can be desperated from other object?
    this my code  n my picture :
    stop();
    import fl.transitions.*;
    import fl.transitions.easing.*;
    var id_cs:uint;
    var csname : String = String(csname_txt.text);
    var dates :Date;
    var rev :Number = Number(rev_txt.text);
    var prepare:String = String(prepare_txt.text);
    var connum:String = String(connum_txt.text);
    var leng:Number;
    var widt:Number;
    var heig:Number = Number(height_txt.text);
    var leng2:Number;
    var widt2:Number;
    var heig2:Number = Number(height2_txt.text);
    var packname:String = String(packname_txt.text);
    var packname2:String = String(packname2_txt.text);
    var shapes:Sprite = new Sprite();
    var gr:Graphics = shapes.graphics;
    var mc:MovieClip = new MovieClip();
    var mc2:MovieClip = new MovieClip();
    var speed:Number=.1;
    feet40_btn.addEventListener(MouseEvent.CLICK, feed40);
    feet40hc_btn.addEventListener(MouseEvent.CLICK, feed40hc);
    feet20_btn.addEventListener(MouseEvent.CLICK, feed20);
    print_btn.addEventListener(MouseEvent.CLICK, prints);
    mc.buttonMode = true;
    mc.addEventListener(MouseEvent.MOUSE_DOWN, item_onMouseDown);
    mc.addEventListener(MouseEvent.MOUSE_UP, item_onMouseUp);
    mc2.buttonMode = true;
    mc2.addEventListener(MouseEvent.MOUSE_DOWN, item_onMouseDown2);
    mc2.addEventListener(MouseEvent.MOUSE_UP, item_onMouseUp2);
    process_btn.addEventListener(MouseEvent.CLICK, process);
    process2_btn.addEventListener(MouseEvent.CLICK, process2);
    start_rot.addEventListener(MouseEvent.CLICK, fStart);
    function prints(event:MouseEvent):void {
    this.printContent();
    function fStart(event:MouseEvent):void {
    var ptRotationPoint = new Point(mc.x + mc.width/2, mc.y+mc.height/2);
    rotateAroundCenter(mc, 90, ptRotationPoint);
    function rotateAroundCenter (ob:*, angleDegrees:Number, ptRotationPoint:Point) {
          var m:Matrix=ob.transform.matrix;
          m.tx -= ptRotationPoint.x;
          m.ty -= ptRotationPoint.y;
          m.rotate (angleDegrees*(Math.PI/180));
          m.tx += ptRotationPoint.x;
          m.ty += ptRotationPoint.y;
          ob.transform.matrix=m;
    function printContent(){
        var printArea:Rectangle=new Rectangle(50,50,300,200);
        var myPrint:PrintJob=new PrintJob();
        myPrint.start();
        myPrint.addPage(this,printArea);
        myPrint.send();
    function item_onMouseDown(event:MouseEvent):void {
    mc.startDrag();
    function item_onMouseUp(event:MouseEvent):void {
    mc.stopDrag();
    function item_onMouseDown2(event:MouseEvent):void {
    mc2.startDrag();
    function item_onMouseUp2(event:MouseEvent):void {
    mc2.stopDrag();
    function process(event:MouseEvent):void{
    leng = Number(length_txt.text);
    widt = Number(weidth_txt.text);
    mc.graphics.lineStyle(4, 0x000000, .5);
    mc.graphics.beginFill(0xFF0000, .2);
    mc.graphics.drawRect(0, 0, leng, widt);
    mc.graphics.endFill();
    mc.x = 375;
    mc.y = 180;
    addChild(mc);
    //mc.startDrag();
    function process2(event:MouseEvent):void{
    leng2 = Number(length2_txt.text);
    widt2 = Number(weidth2_txt.text);
    mc2.graphics.lineStyle(4, 0x000000, .5);
    mc2.graphics.beginFill(0x00FFCC, .2);
    mc2.graphics.drawRect(0, 0, leng2, widt2);
    mc2.graphics.endFill();
    mc2.x = 375;
    mc2.y = 180;
    addChild(mc2);
    function feed40(event:MouseEvent):void{
    gr.lineStyle(4, 0x330066, .5);
    gr.beginFill(0x330066, .2);
    gr.drawRect(0,0,1190,230);
    gr.endFill();
    shapes.x = 375;
    shapes.y = 180;
    addChild(shapes);
    function feed40hc(event:MouseEvent):void{
    gr.lineStyle(4, 0x330066, .5);
    gr.beginFill(0x4f0066, .2);
    gr.drawRect(0,0,1190,230);
    gr.endFill();
    shapes.x = 375;
    shapes.y = 180;
    addChild(shapes);
    function feed20(event:MouseEvent):void{
    gr.lineStyle(4, 0x330066, .5);
    gr.beginFill(0x33f066, .2);
    gr.drawRect(0,0,580,230);
    gr.endFill();
    shapes.x = 675;
    shapes.y = 180;
    addChild(shapes);

    this where the problem:
    function process(event:MouseEvent):void{
    leng = Number(length_txt.text);
    widt = Number(weidth_txt.text);
    mc.graphics.lineStyle(4, 0x000000, .5);
    mc.graphics.beginFill(0xFF0000, .2);
    mc.graphics.drawRect(0, 0, leng, widt);
    mc.graphics.endFill();
    mc.x = 375;
    mc.y = 180;
    addChild(mc);
    //mc.startDrag();
    when I click process, it will be create an object with (leng x widt). but my problem is when i click again with another size, first movieclip in back of second object.
    in my imagination when I click again process button, first object with another object are separate.
    moccamaximum wrote:
    try to isolate the problem and only show code thats relevant.
    Are you having problems to sort objects on your stage?
    use the setChildIndex() method
    so you mean that I must create one container again for collect my object then my object hasn't relationship again with another object? is that true?
    I'm newbie for this

  • Writing objects to standard output

    Hi,
    I am trying to write an object to standard output but i am not getting a proper result. Here's my code
    import java.io.*;
    public class Stutest extends Person implements Serializable {
    public String bday,email,major;
    public Stutest(String n,String s,String b,String e, String m) {
    super(n,s);
    bday=b;
    email=e;
    major=m;
    public static void main(String[] args) {
    try {
    Stutest s = new Stutest("Bode", "10", "28/02/1977", "[email protected]", "Bsc");
    ObjectOutputStream out = new ObjectOutputStream(System.out);
    out.writeObject( s );
    catch(IOException io)
    { System.out.println("IO Exception caught: " + io);
    }

    Hi,
    If all you want to see on out is the content of your objects, recursively overwrite the public String toString() method to output the properties of your objects.
    ;)

  • Issue in the Delta load using RDA

    Hi All,
    I am facing an issue while trying to load delta using RDA from R/3 source system.
    Following are the steps followed:
    1. Created a realtime Generic Datasource with timestamp as delta specific field and replicated it to BI.
    2. First I have created the Infopackage(Initialization with data transfer) and loaded upto PSA.
    3. Created a standard DTP to load till DSO and activated the data.
    4. Then created a realtime delta infopackage and assigned it to a Daemon.
    5. Converted the standard DTP to realtime DTP and assigned the same to the Daemon.
    6. Started the Daemon, giving an interval of 5 minutes.
    In the first time, Initialization with data transfer is taking the records correctly. But when I run Daemon for taking delta records, its taking all the records again, i.e. both the previously uploaded historical data and the delta records).
    Also after the first delta run, the request status in the Daemon monitor, for both Infopackage and DTP changes to red and Daemon stops automatically.
    Can anyone please help me to solve these issues.
    Thanks & Regards,
    Salini.

    Salini S wrote:
    In the first time, Initialization with data transfer is taking the records correctly. But when I run Daemon for taking delta records, its taking all the records again, i.e. both the previously uploaded historical data and the delta records). .
    If I understand you correctly you Initially did a full load. Yes? Well next you need to do intialise & after that delta.
    The reason is that if you will select delta initialisation & initialisation without data transfer- it means delta queue is initialised now & next time when you will do delta load it will pick only changed records
    If you will select delta initialisation & initialisation with data transfer- It means delta queue is initialised & it will pick records in the same load.
    As you know your targets will receive the changed records from the delta queue.
    Salini S wrote:
      Also after the first delta run, the request status in the Daemon monitor, for both Infopackage and DTP changes to red and Daemon stops automatically.
    I take it the infopackage has run successfully? Did you check? If it has and the error is on the DTP then i suggest the following.
    At runtime, erroneous data records are written to an error stack if the error handling for the data transfer process is activated. You use the error stack to update the data to the target destination  once the error is resolved.
    To resolve the error, in the monitor for the data transfer process, you can navigate to the PSA maintenance by choosing Error Stack in the toolbar, and display and edit erroneous records in the
    error stack.
    I suggest you create an error DTP for an active data transfer process  on the Update tab page (If key fields of the error stack for DataStore objects are overwrite On the Extraction tab page under  Semantic Groups, define the key fields for the error stack.)  The error DTP uses the full update mode to extract data from the error stack (in this case, the source of the DTP) and transfer
    it to the target that you have already defined in the data transfer process. Once the data records have been successfully updated, they are deleted from the error stack. If there are any erroneous data records, they are written to the error stack again in a new error DTP request.
    As I'm sure you know when a DTP request is deleted, the corresponding data records are also deleted from the error stack.
    I hope the above helps you.

  • Dynamic Proxies

    I'm trying to implement a way of monitoring method calls on certain objects so that I am able of enforcing security constraints on these calls.
    Considering the functionality provided by the reflection API, I thought that dynamic proxies would be a viable solution.
    But they have one major restriction:
    A dynamic proxy implements interfaces and thus can only be casted to one of these interfaces.
    So what can I do if I need a proxy on class instances which do not implement any interface?
    I have read a few older threads dealing with this problem, but I couldn't find any satisfying solution.
    There where some ideas of runtime creation of byte code and creating classes from it.
    Another way would possibly be runtime compilation of dynamically created code.
    But aren't there any less cumbersome ways for implementation?
    Regards,
    Volker.

    The idea with the class loader sounds interesting. Although I would have to implement it in a way so that it creates proxies for all classes ever loaded into the JVM. What I am trying to prevent is the following:
    Let's say there is an object "secure" which needs access control and there is another object "caller"with a reference to a "proxy" object monitoring the "secure" instance.
    The initial creation of proxies would be no problem since the critical objects are stored in a object database where they can only be retrieved from by explicit query calls. Implementing my own query method allows me to exchange the result of the query with proxy objects which then are returned to the caller.
    Now "caller" invokes a method on proxy, let's say proxy.doSomething(this) and passes itself as a parameter to the call. Now let's assume "caller" is granted access to the method and the call is delegated to "secure".
    In the process of method execution a method of "caller" is invoked (e.g. the equals method to check if the passed parameter is contained in a Collection) which is possible since "caller" has been passed in as a parameter.
    Now the caller.equals(Object o) method could possibly recieve an unprotected instance of the secure object or any other unprotected object which requires access control via the parameter o.
    Thus I need some way to dynamically generate a proxy class for "caller" which monitors access to its methods and checks if there are any unprotected instances passed as parameters to it and then exchange these instances with another proxy object.
    This is exactly the reason why I need to generate proxies for arbitrary classes (not interfaces) dynamically.
    Trying to solve the problem with my own class loader would require me to create proxy objects for all classes, even those from the Java API. I am not sure if this effort pays. Anyway it would probably cause severe performance problems.
    Another solution would be dynamically subclassing objects and overwriting each method to perform security checks. But this is inconvenient since it is not guaranteed that i can subclass a given class and furthermore I couldn't prevent access to public fields which may exist.
    Perhaps there is another solution to the problem.

  • How to reformat all JSFF files in a project

    I am working with a huge project, with multiple jsff files. All these JSFF files are formatted using JDeveloper default Reformat function. At the moment, I have created an external Java Application to read and modify all JSFF files under this project. My Java Application parses the source jsff files to corresponding DOM object and overwrite the original source file. However, when I write it back, the format is not JDeveloper default format anymore. It is standard XML format, not jsff format.
    I use the following code to write the DOM to file:
         Transformer transformer = factory.newTransformer();
    transformer.transform(new DOMSource(element), new StreamResult(out));
    What can I do to reformat the jsff files back to Jdevloper default reformat template, since this project has so many jsff files? I have tried to use Reformat the whole project, but it only reformat java files, not JSFF files. The only way to reformat a jsff file I know is open it in a windows, then go to Source --> Reformat.
    Thanks so much.
    Harry

    Hi Vinod,
    Reformat from Application level can only reformat .java files, not .jsff file. And open Project Overview --> Web Pages --> reformat file by file is also an option, but it still requires quite a lot of manual work, since I cannot reformat multiple files at the same time. Is there anything else that I can do?

  • Use of Threads with JSP's

    Can you use threads in a web application that uses JSP's plus Servlets and Beans ?
    We have a JRUN 3.1 application using JSPs, Servlets and Beans. Shortly after we went live it became apparent that any 2 users using the same object experienced problems as one object was overwriting another. In a panic the problem was solved by whacking SYNCHRONISED on all objects.
    Now we want to write another application, are there strategies for using Threads with JSPs?
    Would this be part of the webserver configuration or would the application be coded in a certain way ?
    Please can you give me a simplistic answer or point me to some documentation that gives a simple overview.
    Thanks Steve

    Hi,
    You can use thread with jsp, i am sending u a example
    package thread;
    import java.io.Serializable;
    public class TaskBean implements Runnable, Serializable {
    private int counter;
    private int sum;
    private boolean started;
    private boolean running;
    private int sleep;
    public TaskBean() {
    counter = 0;
    sum = 0;
    started = false;
    running = false;
    sleep = 100;
    protected void work() {
    try {
    Thread.sleep(sleep);
    counter++;
    sum += counter;
    } catch (InterruptedException e) {
    setRunning(false);
    public synchronized int getPercent() {
    return counter;
    public synchronized boolean isStarted() {
    return started;
    public synchronized boolean isCompleted() {
    return counter == 100;
    public synchronized boolean isRunning() {
    return running;
    public synchronized void setRunning(boolean running) {
    this.running = running;
    if (running)
    started = true;
    public synchronized Object getResult() {
    if (isCompleted())
    return new Integer(sum);
    else
    return null;
    public void run() {
    try {
    setRunning(true);
    while (isRunning() && !isCompleted())
    work();
    } finally {
    setRunning(false);
    And JSP page start.jsp
    <% session.removeAttribute("task"); %>
    <jsp:useBean id="task" scope="session"
    class="thread.TaskBean"/>
    <% task.setRunning(true); %>
    <% new Thread(task).start(); %>
    <jsp:forward page="status.jsp"/>
    ///////////////// status .jsp
    <jsp:useBean id="task" scope="session"
    class="thread.TaskBean"/>
    <HTML>
    <HEAD>
    <TITLE>JSP Progress Bar</TITLE>
    <% if (task.isRunning()) { %>
    <SCRIPT LANGUAGE="JavaScript">
    setTimeout("location='status.jsp'", 1000);
    </SCRIPT>
    <% } %>
    </HEAD>
    <BODY>
    <H1 ALIGN="CENTER">JSP Progress Bar</H1>
    <H2 ALIGN="CENTER">
    Result: <%= task.getResult() %><BR>
    <% int percent = task.getPercent(); %>
    <%= percent %>%
    </H2>
    <TABLE WIDTH="60%" ALIGN="CENTER"
    BORDER=1 CELLPADDING=0 CELLSPACING=2>
    <TR>
    <% for (int i = 10; i <= percent; i += 10) { %>
    <TD WIDTH="10%" BGCOLOR="#000080"> </TD>
    <% } %>
    <% for (int i = 100; i > percent; i -= 10) { %>
    <TD WIDTH="10%"> </TD>
    <% } %>
    </TR>
    </TABLE>
    <TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD ALIGN="CENTER">
    <% if (task.isRunning()) { %>
    Running
    <% } else { %>
    <% if (task.isCompleted()) { %>
    Completed
    <% } else if (!task.isStarted()) { %>
    Not Started
    <% } else { %>
    Stopped
    <% } %>
    <% } %>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="CENTER">
    <BR>
    <% if (task.isRunning()) { %>
    <FORM METHOD="GET" ACTION="stop.jsp">
    <INPUT TYPE="SUBMIT" VALUE="Stop">
    </FORM>
    <% } else { %>
    <FORM METHOD="GET" ACTION="start.jsp">
    <INPUT TYPE="SUBMIT" VALUE="Start">
    </FORM>
    <% } %>
    </TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>
    ////////////////////////////// stop.jsp
    <jsp:useBean id="task" scope="session"
    class="thread.TaskBean"/>
    <% task.setRunning(false); %>
    <jsp:forward page="status.jsp"/>
    deploy it into ur server and run start.jsp
    and see whatb happens

Maybe you are looking for

  • How to get sales order number based on purchase order

    hi, what is the transaction code to find the sales order number based on the purchase order number Regards, Murali

  • Imac and external webcam

    Hi all, I have a G5 with an external isight. I'm getting a new iMac soon. My questions is...in my business the external cam is handy in that I can move it anywhere. If I need to show a client a tool I'm working on I can do so. With an iMac I have to

  • Signing a Midlet

    My midlet connects to a servlet through an Http connection. It works perfectly on the emulator, but when I run it on my mobile phone it throws an IO exception. I was wondering if signing a midlet would solve my problem. If not, what is the benefits o

  • Getting error on Lr 4.1 download - suggestions?

    I have Lightroom 4.0.  I have been getting message that Lr 4.1 is ready to download.  Every time I go to download, it goes through the download process, but rather than getting an executable .exe file, I get the following message "Lightroom_4_LS11_wi

  • Windows 10 on the Yoga 13 ideapad

    >>> Moved to the proper forum