List Of Value(LOV) in JSP

Posted on 2011-02-20
Last Modified: 2012-05-11

I am relatively new to JSP. As a part of one of my projects, I need to develop some JSP pages in Jdeveloper (Our environment is still based on 10g).

In one of the pages, the user needs to select the location code. I need to create a LOV functionality for this. When the user clicks on the location field, he needs to be taken to a page where he can search for the available locations. He can select the correct one and when OK is clicked, he will be taken back to the main page with the selected location.

It would be really helpful if someone would provide me a sample code for this.

Question by:TJOSY
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 34937577
R u using java script in ur application ??

Author Comment

ID: 34940206
Hi Dravidnsr..

Not really. But I can consider as option. would you please provide some sample code ? The items in the LOV needs to be picked up  from db tables.

LVL 20

Expert Comment

by:chaitu chaitu
ID: 34940448
can you share the  code here how faryou progressed??
LVL 13

Expert Comment

by:Murali Murugesan
ID: 34940494
Try using JQuery autocomplete. -- should be appropriate for your requirement,

Or else , use Jquery to implement your own LOV.

Idea is load everything to an array in onload of page, and iterate through it to display on the popup screen. Once selected post back the selected field to main page.

LVL 20

Accepted Solution

Sathish David  Kumar N earned 500 total points
ID: 34940864
for example you want search user Name

<input type="text" name="uName" id="uName" onclick="popUpWindow()">

in java script

function popUpWindow()
{,"name","height=500,width=550,scrollbars=yes"  );
                  if (window.focus) {newwindow.focus();}

// here URL is ur Jsp page url ,

you cant set the value s opener.document.FormName.Uname="Sathish";

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft is moving in-place eDiscovery & hold from ECP to EOP console under Content Search in Search and Investigation Options.  In this post, I will be showing you how to export emails to a PST file using the Content Search Options.
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question