hi,
i have a HTML form which has some text fields in it..the user can enter some or all of the fields and submit it..depending on the values entered..a search has to be made from the database...i captured the non-entered values in another
jsp page using
String name = getParameter("<field_name>")
i'm getting an empty string into name.
now need to use the variable name in the SQL statement in the JSP page as follows...
"SELECT * FROM <table_name> WHERE SHEET_NAME = '" +name +"' or '"+name+"' IS NULL AND so on...";
but as name is empty... the condition for checking null is failing...
can we set default vaues for the variables used so that when nothing is selected, the variable has a null value...
can someone help me solve the problem...plz treat this as urgent
thanks
--sumana