Solved

Advance Search using JSP

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
getting param value 7 51
Reading data  from excel sheet and displaying 1 71
Java Exception example issues 11 83
maven j2ee examles 2 43
In  today’s increasingly digital world, managed service providers (MSPs) fight for their customers’ attention, looking for ways to make them stay and purchase more services. One way to encourage that behavior is to develop a dependable brand of prod…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now