Creating Windows like ListBox with JSP/Java

I know I might be going out on a limb here, but I have a client that would like us to build a HTML Select tag that would act like the ListBox in Windows. For example, if I have a Select list of Last Names + First Names. If the user starts to type in "SMI" the select box will go to the "SMITHS". This will help narrow the users search. Now, I have seen an example of this done in VBScript, but we are running Apache/Tomcat on Solaris boxes so that won't work for us. I would appreciate to hear any comments suggestions on a solution for this. I am really curious that a 3rd party component builder hasn't already designed a component like this for JSP/Servlets.
Thanks,
Dave Hatz

I have tried looking through the JavaScript forums, I have had no luck at all....

Similar Messages

  • Can't create dynamic html elements with jsp????? important

    Hi All,
    I am having problem creating dynamic html elements with jsp tags, i have tried to use EL and java scriplet, both of them don't work.
    i am trying to create dynamic menu in my "rightMenu.jspf", based on, if user has logged in or not.
    some like this!
    <jsp:if test ="${validUser == null}">
    some simple text menu here
    </jsp:if>
    but it is not working. it simply loading all and images with in statement, regardless of whether user has logged in or not. i think some how if statement is not working properly.
    "validUser" is a session bean, which is not creating at this point, it will created when user will log in successfully. and also this session bean does not exist at the page, where i am trying to check that .
    Is there any way to create dynamic values in jsp. It is really important, is there any body who help me in this matter. i would be really grateful.
    zaman

    hi jaspre,
    thanks for replying me. you know what, is it not something wrong with web.xml file. i remember once, i deleted some from there, a property with "*.jsp". i can't remember what exactly was it though.
    all if statements works on files ending with extension ".jsp" but don't work only on with extension ".jspf". there must be to do with this.
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <servlet>
    <servlet-name>ValidateServlet</servlet-name>
    <servlet-class>ValidateServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ValidateServlet</servlet-name>
    <url-pattern>/ValidateServlet</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>dwr-invoker</servlet-name>
    <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>pollAndCometEnabled</param-name>
    <param-value>true</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>dwr-invoker</servlet-name>
    <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
         <welcome-file>
    main.jsp
    </welcome-file>
    </welcome-file-list>
    </web-app>
    if any one can figure it out. i would be grateful.
    zaman

  • How to create windows users and groups from Java

    Hi,
    Can any one please tell me, which Package/API will helps to create windows users and groups from Java.
    Thanks,
    M.Prem.

    You can't do it with pure Java, and it's not in the core API. You'd have to write a native function to do it, using whatever API Windows provides, and then call it with JNI. Or look for a third party native-based Java library that already does that.

  • How can I create a Login-page with jsp???

    Hello,
    I have to create a page with JSP code on the Netweaver Developer Studio.
    But I do not know how I do it.
    Can anyone tell me what to write in the portalapp.xml?
    An example would be very helpful.
    Thank you
    Greetings

    As you can see in the example:
    The portalapp.xml file (deployment descriptor) provides configuration information for your application, and defines the components and services in your application. For each component and service, you specify the implementing Java class and configuration information.
    For more information on the format of the portalapp.xml, see Deployment Descriptor (portalapp.xml).
    <application>
        <application-config>
            <property name="SharingReference" value="com.sap.portal.navigation.service, com.sap.portal.navigation.api_mimeservice, com.sap.portal.navigation.helperservice"/>
            <property name="Vendor" value="MY_COMPANY"/>
            <property name="SecurityArea" value="PERMISSION"/>
        </application-config>
        <components>
            <component name="SimpleNavigationExample">
                <component-config>
                    <property name="ClassName" value="MY_CLASS"/>
                    <property name="SecurityZone" value="no_safety"/>
                </component-config>
                <component-profile/>
            </component>
        </components>
        <services/>
    </application>
    You can only update in this example, your class name and other details:
    <property name="Vendor" value="sap.com"/>
    <property name="SecurityArea" value="MyCompany"/>
    <property name="ClassName" value="LOGINCLASS"/>
    <property name="SecurityZone" value="no_safety"/>
    Modify this portalapp.xml file as follows:
           1.      NAVIGATION SERVICE, so you must add references to the following portal applications that define these services:
            com.sap.portal.navigation.service
            com.sap.portal.navigation.api_mimeservice
            com.sap.portal.navigation.helperservice
           2.      In the <application-config> section, create the following properties that help to define the security zone for all components and services in this application:
    ○     Vendor: String identifying the company or organization that provided the application, for example, sap.com.
    ○     SecurityArea: String identifying the security area for the application, for example, NetWeaver.portal.
           3.      In the <component-config> section for the mySiteMap component, create the property SecurityZone to define the specific security zone for the component.
    For Permission, check this document:
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/489e2df5ee4e35e10000000a1553f6/frameset.htm

  • How to create windows executable file from a java file. Please help.

    Hi,
    For my project I developed the codes in Java. It is working well with java run time environment. But without that I can not run it. I need to create a exe file (windows executable file) from the java source code. If you have any idea please share it with me.
    Even if you know it very lightly, please help with what you know. That would be a big help for me.
    Thank you very much.

    Does anybody know how to read a manual?
    Matt Richardson
    Certified LabVIEW Developer
    MSR Consulting, LLC

  • How to create Windows 7 Homegroup with Verizon Router

    I have a desktop and a laptop, both running Windows 7 (the desktop is running Windows 7 Home Premium, the laptop  is running Windows Ultimate).  With XP I had a nice network and could share printerhs, files, etc .
    After I upgraded both machines from XP to windows 7 I cannot get the homegroup to create AND share.  I can create a homegroup on either machine, but in either case the other machine cannot see the home network.
    Windows 7 says that Homegroup requires IPv6, but Verizon Routers don't support this protocol.  I have attempted, as noted on the internet, to disable IPv6 on both computers,  but this didn't seem to solve the problem.  I chatted with an Verizon tech support person who told me no IPv6 routers.  
    I am looking for suggestions on how to successfully network my computers with Windows 7 and my Verizon router.  (Actiontec M1424-WR).  We previously tried to put another router in the interface to do wireless and that didn't work.  
    Thank you.

    IPv6 connectivity needs to be enabled on the Windows 7 machines to support HomeGroup networking. Make sure you re-enable those. Once IPv6 is re-enabled, verify that the PCs are at least holding a Link-Local IPv6 address. Open up command prompt and type in "ipconfig" to verify it is holding something, first of all. It's also a good idea to make sure Teredo is in working order as well, as it's considered to be needed in order to use IPv6 on an IPv4 router.
    ========
    The first to bring me 1Gbps Fiber for $30/m wins!

  • MDT : creating windows 7x64 images with required applications and deploying it

    Hi,
    We have to create windows 7 x64 and windows 8 images with all the custom applications and which can also be used on all the hardwares. I heard MDT can be used. How can I do this and what are the pre-requisites for installion and steps for configuring MDT
    tool ?
    do we need ADK for installing MDT ? I tried installing ADK ,but it says you need have ADK documentation_x86_en_us.msi.
    Thanks.

    For drivers, I have always used the .inf files.
    For applications, it depends upon how you want to deploy them.  Lots of people build their 'gold' image to contain all the applications they want installed, and then use that as a basis for deployment.  Others build special scripts in to select
    specific applications based on security groups.
    The thing about MDT is that it is very flexible and can be adapted to a lot of different situations.  You first need to define exactly how you plan to use it and then build your image(s) accordingly.
    The guides you can find online will assist you in the specific steps for the solution option you chose.  There is not a single, simple answer to cover all cases.
    .:|:.:|:. tim

  • How to create Mysql like table with LinkedList or LinkedHashMap

    Is it possible to create a class which can create tables like Mysql tables? Take the following table as an example,
    0, LastName0, FirstNam0, Ag0, Phon0
    1, LastName1, FirstNam1, Ag1, Phon1
    2, LastName2, FirstNam2, Ag2, Phon2
    It's very easy to create a table in MySql with the following data. Now what if I want to create a table in the memory, so I can retrieve or SORT it whichever way I want. I might want to sort it by lastname or by phone number.
    Is it possible to do that with LinkedList or LinkedHashMap?

    1. Create a class with the fields lastName, firstName, age, phone of appropriate types
    2. Create objects of this and put in some type of a collections (ArrayList, Vector)
    3. Sort it using Collections.sort. Use a Comparator that compares the fields of interest

  • How can I create a new User with the Java API like OIDDAS do?

    Hello,
    I'm currently working on an BPEL based process. And i need to create an OCS user. So far I can create an user in the OID. But I cant find any documentation about given this user an email account,calendar and content function etc.
    Did anybody know if there are some OIDDAS Webservices? Or did anybody know how to do this using the Java APIs?

    You are asking about a Database User I hope.
    You can look into the Oracle 8i Documentation and find various privillages listed.
    In particular, you may find:
    Chapter 27 Privileges, Roles, and Security Policies
    an intresting chapter.
    You may want to do this with the various tools included with 8i - including the
    Oracle DBA Studio - expand the Security node and you can create USERS and ROLES.
    Or use SQL*Plus. To create a
    user / password named John / Smith, you would login to SQL*Plus as System/manager (or other) and type in:
    Create user John identified by Smith;
    Grant CONNECT to John;
    Grant SELECT ANY TABLE to John;
    commit;
    There is much more you can do
    depending on your needs.
    Please read the documentation.
    -John
    null

  • Dynamically create drop down box with JSP

    Hi,
    I hope this is not a repeat post, I have search the forum and a posting has not jumped out at me. I am making a jsp that dynamically constructs a custom SQL query.
    I have a number of text boxes with an id, my jsp page calls a servlet, the servlet reads the contorl id and the value to build the query - this works great. However, there's a large text input box which receives a number of extra conditions - this text box receives the input in the following format:
    searchAttributeName1,searchAttributeValue1;searchAttributeName2,searchAttributeValue2
    This is functional, however, it's a bit rubbish as the user has to know the special recognised attributeNames. What I would like to have is some sort of criteria control. This would consist of a drop down box populated from the servlet, a text input for the value and a button to add another criteria control. so the user could build up the number of query criteria. The drop down box ensures they cannot select the wrong keyword, pressing the add criteria button adds a new drop down box and text box pair to the screen.
    An example of this I recently saw was at Intel's jobs search web site https://jobs.intel.com/jobs/jobs.iccw - see that for example.
    Has anyone got any ideas on how to achieve this? I initially thought use jsp scripting (there is no restriction against this) but I need to use javascript I'm guessing as the button click triggers adding a new combo box. Another idea was to use styles and tables to hide the other drop down boxes but this seems like a real hack that I'd like to avoid. I can do with with .NET i hope java can deliver!
    Any ideas are much appreciated - I am a novice with java web development so please, any examples thoroughly explain (no need to explain populating the drop down box - there seem to be plenty of posts on this).
    Thanks for any help or ideas on this issue -

    Gina,
    Here is some sample code for using a ComboBox in a JSP from an EditCurrentRecord bean. This particular example uses a query, you can also populate combo boxes, list boxes, radio buttons and checkboxes from a static list. See the JavaDocs for the EditCurrentRecord bean.
    <jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
    <%
    RowEditor.initialize(application, session , request, response, out, "wt_bc_WT_bcModule.WalkthroughEngineSlidesView");
    RowEditor.setTargetUrl("WalkthroughEngineSlidesView_SubmitInsertForm.jsp");
    RowEditor.createNewRow();
    RowEditor.setReleaseApplicationResources(true);
    RowEditor.useComboBox("Presname","select pres_name,pres_name from wt_info","PRES_NAME","PRES_NAME");
    RowEditor.render();
    %>
    </jsp:useBean>
    null

  • Creating Windows-Like Boxes

    Hello,
    I'm really new to Java (I've only used free applets on websites before), but now I have to create something from scratch for my company... I have to make a downloader that checks a folder on the user's system for certain files and updates them accordingly with corresponding files on the server. I've got the certificate thing done so that I can access files on their computers, but I don't really know how to do much else. I want to make something that looks like this: http://www.loaded-designs.com/images/example.gif . I would like everything to be compressed into a single applet (if thats even possible, I have no idea)... Any help is greatly appreciated!
    Thanks in advance,
    - Jeff

    I have tried looking through the JavaScript forums, I have had no luck at all....

  • How to create a pie chart with jsp/servlet?

    I want to create a servlet which can be used like below:
    <img src="pieservlet?param1=<%=x%>&param2=<%=y%>&..." width="100" height="100" >
    can you give me some guide?

    Hai ,
    I have implemented a trial working pie chart , dynamically created from jsp using ServletOutputStream , BufferedImage & JPEGImageEncoder (found in com.sun.image.codec.jpeg.* package & bundled along with jdk ) .
    <%
    ServletOutputStream sout = response.getOutputStream();
    response.setContentType("image/jpeg");
    BufferedImage img = new BufferedImage(400,400,BufferedImage.TYPE_INT_RGB);
    Graphics2D gr = img.createGraphics();
    /* Actually this will be got as values of request.getParameter */
    Vector values = new Vector();
    values.addElement(new String("45") );
    values.addElement(new String("125") );
    values.addElement(new String("75") );
    values.addElement(new String("25") );
    values.addElement(new String("90") );
    // my demo class      
    temp.pieChart fr = new temp.pieChart(400,400,values);
    /* This pieChart is class extends JFrame , in paint method of it all Drawing of pie chart using graphics2D fillArc done */
    fr.paint(gr);
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sout);
    encoder.encode(img);
    sout.flush();
    %>
    Hope this helps to build your own custom pie chart .
    Let me know if details needed on pieChart class
    rakesh
         

  • How can I locate the 'Windows system path' with in java?

    Hi,
    Is it possible to locate the System path (usu x:\winnt\system32\) of the OS at run time? What classes and methods should I use?
    Thanks in advance

    You can't from pure java, that's a windows specific value that's stored in the registry. Sorry, you can get anything that's in the System.getPropeties() there are many usefule values in there like the user's home dir and the java runtime version and java home, but not the C:\winnt directory as a value. Sorry.

  • Creating GC power users with the Java EM cli kit

    for those interested in creating users with dba credentials I have written some
    shell scripts using EM java cli kit for creating dba users into remote db and updating
    credentials into Grid Contol
    once logged to have all the necessary preferred credentials up 2 date and you donnot have
    to remember the sysdba passwords for specific instances
    here is the link
    http://boulayp.free.fr/articles.php?lng=fr&pg=203

    Thanks for sharing the knowledge

  • Creating "windows" like JFXtras?

    Basically I am looking for a way to have additional "windows" if you want to call them that, within a program for things like a listView. All I need it to do is be draggable and can minimize/close. Jfxtras has a system, but it seems to be a little buggy
    Thanks for any help,
    ~KZ
    Edited by: KonradZuse on May 15, 2013 6:04 PM
    http://grepcode.com/file/repo1.maven.org/maven2/org.jfxtras/jfxtras-labs/2.2-r4/jfxtras/labs/scene/control/window/Window.java
    Well well look what I found :P.
    Edited by: KonradZuse on May 15, 2013 6:31 PM

    I have tried looking through the JavaScript forums, I have had no luck at all....

Maybe you are looking for

  • JMS Dequeue not working after upgrade from 11gR1 to 11gR2

    Our database was migrated to a new database with new hardware running 11gR2 enqueue appears to be working as the queue table just grows and grows However, my JMS async subscriber is never getting messaged. Is there any logical reason for this? in sel

  • How to diagnose a broken 30 pin dock connector?

    Is there a "diagnostic" application to determine if my Iphone 4 - 30 pin dock connector is fully functional? BTW - all lint and dirt has been removed (delicately). This iPhone has been able to perform TV/video out and mirror display with a (still) fu

  • Archive directory full. RMAN backup failed.

    My archive directory went out of space due to rman issue. /tmp was 100%. I had no choice late last night but to move archive logs to another directory (/backups/arch) I changed log_archive_dest also to this location. However RMAN keeps looking at the

  • Roblem about space management of archived log files

    Dear friends, I have a problem about space management of archived log files. my database is Oracle 10g release 1 running in archivelog mode. I use OEM(web based) to config all the backup and recovery settings. I config "Flash Recovery Area" to do bac

  • Change font order

    Going from Times to Arial and back again is a pain.(not very creative, either) Isn't there some way I can put my most used fonts at the top of the list or make my own font library as the default? Version CS2 InDesign and Photoshop