JSP (no java code), taglibs and dynamic list boxes

Hi,
Can anyone recommend a few examples of JSPs using Tag Libraries to represent a dynamic dropdown box in a form? We are trying to learn how to incorporate tag libs into our pages so we have no code on the JSPs. We currently have a JSP that uses dynamic dropdowns, but the all the code is in the JSP. Most examples we find use either static data or just output data into a table with taglibs. But our pages use many dropdowns, inputs, etc... for updates and inserts. We are using JSPs, servlets, and tags which will get data from EJB's (stateless and entity). (We are also using WEblogic Server 7.0 if that makes any difference) If you know of some good examples or tutorials that show how to accomplish this, it would GREATLY help us out!!
Thanks!

Check out Struts, they have an HTML taglib that does exactly what your talking about. http://jakarta.apache.org/struts

Similar Messages

  • Display selected items in dynamic list box

    I need to display the selected items in a dynamic list box -
    this worked great - but now client wants multiple selected. I do
    have the items comma delimited in single field (but I can change
    that if I need to) - so how do I make those items display as
    selected in list. I'm using asp and standard dreamweaver list based
    on a recordset.

    There is a better approach. I faced a similar problem and put all the logic in a Javascript function. I modified my code to suit your needs.
    My HTML will have the following.
    <body onLoad="javascript:initLanguages();">
      <form name="languageForm">
        <select size="1" name="languagesList">
        </select>
      </form>
    </body>I created a Javascript function
    <script language="Javascript">
      //-- put all your languages here in a Javascript Array if they are fixed.
      //-- If you get the langauges from a Java object (dynamic or configurable), generate the Javascript in that object and insert a scriptlet in the HTML that plugs in the generated Javascript into this HTML. If so, take care of the quotes and double quotes. They are tricky !!!
      var languageArray = new Array("Fran?ais", "English", "Espanol", "Deutsch", "Italiano");
      function initLanguages ()
        var listCounter = 0;
        for (var ind=0; languageArray != null && ind < languageArray.length; ++ind)
          var obj = eval("new Option" + languageArray[ind]);
          eval("document.languagesForm.languagesList.options[listCounter]=" + "new Option" + languageArray[ind]);
          if(document.languagesForm.languagesList.options[listCounter].value == "<%= selectedLanguage %>")
            document.languagesForm.languagesList.options[listCounter].selected = true;
          listCounter += 1;
    </script>
    selectedLanguage is something you get in the Java code
    <%
      selectedLanguage = myObj.getSelectedLanguage();
    %>

  • Syncronizing Three Dynamic List boxes

    I have three list boxes which are populated by cfquerys. If
    the first one changes the other two must change.
    If the second changes the third one has to change and the
    first one stay the same.
    I submit the form to inself each time the the boxes are
    clicked. I'm using javascript to set the action to the same page
    each time. I have it working if I change the first list box but not
    when I change the second list box. Thanks in advance.
    Here is the code for the first, second and third list box and
    the java script.
    <td><select name="site"
    onchange="submitForm('selected');">
    <cfoutput query="qGetMarketSites">
    <option value="#qGetMarketSites.site#"
    <cfif form.site eq #qGetMarketSites.site#>
    selected
    </cfif>
    >#qGetMarketSites.market#
    </option>
    </cfoutput>
    </select>
    </td>
    <td><select name="city" size="1" onchange="
    <cfset form.prevSite=form.site/>;
    submitForm('selected');">
    <cfoutput query="qGetCitys">
    <option value="#qGetCitys.city#"
    <cfif form.city eq #qGetCitys.city#>
    selected
    </cfif>
    >#qGetCitys.city#
    </option>
    </cfoutput>
    </select>
    </td>
    <td><select name="npanxx" size="1"
    onchange="submitForm('selected');">
    <cfoutput query="qGetNPANXXS">
    <option value="#qGetNPANXXS.npanxx#"
    <cfif form.npanxx eq #qGetNPANXXS.npanxx#>
    selected
    </cfif>>#qGetNPANXXS.npanxx#
    </option>
    </cfoutput>
    </select>
    </td>
    <script type="text/JavaScript">
    function submitForm(submitFrom)
    if (submitFrom == 'selected')
    alert(document.form.site.value);
    alert(document.form.prevSite.value);
    document.form.action="getAssignment2.cfm";
    form.submit();
    else
    _CF_checkform(document.form);
    if (_CF_error_exists == false)
    if (document.form.port_Indicator[1].checked)
    if (document.form.foreign_DN.value == " ")
    alert('Foreign DN must be populated');
    else
    document.form.action="selectInventory.cfm";
    form.submit();
    else
    document.form.action="selectInventory.cfm";
    form.submit();
    //-->
    </script>

    hai,
    here is the sample code.
    write it in onchange of list1.
    var a1=document.form.list1.selectedIndex;
    for(i=0;i<document.form.list1.length;i++)
    if(i!=a1)
    document.form.list2.options=new Option(document.form.list1.options[i],document.form.list1.options[i],false,false);
    else
    i--;
    i think this may help u out.
    regards,
    ravi

  • Surveys - dynamic list box option

    Hi,
    How can I control the entries for the answer category "Dynamic list box with single selection"?
    Thanks,
    Susana Messias

    Hello Susana,
    To maintain dynamic values for a specific answer, select your survey in the Survey Suite and go to the maintenance of survey attributes (CTRL+F12). Under the tab 'Technical settings', you can maintain the 'Callback to PBO' function module, which allows you to modify the survey at runtime. (The function module you specify here is called by the survey tool runtime environment at PBO.)
    As an example, you can have a look at the function module 'CRM_SVY_EXAMPLE_DYNAMIC_PBO', which contains a section to set answer options at runtime. Of course, you would have to program your own logic to meet your specific requirements for setting the values.
    I hope this helps.
    Kind regards,
    Kristoff

  • How to use dynamic list box in survey builder?

    Hello,
    Could someone give me a little bit of thread? How to use dynamic list box in survey builder?

    Hi Liu,
    Dynamic combo boxes::A combo box is dynamic if it references a document property for which a value set is defined in the configuration (System Administration ® System Configuration ® Content Management ® Global Services ® Property Metadata ® Properties ® Parameter Allowed Values).
    At runtime (when you open the creation form) the system reads these values from the configuration and displays them in the dropdown list.
    If you link a combo box for which list entries already exist to a document property with a value set, the system asks whether you want to delete the list entries. it is recommend that you accept this suggestion and delete the list entries from the XML Forms Builder. Otherwise inconsistencies could arise between the entries in the XML Forms Builder and the value set in the configuration. This can cause errors when saving.
    Also you may Refer the Link for Further help:
    http://help.sap.com/saphelp_crm50/helpdata/en/29/c40d3d2a83752de10000000a114084/frameset.htm
    http://help.sap.com/saphelp_crm50/helpdata/en/00/9e7f41969e1809e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_crm50/helpdata/en/a7/5a874174a8050de10000000a1550b0/frameset.htm
    Hope it Answers your Queries..
    Thanks and Regards,
    RK.

  • "Dynamic List Box with Single Selection" Survey Suite in CRM 6.0

    Hi
    I am using CRM 6.0. There in Survey Suite there are 2 answering options "Dynamic List Box with Single Selection" & "Dynamic List Box with Multiple Selection". I am able to make out, how we can assign values to this. I have seen example "Example_Dynamic_survey" also.
    I believe we have to use programming for populating this. But how do we have to carry that out.
    Thanx and Regards
    Hitesh

    Hi Hitesh,
    There is no need of programming for populating values for Answer category 'List Box with Single Selection' or 'List Box with Multiple Selection'. You have to follow the following steps to populate values for those:
    - In the Answer Category select List Box with Single Selection from drop down list
    - Then on left hand side tree, right click on Answer and select Insert Answer Option (Answer->Insert Answer Option)
    - Then on right side, provide Text for the answer (value)
    - To add more values, repeat the process Answer->Insert Answer Option and providing text for those answers in the right side.
    Similarly you can populate values for 'List Box with Multiple Selection' also.
    This has to be done in the transaction CRM_SURVEY_SUITE.
    Hope this is clear to you
    regards
    Srikantan

  • Populating a Dynamic List Box in CRM Survey

    Hi All,
    I am currently creating a CRM Survey and am trying to use the 'Dynamic List Box with Single/Multiple Selection' options, but cannot see how i can populate these lists. I get the following error message when selecting the 'Insert Answer Option:
    'Dynamic list boxes' cannot contain statistical answer options'
    I have tried this through both Survey Suite and UI, but cannot go any further. Can anyone point me to where i can populate this list? Sounds like possible a backend table, but i cannot find which one.
    Many Thanks
    Indi

    Would anyone be able to help please?
    Thanks
    Indi

  • Java code to fetch contact list from outlook

    I have a requirement to get the contact list from outlook using java code. There are many hooks provided by third party and they are all licensed.
    I want java code example which directly communicate with outlook.

    you want to directly communicate with the Outlook program?? or do you want a program that can read the Outlook data? These are two very different problems, the first being relatively difficult, the second being easier.

  • [sentinel] correlation problem and dynamic list

    Dear All,
    I have two problems as following:
    1. I have write a correlation rule as following:
    filter((((e.CollectorPluginName = "Microsoft Exchange POP3") and
    (e.EventName = "pass")) and (e.XDASOutcomeName = "XDAS_OUT_FAILURE")))
    flow window(((w.SessionID = e.SessionID) and (e.SourceIP =
    w.SourceIP)),filter((((e.CollectorPluginName = "Microsoft Exchange
    POP3") and (e.EventName = "user")) and (e.TargetNewResourceName inlist
    sensitiveuser))),120) flow
    trigger(5,120,discriminator(e.SourceIP,e.TargetNew ResourceName))
    I have following problem:
    I will call the first filter event as A event, the second filter event
    as B event, the first filter corresponding log include username field
    named TargetNewResourceName, the second filter event also called as
    storaged event,
    but B event log does not include username field, so I don`t know who
    logon failed, so i need gain the username from A event, there is same
    sessionID between A and
    B, customer`s demands need know who logon failed when user logon to
    pop3 mailbox failure three times, so correlation results is following:
    username: $TargetNewResourceName$ logon to mailbox failure via pop3 at
    least 3 times in two minutes, sourceip: $SourceIP$,
    MacAddress:$CSOTSourceMac$,Please pay
    attention to it!
    But correlation result is following:
    username: Null logon to mailbox failure via pop3 at least 3 times in two
    minutes, sourcip: 10.108.54.50, MacAdress: 247703743F34,Please pay
    attention to it!
    There is no username value($TargetNewResourceName$), why?
    2. I know arcsight active list(same as sentinel dynamic list) support
    multiple fields in one table, but sentinel dynamic list only support
    alone value,
    if I want storage ip and macaddress for DHCP logs into one table, How to
    implement? and that I also correlation rule can invoke function same as
    get_ipaddress or
    get_dhcpaddress in arcsight, Does sentinel provide same function?
    thanks
    steve_zeng
    steve_zeng's Profile: https://forums.netiq.com/member.php?userid=3875
    View this thread: https://forums.netiq.com/showthread.php?t=48076

    This sounds like a Sentinel product, vs. Sentinel plugin, issue. Please
    post it in the Sentinel list on forums.netiq.com to get exposure to the
    largest group of people who may be able to help. This list is
    specifically for plugins.
    Also, when posting in the other list, if you can post the raw data from
    each of the events that may help others understand with which data you
    have to work.
    Good luck.

  • Java Card Product and Price List

    Where to find the Java Card, Card Reader to read Java Card and its Price List issued by Sun Microsystems.I want these products and price list.
    What is the tool needed to install the .CAP file in to Java Card?. I have read from the Sun Material, that there will be a off-card installer that loads the binary file of .CAP to Java Card through the CAD device. Where to find the off- card installer?
    I had tested a sample application in Eclipse IDE with JCDK 2.2.2 and EclipseJCDE.
    Please anyone provide me the details
    Edited by: sachindev on Oct 24, 2007 6:22 PM

    Hi there,
    I found this site with everything that you might need, I would say that prices are reasonable (correct me if I am wrong):
    Cards: http://www.smartcardsource.com/cards.htm
    Readers: http://www.smartcardsource.com/readers1.htm
    SDK: http://www.smartcardsource.com/sdk.htm
    Hope it helps...

  • [PHP-MYSQL] tutorial on using ADDT and dynamic list/form with self-foreign keys?

    Hi all,
    I have a 3 levels catagoris product catalog and would like to manage it
    using dynamic list/forms.
    I'm searching info about using self-foreign keys on dynamic list/forms.
    Is there any tutorial on how to manage this kind of tables using addt?
    tia
    tony

    Hello Tom,
    You were offered the solution on the InterAKT forums, I am not sure why you are posting this problem again. There's also another thread here that presents the same issue and solution:
    http://www.adobeforums.com/cgi-bin/webx/.3bc42a90/0
    Regards,
    Ionut

  • Java code to connect to unix box(putty)

    i'm having a great problem regarding accessing the putty box from java code.
    I need to read some log files from unix through java code.In my client program when i'm giving hostname and port=22...ssh terminal is getting detected,but i'm confused how to open that unix box by giving the username and password.and how am i goin to embed unix command in it.The entire job i've to do through java code.
    please help!!..Thanks
    Message was edited by:
    liz310
    Message was edited by:
    liz310

    thanks a lot guys for ur time...but i tried in every way..i'm getting hell lot of errors..please help..its really urgent
    /*this is my code:*/
    import com.jcraft.jsch.*;
    import com.jcraft.jsch.Channel;
    import com.jcraft.jsch.JSch;
    import com.jcraft.jsch.JSchException;
    import com.jcraft.jsch.Session;
    import com.jcraft.jsch.UserInfo;
    import java.io.*;
    public class shell_test {
    public static void main(String args[])
    String user="user15";
    String host="punlin040";
    String cmd="ls -l";
    JSch jsch = new JSch();
    try{
    Session session=jsch.getSession(user,host,22);
    session.setPassword("user15");
    //UserInfo usrInfo=new MyUserInfo();
    //session.setUserInfo(usrInfo);
    session.connect();
    Channel channel=session.openChannel("exec");
    ((ChannelExec) channel).setCommand(cmd);
    channel.setXForwarding(true);
    channel.connect();
    //code
    channel.setInputStream(System.in);
    // channel.setOutputStream(System.out);
    //((ChannelExec) channel).setErrStream(System.err);
    InputStream in = channel.getInputStream();
    channel.connect();
    byte[] tmp = new byte[1024];
    while (true)
    while (in.available() > 0)
    int i = in.read(tmp, 0, 1024);
    if (i < 0)
    break;
    System.out.print(new String(tmp, 0, i));
    if (channel.isClosed())
    in.close();
    // System.out.println("JSCH: exit-status: " +
    //channel.getExitStatus());
    break;
    try
    Thread.sleep(1000);
    catch (Exception ee)
    channel.disconnect();
    session.disconnect();
    //code
    //ch.setInputStream(System.in);
    //ch.setOutputStream(System.out);
    }catch(Exception e)
    {e.printStackTrace(); }
    /*public static class MyUserInfo implements UserInfo {
    public String getPassword()
    { return "password"; }
    public String getPassphrase()
    { return ""; }
    public boolean promptPassword(String arg0)
    { return true; }
    public boolean promptPassphrase(String arg0)
    { return true; }
    public boolean promptYesNo(String arg0)
    { return true; }
    public void showMessage(String arg0)
    but i'm getting following errors:
    com.jcraft.jsch.JSchException: java.lang.ClassNotFoundException: com.jcraft.jsch
    .jce.Random
    at com.jcraft.jsch.Session.connect(Session.java:160)
    at com.jcraft.jsch.Session.connect(Session.java:145)
    at shell_test.main(shell_test.java:25)
    Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.jce.Random
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at com.jcraft.jsch.Session.connect(Session.java:156)
    ... 2 more

  • Dynamic list box

    how to execute queries with the selected item in list box ? I
    want to have an sql queiry that will generate when someone selects
    an item in the list box. I know this is done in the where clause.
    But my skills in javascript are not that good. Can this be done in
    dreamweaver? If so do they have instructions on how to do it? Or
    can someone give me an example on how this can be done?
    thanks in advance

    ok... :) You don't need skills in javascript for this. SQL
    and a server side language will do just fine.
    What is your working server side language? PHP, ASP,
    ColdFusion, JSP...?
    Regards

  • Open a tabbed panel from a dynamic list box

    Hi all,
    I have Spry tabbed panelks working fine on my site, "click on button and open selected panel", great.
    Is it possible to have a list box populated from an SQL table and when an item in the list box is selected open the appropiate panel.
    The SQL table has three feilds, RecordID, Description, TabID.
    Example:
    RecordID
    Description
    TabID
    1
    USA
    0
    2
    United Kingdom
    0
    3
    France
    1
    4
    Spain
    1
    From a select list I select France "TabID 1", I would ike this selection to open the Tabbed panle which holds info about France.
    Select list code:
    <code><form id="form1" name="form1" method="post" action="">
                        <select name="select" class="searchbox" id="select" onchange="TabbedPanels1.showPanel('dontarget')">
    >
                          <option value=" ">Please select your airline...</option>
                          <?php
    do { 
    ?>
                          <option value="<?php echo $row_checkin_airlines['TabPanel']?>"><?php echo $row_checkin_airlines['AirlineName']?></option>
                          <?php
    } while ($row_checkin_airlines = mysql_fetch_assoc($checkin_airlines));
      $rows = mysql_num_rows($checkin_airlines);
      if($rows > 0) {
          mysql_data_seek($checkin_airlines, 0);
       $row_checkin_airlines = mysql_fetch_assoc($checkin_airlines);
    ?>
                        </select>
                      </form>
    </code>
    Tabbed Panle code:
    <code>
    <div id="TabbedPanels1" class="VTabbedPanels">
        <ul class="TabbedPanelsTabGroup">
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/one_world_button.png" width="192" height="124" border="0" /></li>
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/star_alliance_button.png" width="192" height="124" border="0" /></li>
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/sky_team_button.png" alt="" width="192" height="124" border="0" /></li>
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/others_button.png" width="192" height="124" border="0" /></li>
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/no_online_checkin_button.png" width="192" height="124" border="0" /></li>
        </ul>
        <div class="TabbedPanelsContentGroup">
          <div class="TabbedPanelsContent">
         // followed by the pabel content
    </code>
    Many thanks for any help you can provide.
    Best regards,
    Dereck

    Have a look at the following
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet">
    </head>
    <body>
    <select name="myChoice" onchange="TabbedPanels1.showPanel(Number(this.value));">
        <option value='-1'>Please choose...</option>
        <option value='0'>USA</option>
        <option value='0'>UK</option>
        <option value='1'>France</option>
        <option value='1'>Spain</option>
    </select>
    <hr>
    <div id="TabbedPanels1" class="VTabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">Content 1</div>
        <div class="TabbedPanelsContent">Content 2</div>
      </div>
    </div>
    <script src="SpryAssets/SpryTabbedPanels.js"></script>
    <script>var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");</script>
    </body>
    </html>
    Gramps

  • Text arrays (variables) and Dynamic Text Box

    Hello everyone. I have a text file (let's call it sample.txt)
    that has numerous variables or arrays in this format:
    &info=This is some information
    &stuff=This is more stuff
    &whatever=Even more stuff again....
    Anyway, I need to load a particular variable via individual
    buttons from this same sample.txt file into a dynamic text box
    (let's call it dynText), and I am a bit lost as to how to do it.
    Please provide me a solution thank you.
    Glenn

    Thank you very much, it's greatly appreciated. It worked
    perfectly except that it does not like variables that begin with
    numbers like:
    &401_2b=401_2b
    The above doesn't work, but if I do this...
    &h401_2b=401_2b
    Everything is fine. Problem being, I am generating the
    variables via PHP and therefore cannot "change" them. Can you
    provide me with a way that ActionScript can "see" the variable that
    starts with a numeric value? Thanks for your time.
    Glenn

Maybe you are looking for

  • XI Server problems

    Hi, we are facing few problems with XI server. 1. whenever we change some existing mapping it doesn't get reflected immediately at runtime ( even after delta/full cache refresh). Only after recreating the same mapping object after couple of times it

  • Possible Upgrading From Free Trial Version Dreamweaver To Full Upgarded Version

    Hello       Is this at all possible to achieve.  Thank you Jon.

  • Language support on v6 BB software?

    Hi, Hope someone might have the answer out there. I have just updated my BB 9700 bold software to the new version 6 and now it can't support the chinese language. I tried to downgrade back to v5 but that doesnt seem to work. Does anyone know how i ca

  • Slow DNS Lookups after connecting via PPP VPN

    I have this very annoying problem and just can't seem to find a method to resolve it. When I connect to my work network via a PPP VPN connection, all internet connectivity thereafter takes forever to do a DNS lookup. So when I browse the internet it

  • Error in project material

    Hello, While creating a PR in CJ20N for a project type material, I am getting an error that 'The material is for individual requirement only, check entry.' This material in configurable material type & all the settings for configuration are maintaine