How to get result from another JSP file?

I have to write a jsp (my.jsp) to get information from another jsp file (other.jsp).
The other.jsp return integer value (0 / 1) so that user can tell if certain service is available or not. And in my.jsp I need to collect such result and other information from a text file to make up of a XML string.
How can I call other.jsp to get the result? Thanks a lot.

Hi, I think I didn't describe the problem clearly
enough. In fact, there is a JSP file, and if our
database is currently connected, the JSP will return
value 1, otherwise, it will return 0. My java program
need to get that result, and then form an XML string,
and send the string back to the client. I'm just
wonder how can I write such a program to read result
from JSP file. Thanks a lot.Why is this function implemented as a JSP file? It should be implemented as a bean. It would be simple to get the information you require from that bean.

Similar Messages

  • Accessign webservice result from another mxml file

    HI,
    I have an mxml application that uses the <mx:webservice
    function to load a wsdl and get some values. I have tested the code
    and it works fine and i can get the result and fault methods
    correctly.
    I would now like to call this service from another mxml file
    and use access the result or fault string accordingly.
    example scenario would be that when i load my main page, i
    would like the lookup values obtained from using the webservice to
    be available.
    i tried the following but didnt get any luck. Here lookup is
    the mxml file which contains the webservice, which i am importing
    in this file. GetLookValuesWithAuth is the operation name.
    var l:lookup=new lookup;
    var s:AsyncToken=l.es.GetLookupValuesWithAuth.send();
    s.addResponder(new mx.rpc.Responder(onSResult,onSFault));
    public function onSResult(e:ResultEvent):void{
    Alert.show("value is");
    var xy:XMLList=XMLList(e.result);
    lplist=xy.descendants("LOOKUPVALUES");
    Alert.show("lookup is
    "+lplist.toXMLString()+xy.toXMLString());
    public function onSFault(e:FaultEvent):void
    Alert.show("Fault is "+e.toString());
    An example of the webservice call in lookup.mxml is shown
    below
    <mx:WebService id="e1" wsdl="{wsdl "
    result="resultHandler(event)"
    fault="mx.controls.Alert.show(event.fault.faultString.toString())>
    <mx:operation name="GetLookupValuesWithAuth"
    resultFormat="e4x">
    <mx:request>
    <databaseName>{database name}</databaseName>
    <userName>{username}</userName>
    <password>{password}</password>
    <lookupID>05855b98-75c7-4117-a91c-db59e9ea0204</lookupID>
    </mx:request>
    </mx:operation>
    Any suggestions?

    "amthekkel" <[email protected]> wrote in
    message
    news:g9ovt2$e63$[email protected]..
    > HI,
    > I have an mxml application that uses the
    <mx:webservice function to load a
    > wsdl and get some values. I have tested the code and it
    works fine and i
    > can
    > get the result and fault methods correctly.
    > I would now like to call this service from another mxml
    file and use
    > access
    > the result or fault string accordingly.
    > example scenario would be that when i load my main page,
    i would like the
    > lookup values obtained from using the webservice to be
    available.
    >
    > i tried the following but didnt get any luck. Here
    lookup is the mxml file
    > which contains the webservice, which i am importing in
    this file.
    > GetLookValuesWithAuth is the operation name.
    > {
    > var l:lookup=new lookup;
    > var s:AsyncToken=l.es.GetLookupValuesWithAuth.send();
    > s.addResponder(new
    mx.rpc.Responder(onSResult,onSFault));
    > }
    >
    > public function onSResult(e:ResultEvent):void{
    > Alert.show("value is");
    > var xy:XMLList=XMLList(e.result);
    > lplist=xy.descendants("LOOKUPVALUES");
    > Alert.show("lookup is
    "+lplist.toXMLString()+xy.toXMLString());
    > }
    >
    > public function onSFault(e:FaultEvent):void
    > {
    > Alert.show("Fault is "+e.toString());
    > }
    >
    > An example of the webservice call in lookup.mxml is
    shown below
    >
    > <mx:WebService id="e1" wsdl="{wsdl "
    result="resultHandler(event)"
    I have no idea about web services, but it seems to me you
    should have a
    closing curly bracket in the wdsl property.
    HTH;
    Amy

  • How to use Results from Another Query for SAP BW universes

    Hi Everyone,
    I have two SAP BI universes.In my First universe I have Sales Doc no (dimension) and Orderqty (Measure) and in my second universe I have Sales Doc no(Dimension) and BillQty (Measure).
    Here in my first dataprovider I have 1200 rows of data and in second dataprovider I have 75,000 rows. The report should fetch only the BillQty details that matches to corresponding  Sales doc no in first data provider.
    I want to place all these fileds into a single report like as shown.
    (Datarpovider1)                (Datarpovider1)                    (Datarpovider2)
    *Sales Doc No*               Orderqty                           BillQty
    Here I am able to generate single report using merge dimension but it is leading to performance issues. I want to restrict the values at query level by passing the First dataprovider Sales doc no to second Data provider Sales doc number using Results from Anothery Query feature so that It can fetch only the matching records.
    I tried it but it was giving the follwing error:
    A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
    How Can I get rid of this error. Can we use Results from Anothery Query option for OLAP universe. Are there any limitation on it.
    All this I am doing in Webi Rich Client.
    Appreciate your help
    Thanks &in Advance
    Kiran Saka

    Hi Kiran,
    I think the filter has a wrong operand. For example, a filter with an empty constant, or a filter that deals with numeric values is defined with an alphanumeric value.Check out for this.
    Regards,
    Neeraj

  • How to get info from a .class file at run time? thanks for help

    I need to get methods and properties (variables) from a .class file at run time.
    as u know, javap.exe can do that in an independent way. but i need to get info at run time once the .class or packeges have been changed, javap is not suitable in the case.
    i try to read data directly from .class file but it's hard to know the file format.
    e.g. a class looks like (java file):
    class MyClass extends Frame
    int i0;
    String s0;
    public String getName()
    if the file is compiled to .class file, how to get properties (variables: i0,s0) and methods String getName() from the .class file by an applicaton at run time?
    Doclet is not suitable for speed reason, it is too slow to get right info in right format.
    Thanks for any help, please write a little bit more in detail if you know.

    Use the Java Reflection API. Have a look at the Reflection section of the Java Tutorial located at http://java.sun.com/docs/books/tutorial/reflect/index.html

  • How to get variable from another class?

    I have 2 classes. In first I have int variable. In second class I need to get this variable value. How I can make it?
    import javax.microedition.lcdui.*;
    import java.io.*;
    import java.util.*;
    public class ChooseLessons extends Form implements CommandListener, ItemStateListener
         ChoiceGroup lessons;     // Choice Group of preferences
         Dictionary     dictionary;
         int volumeSize;
         ChooseLessons(Dictionary dictionary)
              int volumeSize = 15;
         public void commandAction(Command c, Displayable s)
              if (c == Dictionary.BEGIN_CMD) {
                   new TeachForm(dictionary, this);
    import javax.microedition.lcdui.*;
    import java.util.*;
    public class TeachForm extends Form implements CommandListener     
         Dictionary               dictionary;
         ChooseLessons          lessons;
         TeachForm(Dictionary dictionary, ChooseLessons lessons) {
              super(Locale.WORD);
              this.dictionary = dictionary;
              this.lessons = lessons;
              lessons.volumeSize(); // HERE I NEED VARIABLE VALUE FROM PREVIOUS CLASS
    }Edited by: Djanym on Mar 16, 2009 4:43 PM

    This is a classic problem that coders run into when trying to get their head around object-oriented programing. Since you have a class that should be modeled after a real world object, as far as that object is concerned, no one else needs to know the details of it - without asking nicely. This is where you should set up some getters and setters, which are methods that allow fields in a class to reveal themselves or allow their states to be changed in a orderly fashion.
    There are a number of fields that never need to be known outside of the class. Then there are some fields you would like to let people know about, but don't want them to have the ability to change them. In the example below, there are to getter methods allow return of the necessary fields. If you made these public, there is a possibility that someone utilizing this field may change it outside of its intended use, or access them without them being ready for public consumption.
    Class test {
    //These private variables are only visible from the class
    private int grade1 = 0;
    private int grade2 = 0;
    private int grade3 = 0;
    private float average = 0;
    private int gradeboost = 0;
    //This method sets the gradeboost field to one desired by the instructor
    void setboost(int boost) {
    gradeboost = boost;
    //These methods accept test scores and compute the average for three test
    //Notice that the calculated average may not be the true average of the three test scores
    //because of the possibility of gradeboost calculation being greater than 1
    void test1(int score) {
             grade1 = score;
             average = (grade1 + grade2 + grade3 + gradeboost)/3;
    void test2(int score) {
             grade2 = score;
             average = (grade1 + grade2 + grade3 + gradeboost)/3;
    void test3(int score) {
             grade3 = score;
             average = (grade1 + grade2 + grade3 + gradeboost)/3;
    //This is a getter method, which provides read access to the private variable average
    //If someone just had public access to the grades and wanted to take their own average
    //They would miss how the gradeboost field affects the final outcome.
    float getAverage() {
        return average;
    //Here is a getter method, which accepts an argument to determine which test score to return
    //Notice that this isn't the true testscore, but it has been modified by the gradeboost field.
    //If the user had public access to the true testscore, it wouldn't take into account the gradeboost calculation!!
    //This is how a getter can control exactly what a user has access to.
    float get testScore(int test) {
    float testresult = 0;
    if (test = 1) {
           testresult = (grade1+ gradeboost) / 3;
    if (test = 2) {
           testresult = (grade2+ gradeboost) / 3;
    if (test = 3) {
           testresult = (grade3+ gradeboost) / 3;
    return testresult;
    }

  • How to pass value from the jsp file to a java bean

    I have huge promblem .I want to pass value of combo box to bean file to set my database contecting.The is how i call function to pass database to the bean file
    <%db.setDatabase(database);%>are coding to set my databse connection
    private String database;
        public Conn(){
         try{
                   Class.forName("org.gjt.mm.mysql.Driver");
                   DriverManager.registerDriver((Driver) Class.forName("org.gjt.mm.mysql.Driver").newInstance());
                   String data=getDatabase();
                   String url = "jdbc:mysql://localhost/"+data;
                   Connection conn = DriverManager.getConnection(url);
                   setConnection(conn);
              catch(SQLException e){
                   System.out.println(e.toString());
              catch(Exception e){
                   System.out.println(e.toString());
         public void setDatabase(String Database){
          this.database = Database;
         public String getDatabase(){
         return this.database;
         }     and Below are error produce
    Note: sun.tools.javac.Main has been deprecated.
    /mrs/system_menu.jsp:18: Method setDatabase(java.lang.String) not found
    in class bgoc.dbConn.Conn.
    db.setDatabase(database);
    ^
    1 error, 1 warning
    please help me soon. any that come to your will help
    thank you

    I have huge promblem .I want to pass value of combo box to bean file to set my database contecting.The is how i call function to pass database to the bean file
    <%db.setDatabase(database);%>are coding to set my databse connection
    private String database;
        public Conn(){
         try{
                   Class.forName("org.gjt.mm.mysql.Driver");
                   DriverManager.registerDriver((Driver) Class.forName("org.gjt.mm.mysql.Driver").newInstance());
                   String data=getDatabase();
                   String url = "jdbc:mysql://localhost/"+data;
                   Connection conn = DriverManager.getConnection(url);
                   setConnection(conn);
              catch(SQLException e){
                   System.out.println(e.toString());
              catch(Exception e){
                   System.out.println(e.toString());
         public void setDatabase(String Database){
          this.database = Database;
         public String getDatabase(){
         return this.database;
         }     and Below are error produce
    Note: sun.tools.javac.Main has been deprecated.
    /mrs/system_menu.jsp:18: Method setDatabase(java.lang.String) not found
    in class bgoc.dbConn.Conn.
    db.setDatabase(database);
    ^
    1 error, 1 warning
    please help me soon. any that come to your will help
    thank you

  • How to get result from query for ssrs?

    DECLARE @meter_number int
    SET @meter_number=25112
    IF @meter_number IN (SELECT meter_number FROM ods.pmc.meter_registers)
    BEGIN
    SELECT 'LA' as [data_center]
    , t.request_time_gmt
    , aca.transaction_id
    , aca.meter_number
    , CONVERT(date, aca.ship_date_gmt) as ship_date
    , aca.user_name
    , p.confirmation_number
    , p.origin_zip
    , p.destination_zip
    , p.destination_zip_addon
    , p.base_postage_cost
    , p.mail_class_id
    , p.weight_ounces
    , p.delivery_confirmation
    , cil.ascending_register
    -- , ih.transaction_date_gmt
    , ih.from_name, ih.from_company, ih.from_address_line_1, ih.from_address_line_2, ih.from_city, ih.from_state, ih.from_zip
    , ih.to_name, ih.to_company, ih.to_address_line_1, ih.to_address_line_2, ih.to_city, ih.to_state, ih.to_zip
    FROM ods.sws.create_indicium_log aca --#USPS_Amazon_Cust_Activity aca
    JOIN ods.sws.prints p (NOLOCK)
    ON aca.transaction_id = p.transaction_id
    JOIN ods.sws.transactions t (NOLOCK)
    ON aca.transaction_id = t.transaction_id
    JOIN ods.sws.create_indicium_log cil (NOLOCK)
    ON aca.log_id = cil.log_id
    LEFT JOIN ods.pmc.indicium_history ih
    ON p.confirmation_number = ih.confirmation_number
    END
    ELSE IF @meter_number in (SELECT meter_number FROM ods.pmc_dr01.meter_registers)
    BEGIN
    SELECT 'PHX' as [data_center]
    , t.request_time_gmt
    , aca.transaction_id
    , aca.meter_number
    , CONVERT(date, aca.ship_date_gmt) as ship_date
    , aca.user_name
    , p.confirmation_number
    , p.origin_zip
    , p.destination_zip
    , p.destination_zip_addon
    , p.base_postage_cost
    , p.mail_class_id
    , p.weight_ounces
    , p.delivery_confirmation
    , cil.ascending_register
    , ih.from_name, ih.from_company, ih.from_address_line_1, ih.from_address_line_2, ih.from_city, ih.from_state, ih.from_zip
    , ih.to_name, ih.to_company, ih.to_address_line_1, ih.to_address_line_2, ih.to_city, ih.to_state, ih.to_zip
    FROM ods.sws.create_indicium_log aca--#USPS_Amazon_Cust_Activity aca
    JOIN ods.sws_dr01.prints p (NOLOCK)
    ON aca.transaction_id = p.transaction_id
    JOIN ods.sws_dr01.transactions t (NOLOCK)
    ON aca.transaction_id = t.transaction_id
    JOIN ods.sws_dr01.create_indicium_log cil (NOLOCK)
    ON aca.log_id = cil.log_id
    LEFT JOIN ods.pmc_dr01.indicium_history ih
    ON p.confirmation_number = ih.confirmation_number
    END
    I executed this query it says command completed successfully how can it return results?

    Hi,
    Create a procedure as shown below in the database and while creating the Dataset in SSRS , Select Stored procedure as a source and call this newly created procedure using command EXEC Usp_Meter_Number 25112.
    The columns will automatically generated and u can use the columns.
    CREATE PROCEDURE Usp_Meter_Number
    @meter_number int
    AS
    BEGIN
    IF @meter_number IN (SELECT meter_number FROM ods.pmc.meter_registers)
    BEGIN
    SELECT 'LA' as [data_center]
    , t.request_time_gmt
    , aca.transaction_id
    , aca.meter_number
    , CONVERT(date, aca.ship_date_gmt) as ship_date
    , aca.user_name
    , p.confirmation_number
    , p.origin_zip
    , p.destination_zip
    , p.destination_zip_addon
    , p.base_postage_cost
    , p.mail_class_id
    , p.weight_ounces
    , p.delivery_confirmation
    , cil.ascending_register
    -- , ih.transaction_date_gmt
    , ih.from_name, ih.from_company, ih.from_address_line_1, ih.from_address_line_2, ih.from_city, ih.from_state, ih.from_zip
    , ih.to_name, ih.to_company, ih.to_address_line_1, ih.to_address_line_2, ih.to_city, ih.to_state, ih.to_zip
    FROM ods.sws.create_indicium_log aca --#USPS_Amazon_Cust_Activity aca
    JOIN ods.sws.prints p (NOLOCK)
    ON aca.transaction_id = p.transaction_id
    JOIN ods.sws.transactions t (NOLOCK)
    ON aca.transaction_id = t.transaction_id
    JOIN ods.sws.create_indicium_log cil (NOLOCK)
    ON aca.log_id = cil.log_id
    LEFT JOIN ods.pmc.indicium_history ih
    ON p.confirmation_number = ih.confirmation_number
    END
    ELSE IF @meter_number in (SELECT meter_number FROM ods.pmc_dr01.meter_registers)
    BEGIN
    SELECT 'PHX' as [data_center]
    , t.request_time_gmt
    , aca.transaction_id
    , aca.meter_number
    , CONVERT(date, aca.ship_date_gmt) as ship_date
    , aca.user_name
    , p.confirmation_number
    , p.origin_zip
    , p.destination_zip
    , p.destination_zip_addon
    , p.base_postage_cost
    , p.mail_class_id
    , p.weight_ounces
    , p.delivery_confirmation
    , cil.ascending_register
    , ih.from_name, ih.from_company, ih.from_address_line_1, ih.from_address_line_2, ih.from_city, ih.from_state, ih.from_zip
    , ih.to_name, ih.to_company, ih.to_address_line_1, ih.to_address_line_2, ih.to_city, ih.to_state, ih.to_zip
    FROM ods.sws.create_indicium_log aca--#USPS_Amazon_Cust_Activity aca
    JOIN ods.sws_dr01.prints p (NOLOCK)
    ON aca.transaction_id = p.transaction_id
    JOIN ods.sws_dr01.transactions t (NOLOCK)
    ON aca.transaction_id = t.transaction_id
    JOIN ods.sws_dr01.create_indicium_log cil (NOLOCK)
    ON aca.log_id = cil.log_id
    LEFT JOIN ods.pmc_dr01.indicium_history ih
    ON p.confirmation_number = ih.confirmation_number
    END
    END
    Please have look on the comment

  • How to get data from another view on the RFx to populate bidders web dynpro

    i am trying to populate bidders in the table on the bidder tab when a user click a button based on the line item data.  How do i have access to get the line item since it is in a separate component controller and view for the RFx? thanks you.

    Hi,
    You mean Data transfer between two components..
    To pass the value from one component to other component, you can use used component scenario.
    For example let use assume we have two comp ..
    Comp A,
    Comp B.
    now we need to pass the value from Comp A to Comp B.
    Then declare the Comp A as used component in Comp B.
    Now then you can create a node in the comp A component controller and check the interface check box there then the
    node and the attribute will be present in the interface controller also .
    and this interface controller context you can access in the component and map it to view there and display it.
    Webdynpro Application Integration..
    http://wiki.sdn.sap.com/wiki/display/WDABAP/WebdynproApplicationsIntegration
    cheers,
    Kris.

  • Who knows how to get applications from another country?

    Hey there, I have a complicated question!
    I am dutch, and trying to buy some apps in the app store in Holland.
    But...I'm living in French and I have an account witch allows me only to buy in the french app store and to connect me to the french itunes account. Just changing the country and using the same account name hasn't resolved the problem yet. I get the same message saying that I can only shop in the french app store!
    Hopefully one of you smart guys got an answer for me ?!
    Greetings Jan Lars

    You can ONLY buy from the itunes store of your country of residence ( proven by the valid billing address on your credit card) AND ONLY while inside the borders of that country.

  • How to get result from SharePoint site which is on different server.

    We have two SharePoint site on two different server. We want to create search which will search and display content of one one site on other site.
    If this is possible then pls let me know how can I do this. If you have any links/blogs pls share with me.
    Rushikesh_Khadtare

    Hi  ,
    According to your description, my understanding is that you need to create search which will search and display content of one site on other site.
    For your issue, you can deploy a "search center" site in each web app. 
    Any time you perform a search from a search center site, it by default searches all content (using All Content scope) in your index, regardless of web app.
    Take the following steps:
    * Go to  Search Service Application
    * Click Content Sources
    * Select Edit from the Local Office SharePoint Server sites
    * In Start Addresses add the urls of all web applications that you want this content source to crawl
    After a crawl you should now be able to search/find data from all web applications.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • I have created a Saved Book, but now realized I want to include additional photos from another Collection. How do get photos from another collection into the filmstrip of the Saved Book? Terry O'Loughlin

    Any help you can give me will be most appreciated. Terry

    Your saved book will show as a Book Collection in your collections panel.  Open the collection with the other photos, select the desired photos in Grid view and drag them into the Book collection.

  • Web services and ADF 11g- get Result from backing bean

    I'm executing an action from backing bean (call Web service that returns complex data types)
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("unesiPonudu");
    Object result = operationBinding.execute();
    result is instance of oracle.adf.model.adapter.dataformat.XMLHandler$DataCollection but DataCollection is not accessible.
    How to get results from method?
    Tnx,
    Andreja

    Hi,
    there should be a result iterator in the Executables section which cotnains the result. If not, create it from the WS result entry in the DC palette. Once this iterator gets updated, you get the data from this iterator as it would be the case of a table accesses the WS
    Frank

  • HOW TO CALL A JSP METHOD FROM ANOTHER JSP

    Hi all, I have to JSP1 and JSP2 and i would like to call a method of JS1 from JSP2. Is that possible ??
    Example:
    JSP2 Code
    somewhere in the code ...
    String s = JSP1.getName();
    out.println("EL NOMBRE ES " +s );
    thanks in advance for your help

    No, it is not possible. Infact you cannot write your own methods in JSP. What ever you write in a jsp page is part of _jspService() method. Secondly how can you instantiate another class(generated by JSP), until or unless you know the name of the class that resulted from your JSP. Your JSP page is first converted into .java file which is stored in some package e.g.
    pagecompile.jsp._yourJSPfile.
    I couldnot understand why you need to invoke a method of another JSP in your JSP.
    Hope this helps

  • How to pass a variable in a servlet to another jsp file?

    The variable that I wanted to pass is in a doGet function....
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.net.*;
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    public class www extends HttpServlet
         public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException     
        {try{
             String code = request.getParameter("Text");
             String current;
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
                URL yahoo = new URL("http://www.yahoo.com"+request.getParameter("Text"));<<not the actual
                URLConnection yahooConnection = yahoo.openConnection();
                DataInputStream dis = new DataInputStream( yahooConnection.getInputStream());
                String inputLine;
                String whole=null;
                int startPos,endPos,a,b,c,d,e;
                while ((inputLine=dis.readLine( ))!= null) {
                whole+=inputLine;
                dis.close();
                    a=whole.indexOf("Previous Close",0);
                    b=whole.indexOf("Previous Close",a+1);
                    c=whole.indexOf("Previous Close",b+1);
                    d=whole.indexOf("Previous Close",c+1);
                    e=whole.indexOf("Previous Close",d+1);
                    startPos = whole.indexOf("right>",e) + 6;
                    endPos = whole.indexOf(">",startPos) -4;
                       current=(whole.substring(startPos,endPos));
                        out.println(*current*);
                catch (MalformedURLException me)
                        System.out.println("MalformedURLExc eption: " + me);
                catch (IOException ioe)
                        System.out.println("Exception: " + ioe);
    }The String CURRENT is the one that I wanted to pass to another jsp file.....Or How can I call that Current in another JSP file?
    An Alternative is I wanted to directly input that String CURRENT in a mysql Database using jdbc but I dont know how to do that.....THANKS!
    Edited by: tr3k on Feb 22, 2008 12:40 AM

    If used this but it returns
                       current=(whole.substring(startPos,endPos));
                        out.println(current);
                        HttpSession session = request.getSession();
                        session.setAttribute("current", current);
                                  out.println("<form action = \"mVal_pass.jsp\" method= \"post\">");
            out.println("Update current Market Value of "+code+"?<p>");
              out.println("<input type=\"submit\" value=\"submit\">");
            out.println("</form>");This is my JSP page which supposed to be is getting the value of String CURRENT
    <HTML>
    <HEAD></HEAD>
    <BODY>
      <% String codek = request.getParameter("current");%>
    <%out.println(codek);%>
    </BODY>
    </HTML>I am getting the value of String Current but when I passed it, it returns NULL value...Help guys!

  • How to get FILENAME from FILE PATH

    does anyone know how to get filename from a file path for example
    FILE PATH: C:\Project\uploadbean\web\uploads\Button.txt
    returns
    FILENAME: Button.txt

    @BalusC
    ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser.

Maybe you are looking for

  • Communication Express Address Book problem

    Hi System Messaging Server 7.0-3.01 32bit (built Dec 9 2008) libimta.so 7.0-3.01 32bit (built 09:08:43, Dec 9 2008) Using /opt/sun/comms/messaging/config/imta.cnf SunOS 5.10 Generic_137137-09 sun4u sparc SUNW,Sun-Fire-V240 Sun Java(TM) System Communi

  • Logo not appearing when connecting to xp windows

    Ued to work fine before latest upgrade to phone. Now unable to transfer pics as phone is not being detected.

  • App download to work computer rather then home

    I am working away from home (on a PC, unlike my Mac at home) and I needed access to an expensive app (£29.99). Downloaded iTunes onto the PC, plugged in my iPhone and bought the app. It was too large a file to download it straight to the iPhone but i

  • Hiding buttons on Universal Worklist

    We currently migrated to EP6 SP2 and are now in the process of testing  the UWL used with this EP version.  We have discovered a number of differences between the versions used for EP6 and EP5.  Some of the new functions need to be removed as we do n

  • Propagation Tool - loses CM links

    Hi, We have a WLS 9.2 Portal. We have deployed to System Test and propagated in all the Visitor Entiltlments and Content Management (Content + Types) that our application requires. Only problem is, that if we deploy a new version of the application E