Solved

Advance Search using JSP

Posted on 2006-11-11
3
152 Views
Last Modified: 2010-05-18
Greetings,

My server language is JSP + Servelt  and the Database is oracel

Using my application, the user will be able to search using a form and he should fill at least one field,

so how I can make sure that he at least has filled one field?

how I can get fields' attributes name and values that the user has filled from request in the Servelt side?
0
Comment
Question by:Sh_Rashed
  • 2
3 Comments
 
LVL 10

Expert Comment

by:jaggernat
ID: 17927660
>> so how I can make sure that he at least has filled one field?

you have to validate your fields. You can use javascript validations

function validate()
{
if(document.forms[0].fieldName.value = "")
{
alert("Please enter something");
}
}

>>>how I can get fields' attributes name and values that the user has filled from request in the Servelt side?

You would get them from the Bean.
see this:
http://www.jsptut.com/Forms.jsp
0
 

Author Comment

by:Sh_Rashed
ID: 17994334

http://www.jsptut.com/Forms.jsp <- this link doesn't work

any other resources .. plz?
0
 
LVL 10

Accepted Solution

by:
jaggernat earned 125 total points
ID: 17999236
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
tomcat users xml 7 127
servlet cookie finding by name 1 84
Using Tomcat as raspberry pi java app server 13 189
thymeleaf natural templating vs JSP 2 135
Starting your own business is always a daunting process, and for most people it is brand new experience. Avoid the common pitfalls by following these tips to start on the road to success.
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.

809 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