How to load data on my page load ???

Hi friends,
I have mySQL database and one database for all Districts in that table Named district_master;
Now i want to load all the district in one combo box initially.
i have 3 combo
1) District 2) Talukas 3) Villages
Each are co-related
Now i want to load District Data initially loaded
default value = SELECT DISTRICT
and when user select anoher from them OnChange event fires.
So how to do intially loading of data to that jsp page ???
I use like some one
Java code :
dataase connnection code +
public Vector  getDist()
          Vector distlist = new Vector();
         query=SELECT districtName from district_master;
         rs = stmt.executeQuery(query);
         while(rs.next())
            String dist = rs.getString(''DistrictName'');
            distlist.add(dist);
      return distlist;
}==========================
JSP code
   <%@page import = ''app.myClass'' %>
<% 
       myClass obj = new myClass();
     if( selectedDistrict.equals(''Surendranagar''))
    {            TalukaVector =  obj.getDist();  }
%>

Hi ,
I think one approach could be that you upload the XML file in BLOB column of a table ,it may be a custom table using the OAMessageFileUploadBean to upload the xml file ,then you have to select the same file from database and need to create a method inside the controller to read the contents of xml.
the below links can be usefull in terms to guide how to read xml in java
http://www.developerfusion.com/code/2064/a-simple-way-to-read-an-xml-file-in-java/
http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html
Thanks
Pratap

Similar Messages

  • How to pass data from one page to another

    i have a table with multiselect and i want that in the moment i select some rows and press on a button in the other page should be displayed only those data i have selected from previous one.... how can i do this? any link or example for this case?
    thanks in advance :)

    If the data you are retrieving from the excel file is just a few fields, then you can get them all on the first page and store them as public variables and use those variables on the different pages. But if you are getting a lot of data per page, then it would still be a good idea to get them all on the first page but store them as arrays. Then, on each page you can use the array you need.

  • How to Post Data to Web Page

    I want to maintain a list on one of the pages on my website.
    How can that be done in iWeb? a spreadsheet, a text file? Would I ftp it, open iWeb every time and edit and repost?
    Any suggestions would be appreciated
    Thanks

    Dean wrote:
    Any suggestions would be appreciated
    Dean ~ Perhaps use a Google Gadget that you paste into iWeb's HTML Snippet window — then you can update the list directly in a web browser, rather than having to republish your site or re-upload a particular file. I haven't actually tried this first one as it requires that you register with them. And, assuming it's a working product ( ! ), perhaps you'll need to log in before you can update your list via a web browser:
    http://www.listaculous.com
    And this next one doesn't require log in, but the data doesn't appear to persist — so not too useful!:
    _Really Simple List_
    More useful & useless Google gadgets may be found by searching HERE. And this:
    http://tadalist.com
    ...was found by doing THIS.

  • Help? How to bring data to popout page

    Hi,
    In JSF page (main page), I have a popout page (just use window.open(....)) due to not JSF UICompoment for this purpose. the paramters in url to open popout page are dynamic assigned based on main page.
    The question is:
    How I can get and populate data for the popout page based on paramters?
    How I can get the

    I have a popup window devloped with RAD using JSF and the jsf-popup window example everything works OK except the when I open the opoup window always open full size no metter what values I put in window.open
    features="left=0,top=0,innerHeight=500,innerWidth=310,status=0,toolbar=0,menubar=0,location=0,scrollbars=0" ;
    winId=window.open('','list',features);
    thanks for any help

  • How to display data in report page footer ?

    Hi friends, we have heading popup defined in PLUS. but I don't know hw I can place information in the footer part of the report page.

    Hello Sabine, Hello Vignesh,
    I have also started working in discoverer. The version is 9.0.4
    I cannot find the Menu File --> Page Settings option neither in Discoverer Administrator nor in Discoverer Plus. Will you pls tell hw I can get them.
    I have to implement Date of creation as well as page "m of n" functionality in the reports' footer.

  • How to transfter data from one page to another one

    Hi everybody,
    I have got a page index.jsp which includes menswear button, chirldrenswear button and womenswear button, but user click one of them , it will go to another page called display.jsp to display all products information, if button mensware is clicked , it will display menswear, childrenswear clicked to display childrenswear. I
    I want to do this way : >/display?ID=menswear< or id is integer
    and in display.jsp, it will get ID and use it to get the menswear from database. But I dont know how to do in JSP, Thanks in advanced

    Let's say for simplicity's sake, you have them as links on images...
    <img src="mens.gif" border="0" alt="Menswear" />
    <img src="womens.gif" border="0" alt="Womenswear" />
    <img src="childrens.gif" border="0" alt="Childrenswear" />
    Then in the display.jsp page, to read the ID:
    String id = request.getParameter("ID");
    or
    int id = Integer.parseInt(request.getParameter("ID"));

  • How to display data on separate page based on account

    Hi all,
    I have a parameter on my report and it takes list of account ids. I want to display the data in a separate page for each account. For example: If I enter 100,101 then
    101 data should start on separate page after completion of 100 account data.
    Thanks in advance.

    Hello,
    You can create the SQL query in order to set the account as a group and use the
    property "Maximum Records Per Page" of the repeating frame associated to this group to 1.
    Regards

  • Urgent-How to retain data in main page after returning from personalize pag

    Hi,
    i have a query,
    Like if I have a region 'CertificationRN' when I run the page a link stating “Personalize Table: (CertificationRN)” appears above the Region
    Now when I enter some data in this region, and then click on 'Personalize Table: (CertificationRN)’ link, personalize page appears.
    On personalize page when clicked on “Return to Application’ it returns to the previous page, but the data which I had entered in the region is lost.
    i.e. I get empty Textboxes as they where just after running the page.
    What should I do to retain the data in the region?
    Thanks & Regards
    Shilpa

    Shilpa in that case personlization links should not be shown to business users, using profile option
    1)Personalize Self-service Defn (FND_CUSTOM_OA_DEFINTION)
    2)FND: Personalization Region Link Enabled
    (FND_PERSONALIZATION_REGION_LINK_ENABLED)
    , then where does the question comes of them clicking personalize link.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can share data between jsp pages using beans??

    any one can give me code for 2 jsp pages with bean that share data for them

    <jsp:usebean name="yourBeanName" type="com.whatever.foo" scope="session"/>
    this will look for a bean named yourBeanName in the scope specified by the scope attribute. If none was found, the container will instantiate one with the no arg constructor for your bean and place it into the proper scope.
    if your bean had a method getName(), you could then on your jsp do:
    <%=yourBeanName.getName()%> to print the results of the method to the page. there are other ways to do the actual placing of the output on the page, but this is the most direct.

  • How to replicate data from one page to another page

    I have a five page document that has the same information on all five pages but each page goes to a different person. I want to fill-in the first page and have the information replicate to the other four. Any suggestion?

    Are you using LiveCycle (XML form)?
    If so you need to set the binding for the fields to "Global".

  • Passing data to another page loaded in the same window

    How to pass data from a page to another when new page loading
    takes place ?
    I use :
    window.htmlLoader.load( new air.URLRequest("app:/" +
    htmlfilename));
    I tried :
    window.htmlLoader.addEventListener(air.Event.CHANGE,
    passmonitor)
    but it doesn't work !

    The problem is in passing the variables . As I mentioned
    above,, the following error message gets displayed:
    Can't get property window from undefined value
    The code I tried is
    myloader = window.htmlLoader.load(new air.URLRequest("app:/"
    + filen ));
    myloader.window.somevar = "data";

  • Hiding Data References During Page Load

    http://labs.adobe.com/technologies/spry/samples/data_region/HideDataReferencesSample.html
    gives an example of hiding a data until the page is finished
    loading, but it fails to show the example code.
    I'm not sure how to use spry:content to hide the red X from a
    large image while the page is loading.

    Hi Phillip,
    To hide the data references, you use the .SpryHiddenRegion
    class on your spry:regions.
    The spry:content works because there is no source code within
    that block, so nothing shows onLoad.
    <span spry:content="{name}"></span>
    The <img> is within the value of {name}.
    Show us the code that is not working for you.
    Thanks,
    Don

  • How to load data to a cube from multiple infosources ?

    Hi friends,
    How to load data to a cube from multiple infosources ? could u please answer this question .
    thanks in advance......

    Hi ,
    say for example you need to load data to 1 cube from 3 info sources:
    1) You need to create 3 update rules for the Cube.
    2) Each time you create the update rules. Mention the name the name of the Info source. and create update rules correspondingly.
    Regards
    satish
    Message was edited by:
            satish murthy

  • My friend synced a video to my ipod but it erased all my data on my ipod,but i cant figure out how to load my old libray back without deleting the movie. my friend cant tell me the password. How can I get my old library back without deleting the movie?

    My friend synced a video to my ipod but it earased all my data on my ipod,but I can't figure out how to load my old library back without deleting the movie. My friend shares a family account so she can't tell me the password. How can i get my old library back without deleting the movie?

    Linnwarner wrote:
    She does have the right because she bought the movie.
    Not true at all.
    You only buy the right to your own personal use.
    You do NOT have the right to distribute to others.
    This is illegal.  There is no doubt about it

  • How to load data from PSA to CUBE & DSO at a time using DTP in BI 7 ?

    HI all,
    I am new to BI 7 . How to load the data at same time to DSO & INFO CUBE using DTP.
    Please provide me steps to load & plz specify which update mode I have to use ( FULL OR DELTA ) which one is best.
    Plz Suggest me.
    Thanks & Regards,
    Kiran m.
    Message was edited by:
            kiran manyam

    Below are the basic steps which we follow in any BI 2004S system:
    1)Create datasource. Here u can set/check the Soucre System fields.
    2)Create Transformation for that datasource. (no more update rules/transfer rules)
    2.1) While creating transformation for DS it will ask you for data target name, so just assign where u want to update ur data.
    DataSource -> Transformation -> Data Target
    Now if you want to load data into data target from Source System Datasource:
    1) Create infopackage for that data source. If you are creating infopackage for new datasources, it will only allow you update upto PSA, all other options u can see as disabled.
    2)Now Create DTP (Data Transfer Process) for that data source.
    3) NOw schdule the Infopackage, once the data is loaded to PSA, you can execute your DTP which will load data to data target.
    If you are loading data from one one data target to other, no need to use PSA, you can directly execute DTP in that case.
    Data Source -> Transformation (IP/DTP) -> Data Target1 -> DTP ->Data Target 2
    Use the below link for detailed example:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fc61e12d-0a01-0010-2883-e2fc63ef729b
    Infosources are no more mandatory with BI 7.0, below is the link to scenarios where we use infosources:
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/0243dd8ae1603ae10000000a1553f6/content.htm
    Full or delta depends on your requirement...
    chk the below thread to know better
    difference between the various loads
    hope it helps
    Message was edited by:
            sriram viswanathan

  • Can u give clear steps how to load 3 data target at a time by the help of p

    can u give clear steps how to load 3 data target at a time by the help of parllalesim

    hi,
    create the load infopackage type and give the infopack you need to load.
    create 3 similar process types.
    chain should have this flow
    start -> delet index(if cube is the target) -> load target(connect the load process to start process) parallel -> and process -> create index(if cube)/actiavtion of ods(if ods)
    Ramesh

Maybe you are looking for

  • Heat cpu/hdd hp pavilion dv6t-7000

    Product name: HP Pavilion dv6t-7000 CTO Entertainment Notebook Problem: Over heating on the CPU and fan noizes More details: O.S. Windows 7 Ultimate Service Pack 1 CPU: Intel Core i7-3610 QM @ 2.30 GHZ RAM: 8.00 GB 64 Bit My message:  Greetings fella

  • Can I use iCloud away from home on my iPhone5s?

    I thought that it worked that way, but I seem to be mistaken.  I can use it when on the same block as my home, but not otherwise.  When I am near home, it only allows me to play a few songs from a couple of artists.  Is it supposed to work that way a

  • Disabling auto-complete in a single column or cell

    Dear All, I find the auto-complete feature in Numbers to be both time-saving but also dangerously stupid. Why should the default option be that when only one auto-complete entry is available, continuing to type your entry and pressing the return key

  • Still trying to bridge to Verizon air card

    First, thanks to all who responded to "Mac OS X v10.4 Tiger > Getting Online & Networking > Bridge to Verizon air card" I'm sure that would have worked had I been more networking literate. I now connect via new MacBook Pro & Verizon UM175VW USB air c

  • Labview has encountered a problem and close by windows

    Dear All, Here I have one question to ask for you. it is that labview was closed automatically by windows and return a information After I run a program(This program was written in labview, it called a .dll to completed a certain process.).  Please s