User Profile

Collapse

Profile Sidebar

Collapse
KiranJyothi
KiranJyothi
Last Activity: Aug 26 '11, 07:19 PM
Joined: Apr 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • KiranJyothi
    started a topic problem in mentioning servlet name in web.xml
    in Java

    problem in mentioning servlet name in web.xml

    Hi,

    I am using eclipse IDE. I created a dynamic web project, under that I created a HTML page in which I mentioned my servlet logical name as
    Code:
     <form action = "SelectCoffee.do">
    and then I created a servlet class under the same project and named it as "CoffeeSele ct". In the web.xml file, I mentioned

    Code:
    <servlet>
       <servlet-name>Ch3 Coffee</servlet-name>
    ...
    See more | Go to post

  • Thanks for the response.

    Actually, I am trying to create an excel spreadsheet control that runs in webpage using javascript/ajax and want to allow users to enter excel functions to do calculations and support multiple sheets. Basically, to simulate excel in the browser.

    -Jyothi...
    See more | Go to post

    Leave a comment:


  • KiranJyothi
    started a topic Java Script library for Excel functions

    Java Script library for Excel functions

    Hello,

    I am looking for a java script library for Microsoft excel spreadsheet where I can implement vlookup function.

    Please let me know.

    Thanks,
    Jyothi
    See more | Go to post

  • KiranJyothi
    replied to How to retrieve the XML tag contents?
    in Java
    I am able to finish my assignment. I used DOM to do this.

    Thank you very much for your prompt replies. It was very helpful.

    Thanks again.

    KiranJyothi...
    See more | Go to post

    Leave a comment:


  • KiranJyothi
    replied to How to retrieve the XML tag contents?
    in Java
    For the first time I will be using SAX Parser. I looked into the Javadocs and also found an useful example and trying to analyze. But, I am having some problem in understanding the flow of the program. I tried to debug but, still somehow I was unable. I am attaching the example program below.

    Code:
    import java.io.StringReader;
    
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    ...
    See more | Go to post
    Last edited by Frinavale; Sep 21 '09, 02:35 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.

    Leave a comment:


  • KiranJyothi
    replied to How to retrieve the XML tag contents?
    in Java
    Thank you for the reply.

    I can not SAX Parser because I will be given the string object. Prototype of the method is

    String getTagContents( String xmlFilecontents , String tag) .

    Now if given,

    Code:
    ]xmlFilecontents = "<system.serviceModel><services><service name="Microsoft.ServiceModel.Samples.CalculatorService" behaviorConfiguration="CalculatorServiceBehavior"></service></services></system.serviceModel>"
    ...
    See more | Go to post
    Last edited by Frinavale; Sep 21 '09, 02:35 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.

    Leave a comment:


  • KiranJyothi
    replied to How to retrieve the XML tag contents?
    in Java
    In the previous code I am having problems.

    Problem 1 - My mentor says that I cannot use split("\n") because xml file can be a regular text file. and it is not necessary that each tag will be placed in a new line.

    Problem 2 - In the output, it prints everything starting from <service> i.e., it prints the complete file starting from the key tag. But, I want only the tag contents to be printed. Please...
    See more | Go to post

    Leave a comment:


  • KiranJyothi
    started a topic How to retrieve the XML tag contents?
    in Java

    How to retrieve the XML tag contents?

    Hello All,

    I have one assignment in which I am given the String object (which contains the xml filecontents) and a key tag (which can be tag of the xml file). I have to return the tag contents. For example, if the xml file is
    Code:
    <system.serviceModel>
     <services>
      <service 
              name="Microsoft.ServiceModel.Samples.CalculatorService"
              behaviorConfiguration="CalculatorServiceBehavior">
    ...
    See more | Go to post
    Last edited by Frinavale; Sep 21 '09, 02:34 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.

  • KiranJyothi
    replied to Boolean in C
    in C
    I will try it once I learn how to use eclipse. You are being very helpful. Thanks a lot. I have many other questions. I will be posting very frequently now :).

    Thanks again....
    See more | Go to post

    Leave a comment:


  • KiranJyothi
    replied to Boolean in C
    in C
    Yes. But, unfortunately I don't have any compiler on my machine. I downloaded eclipse, but not able to use it. I think I have to install some plugin (I guess) call CDT. I will try then.

    Thanks for your help....
    See more | Go to post

    Leave a comment:


  • KiranJyothi
    replied to Boolean in C
    in C
    I was not sure that if I use 'int flag', can I do '!flag'? Because if I set the flag to 0, then is '!flag = 1'? Again, when I do '!flag', will it be equal to 0? Please let me know.

    I want to set the flag to true when there are even number of nodes in a binary tree otherwise set it to false.

    Thank you....
    See more | Go to post

    Leave a comment:


  • KiranJyothi
    replied to Boolean in C
    in C
    Our professor mentioned that we should return O or 1 only. But, not bool.

    Thanks....
    See more | Go to post

    Leave a comment:


  • KiranJyothi
    replied to Boolean in C
    in C
    Boolean in C



    Thank you for the quick reply.

    I am trying to write a function in C which returns true (1) if there are even number of nodes in a binary tree, else returns a false (0). I am attaching the code below for your refence. Please let me know if it is correct.

    #include<stdio. h>
    #include <stdbool.h>

    bool flag = true;

    int is_even_node(tr ee_ptr...
    See more | Go to post

    Leave a comment:


  • KiranJyothi
    started a topic Boolean in C
    in C

    Boolean in C

    Hello All,

    I am writing a code in C where I have to use the Boolean data type. I am doing -

    typedef int flag;

    #define FALSE 0
    #define TRUE 1

    void main()
    {
    :
    :
    flag = !flag;
    }

    Does "flag = !flag" is equal to "flag = FALSE"? Please let me know.

    Thanks you.
    See more | Go to post

  • Thanks for reply. I used DOM parser and it did parse the xml formatted output to regular text based output.

    -Jyothi...
    See more | Go to post

    Leave a comment:


  • KiranJyothi
    started a topic Need guidance in doing web services project!!!
    in Java

    Need guidance in doing web services project!!!

    Hi All,

    We are a group of two and doing StockQuote web services project. We are able to implement the existing web service and get the output in the XML format. In sun tutorial, we found that to get the output in a cleaner fashion we need to use a parser. All we are struck with, at this point of time is, which parser do we need to use? Is it DOM or SAX? Can anyone please help us with this?

    According to MVC architecture,...
    See more | Go to post

  • Difference between port number and IP address

    Hi,

    I am a new bee for networking. Can anyone please explain to me the difference between a port number and IP address with some example?

    Thanks in advance.

    -KiranJyothi
    See more | Go to post

  • KiranJyothi
    started a topic How to add buttons using Graphics2D?
    in Java

    How to add buttons using Graphics2D?

    Hi All,

    I want to draw some rectangles and then add some buttons. Actually, in my project I have to give user control. This project is about transmitting and receiving packets. When the user presses "Transmit" button, packets should move from transmitter side to receiver side. I am able to draw the rectangles (packets). But, not able to add the buttons. PLEASE let me know if I can add buttons using Graphics2D.
    ...
    See more | Go to post

  • KiranJyothi
    started a topic Problem in adding JButtons
    in Java

    Problem in adding JButtons

    Hi All,

    I am trying to add buttons and I am not able to see them while running. Please let me know where I am going wrong.

    Thanks in advance.

    KiranJyothi

    <CODE>
    //KiranJyothi

    import java.awt.GridBa gLayout;
    import javax.swing.*;
    import java.awt.Compon ent;
    import java.awt.Color;
    import java.awt.event. ActionListener;
    import java.awt.event. ActionEvent;...
    See more | Go to post

  • KiranJyothi
    started a topic How to print Thread Object?
    in Java

    How to print Thread Object?

    Hello All,

    In my project, I need to show the timer clock. I am using :

    Thread timerThread;

    My timer is working properly, but I am not able to print it on the applet. Can anyone please tell me how to print it on the applet?

    Thanks in advance.

    -KiranJyothi
    See more | Go to post
No activity results to display
Show More
Working...