Solved

Advance Search using JSP

Posted on 2006-11-11
3
153 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exception creating bean of class 5 220
maven project in eclipse 11 60
reflection example 3 122
Drop down list show all elements but disabled for selection 6 40
Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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