Ver Mensaje Individual
  #9 (permalink)  
Antiguo 11/04/2011, 10:28
Avatar de HaroldV
HaroldV
 
Fecha de Ingreso: enero-2010
Ubicación: Maracaibo
Mensajes: 100
Antigüedad: 14 años, 3 meses
Puntos: 3
Respuesta: de Servlet a una pagina JSP

Cita:
Iniciado por fabian0877 Ver Mensaje
Si loco justamente la estoy necesitando, si harias el favor de postearla.
Estoy desarrollando mi proyecto final de carrera y estoy estancado alli precisamente.
Gracias loco y espero la respuesta!!! muchos principiantes la necesitamos!!
Aqui lo Explico
Código:
protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        

        String indicativo  = request.getParameter("txtIndicativo");
        String estacion = request.getParameter("txtEstacion");
        String año = request.getParameter("txtAno");
        String latitud = request.getParameter("txtLatitud");
        String longitud = request.getParameter("txtLongitud");

        

        RequestDispatcher rd =null;
        request.setAttribute("txtEstacionHumedad", estacion);

        rd=request.getRequestDispatcher("Humedad.jsp");
        rd.forward(request,response);
        

    }
de que manera asignando el nombre de las variable la cual le asignamos los valores recopilados de index.jsp a el Value de los label o los textbox que agregamos en la pagina Humedad.jsp de que manera Observen las flechas =) Spero que les funcione cualquier duda pregunten y disculpen lo tarde de la respuesta =)
Código:
<tr>
                            <th><font color="#FFFFFF">Indicativo:&ensp;</font></th>
                            <th> <input type="text" id="txtIndicativoHumedad_id" name="txtIndicativoHumedad" value="${indicativo}" <------------------   size="10" readonly/> </th>
                            <th><font color="#FFFFFF">Estación:&ensp;</font></th>
                            <th> <input type="text" id="txtEstacionHumedad_id" name="txtEstacionHumedad" value="${estacion}" <------------------ size="10" readonly/> </th>
                            <th><font color="#FFFFFF">Fecha:&ensp;</font></th>
                            <th> <input type="text" id="txtFechaHumedad_id" name="txtFechaHumedad" value="${año}" <------------------ size="10" readonly/> </th>
                    
                    </tr>
                    <tr>

                        <th><font color="#FFFFFF">Latitud:&ensp;</font></th>
                        <th> <input type="text" id="txtLatitudHumedad_id" name="txtLatitudHumedad" value="${latitud}" <------------------ size="10" readonly/> </th>
                        <th><font color="#FFFFFF">Longitud:&ensp;</font></th>
                        <th><input type="text" id="txtLongitudHumedad_id" name="txtLongitudHumedad" value="${longitud}" <------------------ size="10" readonly/> </th>
                        <th><font color="#FFFFFF">Elevación:&ensp;</font></th>
                        <th><input type="text" id="txtElevacionHumedad_id" name="txtElevacionHumedad" value="${elevacion}" <------------------ size="10" readonly/> </th>

                    </tr>