• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add search in a jsp

 
Rahuls Sharmas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my search jsp please help me out
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:html locale="true">
<head>
<title>Welcome</title>
<html:base/>
</head>
<body bgcolor="white">
<P><STRONG><EM><FONT font-family:@Arial font-size="14" color="blue">
<center><b>Welcome To Essel Employee Information Center</b></center></FONT></EM></STRONG></P>

<html:form action="/SearchAction.do">
<html:errors/>
<table>

<tr>
<td align="right"><P><STRONG><B><FONT font-family:@Arial font-size="4" color="blue">
Search an Employee</FONT></B></STRONG><html:text property= "keyword" size="30" maxlength="30"/>
<html:submit value="Search"/></P>
</td>
</tr>

</table>
</html:form>
</body>
</html:html>
 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use Lucene search for searching any content....

see this link http://www.javaranch.com/journal/2004/04/Lucene.html
also see http://lucene.apache.org/
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Well, what do you want the page to do? What is it that you want to search? Which ideas have you had about implementing those features?
 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rahul,

Are you trying to search your stored values from database? What is the persistence/Model of the Employees that your trying to access? Give us more details, so that we can guide you well.

Ananth Chellathurai
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!