Results 1 to 15 of 15
Thread: search with java?
- 06-17-2010, 03:03 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 1
- Rep Power
- 0
search with java?
Ok I have no java experience. I have a client who wants a search function added to his STATIC site. He does not under any circumstances want to convert to a dynamic site, but is ok with maybe have a dynamic page or two for the sole purpose of a search feature. I already designed a CF search with a quickly created database (which he doesnt have yet) and he didnt like it. The problem is he wants a search function that the user can define...meaning the user types a keyword such as '75 watt", since his site is a light bulb replacement company, and then return the results in a table.
I hope this is the right forum for this. Can anyone help me with some code for this problem? I would greatly appreciate it! If anyone needs any more details, let me know. Thanks!
- 06-17-2010, 03:36 AM #2
you can use the reg expressions to analyze your text =)
+ 1 my REP
Good Luck :)
- 06-17-2010, 04:16 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
If your site have those keywords, may be in a database you can make a lookup on to the DB. Or else what you have to do is, search through the static page content. It's not quite possible with Java, you have to go to JSP and so on. In that case site must be in JSP. Is that your site in pure HTML?
- 06-17-2010, 01:02 PM #4
How will any code be executed on a STATIC site? A search implies execution of special purpose code to do the search.wants a search function added to his STATIC site
Does the site have cgi?
- 06-17-2010, 01:21 PM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Why cannot do it with static content, I mean with the physical files on the server, which is unusual thing for me. :p
- 06-17-2010, 01:50 PM #6
Perhaps a javascript solution. The JS looks at the user's input and figures out what page on the server to get and sends the request for that page. No code execution on the server.
- 06-18-2010, 03:15 AM #7
sure JS can help :)
+ 1 my REP
Good Luck :)
- 06-18-2010, 03:53 AM #8
Senior Member
- Join Date
- Feb 2010
- Location
- Waterford, Ireland
- Posts
- 748
- Rep Power
- 4
Dont you mean Ajax? I fail to see how javascript can accomplish this on its own
- 06-18-2010, 04:31 AM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 06-18-2010, 04:42 AM #10
Senior Member
- Join Date
- Feb 2010
- Location
- Waterford, Ireland
- Posts
- 748
- Rep Power
- 4
- 06-18-2010, 04:46 AM #11
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Accessing the server is not an effective way at all, so we must do that only if it's really needed to do the job. Specially I'm working with web applications, trying to implement lots of features on the client side.
- 06-18-2010, 04:49 AM #12
Senior Member
- Join Date
- Feb 2010
- Location
- Waterford, Ireland
- Posts
- 748
- Rep Power
- 4
- 06-18-2010, 04:55 AM #13
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
May be simply accessing the database for a portal or something like that, which can be thousands of user involved daily.
- 06-18-2010, 05:16 AM #14
Senior Member
- Join Date
- Feb 2010
- Location
- Waterford, Ireland
- Posts
- 748
- Rep Power
- 4
- 06-20-2010, 03:22 PM #15
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Similar Threads
-
Binary search tree search method
By chopo1980 in forum New To JavaReplies: 2Last Post: 12-10-2009, 01:42 AM -
Not able to highlight the search key work in wild card search
By annappa in forum LuceneReplies: 0Last Post: 10-29-2009, 09:28 AM -
make search function ike eclipse search in window->preference
By i4ba1 in forum Advanced JavaReplies: 5Last Post: 08-26-2008, 03:43 PM -
Desktop search in java
By hellosubs in forum New To JavaReplies: 0Last Post: 06-15-2008, 03:33 PM -
Binary Search in Java
By Java Tip in forum AlgorithmsReplies: 0Last Post: 04-15-2008, 07:43 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks