JSP Forms - enabling/diabling fields as needed??

Hi,
I have a simple Java Application that has a form type input (with TextFields/ComboBox using Swing classes). It has two function Submit and Clear. Some TextFileds are disabled/enabled depending on some conditions (logic done in a backend Java Controller Class).
I have a requirement to convert this application to a web application.
My Question is how can I convert the same functionality (and reuse the same Java classes if possible) to a web application? Would JSP be a suitable option considering its a simple form input application. but again, i need to handle the input and check for conditions and enable/disable fields accordingly? As far I can see, I might have to use different JSP pages for each type of inpuot object and a Bean for the input Object to be submited to the backend. Is there any other easy way to do this?
Thanks in advance
RHP

based on some somecondition you can always modify the same jsp page.(Like enabling and disabling few fileds.) For sample i sending a page which i made only with HTML and java script.
<HTML>
<HEAD>
     <TITLE>Add Broadcast</TITLE>
</HEAD>
<BODY topmargin="0" leftmargin="0" onload=''>
<iframe name="menu" marginheight="0" scrolling="no" frameborder="0" id="menu" style="position:absolute; visibility:hidden; width:135; height:100; left:10; top:0; z-index:1; background-color: Black;">
</iframe>
<layer name="menu" top="0" left="100" width="130" height="100" visibility="hide" bgcolor="#000000" style="position:absolute">
</layer>
<FORM NAME="addbroadcast" METHOD="post" ACTION="" TARGET="_self">
<DIV align=center>
<INPUT TYPE="hidden" NAME="mode" VALUE="<%=modval%>">
<INPUT TYPE="hidden" NAME="AutoDate" VALUE="<%=getParameterValue(request,"AutoDate","true")%>">
<br>
<TABLE width="100%" cellpadding="0" cellspacing="0" >
     <tr width="100%" height="30" >
     <td width="70%" class="PAGEHEAD"> <font size="+1" ><center ><b>Add Broadcast</b></center></font>
     </td>
     <td class="PAGEHEAD"> </td>
     </tr>
     <tr width="100%">
     <td width="15%"></TD>
</tr>     
</table>
<br>
<DIV align=center>
     <TABLE border="0" width="10%" align="center">
     <TR>
     <td>     </td>
<TD>
</TD>
     <TD>
</TD>
     </TR>
     </TABLE></DIV>
     <BR>
     <TABLE align="center" border="0" width="100%">
          <TR>
          <td width="5%"> </td>
     <TD width="20%"><B class="WCLABEL">Title* </B></TD>
<TD width="25%"><INPUT size=25 NAME="title" onkeypress="javascript:checkEnterKey(event)" MAXLENGTH="50" VALUE=""></TD>
<TD width="15%"><B class="WCLABEL">Type*</B></TD>
          </TR>
          <TR>
          <td width="5%"> </td>
          <TD><B class="WCLABEL">Windows Media Server </B></TD>
          <TD><INPUT name="wms_hosted" type=checkbox onclick="javascript:enab_disable_wms(document.addbroadcast.wms_hosted,document.addbroadcast.wms_url)" ></TD>
          <TD><B class="WCLABEL">Windows Media Url</B></TD>
          <TD><INPUT size=25 NAME="wms_url" onfocus="toenab_disable_wms(document.addbroadcast.wms_url)" MAXLENGTH="150" onkeypress="javascript:checkEnterKey(event)" VALUE=""></TD>
          </TR>
          <TR>
          <td width="5%"> </td>
          <TD><B class="WCLABEL">Real System Server </B></TD>
          <TD><INPUT name="rs_hosted" type=checkbox onclick="javascript:enab_disable_rs(document.addbroadcast.rs_hosted,document.addbroadcast.rs_url)" ></TD>
          <TD><B class="WCLABEL">Real System Url</B></TD>
          <TD><INPUT size=25 NAME="rs_url" onfocus="toenab_disable_rs(document.addbroadcast.rs_url)" MAXLENGTH="150" onkeypress="javascript:checkEnterKey(event)" VALUE=""></TD>
          </TR>
<TR>
          <td width="5%"> </td>
<TD><B class="WCLABEL">Live Broadcast </B></TD>
<TD><INPUT name="chklive" type=checkbox ONCLICK="checkLive()" ></TD>
          </TR>
          </TD>
          </TR>
          <TR>
          <td width="5%"> </td>
          </TR>
          </TR>
     <tr>
     </td>
     </TABLE>
     </td></tr></table>
     </DIV>
     <br>
     <DIV align=center>
     <TABLE border="0" width="10%" align="center">
     <TR>
     <td>     </td>
<TD>
</TD>
     <TD>
</TD>
     </TR>
     </TABLE></DIV>
</FORM>
<script>
browserName = navigator.appName;     
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) {     version = "n3";     }
else{      version = "n2";     }
if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) {     version = "ie"; }
function toenab_disable_wms(t) {
if (document.addbroadcast.wms_hosted.checked)
wflag=true;
if(wflag) {
//alert("1");
return;
} else {
//alert("2");
     t.blur();
     document.addbroadcast.rs_hosted.focus();
function enab_disable_wms(c,t){
if (c.checked)
wflag=true;
else {
wflag=false;
var rflag=false;
function toenab_disable_rs(t) {
if (document.addbroadcast.rs_hosted.checked)
rflag=true;
if(rflag) {
return;
} else {
t.blur();
     document.addbroadcast.chklive.focus();
function enab_disable_rs(c,t){
if (c.checked)
rflag=true;
else
rflag=false;
function checkEnterKey(evt)
     keypress='yes';     
     var theKey;          
     if(version=="n3"|| version=="n2"){
          theKey=evt.which;
     }else if(version=="ie"){
          theKey=window.event.keyCode;
     if(theKey==13){
          callSub();
</script>
In this HTML page you can enter the windows media uRL only after checking the Wedows Media Server check box. Its the same case with Real Media Server and Real Media URL. This page Iam sending you to give an idea. If you tell me eaxctly how your page should look like I can help you more.
([email protected])

Similar Messages

  • Enable/disable fields in Workspace form

    Okay here is my scenario. I need to disable some fields on a form depending on which user logs onto workspace to open the same form.
    1. User1 logs onto workspace and opens leave request form, fields at the top of the form are enabled for the user to fill out, bottom fields which are for leave request administrator to fill out are disabled but visible.
    2. User1 fills out top portion of leave request form and completes form. Workflow sends form to leave request administrators "To do" list in Workspace.
    3. Administrator opens up submitted form in Workspace and sees User1's filled out data on the form and the bottom fields are now enabled for administrator to approve or dissaprove. Bottom fields only include two check boxes, two text fields and one date field.
    Now how is this done? I am sure their maybe scripting involved? if so what is it and at what events in the form? Is this whole process done in the form or through Admin UI or Workebench as well? Please help!!!!!!!!!

    Hi Rahat,
    You can use the same form and enable/disable some fields according to the user's role with only little scripting. Review the steps the below:
    1-First place a hidden field ("user_role") in your form
    2-Insert a script object into your form onder "Variables" in object hierarchy and write a script for enabling/disabling the fields (regarding the value of "user_role")
    3-On the initialize and change events of the "user_role" call your script object
    4-On your process design, put a SetValue service before User tasks. In the asssignment you should set the desired user_role to the form, so that the script is triggered in your form and the fields are enabled/desiabled
    Fro further needs on your form or process design you can contact us from: http://www.kgc.com.tr/company_Contact.html
    Oguz
    http://www.kgc.com.tr

  • Hide Ajax enabled portlet with jsp form  loading

    Hi All,
    I seriously struck with this problem and any help is appreciated.
    Functionality:-
    I have 2 portlet in a page portletA(non ajax) and PortalB(ajax enabled and it will just handle the portletA events). For checkbox event on portletA i am submitting PortletB JSP Form through PortletA JavaScript.
    PortletB jsp Form consists of only hidden variables, which will be set by PortletA JavaScript. All this is working fine.
    Problem:-
    My problem is I have to hide PortletB.For this i am using BackingFile preRender method. If I hide portletB then JSP Form is not loading and from PortletA iam unable to get the Form object of portletB to submit.
    Even setVisible is not working.
    Here is my PortletB jsp Form
    <netui:form tagId="ajaxEnabledForm" action="deleteRSAandCMFProfile">
    <netui:hidden dataSource="actionForm.userName" tagId="userName"></netui:hidden>
    </netui:form>
    How to make PortletB invisible with jsp form loading?
    Thanks in advance.

    hi, i don't have the exact solution to your problem, but can suggest you work around.
    in portlet b jsp, add <div> tag at the top, and use its style properties to hidden/visible as per your need. from the backing file you can set a request attribute which determines the hiding and showing in the div tag.
    you may not be able to control the visibility of title bar. for this, there are two options.
    1. you can try to use portlet backing context tile bar and hide title bar from backing file.
    2. if this does not work, then define id attribute to div tag in title bar skeleton jsp, and access that div by using id from the portlet jsp and then hide that div tag.
    thanks
    sampath

  • How to "encapsulate" a data from a text field in a JSP form

    Hi. I'm trying to make a user's registration jsp page and I'm not sure how I could get the data from a JSP form from the user and store that into some variable that I could later pass to a query to modify the database. I've been using a JavaBean, but I get null values for all the fields of the jsp page. That's logical, since I cannot find a method that will read the user's input and store that into some variable. In my JavaBean, I have get and set methods that will return a String for each of the form fields such as first name and email. The set method will have in a String as a parameter to set that field value (whichever field it is) to the value of the input parameter, but I don't know if there is a method or a way to read and store the values entered by the user into the jsp form. This is a code snippet of the jsp form:
    <TR><TD>First Name: </TD>
    <TD><INPUT TYPE="TEXT" NAME="fname"
                   VALUE="<%= newUser.getFirstName() %>"></TD></TR>
    Here, the getFirstName() method simply returns the value of a String value related to the user's first name, which is initialized as null in the JavaBean. newUser is the name of the JavaBean that I'm using.
    Any suggestions? Thanks.

    haha...nevermind this question also guys...I found out that I could use the request.getParameter("some_String") method with my JavaBean to read and store data entered by the user in a text field.

  • Can I cause checking a box to add 1 to a calculated form field?  I have a field that sums the numbers entered in several previous fields and need to be able to add "1" if a checkbox is selected as well.

    Can I cause checking a box to add 1 to a calculated form field?  I have a field that sums the numbers entered in several previous fields and need to be able to add "1" if a checkbox is selected as well.

    I think it has something to do with the way the value of the check box is exported, but I'm not sure.  With nothing being exported to Data5, Data6 displays the sum of Data1-4 rounded down to the nearest whole number and updates automatically as Data1-4 are updated.
    Right now, assuming Data1-4 are 0, where data 5 is the output of the second example and any box is checked,  "1" is displayed in data5 but nothing is added to data 6. Selecting any other check box or deselecting that check box will cause data6 to add 1 even if data5 displays "0".  By way of example:
    Selecting Check box 16 results in Data5 displays 1 and Data6 displays zero.
    Then, if any or all of Checkbox17-20 are selected, Data5 displays 1 and Data6 displays 1.
    Then, if any or all of Checkbox17-20 are deselected, Data5 Displays 1 and Data6 displays1.
    Then, if Checkbox16 is deselected, Data5 displays 0 and Data6 displays 1.

  • How to find table name and field name in JSP FORM

    Hi
    In JSP form's like XML publisher responsibility>templet
    In that form how can we see the system-last query . and how to see the table name

    hi yamini,
    plz go to help->record history (for fining table name)
    and
    help->diagnostic->examine (for finding field name)& enter last_query
    in JSP form also same above only i think.
    or check in back end & apply who columns
    Edited by: raghava bandi on Nov 7, 2008 2:05 AM

  • Creating form so user can add fields if needed

    I am trying to find out if you make a form with a field, is there a way to initially create the form so that when a user is filling it out and they need another line (i.e., there is a section for children -- but you only have one field)  can you create the form so that the user can just enter or hit a down errow to add another field if needed?  I don't want the form to have extra lines (fields) in it if they will not usually be needed by a user -- but can be added on their end.  Hope this makes sense.
    Thanks

    This sounds like something that our skip logic may be able to help you with.  You could, for example, have  a field that asks how many family members.  Based on the answer you would display the number of Name fields.

  • Calculations in Jsp form - Urgent Please

    Hi,
    I have 3 fields in my table, Quantity,Price and Total. Quantity * Price gives Total. Price is the Column of another table and I display the values of Price using <jbo:InputSelectLOV>. So,my requirement is when I input the value for Quantity and select the values from list in the Edit.jsp form I need the value of Quantity * Price to be displayed in the Total field on Browse form. Could someone please help me. I am new to JSP and any help is appreciated.
    Thank You

    It's not related to JDeveloper this is a generic thing for HTML pages - if you want to do client side (menaing no traffic to the server) actions you use Javascript.
    You just need to stick the Javascript into the JSP page you have inside JDeveloper.

  • Including jsp form in multiple jsps

    Hi
    I have a requirement to include a common jsp form in several other jsps that live in different web applications. For e.g. there is test_form.jsp taht I can access via http://www.test.com/common/test_form.jsp. There are several other jsps /app1/call_test1.jsp , /app2/call_test1.jsp taht need to include the /common/test_form.jsp. These jsps just provide different look with specific images etc.. We also need the pages to be accessed via those specific urls.
    The form is showing fine. But when I submit the included form, I am submitting to the wrapper jsp(say /app1/call_test1.jsp which I am passing as aparam to teh include), if any validation errors its supposed to show on /app1/call_test1.jsp. But its not showing them. If I call the include jsp separately in the browser, its working fine. How can I get the form errors dispalyed on the wrppaer.jsp??
    Any help is appreciated
    Thanks

    <select size="8" name="fruit" multiple>
    <option value="apple">apple</option>
    <option value="orange">orange</option>
    <option value="mango">mango</option>
    <option value="cherry">cherry</option>
    <option value="pineapple">pineapple</option>
    <option value="grapes">grapes</option>
    </select>
    if i select apple, orange,mango and cherry and submit it to the database field 'fruit', only 'apple' gets inserted. none others.
    this is the the line where it is processing the value.
    String fruit=request.getParameter("fruit");
    by the way I have only one database table
    I hope this example helps

  • JSP form value use

    I have a simple JSP form that gets three values. I need to use one of these values in a query before I hit the Form SUBMIT button. Is there a way to do this?

    Do you mean to say you need the values in the form fields entered by user before submitting the page..?
    In that case you can call a javascript function on click of the button and retrieve the values and after that submit the button.
    Hope this helps.
    Regards,
    Anupama

  • Multiple servlet actions from jsp forms

    Hi all ,
    how can i do muliple actions from a jsp form, i need to do an action when user clicks on a column and a different action when user clicks on cell in a row .
    i need to read and store the attribute from the column to pass back to the webservice to request that the service sorts the reults by that column either as desecending or as asending.
    also i need to get the value from a cell that is clicked on and pass that through as a parameter to the webservice to request some further data for the specific id.
    how can i do this?
    currently i have a form which has as part of the row an onclick event that captures the value of cell clicked - but what i need to do is change the cell value to a href and if this is clicked capture the value of the href and submitt this to the form action and regonise that the href has been clicked (how do i do that?) and thus do soemething specific for that in the servlet and if the column with its ascending or descending image is clicked capture the asc or desc value and regonise that the column asc or desc has been clicked (how do i do that?) and thus do soemething specific for that in the servlet.
    <tr onclick="selectPatCareRec(this)">
    <td><netui:label value="{container.item.perId}"/></td> rest of form is :-
    you dont need to pay attention to rest of stuff except that which columnHeader field was clicked and in which order (ie ascending or desc)
    also if a cell is clicked to pass the values as part of a submit to the action and regonise that a herf click was done and value of that cell - i have the javascript that is used to find the cell value once the row is clicked.
    <netui:form action="refresh">
          <rpb:repeaterBlock name="contacts" filter="<%=filter%>"
          ascendingImage='<%=request.getContextPath()+"/resources/images/up-arrow.gif"%>'
          descendingImage='<%=request.getContextPath()+"/resources/images/down-arrow.gif"%>'>
          <netui-data:repeater dataSource="{pageFlow.carerGpListResults}">
         <netui-data:repeaterHeader>
           <table class="tablebody" border="0">
             <tr>
               <th><rpb:columnHeader field="SYSTEMREF"></rpb:columnHeader></th>
               <th><rpb:columnHeader field="TITLE"><i18n:getMessage messageName="title"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="GIVENNAME"><i18n:getMessage messageName="given_name"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="FAMILYNAME"><i18n:getMessage messageName="family_name"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="ADDRESS"><i18n:getMessage messageName="address"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="POSTCODE"><i18n:getMessage messageName="post_code"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="DOB"><i18n:getMessage messageName="dob"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="ORGANISATION"><i18n:getMessage messageName="organisation"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="TYPE"><i18n:getMessage messageName="type"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="QUESTION"><i18n:getMessage messageName="question"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="ANSWER"><i18n:getMessage messageName="answer"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="PER_ID"><i18n:getMessage messageName="patientid"/></rpb:columnHeader></th>
             </tr>
           </netui-data:repeaterHeader>
           <netui-data:repeaterItem>
             <tr onclick="selectPatCareRec(this)">
               <!-- do an on click event to trigger another action to get all the patient list (ie. link it to the patientCasesList jsp) of cases and keep refresh to get sorting -->
              <td><netui:hidden dataInput="{container.item.SYSTEMREF}"dataSource="{actionForm.systemref}"/></td>
              <td><netui:label value="{container.item.TITLE}"/></td>
              <td><netui:label value="{container.item.GIVENNAME}"/></td>
              <td><netui:label value="{container.item.FAMILYNAME}"/></td> 
              <td><netui:label value="{container.item.ADDRESS}"/></td>
             <td><netui:label value="{container.item.POSTCODE}"/></td>
            <td><netui:label value="{container.item.DOB}"/></td>
            <td><netui:label value="{container.item.ORGANISATION}"/></td>
            <td><netui:label value="{container.item.TYPE}"/></td>
            <td><netui:label value="{container.item.QUESTION}"/></td>
           <td><netui:label value="{container.item.ANSWER}"/></td> 
              <td><netui:label value="{container.item.perId}"/></td> 
            </tr>
           </netui-data:repeaterItem>
           <netui-data:repeaterFooter></table></netui-data:repeaterFooter>
         </netui-data:repeater>
         <br />
         <rpb:firstPage label="First"/>
         <rpb:previousPage label="Previous"/>
         <rpb:nextPage label="Next"/>
         <rpb:pageNumber/>
          </rpb:repeaterBlock>
            <div>
            <netui:hidden tagId="selectedPatientId" dataSource="{actionForm.selectedPatientId}" dataInput="{actionForm.selectedPatientId}" />
            </div>
        </netui:form>thanks for any / all help.

    You can modify your connection pool management servlet so you can set the 'connection pool object' as an attribute of the request. Then forward the request to your jsp page.
    Example:
    in your service method of your sevlet, add something like
    public void service (HttpServletRequest request, HttpServletResponse response) {
    ConnectionPool pool= new ConnectionPool();
    request.setAttribute("mypool", pool);
    // forward the request to a jsp page.
    RequestDispatcher dispatcher = request.getRequestDispatcher("jsp/myjsp.jsp");
    dispatcher.forward(request, response);
    }then in your myjsp.jsp, you can access the connection pool object using the 'mypool' attribute.

  • Struts: long jsp forms are displayed incomplete

    Hi
    1. i wrote a dynavalidator form beanin the struts-config.xml
    2. I wrote the validations in validations.xml
    3. i used a tag like this in the jsp to enable client side validation:
    <html:javascript formName="/getSingleUserQuotes"
    method="validateForm"
    dynamicJavascript="true"
    staticJavascript="true"
    cdata="false" />
    Now some of the forms are displayed incomplete. When I do a view source, I find that the code is incomplete. It seems the browser recieves data in chunks and some of the chunks are not recieved by the browser. This is happening in case of long forms in which the client side validation javascript generated by struts is also adding to the length of the code. The smaller forms are displayed properly.
    Has anybody faced this problem?
    I think there may be a tomcat configuration that needs ot be changed...i am not sure though.
    Please help.
    Tanveer

    hi
    the problem was something else. apparently I was doing something like this:
    if(request.getAttribute("quotation").equals("Mortgage"))
    }and the 'quotation was null. So a null pointer exception was thrown. but this exception was not displayd inthe browser.
    reason: the JSP page is very big. So apparently Tomcat sends the data in chunks and after the first chunk, the second chunk had the exception. So tomcat did not send the second chunk.
    when I added:
    <%@ page buffer="100kb" %>
    <%@ page autoFlush="true" %>
    the error was displayed in the browser.

  • Beginner JSP / Forms question

    Hello,
    I'm just starting with jsps and I've got a pretty simple question. In my jsp I generate a form with two fields: age and weight. I'm wondering what the best method is for handling the users response. Two specific questions: (1) I'm currently handling the response in the same jsp which generates the form. Is this bad, uh, form? (2) To differentiate between the 'initial' request and the request resulting from the users form submission I'm arbitrarily checking whether the value of the 'age' parameter is null. Is there a better way to do that? Thanks in advance for any thoughts on these issues.
    -exits

    Yeah, that is fine for early JSPs (on both questions).
    A couple of thoughts:
    1) What if the user submits a weight but not an age? You should probably check if either of the two inputs are null.
    2) This design is fine for smaller applications (it is called the Model 1 application design). For more complex applications, using Model 2 (Model - View - Controller or MVC) pattern is much better.
    Basically you use a combination of Servlets and JSPs. One servlet is the target of all your links and forms - this is the Controller. Based on parameters and other conditions, the controller determines where the page should go next, and accesses the business logic (other classes that get/store data or calculates results. These other classes are the Model) , and passes this information to the the JSP needed to display that information (the View).
    This helps JSPs stay small and manageable, since adding to much logic in a JSP means writing scriptlets, which become tough to maintain later on. It takes more work up front, but for larger apps and over longer periods of time (when it becomes time to update the look, or fix bugs) it makes a lot of sense.

  • Two jsp forms - same action class

    Hi, I'm new to Struts/JSP so please help:
    1. I have 2 JSP forms, can they share the same action class?
    In JSP form 1, I've specified the form action class
    <html:form action="groups" >
    In JSP form 2, it's
    <html:form action="groupusers">
    In my Struts-Config.xml, I've specified for form1
    <form-bean name="GroupForm" type="org.apache.struts.validator.DynaValidatorForm">
    <action path="/groups" type="...groups.action.GroupsAction" name="GroupForm" scope="request" validate="false" parameter="methodToCall" input="/groupsframe.jsp">
    and for form2
    <form-bean name="GroupUsersForm" type="org.apache.struts.validator.DynaValidatorForm">
    <action path="/groupusers" type="...groups.action.GroupsAction" name="GroupUsersForm" scope="request" validate="false" parameter="methodToCall" input="/addGroupUsers.jsp">
    Form 1 was invoked as a child window and "getGroup" action in GroupsAction class is called.
    When a button on Form 1 is clicked, I've used javascript to invoke Form2 as a child window and call "getGroupUsers" action in GroupsAction class. Form 2 is displayed, but the "getGroupUsers" action in GroupsAction class was never called.
    Is it possible to have 2 JSP forms sharing the same action class? If so, what am I doing wrong here?
    thanks in advance for your help.

    Hi All,
    I need some clarity on the page attribute in struts validations.
    I have a page with 3 buttons. First 3 input fields and one button (first button)will be displayed in the jsp page,if i click the first button then another 3 fields and one button(second button) will be added to that jsp page , again i click the second button another 3 buttons and one butoon (third button) will be added to the jsp page.now my Problem is : can i witre all fields validation in validation.xml.if i can write all field validations , it will check the first 3 fields only, pls solve my problem

  • From database to jsp form drop downlist

    is there a way to put database values from certain fields in the database,into the dropdown list in my jsp form?
    if there is a way what do they call that method?

    hi,
    First you retrive the fields from database and store those values in a List or any collection.
    after that write the code in jsp as like this..
    <select name="list" >
    <%                    
         for(int i=0;i<dblist.size();i++)
              String listitem = dblist.get(i);
    %>
          <option value="<%=listitem%>">
          <%=listitem%>
    <%             
    %>
    </select>Here dblist is a collection which contains the fields which you retrived from the database
    regards,
    sekhar.alla

Maybe you are looking for

  • Animated gif from flash

    CS4, AS3.Windows XP SP3. I've created a pretty simple flash animation with some text that fades in and moves around a bit. Nothing fancy. It runs just fine both locally and on my client's site. I need to turn it into an animated gif so that non-flash

  • Unable to create "filename.cdr". (Input/output error)

    I am trying to create an ISO from a CD. I've tried using Disk Utility, with all different settings, and Terminal. Additionally, I attempted to make the ISO using an array of third party CD-rippers on a PC. Every platform and method has yielded this e

  • Error while using tranaparent gateways.

    Hi All, I have sql server source and i am using transparent gateways to connect to sqlserver from Oracle(not OWB). I have created view on Oracle database for the sql server tables. i was able to query the view which i created for sql server sources.

  • Building Tomcat source under Eclipse

    Hallo, all I want to study tomcat code and build Tomcat source under Eclipse IDE (Windows, JDK 142). I have readed the Guide on Tomcat web http://jakarta.apache.org/tomcat/tomcat-5.5-doc/building.html and downloaded the build.xml and try to run ant,

  • Display current and previous months records only

    Hello gang, My selection criteria looks like this: not ({HRDEPBEN.PLAN_CODE} startswith ["C", "EAP", "HMIL", "V", "W"]) and (month({hrdepben.Creation_date}) = month(currentdate)) and {HRDEPBEN.PLAN_TYPE} = "HL" I modified it to this in order to pull