Solved

Advance Search using JSP

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

Technology Partners: 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

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

696 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