title: passing parameter from android to servlet/jsp
body: <p>i m not able to get the value that is pass from android in my jsp page. where i made make mistake. Any suggestion!</p>
  
  <p>below is my code:</p>
  
  <p>==========================</p>
  
  <h1>Client : android Activity</h1>
  
  <pre><code>package org.test2;
  
  import java.io.IOException;
  import org.apache.http.HttpResponse;
  import org.apache.http.client.ClientProtocolException;
  import org.apache.http.client.HttpClient;
  import org.apache.http.client.methods.HttpGet;
  import org.apache.http.impl.client.DefaultHttpClient;
  import android.app.Activity;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.Button;
  import android.widget.EditText;
  
  public class test2Activity extends Activity {
      EditText ed;
      Button ok;
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          ed=(EditText)findViewById(R.id.EditText01);
          ok=(Button)findViewById(R.id.Button01);
          ok.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
  
                  // Create a new HttpClient and Post Header  
                  HttpClient httpclient = new DefaultHttpClient();
                  HttpGet request=new HttpGet("http://localhost:8080/t5/jsp1.jsp?name=hiren");
                  //HttpPost httppost = new HttpPost("http://localhost:8080/t5/jsp1.jsp?name=hiren"); 
                  try {               
                      // Execute HTTP Post Request  
                      HttpResponse response = httpclient.execute(request);                    
  
                  } catch (ClientProtocolException e) {  
                      // TODO Auto-generated catch block  
                  }catch (IOException e) {  
                      // TODO Auto-generated catch block  
                  }
              }
          });
      }
  
  }
  </code></pre>
  
  <p>=======================================</p>
  
  <h1>server : jsp</h1>
  
  <pre><code>&lt;%@ page import="java.util.*" language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt; 
  &lt;/script&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  Parameter value = 
  &lt;%=request.getParameter("name") %&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>=========================================</p>