How to populate one dropdown on select of other dropdown in a table

Hi
My requirement is that I want to populate one dropdown on selection of some value in other drop down.The two dropdown are present in two columns of a Table.
Can any body help for the same.
Regards
Nitin

Hi,
Try This
Bind "enable" properties of Both DD1 and DD2 to
context attributes of type boolean. DD1Enable,DD2Enable
1: set their value to false intially 
  wdContext.currentContextElement.setDD1Enable(false);
  wdContext.currentContextElement.setDD2Enable(false);
  Bind the selected property of the table to a
  Context attribute of type boolean(Initially false), say "selected"
2: Then use check box in the table to get current lead selection
  write in "onToggle" action  of checkBox
int len=wdContext.nodeTable().size();
for(int i=0;i<len;i++)
         if(wdContext.currentTableElement().getSelected()==true)
             wdContext.currentDD1Element().setDD1Enabled(true);
             wdContext.currentDD2Element().setDD2Enabled(true);
         }else
     wdContext.currentDD1Element().setCountryEnabled(false);
     wdContext.currentDD2Element().setStateEnabled(false);
This is how u get leadselection and able to change particular row in the table
Regards
Lakshmi

Similar Messages

  • How to populate optional items in SELECT BOX

    // REGISTRATION.JSP//
    <%@ page import="java.util.Enumeration" %>
    <%@ page import="java.util.Vector" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.lang.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="beans.register2" %>
    <jsp:useBean id="registerbn" scope= "session" class="beans.register2" />
    <% String base = (String) session.getAttribute("base");
    registerbn.setDburl((String)session.getAttribute("dbUrl"));
    registerbn.setDbuser((String)session.getAttribute("dbUserName"));
    registerbn.setDbpasswd((String)session.getAttribute("dbPassword"));
    System.out.println("Inside jsp - setMembers of promotion successful");
    registerbn.setMembers();
    System.out.println("after setting");
    %>
    <%
    String action=request.getParameter("action");
    %>
    <HTML>
    <HEAD>
    <TITLE> TIFR INTRANET </TITLE>
    </HEAD>
    <HEAD>
    <script language="_JavaScript1.2">
    function isIdcode()
    / validating
    function isUser()
    / validating
    function isEmail()
    / validating
    function isPassword()
    / validating
    function isDob()
    / validating
    </javascript> -----java script ends here----------------
    <TD align="top" valign="top"><jsp:include page="menu.jsp" flush="true"/>
    </td>
    <td>
    <table cellpadding="2" cellspacing="3" width="40%">
    <form method="post" action="./beans.register2">
    Fisrt question: we have creaated "register2.java "as beans class for setting the values in to the data base.
    is it correct ?
    <td width="40" align="center"
    <font face="arial" size="5" align="right">
    <b>
    Registration <hr> </hr>
    </b>
    </font>
    <br>
    </td>
    <tr valign="center" width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">IdCode </b> </font>
    </td>
    <td width="40%">
    <b><font face="Arial" size="2">
    <input type="text" name="idcode" size="6" style="border-style:solid" value="">
    </font></b>
    </td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">User </font></B></td>
    <td width="40%">
    <input type="text" name="user" size="12" style="border-style: solid" value="">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Password </font></B></td>
    <td width="40%">
    <input type="password" name="password" size="25" tabindex="20" style="border-style: solid" width="12" value="">
    </font></b></td>
    </tr>
    <tr width="80%">
    <td width="40%">
    <b><font face="Arial" size="2">Section code </font></b></td>
    <td width="40%">
    <select size="1" name="section_code" tabindex="9"
    style="border-style: solid">
    <%@ include file="section.txt" %>
    Secound question:
    // inclided simple .txt file here
    // what if new item get enlisted in the database , we have to countinuesly update this .txt file ? so we head for creating simple beans class for retriving values
    then displaying in the SELECT box
    // we dont know how to do it.
    //other html tags //
    ----------------at end -----------------
    <input type="Submit" value="Submit" name="B1" > </td>
    <td width="40%">
    <input type="reset" value="Reset" name="B2"></td>
    <%
    String action=request.getParameter("Submit");
    if(action!=null && action.equals("Submit"))
    try{
    String idcode=request.getParameter("idcode");
    String user=request.getParameter("user");
    String password=request.getParameter("password");
    String seccode=request.getParameter("section_code");
    String Category=request.getParameter("Category");
    String BCategory=request.getParameter("BCategory");
    String Bheads=request.getParameter("Bheads");
    String OtherCategory=request.getParameter("OtherCategory");
    String email=request.getParameter("email");
    String day=request.getParameter("day");
    String month=request.getParameter("month");
    String year=request.getParameter("year");
    String Dob=day+"/"+month+"/"+year;
    String day1=request.getParameter("day1");
    String month1=request.getParameter("month1");
    String year1=request.getParameter("year1");
    String Doj=day1+"/"+month1+"/"+year1;
    registerbn.setIdcode("idcode");
    registerbn.setUser("user");
    registerbn.setPassword("password");
    registerbn.setSec_code("seccode");
    registerbn.setCategory("Category");
    registerbn.setBut_Category("BCategory");
    registerbn.setBut_heada("Bheads");
    registerbn.setOther_Category("OtherCategory");
    registerbn.setemail("email");
    registerbn.setDob("Dob");
    registerbn.setDoj("Doj");
    registerbn.saveData();
    /// saveData() is the one method where we are wrintn query to insert in to database//
    }catch(Exception ex)
    out.println("ERROR :has occured ");
    %>
    </table>
    </table>
    </table>
    </form>
    </td>
    </tr>
    <jsp include page="Footer.jsp" flush="true"/>

    To do that you have to get your recordset, and insert option tags into a while cicle. Something like this:
    <select name="mySelectName">
    <%while(myRecordSet.next()){%>
    <option value="<%=myRecordset.getObject(myField1)>"><%=myRecordset.getObject(myField2)%></option>
    <%}%>
    </select>

  • How to populate one internal table from another using field symbols

    Hi Gurus,
      I have a problem. I have to populate one internal table (sructure t_otput) from another internal table (sructure t_from) using field symbol.
    Structure for from table.
    types: begin of t_from,
             year(4) type c,
             ww(2) type c,
             site type marc-werks,
             demand type i,
           end of t_from.
    Structure for output table.
    types: begin of t_display,
             title(30),
             WW1(10),
             WW2(10),
             WW3(10),
           end of t_display.
    The from table looks like this:
    Year | WW | Site | Demand
    2005 | 1  | OR1  | 12.00
    2005 | 2  | OR1  | 13.00
    2005 | 3  | OR1  | 14.00
    The display table which has to be populated should look like this:
    Title  | WW1   | WW2   | WW3
    OR1    |       |       |
    Demand | 12.00 | 13.00 | 14.00
    How to populate display table using field symbol?
    Please give code snippets
    Thanks,
    Gopal

    Gopal,
    Here is the code, however I am not vary clear about the ORG1 and Demand display that you have shown in the display. I am sure with this code it should not be a big deal to tweak in whatever manner you want.
    TABLES : marc.
    TYPES: BEGIN OF type_display,
    title(30),
    ww1(10),
    ww2(10),
    ww3(10),
    END OF type_display.
    TYPES: BEGIN OF type_from,
    year(4) TYPE c,
    ww(2) TYPE c,
    site TYPE marc-werks,
    demand TYPE i,
    END OF type_from.
    data : t_from type table of type_from,
           t_display type table of type_display.
    field-symbols : <fs_from> type type_from,
                    <fs_display> type type_display.
    data : wa_from type type_From,
           wa_display type type_display.
    wa_from-year = '2005'.
    wa_from-ww   = '1'.
    wa_from-site = 'OR1'.
    wa_from-demand = '12.00'.
    insert wa_from  into table t_from.
    wa_from-year = '2005'.
    wa_from-ww   = '2'.
    wa_from-site = 'OR1'.
    wa_from-demand = '13.00'.
    insert wa_from  into table t_from.
    wa_from-year = '2005'.
    wa_from-ww   = '3'.
    wa_from-site = 'OR1'.
    wa_from-demand = '14.00'.
    insert wa_from  into table t_from.
    data : variable(3) type c.
    field-symbols : <fs_any> type any.
    break-point.
    Loop at t_from assigning <fs_from>.
    variable = 'WW'.
    wa_display-title = <fs_from>-site.
    concatenate variable <fs_from>-ww into variable.
    assign component variable of structure wa_display to <fs_any>.
    <fs_any> = <fs_from>-demand.
    endloop.
    append wa_display to t_display.
    clear wa_display.
    loop at t_display assigning <Fs_display>.
      write :/ <fs_display>.
    endloop.
    Note : Please award points if this helps you.
    Regards,
    Ravi

  • In table view, how to add one button for selecting page?

    Hi Experts,
    In the OBIEE 11.1.1.6, we have one uncommon requirement that customers want to randomly select actual page to view expected data in table view.
    For example:
    We make use of some columns to create one report in table view, and set 'Rows per Page' equal to '5',
    if this report contains 60 rows, it will have 12 pages, so customers want to select sepcial page number to view the some data. Is it possible to implement this requirement? Maybe we should write JS code.
    Note: Below table view, it has four buttons: First Row, Previous Row, Next Row and Display (500) rows in per page. So we want to add one button to select per page.
    We look at orgnial codes in WebBrowse, but do not know the following codes derive from which JS file.
    Could you please tell me how to find this file?
    <td class="TapeDeckCell"><img class="TapeDeckImage" onclick="" onkeypress="" src="res/s_blafp/viewui/pivot/first_dis.png" title="" alt="" ><img class="TapeDeckImage" onclick="" onkeypress="" src="res/s_blafp/viewui/pivot/previous_dis.png" title="" alt="" ><img class="TapeDeckImageEna" onclick="PTRowScroll('saw_5083_b','5','5', event)" onkeypress="PTRowScroll('saw_5083_b','5','5', event)" src="res/s_blafp/viewui/pivot/next_ena.png" tabIndex="0" onmouseover="PTTD(event, 'res/s_blafp/viewui/pivot/next_ovr.png');" onmouseout="PTTDO(event)" onmousedown="PTTD(event, 'res/s_blafp/viewui/pivot/next_dwn.png');" title="Next 5 Rows" alt="Next 5 Rows" ><img class="TapeDeckImageEna" onclick="*PTRowScroll*('saw_5083_b','-1)', event)" onkeypress="PTRowScroll('saw_5083_b','-1)', event)" src="res/s_blafp/viewui/pivot/showallrows_ena.png" tabIndex="0" onmouseover="PTTD(event, 'res/s_blafp/viewui/pivot/showallrows_ovr.png');" onmouseout="PTTDO(event)" onmousedown="PTTD(event, 'res/s_blafp/viewui/pivot/showallrows_dwn.png');" title="Display maximum (500) rows per page" alt="Display maximum (500) rows per page" > <Span class="TapeDeckRecords">Rows 1 - 5</Span></td>

    Hi Kobe,
    Thanks for listening me.
    I agree 11g have some issues unlike 10g. I've tried the same by creating a measure rcount(1) and name it as Page in RPD. I just pulled column Page in pivot table section 'Pivot Table Prompts' it is working but this may not answer your requirements.
    I would suggest to use the column in Prompt and go by between operator to allow user to select the rows between.
    In the report make Page as prompted.
    If you are okay with this can look forward to tweak it further, like values in the prompt multiple of 5 or 10s some thing like that.
    let me know updates on the same.

  • How do create one directional html selects in jsp

    i am trying to create a one directional multi select in jsp that is when select the option from the multi- select the first time is not appear again that is for instance if i have a status option of
    NEW
    Fix
    Closed
    they should come from the database from and if they have been selected once and save in another table they should not appear again... that is is you selec Fix you cannot go back to New... how can I accomplish that in jsp
    my default is coming from on table and the rest from another reference table with for all the drop downs.

    I haven't tested this but this might help get you started.
    Your problem is that you are differentiating one "password" value from another. While iterating through your 'curLocks'(currentLocks?) simply create a new form to differentiate the various password values. Send the validate_clear() function the index number, when the button is clicked, to find the correct password.
    JavaScript:
    function validate_clear(index)
         alert(document.forms[index].password.value);
    JSP :
    <%
    for(int i = 0; (curLocks != null) && i <
    curLocks.size(); i++)
       ArrayList row = (ArrayList) curLocks.get(i);
       sSite =((java.math.BigDecimal)row.get(0)).toString();
       sAu = (String)row.get(1);
    %>
       <form>
          <br /><br />
          <INPUT TYPE="hidden" name="LockType" Value="Past">
          <INPUT TYPE="hidden" name="SiteNbr" Value=<%out.print(sSite);%>>
          <INPUT TYPE="hidden" name="AU" Value="<%out.print(sAu);%>">
          Current<%out.print(sSite);%><%out.print(sAu);%>
          <INPUT TYPE="password" name="password" size="18">
          <INPUT TYPE="button" Value="Clear Lock" OnClick="javascript:validate_clear(<%= i %>);">
       </form>
    <% } %>

  • Should not select the one prompts when selected the other prompt

    Hi,
    In one of the my requiments i have the following scenario.
    When a value from one prompt is selected it should not allow to select the any value from the previous prompt.
    I have multiple prompts in the Webi Report.
    E.g : when i select a value for the Product Lines prompt it shoud not allow me to select any value from the Product Groups.
    these two Prodult Line and Product groups are the two prompts in my reports.  
    How can this requirement can be implemented in BO XI R3 version.
    Need help on this?
    Regards,
    Kishore.

    Hi,
    thank you for the suggestion however new functionalities and improvement suggestions can be submitted at [https://ideas.sap.com] where users can vote for the idea. If you post the link to your idea here there are more chances that other people can see and vote it
    Thanks!
    Best regards,
    Simone

  • How  to retrieve one row from the number of records in a table

    i want to retrieve the rows from the number of records in a table without using the perticular column name.

    select count(*) from table
    /If you have your table currently analyzed, and no changes have been made, then you could
    select num_rows from user_tables where table_name = 'table'

  • How to delete one number in the dial pad dropdown ...

    When calling a phone number from Skype, I mistyped the phone number.  Now whenever I call a phone number, the dial pad's dropdown list includes the mistyped phone number.  I want to delete that single number from the dial pad's dropdown list.
    Unfortunately I obeyed some people's suggestions in other topics.  Now the contents of all chat histories with all ordinary Skype contacts are gone.  I used to save logs of those forever, but the attempt to delete one phone call history actually deleted all chat histories with everyone.  That was not what I wanted. ... And then, to add insult to injury, whenever I call a phone number, the dial pad's dropdown list still includes the mistyped phone number that I want to delete.
    Is there any way to do it?
    Even though I make more typos than everyone else, even though my keyboard's Backspace button gets a pounding, surely I'm not the only one?

    NOT My day - just typed out a message and clicked Preview. The message is gone. Short reply - this is suppose, at heart, to be a telephone system. BASICS like keyboard entry error correction should be available (in an intuitive way). Backspace doesn't erase last entry and you cannot even delete ALL the entry. Would you fix this or explain why it cannot be done - and then find out how it can.

  • How to delete one number in the dial pad dropdown list?

    When calling a phone number from Skype, I mistyped the phone number.  Now whenever I call a phone number, the dial pad's dropdown list includes the mistyped phone number.  I want to delete that single number from the dial pad's dropdown list. Unfortunately I obeyed some people's suggestions in other topics.  Now the contents of all chat histories with all ordinary Skype contacts are gone.  I used to save logs of those forever, but the attempt to delete one phone call history actually deleted all chat histories with everyone.  That was not what I wanted. ... And then, to add insult to injury, whenever I call a phone number, the dial pad's dropdown list still includes the mistyped phone number that I want to delete. Is there any way to do it? Even though I make more typos than everyone else, even though my keyboard's Backspace button gets a pounding, surely I'm not the only one?

    NOT My day - just typed out a message and clicked Preview. The message is gone. Short reply - this is suppose, at heart, to be a telephone system. BASICS like keyboard entry error correction should be available (in an intuitive way). Backspace doesn't erase last entry and you cannot even delete ALL the entry. Would you fix this or explain why it cannot be done - and then find out how it can.

  • How to Make one of 2 Selection Fields Obligatory

    Hi All,
    On my seletion screen, i have about 5 select-option input fields. The thing is I want to make the 'article' (s_matnr) and the 'merchandise category' (s_matkl) fields obligatory. The way it should be is that one of them should be obligatory at a time not the 2 at the same time. And 1 of them must be filled they can't be run wide open.
    So in Summary, the user must either provide an input for either the ariticle or the merchandize category, not the 2 at the same time and not neither.
    Thanks.

    hi basil
    how you did

  • How to Populate values dynamically in Select Box.

    Hi All,
    I have few select boxes in my webdynpro application. Right now I am populating them using Harcoded values in the Dictionary. But I dont want to harcode the values in the dictionary, i want pull the values from database tables or  text files of EP KM. Just let me know which is the better way to populate the select box without hardcoding & why ?
    Thanks in Advance.
    Regards,
    Aditya Metukul

    Hi Aditya,
    Getting values from KM and database is possible
    It depends on your requirement
    ie if the dropdown should contain details of documents from KM or it should display the details in a table
    if it is oracle table see this link
    Webdynpro and Oracle
    if you want to get data from km see this tutorial
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on using knowledge management functions in web dynpro - 26.htm
    Hope this helps you
    Regards
    Rohit
    Regards
    Rohit

  • How to populate one array without running the entire VI

    I'm trying to populate a complex array that I built that reads from a spreadsheet file.  The company I am building it for only has labview run time on the PXI test equipment that I am working with.  I am having to fix the VI On my computer then build an executable and then test it on the machine to see if it runs properly.  It's a very tedious process.  I cannot run the VI on my computer because it requires to have a FLUKE 726 connected in order to run.  So, I was wondering if there is a way to repopulate the array without running the entire VI?
    Your help would be greatly appreciated.

    Create a subVI for reading/processing of the array.  Then you just have to test that subVI as your machine.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Resize only one object in selection, and other questions. InDesign CC

    I recently changed from InDesign CS4 to CC. I'm having a few problems with the interface and can't figure them out.
    1) This one is really annoying me: I select multiple items, like a picture and some text, to move them somewhere. I then want to maybe change the size of the text box, or crop the picture a little. What used to happen in CS4 was exactly what I wanted to happen: whichever item I clicked on to edit would be edited. In CC, it resizes everything selected! If I want to resize ALL the items, I'll group them. Is there an option to turn that off? I've looked through every menu I could find but didn't see anything that would refer to that.
    2) In the same vein: When I select a couple items, like a text box on top of a burst or an ellipse or something, and I then want to edit some of the text. In CS4 I could double click and it would turn into the type tool and I could edit text. It still works the same in CC, but only if I have just the text box selected. If there's anything else selected, it just doesn't work.
    3) I complained about this one when I changed from CS2 to CS4, but it's still a problem: When I print, and put in a particular page range, it prints those pages. Now, when I go back to print again, it has defaulted back to printing all pages. I'd really like to be able to hit CTRL-P then Enter, instead of using the mouse to select my page range again. Is there some option that I can change somewhere for that? It works fine in Print Booklet, and Export to PDF. It's only when I print normally this happens.
    4) Every time I open the program, all my windows (Pages, Swatches, Stroke, etc...) are always minimized. It's annoying to have to open them every time. I couldn't find anywhere to change that either.
    These are kind of minor inconveniences I guess, but it would be nice if I could change them. Other than these few things CC has been pretty good. I definitely like that it's 64 bit. I got out of memory errors a lot with CS4. Anyhow, thanks for taking the time to read my questions!

    TopePrinting wrote:
    1) This one is really annoying me: I select multiple items, like a picture and some text, to move them somewhere. I then want to maybe change the size of the text box, or crop the picture a little. What used to happen in CS4 was exactly what I wanted to happen: whichever item I clicked on to edit would be edited. In CC, it resizes everything selected! If I want to resize ALL the items, I'll group them. Is there an option to turn that off? I've looked through every menu I could find but didn't see anything that would refer to that.
    I have InDesign CS5.5 - and when I select more than 1 object I get a bounding box for all the items - it's impossible to resize just one item without affecting everything selected.
    TopePrinting wrote:
    2) In the same vein: When I select a couple items, like a text box on top of a burst or an ellipse or something, and I then want to edit some of the text. In CS4 I could double click and it would turn into the type tool and I could edit text. It still works the same in CC, but only if I have just the text box selected. If there's anything else selected, it just doesn't work.
    I really don't see this behaviour at all.
    TopePrinting wrote: 3) I complained about this one when I changed from CS2 to CS4, but it's still a problem: When I print, and put in a particular page range, it prints those pages. Now, when I go back to print again, it has defaulted back to printing all pages. I'd really like to be able to hit CTRL-P then Enter, instead of using the mouse to select my page range again. Is there some option that I can change somewhere for that? It works fine in Print Booklet, and Export to PDF. It's only when I print normally this happens.
    No - this is the way it works - annoying!
    What's really frustrating is that it will remember the amount of copies you've input too! I would like that reset to 1 after I print 100 copies. All too often I've opened a file from last year to print a copy and hit Ctrl+P and then Return as the shortcuts - and I get 100 copies printed again!!!
    4) Every time I open the program, all my windows (Pages, Swatches, Stroke, etc...) are always minimized. It's annoying to have to open them every time. I couldn't find anywhere to change that either.
    Once you have the screen setup the way you like it go to Window>Workspaces and click "New Workspace"
    Save as it something unique to you.
    Everytime you open InDesign this should be the default panel settings.
    These are kind of minor inconveniences I guess, but it would be nice if I could change them. Other than these few things CC has been pretty good. I definitely like that it's 64 bit. I got out of memory errors a lot with CS4. Anyhow, thanks for taking the time to read my questions!
    They are minor for sure - and we all have niggly bits in InDesign that frustrate us.
    But unfortunately this is a user-to-user forum so it's unlikely to be picked up by Adobe employees.
    I suggest you put it in the feature request forums - http://forums.adobe.com/community/indesign/indesign_feature_requests
    There's the Adobe Feature Request page - https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    That's about as much as you can do.

  • How to make one thread to wait for others in this situation?

    i am simulating a 2 phase locking system (shared and exclusive locks). multiple clients connects and requests for lock to a single server. at the server end, we have a class Server which implements Runnable interface. for each connection, a new Server object is created and a new thread is started. when a conflicting lock request is made by a client, the corresponding thread in the server end must wait until other threads corresponding to clients holding the lock releases it. and when all the locks in conflicting mode are released, the thread releasing the last conflicting lock must notify the waiting thread.
    but the wait() and notifyAll() methods are not working as desired. i guess this is because each thread is working on different Server objects.
    how can i implement the waiting and notifying mechanism?

    Let me recap your question: your Server is a single resource to which
    multiple Clients want access in a CREW (Concurrent Read Exclusive Write)
    fashion. You need a single object somewhere that can serve as the
    single monitor for locking. A Singleton object like this should do it:public class CREW {
       private static CREW crew= new CREW();
       public static getCREW() { return crew; }
       private boolean wite;
       private int read;
       public synchronized acquireReadLock() {
          // your read locking stuff here
       public synchronized acquireWriteLock() {
          // your write locking stuff here
    }... the important part is that there is a single object to lock on. The
    'acquire...' methods can be pooped up at will (a Command as a
    parameter mayhap?)
    kind regards,
    Jos

  • Populating drop down menu based on selection in other dropdown

    Hi
    I want to know a solution for populating 2 drop downs. The scene is that once the user has logged in he has to select a REGION. The options in region are EAST, WEST, NORTH, SOUTH, ALL.
    On selecting the region a second drop down gets populated with the dealers of that particular region.
    DROP DOWN 1 : REGION > NORTH
    DROP DOWN 2 : DEALERS > ALL DEALERS IN NORTH.
    Someone n Everyone please help me urgently.

    ok here's what your servlet would look like:
    public class getDealers extends HttpServlet {   
        public void doGet(HttpServletRequest request, HttpServletResponse response)  
        throws javax.servlet.ServletException, java.io.IOException  {
            // get the region selected from the form1
            String region = request.getParameter("region");
            if(region != null) {
                //calls a static method which selects dealers from a database or whatever  you have to do to get the list
                Collection listOfDealers = Dealers.findDealersByRegion(region);
                //puts the list in the session.
                request.getSession().setAttribute("listOfDealers", listOfDealers);
                // server side forward back to the page
                RequestDispatcher rd = this.getServletContext().getRequestDispatcher("/mypage.jsp");
                rd.forward(request, response);
            else {
                //handle error
    }Hope this helps
    good luck!

Maybe you are looking for