Solved

Advance Search using JSP

Posted on 2006-11-11
3
151 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
method inner class 6 82
servlet cookie finding by name 1 78
grep code 4 183
Is possible to make a jsp script work with oracle wallet? 7 101
Read about the ways of improving workplace communication.
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 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