Tree Location

Hi everyone,
I started to study apex a few days ago and i have some doubts.
When i put the treeview on region 3 it doesn´t load and nothing appears. Is there a problem?
I wanna create a form (form 1) on region 1 with some informations. On region 3, i wanna have a treeview with pages that i will access. On click event of treeview, i want to show on region 2 another form using a primary key defined on form 1. How do i do this?
thanks
Ricardo

Ricardo,
Thank you for your help, it had been greatYou're certainly welcome, however I don't feel like I've done much yet.
My test is working now. I really don´t know what i
have done wrong. I did all steps again and it worked
fine.Great! Glad you got something working.
Let me explain you what I wanna do.
I have a table of client, a table of orders and a
table of invoices. Also, i have a table of pages. On
this one, i have names of pages about clients, order
and invoices. I will build a treeview page with this
informations depending on table that i am showing. If
i was showing client page, on treeview, i will see
links of orders and invoices. When i click on
treeview item i choose which page i want to show. The
page of client is on region 1. The treeview, on
region 3 and on region 2 wanna change page depending
on treeview´s item i click. The view will run like a
navigation bar, but dynamically. I want to show at
treeview format because these information have a
hierarchy.This is all (probably) very doable, from a technical/Apex point of view. However, you haven't yet posted any of your SQL or table structures that are really key to anyone being able to help you with this.
If I could make another suggestion: if you don't already have one, get an account on the apex.oracle.com demo site and put an example there. That way we can see more of what you're trying to do and give suggestions or in many cases code examples that will help.
Earl

Similar Messages

  • Tree Nodes has White Outline/Border

    Hi,
    I'm using an ADF tree located inside a panelGroupLayout.
    The panelGroupLayout has the background color "light blue".
    At runtime each tree node is displayed with a surrounding white outline and that can only appear when you have a background color different than white (in my case the panelGroupLayout is "light blue").
    Does anybody knows how to remove that outline? or to change its color?
    Thanks,
    Alain.

    Here are the skin seletors
    tr:tree Component
    Icon Selectors
    Name      Description
    af|tree::expanded-icon      This icon is displayed before the expanded tree node.
    af|tree::collapsed-icon      This icon is displayed before the collapsed tree node.
    af|tree::no-children-icon      This icon is displayed instead of the expanded/collapsed icon, when the node has no children
    af|tree::line-icon      This icon is used as a vertical line between the nodes.
    af|tree::line-middle-icon      This icon is used as the horizontal line in the background of the expand/collapse icon of the node, in the case the node is not the last sibling of its parent node.
    af|tree::line-last-icon      This icon is used as the horizontal line in the background of the expand/collapse icon of the node, in the case the node is the last sibling of its parent node.
    af|tree::node-icon      This icon selector is used in the case the Node class has a getNodeType() method that returns the node type as string. The nodetype gets added to this selector, separated by a ':'. If the node is a container (has children) the following suffixes get added depending on the expanded/collapsed state: '-expanded' / '-collapsed'. e.g. "af|tree::node-icon:container-collapsed", "af|tree::node-icon:container-expanded", "af|tree::node-icon:noncontainer".
    Trinidad properties
    Name      Description
    -tr-show-lines      Valid values are true or false (default true). Determines whether the tree lines are displayed or not. e.g., af|tree {-tr-show-lines:false} will not show the lines of the tree.Timo

  • Family Tree Web Widget

    Is there a HTML widget that can be plugged into iWeb that will allow a person to display their family tree?
    Thanks.

    What format and where is the family tree located? What application, if any, did you use to create it?

  • How do I create on-line PDFs which will read them to visually impared customers?

    I have seen a handful of unanswered questions about getting Adobe Reader to read aloud, on-line or downloaded PDF content to people who are visually impaired. None of them seem to answer the questions about Acrobat X.1 or backward compatibility. Before I spend $45 for one chapter from a book, perhaps one of you experts know of a simple site which explains how to comply with the ADA Americans with Disabilities’ Act.
    I know there are many variables like OS, Reader version and user ability to enable their sound card and configure a few settings.
    This summary is excerpted from chapter 23 of The Acrobat X PDFBible by Ted Padova, published by Wiley. Follow the link further below to download the complete 16-page sample chapter. Adobe Acrobat is compliant with U.S. federal code regulating document accessibility for vision- and motion-challenged persons. This means that screen readers can intelligently interpret the PDFs you create; in other
    words, PDF files can be read aloud in a reading order as a sighted person would read a document. Through an extensive set of keyboard shortcuts available in Acrobat, almost anyone with vision or motion challenges can share your documents and read them. In order for a document to be accessible, you must use authoring applications capable of delivering a document's structure to Acrobat. You need to know something about the internal structure of documents and which programs to use to create the structure required by Acrobat to make a document accessible. Not all the content in a document travels through the PDF-creation process with the information necessary to make a document completely accessible. Therefore, you need to perform some work in Acrobat to either add accessibility or to polish up a document for delivery to a screen reader in a form that makes sense to the user.
    In chapter 23 of The Acrobat X PDF Bible, you will learn how to check documents for tags and accessibility, add additional tags and arranger eading orders. Topics covered include:
    Using screen readers can interpret accessible PDF files and create audio output for people with vision and motion challenges. Using Adobe PDFMaker for Microsoft products, version 2000 or higher, including Word, Excel, Visio and so on; Adobe PageMaker 7 and higher; and Adobe FrameMaker, Adobe LiveCycle Designer, Adobe InDesign 2.0 and higher are capable of creating tagged and accessible PDF forms. Adding tags to PDF documents from a menu command within Acrobat Standard and Acrobat Pro and Pro Extended. Checking files for accessibility with the Quick Check command in Adobe Reader, Acrobat Standard, and Acrobat Pro and Pro Extended or with a Full Check in Acrobat Pro and Pro Extended. Tagging documents so they contain a structure tree. Elements in the tree locate respective elements in the document if you enable the Highlight Content menu command. Adding alternate text to elements in Acrobat by addressing the element's properties. http://www.wiley.com/WileyCDA/WileyTitle/productCd-0470612916.html
    Thanks if you know something helpful

    An accessible PDF is a well-formed Tagged PDF.
    You start with the proper authoring application that has tag management (there are not that many - discussed below).
    Your Tagged output PDF must be post-processed with Acrobat Pro.
    You evaluate the post-processed PDF.
    If satisfactory, you deploy the well-formed Tagged PDF.
    Adobe Reader or Acrobat (from 8.x forward) both provide the read out loud feature (ROL).
    While this is not equivalent to a full assistive technology (AT) application it can be useful for simpler narrative content.
    However, PDF page content consists of graphic objects (text included) that are painted to the page in a sequence/order that is "machine" centric rather than human centric.
    So, the raw print stream's read order can jump around. 
    (Look over ISO 32000-1 Forward paragraph 2 & Sections 8.1 & 8.2 to get a feel for what "PDF" is (& isn't).)
    PDF became an ISO Standard in 2008. This is currently ISO 32000-1. ISO 32000-2 is expected to be out in 2012.
    In terms of accessible PDF, ISO 14289-1 is expected to be out in 2012.
    ISO 14289 will define/describe the requirements for accessible PDF.
    Adobe introduced "Tagged PDF" with Acrobat 5.x (PDF version 1.4) "Full" release.
    For Acrobat 5.x this was an add-on that you took from the install CD-ROM.
    Since then "Tag" creation, management, etc. has been included with the install of: 
    (n.b., PDFMaker provides "tag management")
    --| Acrobat 6.x  Pro (PDF version 1.5)
    --| Acrobat 7.x Pro & 3D (PDF version 1.6)
    --| Acrobat 8.x Pro  &  3D (PDF version 1.7)
    --| Acrobat 9.x Pro & Extended (ISO 32000 & Adobe Supplement BaseVersion 1.7, ExtensionLevel 3)
    --| Acrobat X Pro (ISO 32000 & Adobe Supplement BaseVersion 1.7, ExtensionLevel 3)
    If the PDF is a well-formed Tagged PDF then ROL works its way down the structure tree (which can be viewed in Acrobat Pro's Tags panel).
    A well-formed Tagged PDF (built to comply with ISO 32000 currently & going forward built to comply with ISO 14289 / ISO 32000 will, in fact meet current Section 508 criteria and Section 508 Refresh criteria.
    Actually, it will met more rigorous criteria (Section 508, compared to other nations' requirements is somewhat anemic).
    For English, ROL will read left to right; top down.
    Not very useful for understanding tables and some other aspects of more developed content.
    AT uses the structure tree to convey the PDF's logical hierarchy and semantic content flow to users.
    So, a well-formed Tagged PDF is an essential for users of AT.
    Section 14 of ISO 32000-1 provides discussion of logical structure and tags.
    An ISO approved copy is at Adobe:
    ISO 32000-1
    In a nut shell, you'd want to provide a well-formed Tagged PDF.
    To effectively  consume a downloaded well-formed Tagged PDF end-users will want to use AT (NVDA (free, open source), JAWS, etc.) rather than Adobe Reader / Acrobat ROL.
    As to Ted's PDF Bible.
    I've got 'em on my bookshelf. Most excellent global references for all things Acrobat.
    However, to deploy well-formed Tagged PDF requires more detailed references.
    There is the up front authoring. Content must be mastered so as to support output of a well-formed Tagged PDF.
    There is the requisite post-processing of the PDF with Acrobat Pro.
    There is the requisite understanding of what the tags/elements are & how to properly use them.
    There is the need for specific "how-to" with examples.
    As to a "simple site" - - well, ahhh, "simple" precludes anything of usable worth, eh.
    A search on variations of "accessible PDF" will provide links to resources that provide "how-to".
    One resource is the Accessiblilty Forum at the Acrobat User Community.
    AUC Accessibility Forum
    An older thread there has links to Adobe "how-to" for various Acrobat releases. 
    An older list of reference material
    As the core of Acrobat's accessibility features are largely the same since Acrobat 5.x older how-to documents are still useful.
    For the most part, the most definitive discussions of the how-to & the why are in older Adobe documents.
    Of course, stuff comes & goes out on the web so the links may or may not be functional.
    (n.b., you'll have to copy-paste the URLs into a browser's address bar)
    However, a search on a document's title may provide an alternative link. 
    If not, send me a forum PM.
    Remember that the key to success (for a well-formed Tagged PDF) is in the authoring.
    Proper authoring with an application that provides adequate Tag management is critical.
    --| Adobe FrameMaker or InDesign with Acrobat Pro
    --|  MS Word with Acrobat Pro (for PDFMaker & ability to perform requisite post-processing of the PDF) for pre Office 2007
    --| MS Word 2007  / 2010 have a Save As PDF feature that can provide tag management -- but Acrobat Pro is still needed to perform requisite post-processing
    --| Open Office (& Acrobat Pro for requisite post-processing)
    Be well...
    Message was edited by: CtDave

  • Burn error 4280-help toonz? anyone?

    I'm getting so fed up with iTunes! I can't get any music onto cds. I am not buying any more from iTunes....but the problem is I still need to get the stuff I've purchased onto a cd...
    I cleared up the old 2122 problem by getting a whole new burner....went from an APOEN to a LITE-ON....
    now I've got ANOTHER burn failure....this is absolutely ridiculous..it can't all be me can it?
    so...I've been getting the burn error 4280 on all burns...no exceptions. And yes, I've followed what everyone has been saying about updating drivers, BIOS etc...I've used different brands of media and it's DMA over PIo
    anything else you can think of? here's my diagnostics....
    Microsoft Windows XP Professional Service Pack 2 (Build 2600)
    INTEL_ D945GTP_
    iTunes 6.0.5.20
    CD Driver 2.0.4.3
    CD Driver DLL 2.0.3.2
    UpperFilters: GEARAspiWDM (2.0.4.3),
    Video Driver: Intel(R) 82945G Express Chipset Family\Intel(R) 82945G Express Chipset Family
    IDE\DiskWDCWD3200JD-00KLB0____________________08.05J08, Bus Type ATA, Bus Address [1,0]
    USBSTOR\DiskMitsumiVT6205-DevB____2.67, Bus Type USB
    USBSTOR\DiskMitsumiVT6205-DevM____2.67, Bus Type USB
    IDE\CdRomDVD16X_________________________________FTJ1___, Bus Type ATA, Bus Address [1,0]
    IDE\CdRomLITE-ONDVDRW_SHM-165H6S________________HS0D___, Bus Type ATA, Bus Address [0,0]
    If you have multiple drives on the same IDE or SCSI bus, these drives may interfere with each other.
    Some computers need an update to the ATA or IDE bus driver, or Intel chipset. If iTunes has problems recognizing CDs or hanging or crashing while importing or burning CDs, check the support site for the manufacturer of your computer or motherboard.
    Current user is administrator.
    D: LITE-ON DVDRW SHM-165H6S, Rev HS0D
    Media in drive is blank.
    Get drive speed succeeded.
    The drive CDR speeds are: 8 16 24 32 40 48.
    The drive CDRW speeds are: 8.
    The drive DVDR speeds are: 8.
    The drive DVDRW speeds are: 8.
    E: DVD 16X, Rev FTJ1
    Drive is empty.
    The last failed audio CD burn had error code 4280(0x000010b8). It happened on drive D: LITE-ON DVDRW SHM-165H6S on CDR media at speed 16X.
      Windows XP Pro  
      Windows XP Pro  

    http://docs.info.apple.com/article.html?artnum=300448-Heres a start.
    This happens on certain PC's. I dont know if you care to know the ins and outs of why this sometimes happens, but here is why and how to fix it. an application (such as Roxio, Nero, iTunes, etc.) is installing a driver file (as a .SYS) or replacing a working driver file that is referenced within your registry. For some folks, the replaced driver is still referenced by either an UpperFilterCheck or a LowerFilterCheck, and the device manager is actually seeking out that file that, well... no longer exists. Or, when you try and uninstall the application (iTunes is the frequent transgressor) everything is removed, including the related driver files, but the registry isn't altered... so the device manager continues to try and locate that driver file... which no longer exists.
    the thing to do to reclaim your optical drives is located in your registry here:
    HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE1 0318}
    You'll want to have that open, and a mini-window of the following:
    START -> CONTROL PANEL -> SYSTEM -> Hardware (tab) -> DEVICE MANAGER -> Offending Drive (with yellow tag by it) Right-Mouse-Click and PROPERTIES -> Driver (tab) -> DRIVER DETAILS
    Notice that list. It references all the drivers that that particular drive is utilizing. There should be a single .DLL (dynamic link library) file and multiple .SYS files. It's the .SYS files we're focusing on, and they should be located in your C:\WINDOWS\System32\drivers\ folder stem. If you want to open a new window explorer, and go verify that each of those driver files still exists in that folder stem, you may.
    At this point, compare the Driver File Detail list with the Registry Tree Location you're sitting in, and look at the UpperFilterCheck and LowerFilterCheck key values. Your offending key value will NOT be on your Driver File Detail list!!! It might be as small as "PFC" or something else, but that value is referencing to a driver file that no longer exists. Delete that offending key value. Close the registry.
    Close the Driver File Details and Drive Properties windows. At this point, to finish this up, you need to Soft Uninstall (Right-mouse-click on the drive, and hit "Uninstall" ) the drive(s), let the Device Manager refresh... then hit ACTION -> Scan For Hardware Changes ...
    This should start a new Found New Hardware cycle, and.... poof!... your drives should be back to normal.
    Let me know how it goes.
    Good Luck,
    Rachyl

  • Problem In JSF compilation

    Hi,
    This is velrajan from MindTree consultiong Bangalore India.I am new to JSF.When i try to compile my ActionListerner file i got the following error.
    MyActionListener.java:9: package javax.faces.tree does not exist
    import javax.faces.tree.Tree;
    ^
    MyActionListener.java:26: cannot resolve symbol
    symbol : method getComponentId ()
    location: class javax.faces.component.UIComponent
    + component.getComponentId());
    ^
    MyActionListener.java:28: cannot resolve symbol
    symbol : method getActionCommand ()
    location: class javax.faces.event.ActionEvent
    String actionCommand = event.getActionCommand();
    ^
    MyActionListener.java:32: cannot resolve symbol
    symbol : class Tree
    location: class ch02a.MyActionListener
    Tree tree = facesContext.getTree();
    ^
    MyActionListener.java:32: cannot resolve symbol
    symbol : method getTree ()
    location: class javax.faces.context.FacesContext
    Tree tree = facesContext.getTree();
    ^
    MyActionListener.java:45: cannot resolve symbol
    symbol : method getComponentId ()
    location: class javax.faces.component.UIComponent
    System.out.println(component.getComponentId());
    ^
    MyActionListener.java:46: incompatible types
    found : java.util.List
    required: java.util.Iterator
    Iterator children = component.getChildren();
    I have the following jar files in my JDK lib folder
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-logging.jar
    jsf-api.jar
    jsf-impl.jar
    standard.jar
    I hope i have missed out the jsf-ri.jar and jstl_el.jar.
    I am not able to find out the jsf-ri.jar in my JSF download.Where can i get this?.
    Please suggest me.
    This is My Listener:
    ===============
    package ch02a;
    import java.util.Iterator;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ActionEvent;
    import javax.faces.event.ActionListener;
    import javax.faces.event.PhaseId;
    import javax.faces.tree.Tree;
    public class MyActionListener implements ActionListener {
    public PhaseId getPhaseId() {
    System.out.println("getPhaseId called");
    return PhaseId.APPLY_REQUEST_VALUES;
    public void processAction(ActionEvent event) {
    System.out.println("processAction called");
    // the component that triggered the action event
         System.out.println("Before GetComponent");
    UIComponent component = event.getComponent();
         System.out.println("After GetComponent");
    System.out.println(
    "The id of the component that fired the action event: "
    + component.getComponentId());
    // the action command
    String actionCommand = event.getActionCommand();
    System.out.println("Action command: " + actionCommand);
    FacesContext facesContext = FacesContext.getCurrentInstance();
    Tree tree = facesContext.getTree();
    UIComponent root = tree.getRoot();
    System.out.println("----------- Component Tree -------------");
    navigateComponentTree(root, 0);
    System.out.println("----------------------------------------");
    private void navigateComponentTree(
    UIComponent component, int level) {
    // indent
    for (int i=0; i<level; i++)
    System.out.print(" ");
    // print component id
    System.out.println(component.getComponentId());
    Iterator children = component.getChildren();
    // navigate children
    while (children.hasNext()) {
    UIComponent child = (UIComponent) children.next();
    navigateComponentTree(child, level + 1);
    Please guide me.
    Thanks and Regards,
    Velrajan T.

    I'am having the same problem of compiling the MyActionListener class.
    Not able to find the jsf-ri.jar in jwsdp-1.6 installation directory also.
    Please let me know if any body knows from where to get this jar.
    Thanks in Advance

  • Can't burn CD's after installing Ver 6.0.5

    I just downloaded & installed Ver 6.0.5 When I start itunes, I get a message saying "the registry settings used by itunes for importing and burning cds" are missing, and I should re-install itunes. When I try to burn a playlist to a cd I get a message "disc recording not found".
    What up???

    Spike, first thing you need to do is go to your Computer Manufacturers website and download all the latest drivers for your CD Burner. It is most likely due to out of date drivers for your optical drives. This should fix it. If not, Try this:
    Do exactly as I post.
    Start Registry Editor (Regedt32.exe).(to do this, click on start, run and type that in)
    Locate the UpperFilters value under the following key in the registry:
    HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Contro l\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
    On the Edit menu, click Delete, and then click OK.
    Locate the LowerFilters value under the same key in the registry:
    HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Contro l\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
    On the Edit menu, click Delete, and then click OK.
    IF this Does not work, which it usually does, Try this:
    the thing to do to reclaim your optical drives is located in your registry here:
    HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE1 0318}
    You'll want to have that open, and a mini-window of the following:
    START -> CONTROL PANEL -> SYSTEM -> Hardware (tab) -> DEVICE MANAGER -> Offending Drive (with yellow tag by it) Right-Mouse-Click and PROPERTIES -> Driver (tab) -> DRIVER DETAILS
    Notice that list. It references all the drivers that that particular drive is utilizing. There should be a single .DLL (dynamic link library) file and multiple .SYS files. It's the .SYS files we're focusing on, and they should be located in your C:\WINDOWS\System32\drivers\ folder stem. If you want to open a new window explorer, and go verify that each of those driver files still exists in that folder stem, you may.
    At this point, compare the Driver File Detail list with the Registry Tree Location you're sitting in, and look at the UpperFilterCheck and LowerFilterCheck key values. Your offending key value will NOT be on your Driver File Detail list!!! It might be as small as "PFC" or something else, but that value is referencing to a driver file that no longer exists. Delete that offending key value. Close the registry.
    Close the Driver File Details and Drive Properties windows. At this point, to finish this up, you need to Soft Uninstall (Right-mouse-click on the drive, and hit "Uninstall" ) the drive(s), let the Device Manager refresh... then hit ACTION -> Scan For Hardware Changes ...
    This should start a new Found New Hardware cycle, and.... Viola... your drives should be back to normal...

  • Itunes has stopped my cd and dvd drives from being recognised

    once i installed i tune onto my computer both my disc drives disapeared from "my computer". Does anyone know about this and can anyone help me as my computer is not much use without these drives. I ran the cd diagnostics in itunes and here are the results
    Microsoft Windows XP Home Edition Service Pack 2 (Build 2600)
    Packard Bell NEC 00000000000000000000000
    iTunes 6.0.1.3
    CD Driver 2.0.4.3
    CD Driver DLL 2.0.3.2
    LowerFilters: PxHelp20 (2.0.0.0),
    UpperFilters: asapiGEARAspiWDMGEARAspiWDM (2.0.4.3),
    Video Driver: VIA/S3G KM400/KN400\S3G KM400/KN400 Adapter
    IDE\DiskMaxtor4R080L0_________________________RAMC1TU0, Bus Type ATA, Bus Address [0,0]
    IDE\CdRomHL-DT-STCD-RW_GCE-8483B________________1.01___
    Current user is administrator.
    All help would be welcomed

    just to add to the confusion...
    For the most part, what's occurring is one of two things. Either...
    A) an application (such as iTunes, etc.) is installing a driver file (as a .SYS) or replacing a working driver file that is referenced within your registry. For some folks, the replaced driver is still referenced by either an UpperFilterCheck or a LowerFilterCheck, and the device manager is actually seeking out that file that, well... no longer exists. Or, when you try and uninstall the application (iTunes is the frequent transgressor) everything is removed, including the related driver files, but the registry isn't altered... so the device manager continues to try and locate that driver file... which no longer exists.
    or
    B) a virus (or trojan) burrows its way into your file structure, and creates an element of itself disguised as a .SYS file. We've seen this happen before with viral elements disguising themselves as audio or video card driver files, in the efforts of masking themselves from lower-class anti-virus programs (or un-updated ones). In this case, they take on the name of a driver file that the optical drives are "familiar" with, and so, with the intention of being "fast, friendly, and efficient", the optical drives are tapped to utilize this new "driver" file... and it gets referenced in the registry as such.
    However, when your anti-virus actually snaps to it, and removes the virus / trojan, and you go off on a virus-killing mission, galavanting through the registry and cleaning the little buggers out in Safe Mode and everything... you might remove the viral elements... but... the reference to them might still remain. The device manager is still looking for that "driver file", and will cause the optical drives to lock up in a Code 39 or Code 41 because of it.
    Either way, he thing to do to reclaim your optical drives is located in your registry here:
    HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE1 0318}
    You'll want to have that open, and a mini-window of the following:
    START -> CONTROL PANEL -> SYSTEM -> Hardware (tab) -> DEVICE MANAGER -> Offending Drive (with yellow tag by it) Right-Mouse-Click and PROPERTIES -> Driver (tab) -> DRIVER DETAILS
    Notice that list. It references all the drivers that that particular drive is utilizing. There should be a single .DLL (dynamic link library) file and multiple .SYS files. It's the .SYS files we're focusing on, and they should be located in your C:\WINDOWS\System32\drivers\ folder stem. If you want to open a new window explorer, and go verify that each of those driver files still exists in that folder stem, you may.
    At this point, compare the Driver File Detail list with the Registry Tree Location you're sitting in, and look at the UpperFilterCheck and LowerFilterCheck key values. Your offending key value will NOT be on your Driver File Detail list!!! It might be as small as "PFC" or something else, but that value is referencing to a driver file that no longer exists. Delete that offending key value. Close the registry.
    Close the Driver File Details and Drive Properties windows. At this point, to finish this up, you need to Soft Uninstall (Right-mouse-click on the drive, and hit "Uninstall" ) the drive(s), let the Device Manager refresh... then hit ACTION -> Scan For Hardware Changes ...
    This should start a new Found New Hardware cycle, and.... poof!... your drives should be back to normal.

  • Error message asking to reinstall iTunes

    Every time I start iTunes on my computer, I get a message telling me the registry entries for burning CDs are missing and I should renstall iTunes, which obviously I have done several tiimes. Any ideas on how to make this go away?

    The first thing you need to do is go to your Computer Manufacturers website and download all the latest drivers for your CD Burner. It is most likely due to out of date drivers for your optical drives. This should fix it. If not, Try this:
    Do exactly as I post.
    Start Registry Editor (Regedt32.exe).(to do this, click on start, run and type that in)
    Locate the UpperFilters value under the following key in the registry:
    HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Contro l\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
    On the Edit menu, click Delete, and then click OK.
    Locate the LowerFilters value under the same key in the registry:
    HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Contro l\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
    On the Edit menu, click Delete, and then click OK.
    IF this Does not work, which it usually does, Try this:
    the thing to do to reclaim your optical drives is located in your registry here:
    HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE1 0318}
    You'll want to have that open, and a mini-window of the following:
    START -> CONTROL PANEL -> SYSTEM -> Hardware (tab) -> DEVICE MANAGER -> Offending Drive (with yellow tag by it) Right-Mouse-Click and PROPERTIES -> Driver (tab) -> DRIVER DETAILS
    Notice that list. It references all the drivers that that particular drive is utilizing. There should be a single .DLL (dynamic link library) file and multiple .SYS files. It's the .SYS files we're focusing on, and they should be located in your C:\WINDOWS\System32\drivers\ folder stem. If you want to open a new window explorer, and go verify that each of those driver files still exists in that folder stem, you may.
    At this point, compare the Driver File Detail list with the Registry Tree Location you're sitting in, and look at the UpperFilterCheck and LowerFilterCheck key values. Your offending key value will NOT be on your Driver File Detail list!!! It might be as small as "PFC" or something else, but that value is referencing to a driver file that no longer exists. Delete that offending key value. Close the registry.
    Close the Driver File Details and Drive Properties windows. At this point, to finish this up, you need to Soft Uninstall (Right-mouse-click on the drive, and hit "Uninstall" ) the drive(s), let the Device Manager refresh... then hit ACTION -> Scan For Hardware Changes ...
    This should start a new Found New Hardware cycle, and.... Viola... your drives should be back to normal...

  • Itunes missing registry settings

    Somebody please help! I've got a new ipod nano and installed itunes from the disk but got this message: "The registry settings used by the itunes drivers for importing and burning cds and dvds are missing. This can happen as a result of installing other cd burning software. Please reinstall itunes." I notice the CR-RW Drive (D:)which is called a removable storage device on My Computer is missing. Only showing HDD (C:).
    I didn't have quicktime but downloaded it yesterday as I understand itunes requires it. The pre-installed CD playing / burning software I have are: RealOne Player; Sonic RecordNow; PowerCinema and Windows MediaPlayer.
    Any ideas anyone? My laptop is a Packard Bell with XP Home edition and Norton internet security 2006.
    Mike

    FOr some reason, this is being seen in pretty much only Packard Bell's which leads me to believe its a Packard Bell issue. Ok I am going to copy and paste what I wrote to someone else about the same issue so I dont have to retype it again.
    For the most part, what's occurring is one of two things. Either...
    A) an application (such as iTunes, etc.) is installing a driver file (as a .SYS) or replacing a working driver file that is referenced within your registry. For some folks, the replaced driver is still referenced by either an UpperFilterCheck or a LowerFilterCheck, and the device manager is actually seeking out that file that, well... no longer exists. Or, when you try and uninstall the application (iTunes is the frequent transgressor) everything is removed, including the related driver files, but the registry isn't altered... so the device manager continues to try and locate that driver file... which no longer exists.
    or
    B) a virus (or trojan) burrows its way into your file structure, and creates an element of itself disguised as a .SYS file. We've seen this happen before with viral elements disguising themselves as audio or video card driver files, in the efforts of masking themselves from lower-class anti-virus programs (or un-updated ones). In this case, they take on the name of a driver file that the optical drives are "familiar" with, and so, with the intention of being "fast, friendly, and efficient", the optical drives are tapped to utilize this new "driver" file... and it gets referenced in the registry as such.
    However, when your anti-virus actually snaps to it, and removes the virus / trojan, and you go off on a virus-killing mission, galavanting through the registry and cleaning the little buggers out in Safe Mode and everything... you might remove the viral elements... but... the reference to them might still remain. The device manager is still looking for that "driver file", and will cause the optical drives to lock up in a Code 39 or Code 41 because of it.
    Either way, he thing to do to reclaim your optical drives is located in your registry here:
    HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE1 0318}
    You'll want to have that open, and a mini-window of the following:
    START -> CONTROL PANEL -> SYSTEM -> Hardware (tab) -> DEVICE MANAGER -> Offending Drive (with yellow tag by it) Right-Mouse-Click and PROPERTIES -> Driver (tab) -> DRIVER DETAILS
    Notice that list. It references all the drivers that that particular drive is utilizing. There should be a single .DLL (dynamic link library) file and multiple .SYS files. It's the .SYS files we're focusing on, and they should be located in your C:\WINDOWS\System32\drivers\ folder stem. If you want to open a new window explorer, and go verify that each of those driver files still exists in that folder stem, you may.
    At this point, compare the Driver File Detail list with the Registry Tree Location you're sitting in, and look at the UpperFilterCheck and LowerFilterCheck key values. Your offending key value will NOT be on your Driver File Detail list!!! It might be as small as "PFC" or something else, but that value is referencing to a driver file that no longer exists. Delete that offending key value. Close the registry.
    Close the Driver File Details and Drive Properties windows. At this point, to finish this up, you need to Soft Uninstall (Right-mouse-click on the drive, and hit "Uninstall" ) the drive(s), let the Device Manager refresh... then hit ACTION -> Scan For Hardware Changes ...
    This should start a new Found New Hardware cycle, and.... poof!... your drives should be back to normal.
    Here is a microsoft article, its regarding easy cd creater, but its pretty much a similiar thing
    http://support.microsoft.com/kb/314060/EN-US/

  • Improper code structure

    I am working on a jsp page and I am struggling with the proper way to indent my code. I know this is simple, but I just need a little direction first. If someone would be willing to show me how to format my code that would be most appreciated.
    <HTML>
    <HEAD>
    <TITLE>OakMapper Tree Submittal</TITLE>
    </HEAD>
    <BODY BGCOLOR="BBE4C6" TEXT="0E351A">
    <%@ page language="java" %>
    <!--Importing the Packages-->
    <%@ page import = "java.sql.*" %>
    <%
    String strEmail = null;
    String strSpecies = null;
    String strOther_Tree = null;
    String strBackground = null;
    String strBackgr = null;
    String strSetting = null;
    String strSettingoth = null;
    String strFrass = null;
    String strDead_Leave = null;
    String strCrown_Disc = null;
    String strBark_Disco = null;
    String strBore_Holes = null;
    String strShoot_Dieb = null;
    String strBleeding = null;
    String strHypoxylon = null;
    String strAddress = null;
    String strCity = null;
    String strZipcode = null;
    String strCounty = null;
    String strZone = null;
    String strY = null;
    String strX = null;
    String strFrass1 = null;
    String strDead_Leave1 = null;
    String strCrown_Disc1 = null;
    String strBark_Disco1 = null;
    String strBore_Holes1 = null;
    String strShoot_Dieb1 = null;
    String strBleeding1 = null;
    String strHypoxylon1 = null;
    %>
    <TABLE COL="3" WIDTH="100%" BORDER=0 CELLSPACING="0" CELLPADDING="0" NOWRAP>
    <TR>
    <TD WIDTH="130">
    <A HREF="http://oakmapper.espm.berkeley.edu/" TARGET="_blank">
    <IMG SRC="images/logo.gif" WIDTH="130" HEIGHT="130" BORDER=0></A>
    </TD>
    <TD ALIGN="CENTER">
    <IMG SRC="images/title_submittal.gif" BORDER=0>
    </TD>
    <TD WIDTH="198">
         <TABLE BORDER=0>
         <TR>
         <TD>
         <A HREF="http://www.suddenoakdeath.org/" TARGET="_blank">
         <IMG SRC="images/oaklogo_green.gif" WIDTH="198" HEIGHT="72" BORDER=0></A>
         </TD>
         </TR>
         <TR>
         <TD>  
         <A HREF="http://camfer.cnr.berkeley.edu/" TARGET="_blank">
         <IMG SRC="images/aboutcamfer.jpg" WIDTH="152" HEIGHT="65" BORDER=0></A>
         </TD>
         </TR>
         </TABLE>
    </TD>
    </TR>
    </TABLE>
    <TABLE CELLPADDING=5 BORDER=0>
    <TR HEIGHT="50"> 
    </TR>
    <TR>
    <TD WIDTH="100%"><FONT FACE="Arial" SIZE="-1">
    The University of California's Center for the Assessment and Monitoring of Forest and Environmental Resources (<A HREF="http://camfer.cnr.berkeley.edu/" TARGET="_blank">CAMFER</A>), along with the California Oak Mortality Task Force (<A HREF="http://www.suddenoakdeath.org/" TARGET="_blank">COMTF</A>), has developed the OakMapper Tree Submittal as a tool to assist in the monitoring of Sudden Oak Death (SOD) in California.
    <BR><BR> It is part of a large effort to document the distribution of Sudden Oak Death.  Please note, however, that trees submitted to this website represent <i>symptoms</i> of and <i>potential</i> distribution of SOD, and should not be assumed to be laboratory confirmations of SOD.
    <BR>
    <BR>
    In addition to submitting to the Tree Submittal, please contact your county's Cooperative Extension contact and/or Agricultural Commissioner's Office to notify them about your symptomatic tree.  For contact information, please see the <a href="http://www.cnr.berkeley.edu/comtf/pages/counties.html" target="_blank">County Contacts page</a>.
    <BR>
    <BR>
    For a printer-friendly PDF version of this form to print out to take with you to record symptoms, please download the <a href="OakMapper Tree Submittal.pdf" TARGET="_blank">OakMapper Tree Submittal</a>
    </FONT>
    </TD>
    </TR>
    </TABLE>
    <FORM method=post  ACTION=test.jsp >
    <FONT FACE="Arial" SIZE="-1">
    <TABLE CELLPADDING=4 BORDER=0>
    <TR>
    <TD WIDTH="20%" VALIGN="top"><FONT FACE="Garamond" SIZE="+2"><B>Tree<BR>Identification:</B></FONT>
    <BR><BR><FONT SIZE="-1">Enter information for a single specimen.  Select the tree that most closely resembles the affected tree.<BR><BR><B>Note: </B>Click on photo to view the <a href="http://elib.cs.berkeley.edu/calflora/" TARGET="_blank">CalFlora</a> ID Key.  For species other than those shown on the right, enter in the text box below.
    <BR><BR>Other Species:</FONT>
    <BR><INPUT TYPE="text" NAME="OTHER_TREE">
    </TD>
    <TD WIDTH="35">
    </TD>
    <TD>
         <TABLE CELLPADDING=4 BORDER=0>
         <TR>
         <TD ALIGN="center" VALIGN="middle">
         <A HREF="http://elib.cs.berkeley.edu/cgi/img_query?where-taxon=Quercus+agrifolia" TARGET="_blank">
         <IMG SRC="images/coastliveoak.jpg" BORDER=0 height=134 width=168></a>          </TD>
         <TD ALIGN="center" VALIGN="middle">
         <A HREF="http://elib.cs.berkeley.edu/cgi/img_query?where-taxon=Lithocarpus+densiflorus&special=calflora&where-anno=1" TARGET="_blank">
         <IMG SRC="images/tanoak.jpg" BORDER=0 height=134 width=168></a>
         </TD>
         <TD ALIGN="center" VALIGN="middle">
         <A HREF="http://elib.cs.berkeley.edu/cgi/img_query?where-taxon=Quercus+kelloggii&special=calflora&where-anno=1" TARGET="_blank">
         <IMG SRC="images/blackoak.jpg" BORDER=0 height=134 width=168></a>
         </TD>
         </TR>
         <TR>
         <TD ALIGN="center" VALIGN="top">
         <INPUT TYPE="radio" NAME="SPECIES" VALUE="Coast Live Oak"><B> Coast Live Oak</B>
         </TD>
         <TD ALIGN="center" VALIGN="top">
         <INPUT TYPE="radio" NAME="SPECIES" VALUE="Tanoak"><B> Tanoak</B>
         </TD>
         <TD ALIGN="center" VALIGN="top">
         <INPUT TYPE="radio" NAME="SPECIES" VALUE="Black Oak"><B> Black Oak</B>
         </TD>
         </TR>
         </TABLE>
    </TD>
    </TR>
    <TR HEIGHT="30"> 
    </TR>
    <TR>
    <TD WIDTH="20%" VALIGN="top"><FONT FACE="Garamond" SIZE="+2"><B>Personal<BR>Information:</B></FONT>
    <BR><BR><FONT SIZE="-1">Please select the option below which best describes your background in arboricultural, forestry or pest management sciences.</FONT>
    </TD>
    <TD WIDTH="35">
    </TD>
    <TD>
    <INPUT TYPE="radio" NAME="BACKGROUND" VALUE="None"><B> None</B>
    <BR><INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Limited"><B> Limited</B>
    <BR><INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Hobbiest"><B> Hobbiest</B>
    <BR><INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Academic"><B> Academic but not professional</B>
    <BR><INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Professional"><B> Professional</B>
    <BR><INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Other"><B> Other</B>
    <BR>      <INPUT TYPE="text" NAME="BACKGR">
    </TD>
    </TR>
    <TR HEIGHT="30"> 
    </TR>
    <TR>
    <TR>
    <TD WIDTH="20%" VALIGN="top"><FONT FACE="Garamond" SIZE="+2"><B>Environmental<BR>Setting:</B></FONT>
    <BR><BR><FONT SIZE="-1">Please select a description which most closely matches the environmental setting of the specimen.</FONT>
    </TD>
    <TD WIDTH="35">
    </TD>
    <TD>
    <INPUT TYPE="radio" NAME="SETTING" VALUE="None"><B> Residential area - landscaped</B><BR><FONT SIZE="-1">      (scattered shade trees, watered lawn, or garden)</FONT>
    <BR><INPUT TYPE="radio" NAME="SETTING" VALUE="Residential"><B> Residential area - natural setting</B><BR><FONT SIZE="-1">      (not watered or landscaped, native or naturalized </FONT>plants)
    <BR><INPUT TYPE="radio" NAME="SETTING" VALUE="Street trees"><B> Street trees</B>
    <BR><INPUT TYPE="radio" NAME="SETTING" VALUE="Natural"><B> Natural setting right of way trees</B><BR><FONT SIZE="-1">      (not watered or landscaped, native or naturalized </FONT>plants)</FONT>
    <BR><INPUT TYPE="radio" NAME="SETTING" VALUE="Landscaped park"><B> Landscaped park setting</B><BR><FONT SIZE="-1">      (scattered shade trees, watered lawn, or garden)</FONT>
    <BR><INPUT TYPE="radio" NAME="SETTING" VALUE="Natural oak woodland"><B> Natural oak woodland setting</B><BR><FONT SIZE="-1">      (Live Oak, Valley Oak, Bay, Black Oak)</FONT>
    <BR><INPUT TYPE="radio" NAME="SETTING" VALUE="Natural forest"><B> Natural forest setting</B><BR><FONT SIZE="-1">      (e.g., Redwood, Douglas-fir, or Tanoak composition)</FONT>
    <BR><INPUT TYPE="radio" NAME="SETTING" VALUE="Other"><B> Other/Additional</B><BR><FONT SIZE="-1">      (please provide brief description below):</FONT>
    <BR>      <INPUT TYPE="text" NAME="SETTINGOTH">
    </TD>
    </TR>
    <TR HEIGHT="30"> 
    </TR>
    <TR>
    <TD WIDTH="20%" VALIGN="top"><FONT FACE="Garamond" SIZE="+2"><B>Symptoms:</B></FONT>
    <BR><BR><FONT SIZE="-1">These images illustrate the symptoms that are typically caused by the pathogen affecting the oak and tanoak trees.  Please compare these images carefully with symptoms you have observed, then check the corresponding check boxes below to provide descriptive information on the specimen.
    <BR><BR><B>Note:</B> Click on the thumbnails to view larger version of Photo and written description.</FONT>
    </TD>
    <TD WIDTH="35">
    </TD>
    <TD>
         <TABLE CELLPADDING=4 BORDER=0>
         <TR>
         <TD ALIGN="center" VALIGN="middle">
         <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/seeping.htm" BORDER=0 TARGET="_blank">
         <IMG SRC="images/seeping.jpg" BORDER=0 height=147 width=140></a>
         </TD>
         <TD ALIGN="center" VALIGN="middle">
         <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/barkdiscoloration.htm" BORDER=0 TARGET="_blank">
         <IMG SRC="images/bleeding.jpg" BORDER=0 height=147 width=140></a>
         </TD>
         <TD ALIGN="center" VALIGN="middle">
         <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/crowndiscoloration.htm" BORDER=0 TARGET="_blank">
         <IMG SRC="images/crowndiscoloration.jpg" BORDER=0 height=147 width=140></a>
         </TD>
         </TR>
         <TR>
         <TD ALIGN="center" VALIGN="top">
         <INPUT TYPE="checkbox" NAME="BLEEDING" VALUE="-1"><B> Seeping</B>
         </TD>
         <TD ALIGN="center" VALIGN="top">
         <INPUT TYPE="checkbox" NAME="BARK_DISCO" VALUE="-1"><B> Bark discoloration</B>
         </TD>
         <TD ALIGN="center" VALIGN="top">
         <INPUT TYPE="checkbox" NAME="CROWN_DISC" VALUE="-1"><B> Crown discoloration (except deciduous)</B>
         </TD>
         </TR>
         <TR>
         </TR>
         <TR>
         <TD ALIGN="center" VALIGN="middle">
         <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/deadleaves.htm" TARGET="_blank">
         <IMG SRC="images/deadleaves.jpg" BORDER=0 height=147 width=140></a>
         </TD>
         <TD ALIGN="center" VALIGN="middle">
         <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/shootdieback.htm" BORDER=0 TARGET="_blank">
         <IMG SRC="images/shootdieback.jpg" BORDER=0 height=147 width=140></a>
         </TD>
         <TD ALIGN="center" VALIGN="middle">
         <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/hypoxylon.htm" BORDER=0 TARGET="_blank">
         <IMG SRC="images/hypoxylon.jpg" BORDER=0 height=147 width=140></a>
         </TD>
         </TR>
         <TR>
         <TD ALIGN="center" VALIGN="top">
         <INPUT TYPE="checkbox" NAME="DEAD_LEAVE" VALUE="-1"><B> Numerous brown<BR>(dead) leaves</B>
         </TD>
         <TD ALIGN="center" VALIGN="top">
         <INPUT TYPE="checkbox" NAME="SHOOT_DIEB" VALUE="-1"><B> Shoot die-back</B>
         </TD>
         <TD ALIGN="center" VALIGN="top">
         <INPUT TYPE="checkbox" NAME="HYPOXYLON" VALUE="-1"><B> Fungus (Hypoxylon)</B>
         </TD>
         </TR>
         <TR>
         </TR>
         <TR>
         <TD ALIGN="center" COLSPAN="3">
              <TABLE CELLPADDING=7 BORDER=0>
              <TR>
              <TD ALIGN="center" VALIGN="middle">
              <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/frass.htm" TARGET="_blank">
              <IMG SRC="images/frass.jpg" BORDER=0 height=147 width=140></a>
              </TD>
              <TD ALIGN="center" VALIGN="middle">
              <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/boreholes.htm" TARGET="_blank">
              <IMG SRC="images/boreholes.jpg" BORDER=0 height=147 width=140></a>
              </TD>
              </TR>
              <TR>
              <TD ALIGN="center" VALIGN="top">
              <INPUT TYPE="checkbox" NAME="FRASS" VALUE="-1"><B> Beetle frass<BR>("saw dust")</B>
              </TD>
              <TD ALIGN="center" VALIGN="top">
              <INPUT TYPE="checkbox" NAME="BORE_HOLES" VALUE="-1"><B> Beetle bore holes</B>
              </TD>
              </TR>
              </TABLE>
         </TD>
         </TR>
         </TABLE>
    </TR>
    <TR HEIGHT="30"> 
    </TR>
    <TR>
         <TR>
         <TD WIDTH="20%" VALIGN="top"><FONT FACE="Garamond" SIZE="+2"><B>Tree Location:</B></FONT>
         <BR><BR><FONT SIZE="-1">Enter the street address OR the XY location of the tree (see example below).
         <BR><BR><B>Note:</B> All street addresses and emails are kept completely confidential.</FONT>
         </TD>
         <TD WIDTH="35">
         </TD>
         <TD>
         <BR><B><U>Street Address</U> (preferred)</B>
         <BR>
         <BR><B>Complete Street Address or nearest intersection:</B>
         <BR><INPUT TYPE="text" NAME="ADDRESS">  <FONT SIZE="-1">Example: 2011 Francisco St., or Francisco St. & Park Ave.</FONT>
         <BR>
         <BR><B>City Name:</B>
         <BR><INPUT TYPE="text" NAME="CITY">  <FONT SIZE="-1">Example: Berkeley</FONT>
         <BR>
         <BR><B>Zip Code:</B>
         <BR><INPUT TYPE="text" NAME="ZIPCODE">  <FONT SIZE="-1">Example: 94709</FONT>
         <BR>
         <BR><B>County:</B>
         <BR><INPUT TYPE="text" NAME="COUNTY">  <FONT SIZE="-1">Example: Alameda</FONT>
         <BR>
         <BR>
         <BR><B><U>XY Coordinates</U> (optional if address is entered above)</B>
         <BR>
         <BR>If entering an XY location, use either State Plan or latitude/longitude coordinates.
         <BR>Examples of both types of acceptable projections:
         <BR>
         <BR>CA STATE PLANE include the zone, and please use Datum = NAD83, and units = meters:
         <BR>X coordinate --> 5973541.75
         <BR>Y coordinate --> 2238728.00
         <BR>
         <BR>LATITUDE / LONGITUDE:
         <BR>Latitude --> 38-22-15
         <BR>Longitude --> -122-30-29
         <BR>
         <BR><B>X Coordinate:</B>
         <BR><INPUT TYPE="text" NAME="X">  <FONT SIZE="-1">Example: 5983541.75 (State Plane), or -122-30-29 (Longitude)</FONT>
         <BR>
         <BR><B>Y Coordinate:</B>
         <BR><INPUT TYPE="text" NAME="Y">  <FONT SIZE="-1">Example: 2238728.00 (State Plane), or 38-22-15 (Latitude)</FONT>
         <BR>
         <BR><B>California State Plane Zone:</B>
         <BR><INPUT TYPE="text" NAME="ZONE">  <FONT SIZE="-1">Example: III (for a listing of zones by county, go <a href="http://www.pipeline.com/%7Erking/spc.htm#CA" TARGET="_blank">here</a>)</FONT>
         <BR>
         <BR>
         <BR>
         <BR>
         <BR>Please enter your e-mail for possible follow-up and mailing of submission receipt (mailing and e-mail addresses are kept completely confidential):
         <BR><B>E-mail Address:</B>
         <BR><INPUT TYPE="text" NAME="EMAIL">  <FONT SIZE="-1">Example: [email protected]</FONT>
         </TD>
         </TR>
         </TABLE>
    </TR>
    </TABLE>
    <TABLE ALIGN="CENTER" BORDER=0 WIDTH="60%">
    <TR>
    <TD ALIGN="CENTER">
    Please note that by submitting this information, you agree to let us map your site on our Sudden Oak Death distribution map and browser as a point within 1 mile of the site.  Your address will NOT be released and will only be used for general locating the symptomatic tree.
    </TD>
    </TR>
    <TR HEIGHT="40"> 
    </TR>
    <TR>
    <TD ALIGN="CENTER"><B><BR>
    <BR>Thank you very much for your submittal!</B>
    </TD>
    </TR>
    <BR>
    <BR>
    <TABLE ALIGN="center" WIDTH="60%" BORDER="0">
    <TR><TD ALIGN="center">
    <BR>
    In addition, please contact your county's Cooperative Extension contact and/or Agricultural Commissioner's Office to notify them about your symptomatic tree.
    <BR>
    <BR>For contact information, please see the <a href="http://www.cnr.berkeley.edu/comtf/pages/counties.html" target="_blank">County Contacts page</a>.
    <BR>
    <BR>
    <TR HEIGHT="50"> 
    </TR>
    </TABLE>
    <CENTER><INPUT TYPE="Submit" NAME="SUBMIT" VALUE="Submit Tree"></CENTER><BR>
    </FORM>
    </TD></TR></TABLE>
    <%
    //Creating Database Instanse
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:SuddenOak","","");
    //Creating the Connection Statement
    Statement statement = con.createStatement();
    ResultSet recset = statement.executeQuery("Select * From Treesubmittals where SubmissionID>0");
    %>
    <%
    if (strEmail !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.EMAIL" + request.getParameter("strEmail"));
    statement.executeUpdate("INSERT INTO Treesubmittal.GEOCODED Pending");
    statement.executeUpdate("INSERT INTO Treesubmittal.DATE_ENTER Date");
    if (strSpecies !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.SPECIES" + request.getParameter("strSpecies"));
    if (strOther_Tree !=""); {
    statement.executeUpdate("INSERT INTO Treesubmittal.OTHER_TREE" + request.getParameter("strOther_Tree"));
    if (strBackground !="") ;{
    statement.executeUpdate("INSERT INTO Treesubmittal.BACKGROUND" + request.getParameter("strBackground"));
    if (strBackgr !=""); {
    statement.executeUpdate("INSERT INTO Treesubmittal.BACKGR" + request.getParameter("strBackgr"));
    if (strSetting !=""); {
    statement.executeUpdate("INSERT INTO Treesubmittal.SETTING" + request.getParameter("strSetting"));
    if (strSettingoth !=""); {
    statement.executeUpdate("INSERT INTO Treesubmittal.SETTINGOTH" + request.getParameter("strSettingoth"));
    if (strDead_Leave !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.DEAD_LEAVE Yes");
    if (strCrown_Disc !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.CROWN_DISC Yes");
    if (strBark_Disco !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.BARK_DISCO Yes");
    if (strBore_Holes !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.BORE_HOLES Yes");
    if (strShoot_Dieb !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.SHOOT_DIEB Yes");
    if (strBleeding !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.BLEEDING Yes");
    if (strHypoxylon !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.HYPOXYLON Yes");
    if (strFrass !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.FRASS Yes");
    if (strAddress !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.ADDRESS" + request.getParameter("strAddress"));
    if (strCity !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.CITY" + request.getParameter("strCity"));
    if (strZipcode !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.ZIPCODE" + request.getParameter("strZipcode"));
    if (strCounty !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.COUNTY" + request.getParameter("strCounty"));
    if (strZone !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.ZONE" + request.getParameter("strZone"));
    if (strY !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.Y" + request.getParameter("strY"));
    if (strX !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.X" + request.getParameter("strX"));
    if (strDead_Leave !="") {
    strDead_Leave1="Yes";
    else{
    strDead_Leave1="No";
    if (strCrown_Disc !="") {
    strCrown_Disc1="Yes";
    else{
    strCrown_Disc1="No";
    if (strBark_Disco !="") {
    strBark_Disco1="Yes";
    else{
    strBark_Disco1="No";
    if (strBore_Holes !="") {
    strBore_Holes1="Yes";
    else{
    strBore_Holes1="No";
    if (strShoot_Dieb !="") {
    strShoot_Dieb1="Yes";
    else{
    strShoot_Dieb1="No";
    if (strBleeding !="") {
    strBleeding1="Yes";
    else{
    strBleeding1="No";
    if (strHypoxylon !="") {
    strHypoxylon1="Yes";
    else{
    strHypoxylon1="No";
    if (strFrass !="") {
    strFrass1="Yes";
    else{
    strFrass1="No";
    %>
    <BR>
    <BR>
    <BR>
    <BR>
    <BR>
    <CENTER>
    <font face="Arial,Helvetica">You are person #<IMG SRC="http://counter.digits.com/wc/-r/-d/4/-c/2/-f/0E351A/-b/F4F4FF/-e/F4F4FF/OakMapper2" ALIGN=absmiddle WIDTH=60 HEIGHT=20 BORDER=0> to access the OakMapper Tree Submittal since we began counting on February 15, 2002.
    <BR><BR>
    Provided by </FONT><A HREF="http://www.digits.com" target="_blank"><IMG SRC="wc-01.gif" ALIGN=absmiddle WIDTH=75 HEIGHT=20 BORDER=0></A>
    </center>
    <BR>
    <BR>
    <CENTER>
    <HR WIDTH="85%">
    <p><font color="#0E351A"><font face="Arial, Helvetica, sans-serif"><a href="http://camfer.cnr.berkeley.edu/oaks/" TARGET="_blank">Oaks
    Research Home</a></font> | <font face="Arial"><a href="http://www.suddenoakdeath.org/" TARGET="_blank">California
    Oak Mortality Task Force</a></font> | <font face="Arial, Helvetica, sans-serif"><a href="http://camfer.cnr.berkeley.edu/" TARGET="_blank">CAMFER
    Home</a></font></font>
    <br>
    <br>
    <br><font face="Arial, Helvetica, sans-serif"><font size=-2>For questions,
    comments or problems concerning this web site, please contact Karin Tuxen
    at: <a href="mailto:[email protected]">[email protected]</a></font></font>
    </center>
    <%
    out.println("Thank you for submitting to the OakMapper Tree Submittal.  " + "<BR>" + "<BR>");
    out.println("In addition, please contact your county's Cooperative Extension contact and/or Agricultural Commissioner's Office.  " + "<BR>" + "For contact information, please see http://www.cnr.berkeley.edu/comtf/pages/counties.html" + "<BR>" + "<BR>");
    out.println("Below is a summary of your submittal:" +"<BR>" + "Tree species = " + recset.getString("strSpecies") + "<BR>" + "Other tree species = " + recset.getString("strOther_Tree") + "<BR>");
    out.println("Background in arboricultural, forestry or pest management sciences = " + recset.getString("strBackground") + "<BR>" + "Other background, if applicable = " + recset.getString("strBackgr") + "<BR>");
    out.println("Environmental Setting = " + recset.getString("strSetting") + "<BR>" + "Other background, if applicable = " + recset.getString("strSettingoth") + "<BR>" + "Seeping = " + recset.getString("strBleeding") + "<BR>");
    out.println("Bark discoloration = " + recset.getString("strBark_Disco1") + "<BR>" + "Crown discoloration = " + recset.getString("strCrown_Disc1") + "<BR>" + "Numerous brown dead leaves = " + recset.getString("strDead_Leave1") + "<BR>");
    out.println("Shoot die-back = " + recset.getString("strShoot_Dieb1") + "<BR>" + "Fungus - Hypoxylon = " + recset.getString("strHypoxylon1") + "<BR>" + "Beetle frass = " + recset.getString("strFrass1") + "<BR>" + "Beetle bore holes = " + recset.getString("strBore_Holes1")  + "<BR>");
    out.println("Address - this will be kept completely confidential = " + recset.getString("strAddress") + "<BR>" + "City = " + recset.getString("strCity") + "<BR>" + "Zip Code = " + recset.getString("strZipCode") + "<BR>" + "County = " + recset.getString("strCounty") + "<BR>");
    out.println("Zone = " + recset.getString("strZone") + "<BR>" + "X coordinate = " + recset.getString("strX") + "<BR>" + "Y coordinate = " + recset.getString("strY") + "<BR>");
    //I am little unsure how to update the CDONTS.NewMail
    //Set objNewReceipt = Server.CreateObject("CDONTS.NewMail")
    //objNewReceipt.From = "[email protected]"
    //objNewReceipt.To = strEMAIL
    //objNewReceipt.Bcc = "[email protected]"
    //objNewReceipt.Subject = "Thank you for submitting to the OakMapper!"
    //objNewReceipt.Body = strBody
    //objNewReceipt.Send
    //Response.Redirect "result.htm"
    %>
    </body>
    </html>

    First, when declaring multiple variables of the same type, rather than..
    String blah="";
    String blah2="";
    Use:
    String blah="", blah2="";
    And typically you <tab> in once for each layer in a loop or table, etc(the further you go in, the more you <tab> in)..for example:
    <TABLE COL="3" WIDTH="100%" BORDER=0>
    <TR>
    <TD> </TD>
    </TR>
    </TABLE>
    To save space, you can put <tr> on the front and end of whatever line you're editing, so you can cut down on the number of lines..
    <BR>Some content in here<BR>
    Hope that helps!
    -Adam

  • Autoscroll behavior during DnD in JTree, 1.4 vs 1.6

    The following code compiles under both Java 1.4 and Java 1.6. I'm wondering if anyone knows why the following actions cause different behaviors between the two versions:
    1. When the frame opens, you should see a fully-expanded tree (which, because of the small size, causes a vertical scrollbar to appear).
    2. Make a drag-and-drop gesture on the first child node ("blue"), and attempt to cause the tree to scroll down so you can drop it on the last parent node ("food").
    Under 1.6, the tree scrolls nicely as you hold the DnD gesture.
    Under 1.4, the tree does not scroll. I had some hope JTree.setAutoscrolls(true) would help, but it did not.
    Any suggestions how to get 1.4 to behave the way 1.6 does?
    Thanks for your time.
    import javax.swing.*;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.TreePath;
    import javax.swing.tree.TreeNode;
    import java.awt.*;
    import java.awt.datatransfer.DataFlavor;
    import java.awt.datatransfer.Transferable;
    import java.awt.datatransfer.UnsupportedFlavorException;
    import java.io.IOException;
    import java.util.Enumeration;
    public class AutoScroll14 extends JFrame {
        public static void main(String[] args) {
            new AutoScroll14();
        public AutoScroll14() throws HeadlessException {
            super("AutoScroll 1.4");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            JTree tree = new JTree();
            tree.setDragEnabled(true);
            tree.setTransferHandler(new MyTransferHandler());
            expand(tree, tree.getPathForRow(0));
            JScrollPane sp = new JScrollPane(tree);
            sp.setPreferredSize(new Dimension(300, 200));
            Container content = getContentPane();
            content.setLayout(new BorderLayout());
            content.add(sp, BorderLayout.CENTER);
            pack();
            setVisible(true);
        private void expand(JTree tree, TreePath path) {
            TreeNode node = (TreeNode) path.getLastPathComponent();
            for (Enumeration e = node.children(); e.hasMoreElements();) {
                TreeNode n = (TreeNode) e.nextElement();
                TreePath newPath = path.pathByAddingChild(n);
                expand(tree, newPath);
            tree.expandPath(path);
        private class MyTransferHandler extends TransferHandler {
            private DataFlavor localStringFlavor;
            private String localStringType = DataFlavor.javaJVMLocalObjectMimeType + ";class=java.lang.String";
            private MyTransferHandler() {
                try {
                    localStringFlavor = new DataFlavor(localStringType);
                } catch (ClassNotFoundException e) {
                    e.printStackTrace();
            public boolean importData(JComponent comp, Transferable t) {
                if (!canImport(comp, t.getTransferDataFlavors())) {
                    return false;
                String data = null;
                try {
                    if (hasLocalStringFlavor(t.getTransferDataFlavors())) {
                        data = (String) t.getTransferData(localStringFlavor);
                    } else {
                        return false;
                } catch (UnsupportedFlavorException e) {
                    e.printStackTrace();
                } catch (IOException e) {
                    e.printStackTrace();
                String location = null;
                if (comp instanceof JTree) {
                    location = ((JTree) comp).getSelectionPath().toString();
                System.out.println("Dropping [" + data + "] on location [" + location + "]");
                return true;
            private boolean hasLocalStringFlavor(DataFlavor[] flavors) {
                if (localStringFlavor == null) {
                    return false;
                for (int i = 0; i < flavors.length; i++) {
                    if (flavors.equals(localStringFlavor)) {
    return true;
    return false;
    public boolean canImport(JComponent comp, DataFlavor[] flavors) {
    return hasLocalStringFlavor(flavors);
    protected Transferable createTransferable(JComponent c) {
    if (c instanceof JTree) {
    String toTransfer = ((JTree) c).getSelectionPath().toString();
    System.out.println("Creating transferable [" + toTransfer + "]");
    return new StringTransferable(toTransfer);
    System.out.println("Could not create transferable");
    return null;
    public int getSourceActions(JComponent c) {
    return COPY_OR_MOVE;
    private class StringTransferable implements Transferable {
    private String data;
    private StringTransferable(String data) {
    this.data = data;
    public DataFlavor[] getTransferDataFlavors() {
    return new DataFlavor[] { localStringFlavor };
    public boolean isDataFlavorSupported(DataFlavor flavor) {
    return localStringFlavor.equals(flavor);
    public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException {
    if (!isDataFlavorSupported(flavor)) {
    throw new UnsupportedFlavorException(flavor);
    return data;

    I added the class "TreeDropTarget".
    "TreeDropTarget" extends the class "DropTarget", which implements the interface "DropTargetListener".
    DropTargetListener has a few methods, that are called automatically by Swing during drag operation
    (dragOver, dragExit, drop). So we can implement "autoscroll", as well as "automatic node expansion".
    With "automatic node expansion", a collapsed node will be expanded,
    so that its children become visible and we can do a drop on them:
    package demo;
    * AutoScroll.java
    * source level 1.4
    import javax.swing.*;
    import javax.swing.tree.*;
    import java.awt.*;
    import java.awt.datatransfer.*;
    import java.awt.dnd.*;
    import java.io.*;
    import java.util.*;
    public class AutoScroll extends JFrame {
        public static void main(String[] args) {
            new AutoScroll();
        public AutoScroll() throws HeadlessException {
            super("AutoScroll " + System.getProperty("java.version"));
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            JTree tree = new JTree();
            tree.setDragEnabled(true);
            tree.setTransferHandler(new MyTransferHandler());
            tree.setDropTarget(new TreeDropTarget());//<----------------------
            expand(tree, tree.getPathForRow(0));
            JScrollPane sp = new JScrollPane(tree);
            sp.setPreferredSize(new Dimension(300, 200));
            Container content = getContentPane();
            content.setLayout(new BorderLayout());
            content.add(sp, BorderLayout.CENTER);
            pack();
            setVisible(true);
        private void expand(JTree tree, TreePath path) {
            TreeNode node = (TreeNode) path.getLastPathComponent();
            for (Enumeration e = node.children(); e.hasMoreElements();) {
                TreeNode n = (TreeNode) e.nextElement();
                TreePath newPath = path.pathByAddingChild(n);
                expand(tree, newPath);
            tree.expandPath(path);
        private class MyTransferHandler extends TransferHandler {
            private DataFlavor localStringFlavor;
            private String localStringType = DataFlavor.javaJVMLocalObjectMimeType + ";class=java.lang.String";
            private AutoScroll.MyTransferHandler.StringTransferable transferable;
            private MyTransferHandler() {
                try {
                    localStringFlavor = new DataFlavor(localStringType);
                } catch (ClassNotFoundException e) {
                    e.printStackTrace();
            protected void exportDone(JComponent comp, Transferable t, int action) {
                if (t == null) {
                    t = transferable;
                if (!canImport(comp, t.getTransferDataFlavors())) {
                    return;
                String data = null;
                try {
                    if (hasLocalStringFlavor(t.getTransferDataFlavors())) {
                        data = (String) t.getTransferData(localStringFlavor);
                    } else {
                        return;
                } catch (UnsupportedFlavorException e) {
                    e.printStackTrace();
                } catch (IOException e) {
                    e.printStackTrace();
                String location = null;
                if (comp instanceof JTree) {
                    location = ((JTree) comp).getSelectionPath().toString();
                System.out.println("Dropping [" + data + "] on location [" + location + "]");
                return;
            private boolean hasLocalStringFlavor(DataFlavor[] flavors) {
                if (localStringFlavor == null) {
                    return false;
                for (int i = 0; i < flavors.length; i++) {
                    if (flavors.equals(localStringFlavor)) {
    return true;
    return false;
    public boolean canImport(JComponent comp, DataFlavor[] flavors) {
    return hasLocalStringFlavor(flavors);
    protected Transferable createTransferable(JComponent c) {
    if (c instanceof JTree) {
    String toTransfer = ((JTree) c).getSelectionPath().toString();
    System.out.println("Creating transferable [" + toTransfer + "]");
    transferable = new StringTransferable(toTransfer);
    return transferable;
    System.out.println("Could not create transferable");
    return null;
    public int getSourceActions(JComponent c) {
    return COPY_OR_MOVE;
    private class StringTransferable implements Transferable {
    private String data;
    private StringTransferable(String data) {
    this.data = data;
    public DataFlavor[] getTransferDataFlavors() {
    return new DataFlavor[]{localStringFlavor};
    public boolean isDataFlavorSupported(DataFlavor flavor) {
    return localStringFlavor.equals(flavor);
    public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException {
    if (!isDataFlavorSupported(flavor)) {
    throw new UnsupportedFlavorException(flavor);
    return data;
    class TreeDropTarget extends DropTarget {
    public TreeDropTarget() {
    super();
    public void dragOver(DropTargetDragEvent dtde) {
    JTree tree = (JTree) dtde.getDropTargetContext().getComponent();
    Point loc = dtde.getLocation();
    updateDragMark(tree, loc);
    autoscroll(tree, loc);
    super.dragOver(dtde);
    private Insets getAutoscrollInsets() {
    return autoscrollInsets;
    private void autoscroll(JTree tree, Point cursorLocation) {
    Insets insets = getAutoscrollInsets();
    Rectangle outer = tree.getVisibleRect();
    Rectangle inner = new Rectangle(
    outer.x + insets.left,
    outer.y + insets.top,
    outer.width - (insets.left + insets.right),
    outer.height - (insets.top + insets.bottom));
    if (!inner.contains(cursorLocation)) {
    Rectangle scrollRect = new Rectangle(
    cursorLocation.x - insets.left,
    cursorLocation.y - insets.top,
    insets.left + insets.right,
    insets.top + insets.bottom);
    tree.scrollRectToVisible(scrollRect);
    public void updateDragMark(JTree tree, Point location) {
    int row = tree.getRowForPath(tree.getClosestPathForLocation(location.x, location.y));
    TreePath path = tree.getPathForRow(row);
    if (path != null) {
    markNode(tree, location);
    private void markNode(JTree tree, Point location) {
    TreePath path = tree.getClosestPathForLocation(location.x, location.y);
    if (path != null) {
    if (lastRowBounds != null) {
    Graphics g = tree.getGraphics();
    g.setColor(Color.white);
    g.drawLine(lastRowBounds.x, lastRowBounds.y,
    lastRowBounds.x + lastRowBounds.width, lastRowBounds.y);
    tree.setSelectionPath(path);
    tree.expandPath(path);
    private Rectangle lastRowBounds;
    private Insets autoscrollInsets = new Insets(20, 20, 20, 20);

  • Submit button does nothing

    When I open my jsp and fill out all the form info and hit submit, the page refreshes and the database does not update nor does the redirect work. Here is my code:
    <HTML>
    <HEAD>
    <TITLE>OakMapper Tree Submittal</TITLE>
    </HEAD>
    <BODY BGCOLOR="BBE4C6" TEXT="0E351A">
    <%@ page language="java" %>
    <!--Importing the Packages-->
    <%@ page import = "java.sql.*" %>
    <%
    String strEmail = null;
    String strSpecies = null;
    String strOther_Tree = null;
    String strBackground = null;
    String strBackgr = null;
    String strSetting = null;
    String strSettingoth = null;
    String strFrass = null;
    String strDead_Leave = null;
    String strCrown_Disc = null;
    String strBark_Disco = null;
    String strBore_Holes = null;
    String strShoot_Dieb = null;
    String strBleeding = null;
    String strHypoxylon = null;
    String strAddress = null;
    String strCity = null;
    String strZipcode = null;
    String strCounty = null;
    String strZone = null;
    String strY = null;
    String strX = null;
    String strFrass1 = null;
    String strDead_Leave1 = null;
    String strCrown_Disc1 = null;
    String strBark_Disco1 = null;
    String strBore_Holes1 = null;
    String strShoot_Dieb1 = null;
    String strBleeding1 = null;
    String strHypoxylon1 = null;
    %>
    <TABLE COL="3" WIDTH="100%" BORDER=0 CELLSPACING="0" CELLPADDING="0" NOWRAP>
      <TR>
        <TD WIDTH="130"> <A HREF="http://oakmapper.espm.berkeley.edu/" TARGET="_blank">
          <IMG SRC="images/logo.gif" WIDTH="130" HEIGHT="130" BORDER=0></A> </TD>
        <TD ALIGN="CENTER"> <IMG SRC="images/title_submittal.gif" BORDER=0> </TD>
        <TD WIDTH="198"> <TABLE BORDER=0>
            <TR>
              <TD> <A HREF="http://www.suddenoakdeath.org/" TARGET="_blank"> <IMG SRC="images/oaklogo_green.gif" WIDTH="198" HEIGHT="72" BORDER=0></A>
              </TD>
            </TR>
            <TR>
              <TD>   <A HREF="http://camfer.cnr.berkeley.edu/" TARGET="_blank">
                <IMG SRC="images/aboutcamfer.jpg" WIDTH="152" HEIGHT="65" BORDER=0></A>
              </TD>
            </TR>
          </TABLE></TD>
      </TR>
    </TABLE>
    <TABLE CELLPADDING=5 BORDER=0>
      <TR HEIGHT="50">  </TR>
      <TR>
        <TD WIDTH="100%"> The University of California's
          Center for the Assessment and Monitoring of Forest and Environmental Resources
          (<A HREF="http://camfer.cnr.berkeley.edu/" TARGET="_blank">CAMFER</A>),
          along with the California Oak Mortality Task Force (<A HREF="http://www.suddenoakdeath.org/" TARGET="_blank">COMTF</A>),
          has developed the OakMapper Tree Submittal as a tool to assist in the monitoring
          of Sudden Oak Death (SOD) in California. <BR>
          <BR>
          It is part of a large effort to document the distribution of Sudden Oak
          Death. Please note, however, that trees submitted to this website represent
          symptoms of and potential distribution of SOD, and should
          not be assumed to be laboratory confirmations of SOD. <BR>
          <BR>
          In addition to submitting to the Tree Submittal, please contact your county's
          Cooperative Extension contact and/or Agricultural Commissioner's Office
                to notify them about your symptomatic tree. For contact information, please
          see the <a href="http://www.cnr.berkeley.edu/comtf/pages/counties.html" target="_blank">County
          Contacts page</a>. <BR>
          <BR>
          For a printer-friendly PDF version of this form to print out to take with
          you to record symptoms, please download the <a href="OakMapper Tree Submittal.pdf" TARGET="_blank">OakMapper
          Tree Submittal</a>  </TD>
      </TR>
    </TABLE>
    <FORM method=post  ACTION=test.jsp ><FONT FACE="Arial" SIZE="-1">
      <TABLE CELLPADDING=4 BORDER=0>
        <TR>
          <TD WIDTH="20%" VALIGN="top">Tree<BR>
            Identification: <BR>
            <BR>
            Enter information for a single specimen. Select the tree
            that most closely resembles the affected tree.<BR>
            <BR>
            Note: Click on photo to view the <a href="http://elib.cs.berkeley.edu/calflora/" TARGET="_blank">CalFlora</a>
            ID Key. For species other than those shown on the right, enter in the
            text box below. <BR>
            <BR>
            Other Species: <BR>
            <INPUT TYPE="text" NAME="OTHER_TREE"> </TD>
          <TD WIDTH="35"> </TD>
          <TD> <TABLE CELLPADDING=4 BORDER=0>
              <TR>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="http://elib.cs.berkeley.edu/cgi/img_query?where-taxon=Quercus+agrifolia" TARGET="_blank">
                  <IMG SRC="images/coastliveoak.jpg" BORDER=0 height=134 width=168></a>     
                </TD>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="http://elib.cs.berkeley.edu/cgi/img_query?where-taxon=Lithocarpus+densiflorus&special=calflora&where-anno=1" TARGET="_blank">
                  <IMG SRC="images/tanoak.jpg" BORDER=0 height=134 width=168></a>
                </TD>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="http://elib.cs.berkeley.edu/cgi/img_query?where-taxon=Quercus+kelloggii&special=calflora&where-anno=1" TARGET="_blank">
                  <IMG SRC="images/blackoak.jpg" BORDER=0 height=134 width=168></a>
                </TD>
              </TR>
              <TR>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="radio" NAME="SPECIES" VALUE="Coast Live Oak">
                   Coast Live Oak </TD>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="radio" NAME="SPECIES" VALUE="Tanoak">
                   Tanoak </TD>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="radio" NAME="SPECIES" VALUE="Black Oak">
                   Black Oak </TD>
              </TR>
            </TABLE></TD>
        </TR>
        <TR HEIGHT="30">  </TR>
        <TR>
          <TD WIDTH="20%" VALIGN="top">Personal<BR>
            Information: <BR>
            <BR>
            Please select the option below which best describes your
            background in arboricultural, forestry or pest management sciences.
          </TD>
          <TD WIDTH="35"> </TD>
          <TD> <INPUT TYPE="radio" NAME="BACKGROUND" VALUE="None">
             None <BR>
            <INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Limited">
             Limited <BR>
            <INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Hobbiest">
             Hobbiest <BR>
            <INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Academic">
             Academic but not professional <BR>
            <INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Professional">
             Professional <BR>
            <INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Other">
             Other <BR>
            <INPUT TYPE="text" NAME="BACKGR"> </TD>
        </TR>
        <TR HEIGHT="30">  </TR>
        <TR>
        <TR>
          <TD WIDTH="20%" VALIGN="top">Environmental<BR>
            Setting: <BR>
            <BR>
            Please select a description which most closely matches
            the environmental setting of the specimen. </TD>
          <TD WIDTH="35"> </TD>
          <TD> <INPUT TYPE="radio" NAME="SETTING" VALUE="None">
             Residential area - landscaped<BR>
                  (scattered shade trees,
            watered lawn, or garden) <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Residential">
             Residential area - natural setting<BR>
                  (not watered or landscaped,
            native or naturalized plants) <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Street trees">
             Street trees <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Natural">
             Natural setting right of way trees<BR>
                  (not watered or landscaped,
            native or naturalized plants) <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Landscaped park">
             Landscaped park setting<BR>
                  (scattered shade trees,
            watered lawn, or garden) <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Natural oak woodland">
             Natural oak woodland setting<BR>
                  (Live Oak, Valley
            Oak, Bay, Black Oak) <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Natural forest">
             Natural forest setting<BR>
                  (e.g., Redwood, Douglas-fir,
            or Tanoak composition) <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Other">
             Other/Additional<BR>
                  (please provide brief
            description below): <BR>
            <INPUT TYPE="text" NAME="SETTINGOTH"> </TD>
        </TR>
        <TR HEIGHT="30">  </TR>
        <TR>
          <TD WIDTH="20%" VALIGN="top">Symptoms:
            <BR>
            <BR>
            These images illustrate the symptoms that are typically
            caused by the pathogen affecting the oak and tanoak trees. Please compare
            these images carefully with symptoms you have observed, then check the
            corresponding check boxes below to provide descriptive information on
            the specimen. <BR>
            <BR>
            Note: Click on the thumbnails to view larger version of Photo and
            written description. </TD>
          <TD WIDTH="35"> </TD>
          <TD> <TABLE CELLPADDING=4 BORDER=0>
              <TR>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/seeping.htm" BORDER=0 TARGET="_blank">
                  <IMG SRC="images/seeping.jpg" BORDER=0 height=147 width=140></a>
                </TD>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/barkdiscoloration.htm" BORDER=0 TARGET="_blank">
                  <IMG SRC="images/bleeding.jpg" BORDER=0 height=147 width=140></a>
                </TD>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/crowndiscoloration.htm" BORDER=0 TARGET="_blank">
                  <IMG SRC="images/crowndiscoloration.jpg" BORDER=0 height=147 width=140></a>
                </TD>
              </TR>
              <TR>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="BLEEDING" VALUE="-1">
                   Seeping </TD>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="BARK_DISCO" VALUE="-1">
                   Bark discoloration </TD>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="CROWN_DISC" VALUE="-1">
                   Crown discoloration (except deciduous) </TD>
              </TR>
              <TR> </TR>
              <TR>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/deadleaves.htm" TARGET="_blank">
                  <IMG SRC="images/deadleaves.jpg" BORDER=0 height=147 width=140></a>
                </TD>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/shootdieback.htm" BORDER=0 TARGET="_blank">
                  <IMG SRC="images/shootdieback.jpg" BORDER=0 height=147 width=140></a>
                </TD>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/hypoxylon.htm" BORDER=0 TARGET="_blank">
                  <IMG SRC="images/hypoxylon.jpg" BORDER=0 height=147 width=140></a>
                </TD>
              </TR>
              <TR>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="DEAD_LEAVE" VALUE="-1">
                   Numerous brown<BR>
                  (dead) leaves </TD>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="SHOOT_DIEB" VALUE="-1">
                   Shoot die-back </TD>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="HYPOXYLON" VALUE="-1">
                   Fungus (Hypoxylon) </TD>
              </TR>
              <TR> </TR>
              <TR>
                <TD ALIGN="center" COLSPAN="3"> <TABLE CELLPADDING=7 BORDER=0>
                    <TR>
                      <TD ALIGN="center" VALIGN="middle"> <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/frass.htm" TARGET="_blank">
                        <IMG SRC="images/frass.jpg" BORDER=0 height=147 width=140></a>
                      </TD>
                      <TD ALIGN="center" VALIGN="middle"> <A HREF="http://oakmapper.espm.berkeley.edu/oaks/submittal/symptoms/boreholes.htm" TARGET="_blank">
                        <IMG SRC="images/boreholes.jpg" BORDER=0 height=147 width=140></a>
                      </TD>
                    </TR>
                    <TR>
                      <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="FRASS" VALUE="-1">
                         Beetle frass<BR>
                        ("saw dust") </TD>
                      <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="BORE_HOLES" VALUE="-1">
                         Beetle bore holes </TD>
                    </TR>
                  </TABLE></TD>
              </TR>
            </TABLE></TR>
        <TR HEIGHT="30">  </TR>
        <TR>
        <TR>
          <TD WIDTH="20%" VALIGN="top">Tree Location:
            <BR>
            <BR>
            Enter the street address OR the XY location of the tree
            (see example below). <BR>
            <BR>
            Note: All street addresses and emails are kept completely confidential.
          </TD>
          <TD WIDTH="35"> </TD>
          <TD> <BR>
            Street Address (preferred) <BR> <BR>
            Complete Street Address or nearest intersection: <BR>
            <INPUT TYPE="text" NAME="ADDRESS">
              Example: 2011 Francisco St., or Francisco
            St. & Park Ave. <BR> <BR>
            City Name: <BR>
            <INPUT TYPE="text" NAME="CITY">
              Example: Berkeley <BR> <BR>
            Zip Code: <BR>
            <INPUT TYPE="text" NAME="ZIPCODE">
              Example: 94709 <BR> <BR>
            County: <BR>
            <INPUT TYPE="text" NAME="COUNTY">
              Example: Alameda <BR> <BR> <BR>
            XY Coordinates (optional if address is entered above) <BR>
            <BR>
            If entering an XY location, use either State Plan or latitude/longitude
            coordinates. <BR>
            Examples of both types of acceptable projections: <BR> <BR>
            CA STATE PLANE include the zone, and please use Datum = NAD83, and units
            = meters: <BR>
            X coordinate --> 5973541.75 <BR>
            Y coordinate --> 2238728.00 <BR> <BR>
            LATITUDE / LONGITUDE: <BR>
            Latitude --> 38-22-15 <BR>
            Longitude --> -122-30-29 <BR> <BR>
            X Coordinate: <BR>
            <INPUT TYPE="text" NAME="X">
              Example: 5983541.75 (State Plane), or -122-30-29
            (Longitude) <BR> <BR>
            Y Coordinate: <BR>
            <INPUT TYPE="text" NAME="Y">
              Example: 2238728.00 (State Plane), or 38-22-15
            (Latitude) <BR> <BR>
            California State Plane Zone: <BR>
            <INPUT TYPE="text" NAME="ZONE">
              Example: III (for a listing of zones by county,
            go <a href="http://www.pipeline.com/%7Erking/spc.htm#CA" TARGET="_blank">here</a>)
            <BR> <BR> <BR> <BR> <BR>
            Please enter your e-mail for possible follow-up and mailing of submission
            receipt (mailing and e-mail addresses are kept completely confidential):
            <BR>
            E-mail Address: <BR>
            <INPUT TYPE="text" NAME="EMAIL">
              Example: [email protected] </TD>
        </TR>
      </TABLE></TR>
      </TABLE> <TABLE ALIGN="CENTER" BORDER=0 WIDTH="60%">
      <TR>
        <TD ALIGN="CENTER"> Please note that by submitting this information, you agree
          to let us map your site on our Sudden Oak Death distribution map and browser
          as a point within 1 mile of the site. Your address will NOT be released
          and will only be used for general locating the symptomatic tree. </TD>
      </TR>
      <TR HEIGHT="40">  </TR>
      <TR>
        <TD ALIGN="CENTER"><BR>
          <BR>
          Thank you very much for your submittal! </TD>
      </TR>
      <BR>
      <BR>
      <TABLE ALIGN="center" WIDTH="60%" BORDER="0">
        <TR>
          <TD ALIGN="center"> <BR>
            In addition, please contact your county's Cooperative Extension contact
            and/or Agricultural Commissioner's Office to notify them about your symptomatic
            tree. <BR> <BR>
            For contact information, please see the <a href="http://www.cnr.berkeley.edu/comtf/pages/counties.html" target="_blank">County
            Contacts page</a>. <BR> <BR>
        <TR HEIGHT="50">  </TR>
      </TABLE>
      <CENTER>
        <INPUT TYPE="Submit" NAME="SUBMIT" VALUE="Submit Tree">
      </CENTER>
      <BR>
    </FORM></TD></TR>
    <%
    //Creating Database Instanse
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:SuddenOak","","");
    //Creating the Connection Statement
    Statement statement = con.createStatement();
    ResultSet recset = statement.executeQuery("Select * From Treesubmittals where SubmissionID>0");
    if (strEmail !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.EMAIL" + request.getParameter("strEmail"));
    statement.executeUpdate("INSERT INTO Treesubmittal.GEOCODED Pending");
    statement.executeUpdate("INSERT INTO Treesubmittal.DATE_ENTER Date");
    if (strSpecies !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.SPECIES" + request.getParameter("strSpecies"));
    if (strOther_Tree !=""); {
    statement.executeUpdate("INSERT INTO Treesubmittal.OTHER_TREE" + request.getParameter("strOther_Tree"));
    if (strBackground !="") ;{
    statement.executeUpdate("INSERT INTO Treesubmittal.BACKGROUND" + request.getParameter("strBackground"));
    if (strBackgr !=""); {
    statement.executeUpdate("INSERT INTO Treesubmittal.BACKGR" + request.getParameter("strBackgr"));
    if (strSetting !=""); {
    statement.executeUpdate("INSERT INTO Treesubmittal.SETTING" + request.getParameter("strSetting"));
    if (strSettingoth !=""); {
    statement.executeUpdate("INSERT INTO Treesubmittal.SETTINGOTH" + request.getParameter("strSettingoth"));
    if (strDead_Leave !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.DEAD_LEAVE Yes");
    if (strCrown_Disc !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.CROWN_DISC Yes");
    if (strBark_Disco !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.BARK_DISCO Yes");
    if (strBore_Holes !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.BORE_HOLES Yes");
    if (strShoot_Dieb !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.SHOOT_DIEB Yes");
    if (strBleeding !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.BLEEDING Yes");
    if (strHypoxylon !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.HYPOXYLON Yes");
    if (strFrass !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.FRASS Yes");
    if (strAddress !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.ADDRESS" + request.getParameter("strAddress"));
    if (strCity !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.CITY" + request.getParameter("strCity"));
    if (strZipcode !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.ZIPCODE" + request.getParameter("strZipcode"));
    if (strCounty !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.COUNTY" + request.getParameter("strCounty"));
    if (strZone !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.ZONE" + request.getParameter("strZone"));
    if (strY !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.Y" + request.getParameter("strY"));
    if (strX !="") {
    statement.executeUpdate("INSERT INTO Treesubmittal.X" + request.getParameter("strX"));
    if (strDead_Leave !="") {
    strDead_Leave1="Yes";
    else{
        strDead_Leave1="No";
    if (strCrown_Disc !="") {
        strCrown_Disc1="Yes";
    else{
    strCrown_Disc1="No";
    if (strBark_Disco !="") {
    strBark_Disco1="Yes";
    else{
    strBark_Disco1="No";
    if (strBore_Holes !="") {
    strBore_Holes1="Yes";
    else{
    strBore_Holes1="No";
    if (strShoot_Dieb !="") {
    strShoot_Dieb1="Yes";
    else{
    strShoot_Dieb1="No";
    if (strBleeding !="") {
    strBleeding1="Yes";
    else{
    strBleeding1="No";
    if (strHypoxylon !="") {
    strHypoxylon1="Yes";
    else{
    strHypoxylon1="No";
    if (strFrass !="") {
    strFrass1="Yes";
    else{
    strFrass1="No";
    %>
    <BR>
    <BR>
    <BR>
    <BR>
    <BR>
    <CENTER>
      You are person #<IMG SRC="http://counter.digits.com/wc/-r/-d/4/-c/2/-f/0E351A/-b/F4F4FF/-e/F4F4FF/OakMapper2" ALIGN=absmiddle WIDTH=60 HEIGHT=20 BORDER=0>
      to access the OakMapper Tree Submittal since we began counting on February 15,
      2002. <BR>
      <BR>
      Provided by <A HREF="http://www.digits.com" target="_blank"><IMG SRC="wc-01.gif" ALIGN=absmiddle WIDTH=75 HEIGHT=20 BORDER=0></A>
    </center>
    <BR>
    <BR>
    <CENTER>
      <HR WIDTH="85%">
      <p><a href="http://camfer.cnr.berkeley.edu/oaks/" TARGET="_blank">Oaks
        Research Home</a> | <a href="http://www.suddenoakdeath.org/" TARGET="_blank">California
        Oak Mortality Task Force</a> | <a href="http://camfer.cnr.berkeley.edu/" TARGET="_blank">CAMFER
        Home</a> <br>
        <br>
        <br>
        For questions, comments
        or problems concerning this web site, please contact Karin Tuxen at: <a href="mailto:[email protected]">[email protected]</a>
    </center>
    <%
    document.out("Thank you for submitting to the OakMapper Tree Submittal.  " + "<BR>" + "<BR>");
    document.out("In addition, please contact your county's Cooperative Extension contact and/or Agricultural Commissioner's Office.  " + "<BR>" + "For contact information, please see http://www.cnr.berkeley.edu/comtf/pages/counties.html" + "<BR>" + "<BR>");
    document.out("Below is a summary of your submittal:" +"<BR>" + "Tree species = " + recset.getString("strSpecies") + "<BR>" + "Other tree species = " + recset.getString("strOther_Tree") + "<BR>");
    document.out("Background in arboricultural, forestry or pest management sciences = " + recset.getString("strBackground") + "<BR>" + "Other background, if applicable = " + recset.getString("strBackgr") + "<BR>");
    document.out("Environmental Setting = " + recset.getString("strSetting") + "<BR>" + "Other background, if applicable = " + recset.getString("strSettingoth") + "<BR>" + "Seeping = " + recset.getString("strBleeding") + "<BR>");
    document.out("Bark discoloration = " + recset.getString("strBark_Disco1") + "<BR>" + "Crown discoloration = " + recset.getString("strCrown_Disc1") + "<BR>" + "Numerous brown dead leaves = " + recset.getString("strDead_Leave1") + "<BR>");
    document.out("Shoot die-back = " + recset.getString("strShoot_Dieb1") + "<BR>" + "Fungus - Hypoxylon = " + recset.getString("strHypoxylon1") + "<BR>" + "Beetle frass = " + recset.getString("strFrass1") + "<BR>" + "Beetle bore holes = " + recset.getString("strBore_Holes1")  + "<BR>");
    document.out("Address - this will be kept completely confidential = " + recset.getString("strAddress") + "<BR>" + "City = " + recset.getString("strCity") + "<BR>" + "Zip Code = " + recset.getString("strZipCode") + "<BR>" + "County = " + recset.getString("strCounty") + "<BR>");
    document.out("Zone = " + recset.getString("strZone") + "<BR>" + "X coordinate = " + recset.getString("strX") + "<BR>" + "Y coordinate = " + recset.getString("strY") + "<BR>");
    //I am little unsure how to update the CDONTS.NewMail
    //Set objNewReceipt = Server.CreateObject("CDONTS.NewMail")
    //objNewReceipt.From = "[email protected]"
    //objNewReceipt.To = strEMAIL
    //objNewReceipt.Bcc = "[email protected]"
    //objNewReceipt.Subject = "Thank you for submitting to the OakMapper!"
    //objNewReceipt.Body = strBody
    //objNewReceipt.Send
    //Response.Redirect "result.htm"
    <jsp:forward page="result.htm">
    %>
    </body>
    </html>

    In an effort to resolve this I have seperated out my Html and my jsp into seperate files. Then, I opened the HTML and selected certain fields from my form and when I try to submit I receive the following error:
    javax.servlet.ServletException: General error
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
         at org.apache.jsp.test$jsp._jspService(test$jsp.java:181)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:484)
    root cause
    java.sql.SQLException: General error
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6060)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188)
         at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2458)
         at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:320)
         at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:163)
         at java.sql.DriverManager.getConnection(DriverManager.java:517)
         at java.sql.DriverManager.getConnection(DriverManager.java:177)
         at org.apache.jsp.test$jsp._jspService(test$jsp.java:71)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:484)
    Here are my files:
    <HTML>
    <HEAD>
    <TITLE>OakMapper Tree Submittal</TITLE>
    </HEAD>
    <BODY BGCOLOR="BBE4C6" TEXT="0E351A">
    <TABLE COL="3" WIDTH="100%" BORDER=0 CELLSPACING="0" CELLPADDING="0" NOWRAP>
      <TR>
        <TD WIDTH="130"> <A HREF="http://oakmapper.espm.berkeley.edu/" TARGET="_blank">
          <IMG SRC="images/logo.gif" WIDTH="130" HEIGHT="130" BORDER=0></A> </TD>
        <TD ALIGN="CENTER"> <IMG SRC="images/title_submittal.gif" BORDER=0> </TD>
        <TD WIDTH="198"> <TABLE BORDER=0>
            <TR>
              <TD> <A HREF="http://www.suddenoakdeath.org/" TARGET="_blank"> <IMG SRC="images/oaklogo_green.gif" WIDTH="198" HEIGHT="72" BORDER=0></A>
              </TD>
            </TR>
            <TR>
              <TD>   <A HREF="http://camfer.cnr.berkeley.edu/" TARGET="_blank">
                <IMG SRC="images/aboutcamfer.jpg" WIDTH="152" HEIGHT="65" BORDER=0></A>
              </TD>
            </TR>
          </TABLE></TD>
      </TR>
    </TABLE>
    <TABLE CELLPADDING=5 BORDER=0>
      <TR HEIGHT="50">  </TR>
      <TR>
        <TD WIDTH="100%"> The University of California's
          Center for the Assessment and Monitoring of Forest and Environmental Resources
          (<A HREF="http://camfer.cnr.berkeley.edu/" TARGET="_blank">CAMFER</A>),
          along with the California Oak Mortality Task Force (<A HREF="http://www.suddenoakdeath.org/" TARGET="_blank">COMTF</A>),
          has developed the OakMapper Tree Submittal as a tool to assist in the monitoring
          of Sudden Oak Death (SOD) in California. <BR>
          <BR>
          It is part of a large effort to document the distribution of Sudden Oak
          Death. Please note, however, that trees submitted to this website represent
          symptoms of and potential distribution of SOD, and should
          not be assumed to be laboratory confirmations of SOD. <BR>
          <BR>
          In addition to submitting to the Tree Submittal, please contact your county's
          Cooperative Extension contact and/or Agricultural Commissioner's Office
                to notify them about your symptomatic tree. For contact information, please
          see the <a href="http://www.cnr.berkeley.edu/comtf/pages/counties.html" target="_blank">County
          Contacts page</a>. <BR>
          <BR>
          For a printer-friendly PDF version of this form to print out to take with
          you to record symptoms, please download the <a href="OakMapper Tree Submittal.pdf" TARGET="_blank">OakMapper
          Tree Submittal</a>  </TD>
      </TR>
    </TABLE>
    <FORM method=post  ACTION=test.jsp ><FONT FACE="Arial" SIZE="-1">
      <TABLE CELLPADDING=4 BORDER=0>
        <TR>
          <TD WIDTH="20%" VALIGN="top">Tree<BR>
            Identification: <BR>
            <BR>
            Enter information for a single specimen. Select the tree
            that most closely resembles the affected tree.<BR>
            <BR>
            Note: Click on photo to view the <a href="http://elib.cs.berkeley.edu/calflora/" TARGET="_blank">CalFlora</a>
            ID Key. For species other than those shown on the right, enter in the
            text box below. <BR>
            <BR>
            Other Species: <BR>
            <INPUT TYPE="text" NAME="OTHER_TREE"> </TD>
          <TD WIDTH="35"> </TD>
          <TD> <TABLE CELLPADDING=4 BORDER=0>
              <TR>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="http://elib.cs.berkeley.edu/cgi/img_query?where-taxon=Quercus+agrifolia" TARGET="_blank">
                  <IMG SRC="images/coastliveoak.jpg" BORDER=0 height=134 width=168></a>     
                </TD>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="http://elib.cs.berkeley.edu/cgi/img_query?where-taxon=Lithocarpus+densiflorus&special=calflora&where-anno=1" TARGET="_blank">
                  <IMG SRC="images/tanoak.jpg" BORDER=0 height=134 width=168></a>
                </TD>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="http://elib.cs.berkeley.edu/cgi/img_query?where-taxon=Quercus+kelloggii&special=calflora&where-anno=1" TARGET="_blank">
                  <IMG SRC="images/blackoak.jpg" BORDER=0 height=134 width=168></a>
                </TD>
              </TR>
              <TR>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="radio" NAME="SPECIES" VALUE="Coast Live Oak">
                   Coast Live Oak </TD>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="radio" NAME="SPECIES" VALUE="Tanoak">
                   Tanoak </TD>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="radio" NAME="SPECIES" VALUE="Black Oak">
                   Black Oak </TD>
              </TR>
            </TABLE></TD>
        </TR>
        <TR HEIGHT="30">  </TR>
        <TR>
          <TD WIDTH="20%" VALIGN="top">Personal<BR>
            Information: <BR>
            <BR>
            Please select the option below which best describes your
            background in arboricultural, forestry or pest management sciences.
          </TD>
          <TD WIDTH="35"> </TD>
          <TD> <INPUT TYPE="radio" NAME="BACKGROUND" VALUE="None">
             None <BR>
            <INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Limited">
             Limited <BR>
            <INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Hobbiest">
             Hobbiest <BR>
            <INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Academic">
             Academic but not professional <BR>
            <INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Professional">
             Professional <BR>
            <INPUT TYPE="radio" NAME="BACKGROUND" VALUE="Other">
             Other <BR>
            <INPUT TYPE="text" NAME="BACKGR"> </TD>
        </TR>
        <TR HEIGHT="30">  </TR>
        <TR>
        <TR>
          <TD WIDTH="20%" VALIGN="top">Environmental<BR>
            Setting: <BR>
            <BR>
            Please select a description which most closely matches
            the environmental setting of the specimen. </TD>
          <TD WIDTH="35"> </TD>
          <TD> <INPUT TYPE="radio" NAME="SETTING" VALUE="None">
             Residential area - landscaped<BR>
                  (scattered shade trees,
            watered lawn, or garden) <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Residential">
             Residential area - natural setting<BR>
                  (not watered or landscaped,
            native or naturalized plants) <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Street trees">
             Street trees <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Natural">
             Natural setting right of way trees<BR>
                  (not watered or landscaped,
            native or naturalized plants) <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Landscaped park">
             Landscaped park setting<BR>
                  (scattered shade trees,
            watered lawn, or garden) <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Natural oak woodland">
             Natural oak woodland setting<BR>
                  (Live Oak, Valley
            Oak, Bay, Black Oak) <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Natural forest">
             Natural forest setting<BR>
                  (e.g., Redwood, Douglas-fir,
            or Tanoak composition) <BR>
            <INPUT TYPE="radio" NAME="SETTING" VALUE="Other">
             Other/Additional<BR>
                  (please provide brief
            description below): <BR>
            <INPUT TYPE="text" NAME="SETTINGOTH"> </TD>
        </TR>
        <TR HEIGHT="30">  </TR>
        <TR>
          <TD WIDTH="20%" VALIGN="top">Symptoms:
            <BR>
            <BR>
            These images illustrate the symptoms that are typically
            caused by the pathogen affecting the oak and tanoak trees. Please compare
            these images carefully with symptoms you have observed, then check the
            corresponding check boxes below to provide descriptive information on
            the specimen. <BR>
            <BR>
            Note: Click on the thumbnails to view larger version of Photo and
            written description. </TD>
          <TD WIDTH="35"> </TD>
            <TD> <TABLE CELLPADDING=4 BORDER=0>
              <TR>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="C:\Tomcat4\webapps\examples\jsp\symptoms\seeping.htm" BORDER=0 TARGET="_blank">
                  <IMG SRC="images/seeping.jpg" BORDER=0 height=147 width=140></a>
                </TD>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="C:\Tomcat4\webapps\examples\jsp\symptoms\barkdiscoloration.htm" BORDER=0 TARGET="_blank">
                  <IMG SRC="images/bleeding.jpg" BORDER=0 height=147 width=140></a>
                </TD>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="C:\Tomcat4\webapps\examples\jsp\symptoms\crowndiscoloration.htm" BORDER=0 TARGET="_blank">
                  <IMG SRC="images/crowndiscoloration.jpg" BORDER=0 height=147 width=140></a>
                </TD>
              </TR>
              <TR>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="BLEEDING" VALUE="-1">
                   Seeping </TD>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="BARK_DISCO" VALUE="-1">
                   Bark discoloration </TD>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="CROWN_DISC" VALUE="-1">
                   Crown discoloration (except deciduous) </TD>
              </TR>
              <TR> </TR>
              <TR>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="C:\Tomcat4\webapps\examples\jsp\symptoms\deadleaves.htm" TARGET="_blank">
                  <IMG SRC="images/deadleaves.jpg" BORDER=0 height=147 width=140></a>
                </TD>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="C:\Tomcat4\webapps\examples\jsp\symptoms\shootdieback.htm" BORDER=0 TARGET="_blank">
                  <IMG SRC="images/shootdieback.jpg" BORDER=0 height=147 width=140></a>
                </TD>
                <TD ALIGN="center" VALIGN="middle"> <A HREF="C:\Tomcat4\webapps\examples\jsp\symptoms\hypoxylon.htm" BORDER=0 TARGET="_blank">
                  <IMG SRC="images/hypoxylon.jpg" BORDER=0 height=147 width=140></a>
                </TD>
              </TR>
              <TR>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="DEAD_LEAVE" VALUE="-1">
                   Numerous brown<BR>
                  (dead) leaves </TD>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="SHOOT_DIEB" VALUE="-1">
                   Shoot die-back </TD>
                <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="HYPOXYLON" VALUE="-1">
                   Fungus (Hypoxylon) </TD>
              </TR>
              <TR> </TR>
              <TR>
                <TD ALIGN="center" COLSPAN="3"> <TABLE CELLPADDING=7 BORDER=0>
                    <TR>
                      <TD ALIGN="center" VALIGN="middle"> <A HREF="C:\Tomcat4\webapps\examples\jsp\symptoms\frass.htm" TARGET="_blank">
                        <IMG SRC="images/frass.jpg" BORDER=0 height=147 width=140></a>
                      </TD>
                      <TD ALIGN="center" VALIGN="middle"> <A HREF="C:\Tomcat4\webapps\examples\jsp\symptoms\boreholes.htm" TARGET="_blank">
                        <IMG SRC="images/boreholes.jpg" BORDER=0 height=147 width=140></a>
                      </TD>
                    </TR>
                    <TR>
                      <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="FRASS" VALUE="-1">
                         Beetle frass<BR>
                        ("saw dust") </TD>
                      <TD ALIGN="center" VALIGN="top"> <INPUT TYPE="checkbox" NAME="BORE_HOLES" VALUE="-1">
                         Beetle bore holes </TD>
                    </TR>
                  </TABLE></TD>
              </TR>
            </TABLE></TR>
          </TD>
        <TR HEIGHT="30">  </TR>
        <TR>
        <TR>
          <TD WIDTH="20%" VALIGN="top">Tree Location:
            <BR>
            <BR>
            Enter the street address OR the XY location of the tree
            (see example below). <BR>
            <BR>
            Note: All street addresses and emails are kept completely confidential.
          </TD>
          <TD WIDTH="35"> </TD>
          <TD> <BR>
            Street Address (preferred) <BR> <BR>
            Complete Street Address or nearest intersection: <BR>
            <INPUT TYPE="text" NAME="ADDRESS">
              Example: 2011 Francisco St., or Francisco
            St. & Park Ave. <BR> <BR>
            City Name: <BR>
            <INPUT TYPE="text" NAME="CITY">
              Example: Berkeley <BR> <BR>
            Zip Code: <BR>
            <INPUT TYPE="text" NAME="ZIPCODE">
              Example: 94709 <BR> <BR>
            County: <BR>
            <INPUT TYPE="text" NAME="COUNTY">
              Example: Alameda <BR> <BR> <BR>
            XY Coordinates (optional if address is entered above) <BR>
            <BR>
            If entering an XY location, use either State Plan or latitude/longitude
            coordinates. <BR>
            Examples of both types of acceptable projections: <BR> <BR>
            CA STATE PLANE include the zone, and please use Datum = NAD83, and units
            = meters: <BR>
            X coordinate --> 5973541.75 <BR>
            Y coordinate --> 2238728.00 <BR> <BR>
            LATITUDE / LONGITUDE: <BR>
            Latitude --> 38-22-15 <BR>
            Longitude --> -122-30-29 <BR> <BR>
            X Coordinate: <BR>
            <INPUT TYPE="text" NAME="X">
              Example: 5983541.75 (State Plane), or -122-30-29
            (Longitude) <BR> <BR>
            Y Coordinate: <BR>
            <INPUT TYPE="text" NAME="Y">
              Example: 2238728.00 (State Plane), or 38-22-15
            (Latitude) <BR> <BR>
            California State Plane Zone: <BR>
            <INPUT TYPE="text" NAME="ZONE">
              Example: III (for a listing of zones by county,
            go <a href="http://www.pipeline.com/%7Erking/spc.htm#CA" TARGET="_blank">here</a>)
            <BR> <BR> <BR> <BR> <BR>
            Please enter your e-mail for possible follow-up and mailing of submission
            receipt (mailing and e-mail addresses are kept completely confidential):
            <BR>
            E-mail Address: <BR>
            <INPUT TYPE="text" NAME="EMAIL">
              Example: [email protected] </TD>
        </TR>
      </TABLE></TR>
      </TABLE> <TABLE ALIGN="CENTER" BORDER=0 WIDTH="60%">
      <TR>
        <TD ALIGN="CENTER"> Please note that by submitting this information, you agree
          to let us map your site on our Sudden Oak Death distribution map and browser
          as a point within 1 mile of the site. Your address will NOT be released
          and will only be used for general locating the symptomatic tree. </TD>
      </TR>
      <TR HEIGHT="40">  </TR>
      <TR>
        <TD ALIGN="CENTER"><BR>
          <BR>
          Thank you very much for your submittal! </TD>
      </TR>
      <BR>
      <BR>
      <TABLE ALIGN="center" WIDTH="60%" BORDER="0">
        <TR>
          <TD ALIGN="center"> <BR>
            In addition, please contact your county's Cooperative Extension contact
            and/or Agricultural Commissioner's Office to notify them about your symptomatic
            tree. <BR> <BR>
            For contact information, please see the <a href="http://www.cnr.berkeley.edu/comtf/pages/counties.html" target="_blank">County
            Contacts page</a>. <BR> <BR>
        <TR HEIGHT="50">  </TR>
      </TABLE>
      <CENTER>
        <INPUT TYPE="Submit" NAME="SUBMIT" VALUE="Submit Tree">
      </CENTER>
      <BR>
    </FORM></TD></TR>
    <BR>
    <BR>
    <BR>
    <BR>
    <BR>
    <CENTER>
      You are person #<IMG SRC="http://counter.digits.com/wc/-r/-d/4/-c/2/-f/0E351A/-b/F4F4FF/-e/F4F4FF/OakMapper2" ALIGN=absmiddle WIDTH=60 HEIGHT=20 BORDER=0>
      to access the OakMapper Tree Submittal since we began counting on February 15,
      2002. <BR>
      <BR>
      Provided by <A HREF="http://www.digits.com" target="_blank"><IMG SRC="wc-01.gif" ALIGN=absmiddle WIDTH=75 HEIGHT=20 BORDER=0></A>
    </center>
    <BR>
    <BR>
    <CENTER>
      <HR WIDTH="85%">
      <p><a href="http://camfer.cnr.berkeley.edu/oaks/" TARGET="_blank">Oaks
        Research Home</a> | <a href="http://www.suddenoakdeath.org/" TARGET="_blank">California
        Oak Mortality Task Force</a> | <a href="http://camfer.cnr.berkeley.edu/" TARGET="_blank">CAMFER
        Home</a> <br>
        <br>
        <br>
        For questions, comments
        or problems concerning this web site, please contact Karin Tuxen at: <a href="mailto:[email protected]">[email protected]</a>
    </center>
    </body>
    </html>This is the code for the jsp:
    <HTML>
    <HEAD>
    <TITLE>OakMapper Tree Submittal</TITLE>
    </HEAD>
    <BODY BGCOLOR="BBE4C6" TEXT="0E351A">
    <%@ page language="java" %>
    <!--Importing the Packages-->
    <%@ page import = "java.sql.*" %>
    <%
    //Creating Database Instanse
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:SuddenOak","","");
    //Creating the Connection Statement
    Statement statement = con.createStatement();
    ResultSet recset = statement.executeQuery("Select * From Treesubmittals where SubmissionID>0");
    if ((request.getParameter("EMAIL")!= null) && (! request.getParameter("EMAIL").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.EMAIL" + request.getParameter("EMAIL"));
    statement.executeUpdate("INSERT INTO Treesubmittals.GEOCODED Pending");
    statement.executeUpdate("INSERT INTO Treesubmittals.DATE_ENTER Date");
    if ((request.getParameter("SPECIES")!= null) && (! request.getParameter("SPECIES").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.SPECIES" + request.getParameter("SPECIES"));
    if ((request.getParameter("OTHER_TREE")!= null) && (! request.getParameter("OTHER_TREE").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.OTHER_TREE" + request.getParameter("OTHER_TREE"));
    if ((request.getParameter("BACKGROUND")!= null) && (! request.getParameter("BACKGROUND").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.BACKGROUND" + request.getParameter("BACKGROUND"));
    if ((request.getParameter("BACKGR")!= null) && (! request.getParameter("BACKGR").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.BACKGR" + request.getParameter("BACKGR"));
    if ((request.getParameter("SETTING")!= null) && (! request.getParameter("SETTING").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.SETTING" + request.getParameter("SETTING"));
    if ((request.getParameter("SETTINGOTH")!= null) && (! request.getParameter("SETTINGOTH").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.SETTINGOTH" + request.getParameter("SETTINGOTH"));
    if ((request.getParameter("DEAD_LEAVE")!= null) && (! request.getParameter("DEAD_LEAVE").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.DEAD_LEAVE" + request.getParameter("DEAD_LEAVE"));
    if ((request.getParameter("CROWN_DISC")!= null) && (! request.getParameter("CROWN_DISC").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.CROWN_DISC" + request.getParameter("CROWN_DISC"));
    if ((request.getParameter("BARK_DISCO")!= null) && (! request.getParameter("BARK_DISCO").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.BARK_DISCO" + request.getParameter("BARK_DISCO"));
    if ((request.getParameter("BORE_HOLES")!= null) && (! request.getParameter("BORE_HOLES").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.BORE_HOLES" + request.getParameter("BORE_HOLES"));
    if ((request.getParameter("SHOOT_DIEB")!= null) && (! request.getParameter("SHOOT_DIEB").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.SHOOT_DIEB" + request.getParameter("SHOOT_DIEB"));
    if ((request.getParameter("BLEEDING")!= null) && (! request.getParameter("BLEEDING").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.BLEEDING" + request.getParameter("BLEEDING"));
    if ((request.getParameter("HYPOXYLON")!= null) && (! request.getParameter("HYPOXYLON").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.HYPOXYLON" + request.getParameter("HYPOXYLON"));
    if ((request.getParameter("FRASS")!= null) && (! request.getParameter("FRASS").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.FRASS" + request.getParameter("FRASS"));
    if ((request.getParameter("ADDRESS")!= null) && (! request.getParameter("ADDRESS").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.ADDRESS" + request.getParameter("ADDRESS"));
    if ((request.getParameter("CITY")!= null) && (! request.getParameter("CITY").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.CITY" + request.getParameter("CITY"));
    if ((request.getParameter("ZIPCODE")!= null) && (! request.getParameter("ZIPCODE").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.ZIPCODE" + request.getParameter("ZIPCODE"));
    if ((request.getParameter("COUNTY")!= null) && (! request.getParameter("COUNTY").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.COUNTY" + request.getParameter("COUNTY"));
    if ((request.getParameter("ZONE")!= null) && (! request.getParameter("ZONE").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.ZONE" + request.getParameter("ZONE"));
    if ((request.getParameter("Y")!= null) && (! request.getParameter("Y").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.Y" + request.getParameter("Y"));
    if ((request.getParameter("X")!= null) && (! request.getParameter("X").equals(""))){
            statement.executeUpdate("INSERT INTO Treesubmittals.X" + request.getParameter("X"));
    %>
    //<li> "Thank you for submitting to the OakMapper Tree Submittal.  " + "<BR>" + "<BR>" ;
    //<li> "In addition, please contact your county's Cooperative Extension contact and/or Agricultural Commissioner's Office.  " + "<BR>" + "For contact information, please see http://www.cnr.berkeley.edu/comtf/pages/counties.html" + "<BR>" + "<BR>";
    //<li> "Below is a summary of your submittal:" +"<BR>" + "Tree species = " + recset.getString("SPECIES") + "<BR>" + "Other tree species = " + recset.getString("strOther_Tree") + "<BR>";
    //<li> "Background in arboricultural, forestry or pest management sciences = " + recset.getString("BACKGROUND") + "<BR>" + "Other background, if applicable = " + recset.getString("BACKGR") + "<BR>";
    //<li> "Environmental Setting = " + recset.getString("SETTING") + "<BR>" + "Other background, if applicable = " + recset.getString("SETTINGOTH") + "<BR>" + "Seeping = " + recset.getString("BLEEDING") + "<BR>";
    //<li> "Bark discoloration = " + recset.getString("BARK_DISCO1") + "<BR>" + "Crown discoloration = " + recset.getString("CROWN_DISC1") + "<BR>" + "Numerous brown dead leaves = " + recset.getString("DEAD_LEAVE1") + "<BR>";
    //<li> "Shoot die-back = " + recset.getString("SHOOT_DIEB1") + "<BR>" + "Fungus - Hypoxylon = " + recset.getString("strHypoxylon1") + "<BR>" + "Beetle frass = " + recset.getString("FRASS1") + "<BR>" + "Beetle bore holes = " + recset.getString("BORE_HOLES1")  + "<BR>";
    //<li> "Address - this will be kept completely confidential = " + recset.getString("ADDRESS") + "<BR>" + "City = " + recset.getString("strCity") + "<BR>" + "Zip Code = " + recset.getString("ZIPCODE") + "<BR>" + "County = " + recset.getString("COUNTY") + "<BR>";
    //<li> "Zone =                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

  • How to increase painting performance ?

    First off all, i'd like to apologize for my poor english, because I'm from brazil, and even knowing very well how to speak english, my spelling sometimes comes out really nasty.
    Now getting to the subject... ;^)
    I study computer science here in brazil, and during a course of data structures, I once saw this stunting applet( a kind of visualization application for AVL trees ) located at: http://www.seanet.com/users/arsen/avltree.html. Since then, I've tried to make something similar to this applet, because I thought that it would be a great experience to do something like that. And I've achieved that. However, like in everything that we do, we encounter some trouble in the way.
    First, i tried to develop my own visualization of AVL trees program by using the C language, toghether with the old Borland Turbo C BGI graphics library. It was fine, but i wasn't satisfied 100% with it. Then I've decided to develop it in Java too. I had to make several changes in the algorithms responsible for rendering the tree when I wrote the program in Java, because I wasn't doing the things in the C version in a very smart way. However, the Java version was really improved and is pretty efficient.
    My actual problem:
    I've implemented a swing component responsible for doing the visualization of any AVL tree. It extends JComponent.
    My only problem, is related with the Java 2D library and it's renderer. As the size of the component, that holds the tree and paints it, grows, the performance of the painting slows down drastically. Even when the user isn't interacting with the tree, witch doesn't require recalculating any coordinates and adicional processing.
    I've tried to set a clipping area in order to perform the drawing faster and improve it's performance, but it didnt worked as I expected. The wanted performance is still unachieved.
    You'll know what I'm talking about if you download the program and play with it ...
    I don't know what to do ... I'm thinking to create offscreen images of the tree, but I've read that the swing components already are double buffered.
    I would publish the source code of the application for you to examine, but I think it wouldn't be useful, because the code is well documented, sadly, in Portuguese. So for you to get along with it, would take a long time ....
    One thing thar I've noticed is that Visual Paradigm 3.0( http://www.visual-paradigm.com ) is made in java, and the diagrams sheets are nicely rendered ... what the developers of visual paradigm may have done to improve the performance of the drawing of the diagrams ? Cause they render realy fast, dont matter the size of the panel holding the diagram...
    Does anyone know any documents that i can read about this stuff ? Does anyone have any suggestions ?
    you can download the C version of my visualization program at: http://planeta.terra.com.br/informatica/jdesign/pessoal/AVL.zip
    you can download the java version of my visualization program(executable jar) at: http://www.jdevelop.thefreeserver.com/ArvoresArvl.jar
    you can view a brief explanation of the visualization program at: http://www.jdevelop.thefreeserver.com/avl_tree.html
    Note: the java version has few known bugs, however they dont affect the performance of the painting and i'm working on them.
    If you are brave enought and want to try analising the source code, ask me for it by emailing me at: [email protected]
    Thanks in advance,
    Julio Cesar de Andrade Vieira Lopes
    [email protected]

    i'm sorry .... the correct link to download the java program is:
    http://www.jdevelop.thefreeserver.com/ArvoresAvl.jar

  • How to create spatial query (sdo_relate) on 2 views

    Hi, I want to create a spatial query in the form of:
    select /*+ORDERED*/ column1,column2
    from view1,view2
    where sdo_relate(view2.geometry,view1.geometry,'mask= ... ')Both views are very fast and return a smal number of rows out of a large dataset. I would expect that running the spatial query on this selection should be fast but when performing the above query it takes quite some time.
    It seems that the spatial query is performed on the underlying tables before the views make their selection.
    What is a good way to handle this kind of problem? How to make the spatial query to be executed on the resultset of the views?
    thanks Rene

    Hi Udo,
    Let me tell you a bit more about the requirements of the application.
    We have a table with geometries. Some geometries are buildings, others are roads, trees, parking areas, etc.
    We let users specify what geometries they are interested in. This can be the type (tree, building) or a list of types, plus some other selection such as type of tree, name of road etc. Based on the specifications the application creates a view that returns exactly the geometries the user is interested in.
    Users may not only be interested in just a tree but may be looking for a tree located inside a building, or a building within a certain distance from a road. This then would be the query I am talking about in this post. Two views and a spatial relationship between them.
    Depending on the definition of the views and the data currently loaded the number of rows returned by the views will vary. I can't be there all the time making sure that the correct table is queried first and the correct hints are given. This is why we have the CBO. But it seems to do a poor job when it comes to spatial queries.
    Rene

Maybe you are looking for