Improve if-statement for multiple strings I working with a lot of Strings which I get from a web-form:

final String user = request.getParameter("user");
final String pw = request.getParameter("password");
final String name = request.getParameter("name");
final String shortname = request.getParameter("shortname");
final String appl_name = request.getParameter("appl_name");
final String db_size_str = request.getParameter("db_size");
final String was_admin_string = request.getParameter("was_admin");
final String sap_nr = request.getParameter("sap_nr");
final String etl_string = request.getParameter("etl");
final String mq_string = request.getParameter("mq");
final String msg_broker_string = request.getParameter("msgbroker");
final String java_batch = request.getParameter("javab");
final String server = request.getParameter("server");
final String apverantw1 = request.getParameter("appliverantw1");
final String apverantw2 = request.getParameter("appliverantw2");
final String psp = request.getParameter("psp");
final String version = request.getParameter("version");
final String applialias = request.getParameter("applialias");
final String applityp = request.getParameter("applityp");
final String data = request.getParameter("data");
final String yesdata = request.getParameter("yesdata");
final String moreoptions = request.getParameter("moreoptions");


If only one of them is empty, the program should be stopped. At this time I check that with an ugly if-statement if no one of the strings is empty:  

if (user != null &amp;&amp; name != null &amp;&amp; shortname != null &amp;&amp; appl_name != null &amp;&amp; db_size_str != null &amp;&amp; was_admin_string != null &amp;&amp; sap_nr != null &amp;&amp; etl_string != null &amp;&amp; mq_string != null
                &amp;&amp; msg_broker_string != null &amp;&amp; java_batch != null &amp;&amp; server != null &amp;&amp; apverantw1 != null &amp;&amp; apverantw2 != null &amp;&amp; psp != null &amp;&amp; version != null &amp;&amp; applialias != null
                &amp;&amp; applityp != null &amp;&amp; data != null &amp;&amp; yesdata != null &amp;&amp; moreoptions != null)


This was produced over the time when I added one string after one.
How can I improve this? I mean, it is a really big, ugly if-statement. But I don't have a clue how can I write this even better.
i assume that you don't want to proceed the request, and send error message about missing string  to the user, and also you are not using any MVC framework.

First you need to define a list of parameter names.  Then define the below method,

 List&lt;String&gt; paramNames =  ... // you prepared a list of parameter names

List&lt;String&gt; validate(HttpServletRequest req ) {
   List&lt;String&gt; emptyParams = new ArrayList&lt;&gt;();

   for(String name : paramNames ){
      if(StringUtils.isBlank( req.getParameter(name))){
          emptyParams.add(param);
       }
   }

   return emptyParams;  
 }


Note: StringUtils class comes from the apache common library. 

now the above method can tell you what parameters are empty. you can decide what to do based on the result.  

if you use any mvc framework,  it is better to use form binding logic and validation provided by the framework.