This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add Search Functionality in Registration form in JSP?  RSS feed

 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I want to add search functionality like for City and State ,country.How Can I Implement it.

I am using Java(JSP,Servlets) as my server side lenguage

I have heared about
https://www.google.com/cse/

But what are the other ways to add search functionality like custom searchs and other?

Thanks

(See my Attachment Image to get an Idea what I want to do)
Reg_Form.PNG
[Thumbnail for Reg_Form.PNG]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you could start by recognizing that this is not a JSP problem.

I suspect you would end up with some "web 2.0" style HTML + javascript (AJAX) + back-end operations handled by servlet.

Developing the JSP to write the initial HTML page should be the last part of your project - trying to master all the bits at one go leads to frustration. Get all the other parts working first.

Bill
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@William Brogden

Thanks for reply

can you give me a idea or code snipshot from where I should start working on this?
 
Stefan Evans
Bartender
Posts: 1836
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well what are you querying? Where are you getting the informatoin for available cities and states?

Is it a database?
Is it a web service?
Is it information you are keeping, or is it elsewhere on the web?


As with any web application, the job is to
#1 - Gather user input
#2 - execute a search based on that input
#3 - present the result.

JSP will help you do #1 and #3. It doesn't have much at all to do with #2.

 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks I will try this approach and will come back with some code if there is any issues.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!