Who can I do this?

Ok I am helping a friend with a website for a local ski shop to sell online. I have done dynamic sites before and have managed to figure things out most of the time by searching....but I am really butting my head against the wall. Here is what I need to do.(I am using .ASP and Access DB)
On the admin side he will be able to input new inventory such as skis. Every brand of skis has different lengths, If I create a multi-choice drop menu and insert that into the DB it gives me the following in one field in the DB...skiLength: 160 cm, 161 cm, 162 cm, 163 cm
Ok so how do I display that on the front end so it will allow shoppers to select from an individual length values that are available. I can only get it to return like this, when I query the DB. How can I split this into individual sli lengths?
Ski Lengths: 160 cm, 161 cm, 162 cm, 163 cm
In the DB the fields looks like this
I know that I can do this if I added individual fields for each length, but there has to be an easier way with ASP code
Check this link to see what I am talking about on a front side. It lists the sizes that are available and allows it to be passed on to a cart as a unique value
Elan Amphibio Waveflex 78 Ti Skis with ELX 11.0 Fusion Bindings 2013
thanks for the help..
theDogger

Thanks for the help....but to add to it...as you stated..."You wouldn't want to do that, but your current database design is not correct. Currently you have more than one value in a field (skiLength) which is a basic normalization violation."
I understand that, that was a result of trying to use a multi-select menu. When submitted it puts it all into the one field. Are you suggesting that I have 40 field for ski lengths that range from 155-220?
I know with ASP that you can take a field from a DB and do a either a SPLIT or ARRAY or maybe both together with the data from a single field that is common delimited.
or
Are you suggesting a reference table? Still every ski added has a different number of lengths.
Check out the link above to the ski site that has the individual lengths that each have their own valve when selected to added to the cart.
How would you structure the DB then? maybe seeing it will make the light go off!!!!
theDogger

Similar Messages

  • Is there anyone there? I hope there is someone who can you understand this problem and have the common sense to respond?  I open gmail. I want to save an email to one of my folders. I position my cursor over the appropriate Folder icon or by choice, to th

    Is there anyone there? I hope there is someone who can you understand this problem and have the common sense to respond?
    I open gmail. I want to save an email to one of my folders.
    I position my cursor over the appropriate Folder icon or by choice, to the Trash.
    The friendly finger pointing cursor icon changes to an arrow icon.
    The hand icon allows me flawless access to opening and/or moving emails.
    The arrow, however does not open the link.
    On the Google menu bar the cursor hand with finger opens the links to Everett (my name), Search, Images, Maps and Play.
    When I attempt to open the remaining links in the menu bar (YouTube, News, Gmail, Drive, Calendar and More) the arrow icon replaces the hand. The arrow icon does not work. It will not activate these links.  Nor does it open email messages in the Inbox.
    Usually I reset, even reboot Safire and sometimes the problem goes away, then reappears.
    Can you imagine if this condition should it happen to a tech savvy Google Support person? Perhaps one can share and make my problem go away.
    I am considering dropping Google as my mail source. Unfortunate!
    Everett Halvorsen
    [email protected]
    718.490.3824

    I have uninstalled my Access Connection, but this problem seems to persist. IBM technician have changed the wireless card of my T60, the first few days after it was changed was very fine, no problem at all. About a week later, the problem occured again, and it happened quite frequently after that occurence. Now i really have no idea what is the cause and how to solve it. Will be greatful if there is anyone that can help me.

  • I'm using iphone 3gs ios4.1 when I leasing 3-5 songs continuously it get restarted. who can I solve this problem

    I’m using iphone 3gs ios4.1 when I leasing 3-5 songs continuously it get restarted. who can I solve this problem

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these steps in order.

  • I have a report from WhatisHang which (in theory) tells my why my firefox constantly hangs up. But I need someone who can help figure this out.

    I hope this section will work, i couldnt find a place for Hang ups, and this problem doesnt usually cause a full crash, which is why it was hard to figure it out.
    I finally used the program WhatisHang to try to get an idea of what is causing the seemingly random hanging, but have been unable to find anyone who can help me with it.
    I have posted the Troubleshooting Information, though i dont think it would be of much help.
    I have the report available but dont know where i can post it.

    I must admit I seem possibly to be suffering from hangs also, although as I am often not in a hurry when using firefox on this machine it has little impact. I am using a legacy computer and tend to blame this on the computer or maybe background tasks such as from security software or indexing.
    '''Do you still get the hangs in safe mode with all''' (or maybe all but one essential plugin if you think a plugin is involved in the hangs) '''plugins disabled ?
    Have you tried to rule out
    * background tasks are the problem, <br/>(at least monitor what else is running using Task Manager or sysinternals process explorer)
    * [[is my firefox problem a result of malware|malware]]. <br/>( consider full system scans with multiple tools/software)
    * any other interacting programs or plugins <br/>(some may not be listed in firefox, you may need to check / uninstall from the OS {Windows Control Panel})
    **it may also be an idea to check hangs still occur when WhatIsHangs is not in use.
    * have you tried logging the cc & gc times in the error console, <br/>(if for instance you see times in 1000s of milliseconds appearing you may have then identified one reason for firefox being unresponsive, even if the cause is not yet identified. - a symptom the memshrink firefox developers will no doubt be eager to investigate)
    * if you can get hangs in safe mode, on at least the Aurora channel releases I suggest you immediately go ahead and file a bug yourself. (I will try to find time if not today then next weekend to look more closely at my own system to see if it is showing hangs in firefox use)
    ** ideally try with all default preferences
    ** As you have changed preferences, I suggest you include as a attachment in the bug your list of user modified preferences (use ''about:support'' or Troubleshooting Information option)
    ** State what security software is in use, it could be an important factor.<br/> (I imagine the majority of users have security software, or if not have security vulnerabilities and potentially an undetected malware problem)
    I will try to find and download a copy of WhatIsHang, see if it works on my system and what results it then shows.
    I realise I have not said anything terribly helpful I solving your problem, but I suspect you are not alone in having hangs, if you are able to spare the time to investigate and report I am sure it will help others.
    Firefox has had a few problems recently that would have been solved sooner if they were investigated when first reported, but unfortunatly an advantage of firefox is how easy it is to customise, but the downside is differentiating between a firefox fault and customisation problems.

  • Any danes who can explain what this is about.

    Got this message from controlling the disc....
    Kontrollerer enheden “Macintosh HD”
    Kontrollerer HFS Plus-enhed.
    Kontrollerer Extents Overflow-arkiv.
    Kontrollerer katalogarkiv.
    Kontrollerer arkiver med mange forbindelser.
    Kontrollerer kataloghierarkiet.
    Kontrollerer arkivet Extended Attributes.
    Kontrollerer enhedens bitmap.
    Enhedens bit map kræver en mindre reparation
    Kontrollerer oplysninger om enheden.
    Ugyldigt antal ledige blokke på enhed
    (Det burde være 14099383 i stedet for 14096227)
    Enheden Macintosh HD skal repareres.
    Fejl: Den underliggende opgave rapporterede en fejl ved ****
    1 HFS-enhed undersøgt
    Enheder skal repareres

    Hi snetiger,
    Have you installed the "Battery Update" from the Apple site? Has the battery been replaced through the battery program? Check the Magsafe plug. Is it melting? Do you have access to another charger to eliminate a bad charger? Does the orange charge light coming on or the green power adapter mode light? Have you unplugged the charger from the wall for about 60 secs. (if no lights, this resets charger) What are your energy saver preferences set to?
    I have been dealing with this battery issue across three different machines. I think it is a time formatting issue with the software. Keep an eye on the clock. Most of my worst issues have always occurs when the battery is "Calculating Until Full" this can go on for a while unless I unplug the Magsafe or open energy saver. Just opening it not having to change any settings.
    Sweet Polly

  • Another user who can't get this thing started, Listener will not operate!!!

    I installed from root, used port 8085 for the database (8080 used by Tomcat) and 1521 for the listener. Logged out, log back in as user oracle. Takes three full minutes to "start" the listener, but netstat -a does not show any listener on port 1521, despite listener startup saying "Command successful". Starting database, then 'lsnrctl status' returns the following:
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 19-FEB-2007 19:16:16
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 19-FEB-2007 19:11:20
    Uptime 0 days 0 hr. 4 min. 55 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=solera.homedns.org)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XE" has 1 instance(s).
    Instance "XE", status BLOCKED, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "XE", status BLOCKED, has 1 handler(s) for this service...
    The command completed successfully
    All firewalls are completly disabled, except for my router which has ports 8085 and 1521 open. So, 1) Where is the listing for the listening in netstat -a? and 2) Why are my database services blocked? I've been trying for a week to get this thing started, I need it for work. I can log in to the database through SqlPlus, so it is there and running fine, but the listener is not working, and I cannot get to the database home page.

    Checked the listener log. Doesn't look good. Keep saying host or object does not exist!!
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production on 19-FEB-2007 18:56:13
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Log messages written to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Trace information written to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/trace/listener.trc
    Trace level is currently 0
    Started with pid=3711
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=solera.homedns.org)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production on 19-FEB-2007 19:11:20
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Log messages written to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Trace information written to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/trace/listener.trc
    Trace level is currently 0
    Started with pid=3384
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=solera.homedns.org)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    19-FEB-2007 19:14:29 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=solera.homedns.org)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * status * 0
    19-FEB-2007 19:16:01 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=solera.homedns.org)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * status * 0
    19-FEB-2007 19:16:15 * service_register * XE * 0
    19-FEB-2007 19:16:16 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=solera.homedns.org)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * status * 0
    19-FEB-2007 19:16:17 * service_update * XE * 0
    19-FEB-2007 19:16:23 * service_update * XE * 0
    19-FEB-2007 19:16:32 * service_update * XE * 0
    19-FEB-2007 19:16:35 * service_update * XE * 0
    19-FEB-2007 19:16:37 * ping * 0
    Error listening on: (Description=(Address=(Protocol=tcp)(Port=8085)(Host=localhost))(Presentation=HTTP)(Session=RAW))
    19-FEB-2007 19:16:38 * service_update * XE * 12545
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    19-FEB-2007 19:16:41 * service_update * XE * 0
    19-FEB-2007 19:16:44 * service_update * XE * 0
    19-FEB-2007 19:26:47 * service_update * XE * 0
    19-FEB-2007 19:27:44 * service_update * XE * 0
    19-FEB-2007 19:34:02 * service_update * XE * 0
    19-FEB-2007 19:41:47 * service_update * XE * 0
    19-FEB-2007 19:46:44 * service_update * XE * 0
    19-FEB-2007 19:46:59 * service_update * XE * 0
    19-FEB-2007 19:47:02 * service_update * XE * 0
    19-FEB-2007 19:47:10 * service_died * XE * 12537
    19-FEB-2007 19:47:26 * service_register * XE * 0
    19-FEB-2007 19:47:26 * service_update * XE * 0
    19-FEB-2007 19:47:32 * service_update * XE * 0
    19-FEB-2007 19:47:38 * service_update * XE * 0
    19-FEB-2007 19:47:41 * service_update * XE * 0
    Error listening on: (Description=(Address=(Protocol=tcp)(Port=8085)(Host=localhost))(Presentation=HTTP)(Session=RAW))
    19-FEB-2007 19:47:44 * service_update * XE * 12545
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    19-FEB-2007 19:47:50 * service_update * XE * 0
    19-FEB-2007 19:48:32 * service_update * XE * 0
    19-FEB-2007 19:48:38 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=solera.homedns.org)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * status * 0
    19-FEB-2007 19:58:32 * service_update * XE * 0
    19-FEB-2007 20:00:02 * service_update * XE * 0
    19-FEB-2007 20:00:41 * service_update * XE * 0
    19-FEB-2007 20:01:42 * service_update * XE * 0
    19-FEB-2007 20:02:49 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=solera.homedns.org)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * status * 0
    19-FEB-2007 20:11:18 * service_update * XE * 0
    19-FEB-2007 20:14:06 * service_update * XE * 0
    19-FEB-2007 20:15:12 * service_update * XE * 0
    19-FEB-2007 20:17:27 * service_update * XE * 0
    19-FEB-2007 20:18:36 * service_update * XE * 0
    19-FEB-2007 20:21:41 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=solera.homedns.org)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * status * 0
    19-FEB-2007 20:28:36 * service_update * XE * 0
    But here is my hosts file:
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    ::1     solera.homedns.org     solera     localhost.localdomain     localhost 127.0.0.1
    Looks like they are there.

  • Oh boy, nothing so far has worked, who can help on this one

    Here is the deal...
    Apple logo would not dissapear from the screen of my 4 year old ipod (dockstation version, 15GB),
    I reformatted (FAT32 as per this forum) and restored my ipod in itunes. When this was done (multiple times now) I was asked to connect my ipod to the power supply.
    Doing that right now but the 'Disk Mode' and 'OK to disconnect' screen simply continue to show on the display and the battery icon is charging continously.
    This has been for about 2 hours now..
    Oh yeah, never had a problem before and I am a mild/medium user..
    Any suggestions appreciated as I do not have the money to buy a new Ipod or go to the Apple fixers..
      Windows XP  

    thanks for your comments but I have tried all of that.
    Apple logo appears and I can even get fase 1 of the restore program in itunes to run.
    After part1 of the restore program I am asked to unplug the ipod from itunes and hook it up to power. Then supposedly fase 2 or restoring is tarting but unfortunately nothing happens..
    I just listened closely and the ipod makes ticking noises when the apple logo is showing..
    Is that bad?

  • When I put my Macbook Air to sleep the screen often stays black. Who can I stop this? What did I do?

    So when I leave my Mac open or even when I close it, the screen often turns black and when I enter or I use my trackpad nothing happens. What can I do about this?

    Supposedly there are moisture sensors inside the case that change color when they are exposed to a certain amount of moisture. There does not have to be any other sign of water damage for Apple to void the warranty.
    I to have suspicious both ways when someone posts this type of thread. Does Apple do this just to get out of repairing a faulty Mac? Did the poster actually spill something on their computer and just blocks that out of there mind? Did someone else spill something on there computer and never mentioned it, cleaning it up before the owner noticed.
    Moisture damage can happen is many different ways. Like so many peopple today they carry their computers in a Backpack. That backpack can get rained on, they carry water bottles in it along with the computer. Since te Air intake is close to the bottom on the unit and the unit does not sit to far from the surface it is placed on any water spilt around it, especially the back of it, can eassily be sucked into the air intake area or water from spraying the screen for cleaning can drip down into that same area and then be sucked into the air intake system.

  • Hello once again i must bother who can answer and this is a double play. lg optimus zone.

    lg optimus zone. is there a front facing camera and if so how do I use it?? and I was able to find the setting on how to switch the end call key on the screen to the power button, how do I locate this?? for the life of me I can not locate the settings for it again! I tried changing it to the power button and failed. and to be misleading and make this a triple threat, when making a call that requires dial prompts, my screen fades in and out turning off and on, when I say need to press one to continue with English, I am postioning the phone so it doesn't take as dominut as effect. is this just sensitivity on the phone is it the angle on how I hold the phone or is it a defect??? thanks to whoever can answer these questions in advance. if you can't answer all that's fine just as long s I get all the answers from someone and multiple people eventually! thanks!

        We want you to enjoy the best reliability from your device jr1984. Do you have an existing account with us? Please confirm the make and model. I'm sorry we don't support the device you have referenced in your post.
    JonathanK_VZW
    VZWSupport
    Follow Us on Twitter@VZWSupport

  • Who can help solve this XML/Servlet mystery?

    Hi,
    I'm developing a servlet that accepts an HTTP request, contacts a database, processes the request and return an XML document back to the browser. The XML document returned is dependent on which selection a user makes.
    The problem is that on first request, say user selects "choice one", the correct XML document is returned. However, when the browser's back button is used to go back and make the same choice as previous(ie "choice one"), Explorer 4.5 displays an empty page while netscape 4.5 return a document contains no data error.
    I used oracle xmlclassgenerator to generate the classes that create the XML document to be returned. The problem certainly lies in the method of my servlet that uses these classes to generate the XML document because when I replace the whole method with println statement every thing works fine(but of course without the XML document).
    The content of the method is as follows.
    ACCOUNT acc = new ACCOUNT(id);
    //Create a child and add child to root node
    NUM_OF_RESIDENTS nr = new NUM_OF_RESIDENTS(num);
    acc.addNode(nr);
    //Create another child and add to root node
    FIXED_COST fc = new FIXED_COST();
    ELECTRICITY el = new ELECTRICITY(elec);
    GAS g = new GAS(gas);
    WASH_MACHINE wm = new WASH_MACHINE(wash);
    WATER wat = new WATER(water);
    OTHER oth = new OTHER(other);
    fc.addNode(el);
    fc.addNode(g);
    fc.addNode(wm);
    fc.addNode(wat);
    fc.addNode(oth);
    //finally add to root node
    acc.addNode(fc);
    //Create another child
    TELEPHONE tl = new TELEPHONE();
    SUBSCRIPTION sub = new SUBSCRIPTION(tel);
    COST_PER_TICK cpt = new COST_PER_TICK(tick);
    tl.addNode(sub);
    tl.addNode(cpt);
    acc.addNode(tl);
    //Create another child
    // PREVIOUS_ACCOUNT pacc = new PREVIOUS_ACCOUNT();
    for(int i=0; i<previous_details.size(); i++){
    //Create another child
    PREVIOUS_ACCOUNT pacc = new PREVIOUS_ACCOUNT();
    PreviousDetails pd = (PreviousDetails)previous_details.elementAt(i);
    String name = pd.getName();
    String credit = pd.getCredit();
    String debit = pd.getDebit();
    NAME n = new NAME(name);
    LAST_CREDIT lc = new LAST_CREDIT(credit);
    LAST_DEBIT ld = new LAST_DEBIT(debit);
    pacc.addNode(n);
    pacc.addNode(lc);
    pacc.addNode(ld);
    acc.addNode(pacc);
    for(int i=0; i<acc_dates.size(); i++){
    String str = (String)acc_dates.elementAt(i);
    ACCOUNT_DATE ad = new ACCOUNT_DATE(str);
    acc.addNode(ad);
    acc.validateContent();
    ByteArrayOutputStream out1 = new ByteArrayOutputStream(1024);
    acc.print(out1);
    res.setContentType("text/plain");
    ServletOutputStream os = res.getOutputStream();
    PrintWriter out = new PrintWriter(os);
    out.println(out1.toString());
    out.close();
    catch(Exception e){}
    Am I doing somthing wrong here?
    Thanks.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    If you paste your code that's in the servlet into a file with a static main() method, and if you wrap the code with a for loop in Java that makes it execute 3 times in a row, does it work properly each of the the 3 times in this scenario?<HR></BLOCKQUOTE>
    I have done as you requested. For your convenience I have pasted both the code and its output below.
    import oracle.xml.classgen.*;
    import oracle.xml.parser.*;
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import java.math.*;
    public class CreateTest{
    static String id = "10212";
    public static void main (String args[]){
    for(int i=0; i<3; i++){
    System.out.println("Request started!");
    testLoop();
    static void testLoop(){
    try{
    System.out.println("Start DB contact");
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@my_ip:sid","username", "passwd");
    ResultSet rset;
    Vector acc_dates = new Vector();
    Vector previous_details = new Vector();
    String elec = null;
    String gas = null;
    String wash = null;
    String water = null;
    String other = null;
    String tel = null;
    String tick = null;
    String num = null;
    Statement stmt = conn.createStatement();
    rset = stmt.executeQuery("select NUM_OF_RESIDENTS from MEMBER WHERE ID="+id);
    while(rset.next()){
    num = String.valueOf(rset.getInt(1));
    rset = stmt.executeQuery("select ELECTRICITY,GAS,WASH_MACHINE,WATER,OTHER from FIXED_COST where ID="+id);
    while(rset.next()){
    elec = String.valueOf(rset.getFloat(1));
    gas = String.valueOf(rset.getFloat(2));
    wash = String.valueOf(rset.getFloat(3));
    water = String.valueOf(rset.getFloat(4));
    other = String.valueOf(rset.getFloat(5));
    rset = stmt.executeQuery("select SUBSCRIPTION,COST_PER_TICK from TELEPHONE WHERE id="+id);
    while(rset.next()){
    tel = String.valueOf(rset.getFloat(1));
    tick = String.valueOf(rset.getFloat(2));
    rset = stmt.executeQuery("select NICK_NAME, CREDIT, DEBIT from PREVIOUS_ACCOUNT WHERE LAST_ACCOUNT='yes' AND id="+id);
    while(rset.next()){
    String name = rset.getString(1);
    String credit = String.valueOf(rset.getFloat(2));
    String debit = String.valueOf(rset.getFloat(3));
    PreviousDetails pd = new PreviousDetails(name,credit,debit);
    previous_details.addElement(pd);
    rset = stmt.executeQuery("select ACCOUNT_DATE from ACCOUNT_RESULT WHERE ID="+id);
    while(rset.next()){
    acc_dates.addElement(rset.getString(1));
    rset.close();
    stmt.close();
    conn.close();
    System.out.println("End DB contact");
    generateXMLDocument(num,elec,gas,wash,water,other,tel,tick,previous_details,acc_dates);
    catch(Exception e){e.printStackTrace();}
    public static void generateXMLDocument(String num, String elec, String gas, String wash, String water, String other, String tel, String tick, Vector previous_details, Vector acc_dates){
    try{
    //Create the document root node
    ACCOUNT acc = new ACCOUNT(id);
    //Create a child and add child to root node
    NUM_OF_RESIDENTS nr = new NUM_OF_RESIDENTS(num);
    acc.addNode(nr);
    //Create another child and add to root node
    FIXED_COST fc = new FIXED_COST();
    ELECTRICITY el = new ELECTRICITY(elec);
    GAS g = new GAS(gas);
    WASH_MACHINE wm = new WASH_MACHINE(wash);
    WATER wat = new WATER(water);
    OTHER oth = new OTHER(other);
    fc.addNode(el);
    fc.addNode(g);
    fc.addNode(wm);
    fc.addNode(wat);
    fc.addNode(oth);
    //finally add to root node
    acc.addNode(fc);
    //Create another child
    TELEPHONE tl = new TELEPHONE();
    SUBSCRIPTION sub = new SUBSCRIPTION(tel);
    COST_PER_TICK cpt = new COST_PER_TICK(tick);
    tl.addNode(sub);
    tl.addNode(cpt);
    acc.addNode(tl);
    //Create another child
    // PREVIOUS_ACCOUNT pacc = new PREVIOUS_ACCOUNT();
    for(int i=0; i<previous_details.size(); i++){
    //Create another child
    PREVIOUS_ACCOUNT pacc = new PREVIOUS_ACCOUNT();
    PreviousDetails pd = (Previou sDetails)previous_details.elementAt(i);
    String name = pd.getName();
    String credit = pd.getCredit();
    String debit = pd.getDebit();
    NAME n = new NAME(name);
    LAST_CREDIT lc = new LAST_CREDIT(credit);
    LAST_DEBIT ld = new LAST_DEBIT(debit);
    pacc.addNode(n);
    pacc.addNode(lc);
    pacc.addNode(ld);
    acc.addNode(pacc);
    for(int i=0; i<acc_dates.size(); i++){
    String str = (String)acc_dates.elementAt(i);
    ACCOUNT_DATE ad = new ACCOUNT_DATE(str);
    acc.addNode(ad);
    acc.validateContent();
    ByteArrayOutputStream out1 = new ByteArrayOutputStream(1024);
    acc.print(out1);
    System.out.println("The result is:");
    System.out.println(out1.toString());
    catch(Exception e){}
    The output is:
    Request started!
    Start DB contact
    End DB contact
    The result is:
    <!DOCTYPE ACCOUNT SYSTEM "file:/home/httpd/html/tydex/dtd/ACCOUNT_dtd.txt">
    <ACCOUNT ID="10212">
    <NUM_OF_RESIDENTS>3</NUM_OF_RESIDENTS>
    <FIXED_COST>
    <ELECTRICITY>0.0</ELECTRICITY>
    <GAS>0.0</GAS>
    <WASH_MACHINE>0.0</WASH_MACHINE>
    <WATER>0.0</WATER>
    <OTHER>0.0</OTHER>
    </FIXED_COST>
    <TELEPHONE>
    <SUBSCRIPTION>0.0</SUBSCRIPTION>
    <COST_PER_TICK>0.0</COST_PER_TICK>
    </TELEPHONE>
    <PREVIOUS_ACCOUNT>
    <NAME>dsffd</NAME>
    <LAST_CREDIT>0.0</LAST_CREDIT>
    <LAST_DEBIT>0.0</LAST_DEBIT>
    </PREVIOUS_ACCOUNT>
    <PREVIOUS_ACCOUNT>
    <NAME>dsfd</NAME>
    <LAST_CREDIT>0.0</LAST_CREDIT>
    <LAST_DEBIT>0.0</LAST_DEBIT>
    </PREVIOUS_ACCOUNT>
    <PREVIOUS_ACCOUNT>
    <NAME>dsfdfs</NAME>
    <LAST_CREDIT>0.0</LAST_CREDIT>
    <LAST_DEBIT>0.0</LAST_DEBIT>
    </PREVIOUS_ACCOUNT>
    </ACCOUNT>
    Request started!
    Start DB contact
    End DB contact
    Request started!
    Start DB contact
    End DB contact
    Thanks.
    null

  • I need another person Who Can help with this iphone it will not restore on will not completely turn on

    i can't turn on the phone or even restore the phone completely it will not turn on at all !!

    iOS: How to backup - http://support.apple.com/kb/HT1766
    iOS: Unable to update or restore - http://support.apple.com/kb/HT1808

  • Purchased 3 subscriptions for Adobe Acrobat On colleague never received her link . . who can help me this site just sends you around and around

    Please see above, I can't seem to find any support for the above issue.  We just need a link resent to us for our recent purchase.

    What link do you need?  Subscriptions are activated by signing-in with the appropriate Adobe ID.
    You can download the trial from http://www.adobe.com/products/acrobatpro.html

  • Let's see who can help with this applet

    Hello. I am new in Java and confused with this assignment.
    I have to write an applet for a store that sells 8 products
    whose retails prices are Product 1 - $2.98, Product 2 - $4.50, Product 3 - $9.98, Product 4 - $ 4.49, Product 5 - $ 6.87,
    Product 6 � $ 12.37, Product 7 - $ 14.30 and Product 8 - $ 11.40.
    The applet: 1) Has an intro message to a store named for you, where you describe what products they have, 2) Reads a series of pairs of numbers: Product Number and Quantity Number.
    Use a switch structure to determine the retail prices for each product. Use "TextField" to obtain the product number from the user. Use a �sentinel controlled� loop to determine when the program should stop looping to display the final result (I used number -1 as sentinel). Display the total value of all products sold.
    This is the program I wrote:
    //java core packages
    import java.awt.*;
    import java.awt.event.*;
    import java.text.NumberFormat;
    import java.util.Locale;
    // Java extension packages
    import javax.swing.*;
    public class MYSHOP extends JApplet implements ActionListener {
    // GUI componentes
    JLabel productNumLabel, quantityNumLabel;
    JTextField productNumField, quantityNumField;
    // variables
    double subtotal = 0;
    double total = 0;
    public void init()
    // display intro message
    JOptionPane.showMessageDialog( null, "Welcome toablabla.\nWe
    offer you blablabla\nClick OK to start shoping",
    "Company information", JOptionPane.PLAIN_MESSAGE );
    // obtain content pane and set its layout to FlowLayout
    Container container = getContentPane();
    container.setLayout( new FlowLayout() );
    // create productNumLabel, productNumField and attach them to
    // content pane
    productNumLabel = new JLabel( "Enter Product Number (-1 to
    quit):" );
    productNumField = new JTextField( 4 );
    productNumField.addActionListener( this );
    container.add( productNumLabel );
    container.add( productNumField );
    // create productNumLabel, productNumField and attach them to
    // content pane
    quantityNumLabel = new JLabel("Enter Quantity:");
    quantityNumField = new JTextField( 4 );
    quantityNumField.addActionListener( this );
    container.add( quantityNumLabel );
    container.add( quantityNumField );
    } // end method init
    public void actionPerformed( ActionEvent actionEvent )
    int index = Integer.parseInt( productNumField.getText() );
    int ammount = 0;
    while ( index != -1 )
    NumberFormat moneyFormat =
    NumberFormat.getCurrencyInstance( Locale.US );
    if( actionEvent == quantityNumField.getText() )
    ammount = Integer.parseInt( quantityNumField.getText() );
    switch (index)
    case 1:
    subtotal += ( 2.98 * ammount );
    break;
    case 2:
    subtotal += ( 4.5 * ammount );
    break;
    case 3:
    subtotal += ( 9.98 * ammount );
    break;
    case 4:
    subtotal += ( 4.49 * ammount );
    break;
    case 5:
    subtotal += ( 6.87 * ammount );
    break;
    case 6:
    subtotal += ( 12.37 * ammount );
    break;
    case 7:
    subtotal += ( 14.30 * ammount );
    break;
    case 8:
    subtotal += ( 11.40 * ammount );
    break;
    case -1:showStatus( "The Total is: " + subtotal );
    System.exit(0);
    break;
    default:
    JOptionPane.showMessageDialog( null,"There is no
    such product", "ERROR",
    JOptionPane.ERROR_MESSAGE);
    } // end switch structure
    } // end while structure
    productNumField.setText(""); // clear productNum field
    quantityNumField.setText(""); // clear quantityNum field
    } // end method actionPerformed
    } // end class MYSHOP
    When I try to compile it, the error I get is "incomparable types: java.awt.event.ActionEvent and java.lang.String", in the line:
    if( actionEvent == quantityNumField.getText() )
    The error pointer points to "==" in that line
    What should I write in that line instead?
    Also, if someone realizes that some part of the code is in the wrong place, please tell me.
    Thanks in advance.

    Instead of
    if( actionEvent == quantityNumField.getText() ) I think you want
    if( actionEvent.getSource() == quantityNumField )HTH,
    Radish21

  • I got a macbook pro from late 2008, I've being experiencing a few problems and will like to erase everything and reinstall lion os and all the programs... who can I do this?

    Hello everyone... I've being having trouble with my macbook pro... and someone suggested that I might wanna restore it to it's factory settings... I'm wondering if it's better just to erase it and reinstall all, the only problem is that I don't know how to do neither... any suggestions? thanks

    Just a minor point.  iOS 5.0.1 would never be on a Mac.  You might want to fix that on your profile.
    Here you go.

  • I want to install a 512 GB SSD, but I can't get the screws off of the back!!!  Such an easy upgrade.  Who can I pay to do this for me?

    I just bought a 15" MBP 2.3 i7 quad.  I didn;t have enough money to buy an SSD when I ordered the MBP, but before it arrived, I scraped together thw money and ordered one, along with a "Data Doubler".
    I want to take the HD out, install the SSD, load software on the SSD with the optical drive, then take out the optical drive and replace it with the original HD.
    Sounds pretty easy, no?
    WELLLL....I can't get the screws out of the back of the MBP!!!
    I actually think I stripped several ofthe screw heads....NOT GOOD...
    Who can I bring this MBP to before I ruin a laptop that costs more than my last used car?
    Thanks,
    Lou

    To be precise:
    It would make a lot of sense to stripe two SSDs to double the speed. Theoretically.
    Bare with me.
    Second generation SATA interfaces running at 3.0 Gbit/s with a native transfer rate of 3.0 Gbit/s, and taking 8b/10b encoding into account, the maximum uncoded transfer rate is 2.4 Gbit/s (300 MB/s).
    Third generation SATA interfaces running at 6.0 Gbit/s with a native transfer rate of 6.0 Gbit/s, and taking 8b/10b encoding into account, the maximum uncoded transfer rate is 4.8 Gbit/s (600 MB/s).
    So:
    In a computer with two SATA III (6Gbit/sec) interfaces connected to two SATA III SSDs (like the OCZ Vertex 3 MI) you would instead of 550MBytes/sec read 1100MBytes per second.
    But (and here comes a big BUT)
    Apple has decided to limit the speed on the superdrive bay to SATA II (3Gbit/sec) by connecting to the slower SATA II interface of the chipset (takes less power) instead of the second (existent!!!) SATA III interface !!!!!!
    So back in the 2 SSD array but this time in a MBP 15/17 2011 (i5 or i7):
    The one in the superdrive bay would read up to 300 MBytes per second, the one in the HDD bay "could" read up to 550MBytes per second so you would say "hey that is a 850MB/sec", right?
    Wrong: as the faster has to wait for the slower you read kinda 2x300 so 600 MB/sec.
    Wow that is soo much faster then 550 and it costs only double the price of a SSD ;-)
    But in a computer with multiple SATA III interfaces it does make a lot of sense (given the need of speed and the cash to go for it).
    But dont give up!  You will be able to run the 4 SSD raid stripe soon: it will be in a thunderbolt attached enclosure!!! (Although you might be shocked to learn the price... your MBP might even look cheap when compared)
    Greetz from Switzerland

Maybe you are looking for

  • Magsafe or battery issue? MBP 17"

    Hi Guys, My macbook has been in sleep mode for a couple of days off charge. i went to use it the other day and it was completey dead. There were no indicator lights on the battery not even 1 flashing to show battery drained, I left it charging over n

  • Closing characteristic after a time period

    Dear All, I am looking for a way to close an inspection charcateristic automatically after a certain time period. I have 3 characteristics for my inspection lot. The first should be closed 20 hours after generation of the inspection lot. The second 1

  • Dynamic Filter Display in Report Designer

    Hi All, We have implemented a new BI reporting tool and are using Report Designer for the output format. The problem is that we cannot see any dynamic filters or navigational level when printing as RD takes it back to the original format. To overcome

  • Issue while making calls

    Hi Team, I am new to the community.I am using iPhone 5S for past 6 months and from India. Issue is depending upon the signal the network will be changing from 3G to LTE in my phone. While this is happening I am unable to make calls or receive calls.

  • CS3 & Leopard - can't copy/paste from InDesign Illustrator?

    I have just loaded Leopard and then CS3 onto my new MacBook Pro and then upgraded my existing iMac with another Leopard and the same CS3. Neither machine will allow me to copy/paste images or text boxes from InDesign > Illustrator - It appears to try