Recall the servlet after it had generated the "response"  page

Hi Everybody !
I have a big problem and i am front it since i am programming in servlet/jsp .
The basic scheme in the tutorial is form.jsp => call and processing by the servlet => response.jsp .
That i want to do is : simple form.jsp=> call and processing by the servlet (with method 1) => response1.jsp (which is a more complete form) => call and processing by the servlet (with method 2 which it is unlike method 1) => response2.jsp (final page).
But i don't know how to do it : you don't understand with i want to make it ? so there is a simple example: a user want to know what he have eaten at a day:
1)my first simple form.jsp: ask to the user his name and a date
2)the response 1 and page 2 is return: it's a more complex and complete form (this page is well generate in my project )
with this date and the name of the user, i question my database : "what this user have eaten at this date "?
For example : at this date, he ate : chips at the aperitif and apple for dessert .
The user must to complete the page 2 with more information (which have to be insert in the database):
ex:
had he ate this apple : in the kitchen, in the park, at his work ...?? (drop-down menu)
had he ate this apple : baked, uncured ...?? (another drop-down menu)
To resume: i want it's to recall the servlet with another button (with a name different in the servlet) to a specific method.
in the first and simple form there is a button ONE that call the method1 of the servlet
the servlet generate the page 2 (more complex and intermediate page)
in this page 2 more information is asked to the user and there is a button TWO that call the method2 of the same servlet
the final page (3) is generated by the servlet.
So i success in the generation of the page 2 but when i click on the button TWO the controler (urlAction) send me null !!
the call to the servlet is not done !
some code:
the servlet :
public class ServletFichePrlvLEGactual extends HttpServlet{
     private String urlErreurs = null;
     private ArrayList erreursInitialisation = new ArrayList<String>();
     private String[] param�tres = {"urlFormulaire", "urlControleur","urlReponse","urlErreurs","urlReponseBis"};
     private Map params = new HashMap<String, String>();
     private ResultSet resultSetIDPrelevement;
//     init
     @SuppressWarnings("unchecked")
     public void init() throws ServletException {
          // on r�cup�re les param�tres d'initialisation de la servlet
          ServletConfig config = getServletConfig();
          // on traite les autres param�tres d'initialisation
          String valeur = null;
          for (int i = 0; i < param�tres.length; i++) {
               // valeur du param�tre
               valeur = config.getInitParameter(param�tres);
               // param�tre pr�sent ?
               if (valeur == null) {
                    // on note l'erreur
                    erreursInitialisation.add("Le param�tre [" + param�tres[i] + "] n'a pas �t� initialis�");
               } else {
                    // on m�morise la valeur du param�tre
                    params.put(param�tres[i], valeur);
               // l'url de la vue [erreurs] a un traitement particulier
               urlErreurs = config.getInitParameter("urlErreurs");
               if (urlErreurs == null) {
                    throw new ServletException(
                    "Le param�tre [urlErreurs] n'a pas �t� initialis�");
     @SuppressWarnings("unchecked")
     public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          // on v�rifie comment s'est pass�e l'initialisation de la servlet
          if (erreursInitialisation.size() != 0) {
               // on passe la main � la page d'erreurs
               request.setAttribute("erreurs", erreursInitialisation);
               getServletContext().getRequestDispatcher(urlErreurs).forward(
                         request, response);
               // fin
               return;
          // on r�cup�re la m�thode d'envoi de la requ�te
          String m�thode = request.getMethod().toLowerCase();
          // on r�cup�re l'action � ex�cuter
          String action = request.getParameter("action");
          // action ?
          if (action == null) {
               action = "init";
          // ex�cution action
          if (m�thode.equals("get") && action.equals("init")) {
               // d�marrage application
               doInit(request, response);
               return;
          if (m�thode.equals("post") && action.equals("valider")) {
               try {
                    doInterrogationFormulaire(request, response);
               } catch (SQLException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               } catch (Exception e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               return;
          if (m�thode.equals("post") && action.equals("testAffichage")) {
               // validation du formulaire de saisie
               try {
                    dotestAffichage(request, response);
               } catch (SQLException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               } catch (Exception e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               return;
          // autres cas
          doInit(request, response);
     void doInit(HttpServletRequest request, HttpServletResponse response) throws ServletException,
     IOException {
//          on r�cup�re la session de l'utilisateur
          HttpSession session = request.getSession(true);
          // on envoie le formulaire vide
          session.setAttribute("nomCentre", "");
          session.setAttribute("NEtude", "");
          request.setAttribute("urlAction", (String) params.get("urlControleur"));
          getServletContext().getRequestDispatcher((String) params.get("urlFormulaire")).forward(
                    request, response);
          return;
     void doInterrogationFormulaire(HttpServletRequest request,HttpServletResponse response)
     throws ServletException, IOException, SQLException, Exception {
//          on r�cup�re les param�tres
          String nomCentre = (String) request.getParameter("nomCentre");
          String NEtude = (String) request.getParameter("NEtude");
          //puis on le stocke dans la session
          HttpSession session = request.getSession(true);
          session.setAttribute("nomCentre", nomCentre);
          session.setAttribute("NEtude", NEtude);
          Connexion com = new Connexion();
          try{
               String query="SELECT idEtabl FROM Etablissement WHERE NomEtabl='"+nomCentre+"'";
               ResultSet idCentre = com.ConnectAndQuestion(query);
               idCentre.first();
               String resulstatId=idCentre.getString("idEtabl");
               String queryidPrelevement="SELECT idPrelevement FROM Etabl_Prlvmt where NEtude='"+NEtude+"' AND idEtabl='"+resulstatId+"'";
               resultSetIDPrelevement=com.ConnectAndQuestion(queryidPrelevement);
               if(resultSetIDPrelevement.next()!=false){
                    resultSetIDPrelevement.beforeFirst();
                    request.setAttribute("resultSetIDPrelevement", resultSetIDPrelevement);
                    getServletContext().getRequestDispatcher((String) params.get("urlReponse")).forward(
                              request, response);
                    com.close();
                    return;
               else {     
                    getServletContext().getRequestDispatcher((String) params.get("urlFormulaire")).forward(
                              request, response);
                    com.close();
                    return;
          catch(Exception ex) {
               System.err.println("\n*** SQLException caught in main()");
               getServletContext().getRequestDispatcher((String) params.get("urlFormulaire")).forward(
                         request, response);
               return;          
     void dotestAffichage(HttpServletRequest request,HttpServletResponse response)
     throws ServletException, IOException, SQLException, Exception {
//          on r�cup�re les param�tres d'int�ret
          ResultSet resultSetIDPrelevement = (ResultSet) request.getAttribute("resultSetIDPrelevement");
          Connexion updatePrlvmt= new Connexion();
          try{     
               //serveur,login,pwd,database
               updatePrlvmt.loadDriverAndConnect("127.0.0.1","3306","root","root","");
               int k=1;
               while (resultSetIDPrelevement.next()){
                    String idPrelevement = resultSetIDPrelevement.getString("idPrelevement");               
                    if (request.getParameter("choix"+k) !="Vl"){                         
                         String champModalite=(String) request.getParameter("modalite"+k);
                         String champExutoire=(String) request.getParameter("exutoire"+k);
                         String queryUpdate="UPDATE PrelevLEG SET Modalite='"+champModalite +
                         "',Exutoire='"+champExutoire +
                         "',Temp='null',TempMax='null',Heure='null' WHERE idPrelevement='"+idPrelevement +
                         updatePrlvmt.execute(queryUpdate);
                         k++;
                    if (request.getParameter("choix"+k) !="Ef"){
                         String queryUpdate="DELETE FROM PrelevLEG where idPrelevement='"+idPrelevement +"'";
                         updatePrlvmt.execute(queryUpdate);
                         k++;
               updatePrlvmt.close();
          }catch(Exception ex) {
               System.err.println("\n*** SQLException caught in main()");     
          request.setAttribute("urlAction", (String) params.get("urlControleur"));
          getServletContext().getRequestDispatcher((String) params.get("urlReponseBis")).forward(request,
                    response);
          return;
     public void doPost(HttpServletRequest request, HttpServletResponse response)
     throws IOException, ServletException {
          // on passe la main au GET
          doGet(request, response);
the web.xml:<servlet>
     <servlet-name>FichePrlvLEGactual</servlet-name>
<servlet-class>germande.LEG.ServletFichePrlvLEGactual</servlet-class>
     <init-param>
<param-name>urlFormulaire</param-name>
<param-value>/WEB-INF/JSP/LEG/Prlvmnt/formInterrogationActualPrlvmtLEG.jsp</param-value>
</init-param>
<init-param>
<param-name>urlErreurs</param-name>
<param-value>/erreursRecap.biotech.jsp</param-value>
</init-param>
     <init-param>
<param-name>urlReponse</param-name>
<param-value>/WEB-INF/JSP/LEG/Prlvmnt/formFichePrlvLEGactual.jsp</param-value>
</init-param>
     <init-param>
<param-name>urlReponseBis</param-name>
<param-value>/WEB-INF/JSP/LEG/Prlvmnt/respFichePrlvLEGactual.jsp</param-value>
</init-param>
     <init-param>
<param-name>urlControleur</param-name>
<param-value>ServletFichePrlvLEGactual</param-value>
</init-param>     
</servlet>
the first simple form:<%@page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%
// on r�cup�re les param�tres
String nomCentre = (String) session.getAttribute("nomCentre");
String NEtude = (String)session.getAttribute("NEtude");
String urlAction=(String)request.getAttribute("urlAction");
%>
<html>
<head>
<title>Fiche R&eacute;sultats Legionelles - formulaire</title>
</head>
<body>
<center>
<h2>Fiche R&eacute;sultats Legionelles - formulaire</h2>
<hr>
<form action="<%= urlAction %>" method="post">
<table>
     <tr>
     <td>Nom du centre hospitalier: </td>
     <td><input name="nomCentre" value="<%=nomCentre%>" type="text" size="20"></td>
</tr>
               <tr>
                    <td>Code interne : </td>
                    <td><input name="NEtude" value="<%=NEtude%>" type="text" size="20"></td>
               </tr>
          </table>
<table>
<tr>
     <td><input type="submit" name="action" value="valider"></td>
     <td><input type="reset" value="R&eacute;tablir"></td>
</tr>
</table>
</form>
</center>
</body>
</html>
the page two:<%
ResultSet resultSetIDPrelevement = (ResultSet) request.getAttribute("resultSetIDPrelevement");
String nomCentre = (String) session.getAttribute("nomCentre");
String NEtude = (String)session.getAttribute("NEtude");
String urlAction=(String)request.getAttribute("urlAction");
%>
<% String[] listModalite= {"1erjet-HorsActivit&eacute;","1erjet-EnActivit&eacute;",
"2iemejet-D&eacute;sinfection","2iemejet-Flambage","Ecoulement"};
String [] CorrespModal={"1erjet-HorsActivite","1erjet-EnsActivite",
"2iemejet-Desinfection","2iemejet-Flambage","Ecoulement"};
String[] listExutoire={"Mitigeur","M&eacute;langeur","Robinet","Douchette",
"Douche","Temporis&eacute;","Vanne"};
String [] CorrespExu={"Mi","Me","Ro","Dt","Do","Tp","Va"};
%>
<html>
<head>
<title>Fiche pr&eacute;l&egrave;vement: Actualisation - formulaire</title>
</head>
<body>      
<center>
<form action="<%= urlAction %>" method="post">
     <img src="logoBiotech.jpg" align="left" alt="logo Biotech-Germande" width="5%"></img>
<h2>Fiche pr&eacute;l&egrave;vement: Actualisation - formulaire</h2>
<br>
</center>
     <br><br>
<table>
     <tr>
     <td>Nom du centre hospitalier: </td>
<td><input name="nomCentre" value="<%=nomCentre %>" type="text" size="20"></td>
</tr>
          <tr>
               <td>Code interne : </td>
               <td><input name="NEtude" value="<%= NEtude %> " type="text" size="20"></td>
          </tr>
     </table>
     <!-- TABLE CONCERNANT LES PRELEVEMENTS -->
<table>
     <%
     int m=1;
while (resultSetIDPrelevement.next()){
          String idPrelevement = resultSetIDPrelevement.getString("idPrelevement");
     String modalite="modalite"+m;
String exutoire="exutoire"+m;
String choix="choix"+m;
%>                
          <tr>
               <td><input name="idPrelevement" value="<%= idPrelevement %>" type="text" size="25"></td>
               <td><input type="radio" name="<%=choix %>" value="Vl">Valider
                    <input type="radio" name="<%=choix %>" value="Ef">Effacer
               </td>
               <td><SELECT name="modalite" >     
          <% for (int i=0;i<listModalite.length;i++){ %>
                    <OPTION value="<%= CorrespModal[i] %>" ><%= listModalite[i] %></OPTION>
               <% } %>                                                                                
               </SELECT></td>
               <td><SELECT name="exutoire" >     
               <% for (int i=0;i<listExutoire.length;i++){ %>
                    <OPTION value="<%= CorrespExu[i] %>" ><%= listExutoire[i] %></OPTION>
               <% } %>                                                                           
               </SELECT></td>          
          </tr>
     <% m++;
     } %>          
</table>
<table>
     <tr>
     <td><input type="submit" name="action" value="testAffichage"></td>
     <td><input type="reset" value="R&eacute;tablir"></td>
</tr>
     </table>
</form>
</body>
</html>
I really hope that i am enough clear !! Please , i really need help : why can't i recall the servlet ?? with this /null in my url ? why the urlAction in the page 2 (more complex ..) send null ?
thanks in advance !                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

Hi Everybody !
I have a big problem and i am front it since i am programming in servlet/jsp .
The basic scheme in the tutorial is form.jsp => call and processing by the servlet => response.jsp .
That i want to do is : simple form.jsp=> call and processing by the servlet (with method 1) => response1.jsp (which is a more complete form) => call and processing by the servlet (with method 2 which it is unlike method 1) => response2.jsp (final page).
But i don't know how to do it : you don't understand with i want to make it ? so there is a simple example: a user want to know what he have eaten at a day:
1)my first simple form.jsp: ask to the user his name and a date
2)the response 1 and page 2 is return: it's a more complex and complete form (this page is well generate in my project )
with this date and the name of the user, i question my database : "what this user have eaten at this date "?
For example : at this date, he ate : chips at the aperitif and apple for dessert .
The user must to complete the page 2 with more information (which have to be insert in the database):
ex:
had he ate this apple : in the kitchen, in the park, at his work ...?? (drop-down menu)
had he ate this apple : baked, uncured ...?? (another drop-down menu)
To resume: i want it's to recall the servlet with another button (with a name different in the servlet) to a specific method.
in the first and simple form there is a button ONE that call the method1 of the servlet
the servlet generate the page 2 (more complex and intermediate page)
in this page 2 more information is asked to the user and there is a button TWO that call the method2 of the same servlet
the final page (3) is generated by the servlet.
So i success in the generation of the page 2 but when i click on the button TWO the controler (urlAction) send me null !!
the call to the servlet is not done !
some code:
the servlet :
public class ServletFichePrlvLEGactual extends HttpServlet{
     private String urlErreurs = null;
     private ArrayList erreursInitialisation = new ArrayList<String>();
     private String[] param�tres = {"urlFormulaire", "urlControleur","urlReponse","urlErreurs","urlReponseBis"};
     private Map params = new HashMap<String, String>();
     private ResultSet resultSetIDPrelevement;
//     init
     @SuppressWarnings("unchecked")
     public void init() throws ServletException {
          // on r�cup�re les param�tres d'initialisation de la servlet
          ServletConfig config = getServletConfig();
          // on traite les autres param�tres d'initialisation
          String valeur = null;
          for (int i = 0; i < param�tres.length; i++) {
               // valeur du param�tre
               valeur = config.getInitParameter(param�tres);
               // param�tre pr�sent ?
               if (valeur == null) {
                    // on note l'erreur
                    erreursInitialisation.add("Le param�tre [" + param�tres[i] + "] n'a pas �t� initialis�");
               } else {
                    // on m�morise la valeur du param�tre
                    params.put(param�tres[i], valeur);
               // l'url de la vue [erreurs] a un traitement particulier
               urlErreurs = config.getInitParameter("urlErreurs");
               if (urlErreurs == null) {
                    throw new ServletException(
                    "Le param�tre [urlErreurs] n'a pas �t� initialis�");
     @SuppressWarnings("unchecked")
     public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          // on v�rifie comment s'est pass�e l'initialisation de la servlet
          if (erreursInitialisation.size() != 0) {
               // on passe la main � la page d'erreurs
               request.setAttribute("erreurs", erreursInitialisation);
               getServletContext().getRequestDispatcher(urlErreurs).forward(
                         request, response);
               // fin
               return;
          // on r�cup�re la m�thode d'envoi de la requ�te
          String m�thode = request.getMethod().toLowerCase();
          // on r�cup�re l'action � ex�cuter
          String action = request.getParameter("action");
          // action ?
          if (action == null) {
               action = "init";
          // ex�cution action
          if (m�thode.equals("get") && action.equals("init")) {
               // d�marrage application
               doInit(request, response);
               return;
          if (m�thode.equals("post") && action.equals("valider")) {
               try {
                    doInterrogationFormulaire(request, response);
               } catch (SQLException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               } catch (Exception e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               return;
          if (m�thode.equals("post") && action.equals("testAffichage")) {
               // validation du formulaire de saisie
               try {
                    dotestAffichage(request, response);
               } catch (SQLException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               } catch (Exception e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               return;
          // autres cas
          doInit(request, response);
     void doInit(HttpServletRequest request, HttpServletResponse response) throws ServletException,
     IOException {
//          on r�cup�re la session de l'utilisateur
          HttpSession session = request.getSession(true);
          // on envoie le formulaire vide
          session.setAttribute("nomCentre", "");
          session.setAttribute("NEtude", "");
          request.setAttribute("urlAction", (String) params.get("urlControleur"));
          getServletContext().getRequestDispatcher((String) params.get("urlFormulaire")).forward(
                    request, response);
          return;
     void doInterrogationFormulaire(HttpServletRequest request,HttpServletResponse response)
     throws ServletException, IOException, SQLException, Exception {
//          on r�cup�re les param�tres
          String nomCentre = (String) request.getParameter("nomCentre");
          String NEtude = (String) request.getParameter("NEtude");
          //puis on le stocke dans la session
          HttpSession session = request.getSession(true);
          session.setAttribute("nomCentre", nomCentre);
          session.setAttribute("NEtude", NEtude);
          Connexion com = new Connexion();
          try{
               String query="SELECT idEtabl FROM Etablissement WHERE NomEtabl='"+nomCentre+"'";
               ResultSet idCentre = com.ConnectAndQuestion(query);
               idCentre.first();
               String resulstatId=idCentre.getString("idEtabl");
               String queryidPrelevement="SELECT idPrelevement FROM Etabl_Prlvmt where NEtude='"+NEtude+"' AND idEtabl='"+resulstatId+"'";
               resultSetIDPrelevement=com.ConnectAndQuestion(queryidPrelevement);
               if(resultSetIDPrelevement.next()!=false){
                    resultSetIDPrelevement.beforeFirst();
                    request.setAttribute("resultSetIDPrelevement", resultSetIDPrelevement);
                    getServletContext().getRequestDispatcher((String) params.get("urlReponse")).forward(
                              request, response);
                    com.close();
                    return;
               else {     
                    getServletContext().getRequestDispatcher((String) params.get("urlFormulaire")).forward(
                              request, response);
                    com.close();
                    return;
          catch(Exception ex) {
               System.err.println("\n*** SQLException caught in main()");
               getServletContext().getRequestDispatcher((String) params.get("urlFormulaire")).forward(
                         request, response);
               return;          
     void dotestAffichage(HttpServletRequest request,HttpServletResponse response)
     throws ServletException, IOException, SQLException, Exception {
//          on r�cup�re les param�tres d'int�ret
          ResultSet resultSetIDPrelevement = (ResultSet) request.getAttribute("resultSetIDPrelevement");
          Connexion updatePrlvmt= new Connexion();
          try{     
               //serveur,login,pwd,database
               updatePrlvmt.loadDriverAndConnect("127.0.0.1","3306","root","root","");
               int k=1;
               while (resultSetIDPrelevement.next()){
                    String idPrelevement = resultSetIDPrelevement.getString("idPrelevement");               
                    if (request.getParameter("choix"+k) !="Vl"){                         
                         String champModalite=(String) request.getParameter("modalite"+k);
                         String champExutoire=(String) request.getParameter("exutoire"+k);
                         String queryUpdate="UPDATE PrelevLEG SET Modalite='"+champModalite +
                         "',Exutoire='"+champExutoire +
                         "',Temp='null',TempMax='null',Heure='null' WHERE idPrelevement='"+idPrelevement +
                         updatePrlvmt.execute(queryUpdate);
                         k++;
                    if (request.getParameter("choix"+k) !="Ef"){
                         String queryUpdate="DELETE FROM PrelevLEG where idPrelevement='"+idPrelevement +"'";
                         updatePrlvmt.execute(queryUpdate);
                         k++;
               updatePrlvmt.close();
          }catch(Exception ex) {
               System.err.println("\n*** SQLException caught in main()");     
          request.setAttribute("urlAction", (String) params.get("urlControleur"));
          getServletContext().getRequestDispatcher((String) params.get("urlReponseBis")).forward(request,
                    response);
          return;
     public void doPost(HttpServletRequest request, HttpServletResponse response)
     throws IOException, ServletException {
          // on passe la main au GET
          doGet(request, response);
the web.xml:<servlet>
     <servlet-name>FichePrlvLEGactual</servlet-name>
<servlet-class>germande.LEG.ServletFichePrlvLEGactual</servlet-class>
     <init-param>
<param-name>urlFormulaire</param-name>
<param-value>/WEB-INF/JSP/LEG/Prlvmnt/formInterrogationActualPrlvmtLEG.jsp</param-value>
</init-param>
<init-param>
<param-name>urlErreurs</param-name>
<param-value>/erreursRecap.biotech.jsp</param-value>
</init-param>
     <init-param>
<param-name>urlReponse</param-name>
<param-value>/WEB-INF/JSP/LEG/Prlvmnt/formFichePrlvLEGactual.jsp</param-value>
</init-param>
     <init-param>
<param-name>urlReponseBis</param-name>
<param-value>/WEB-INF/JSP/LEG/Prlvmnt/respFichePrlvLEGactual.jsp</param-value>
</init-param>
     <init-param>
<param-name>urlControleur</param-name>
<param-value>ServletFichePrlvLEGactual</param-value>
</init-param>     
</servlet>
the first simple form:<%@page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%
// on r�cup�re les param�tres
String nomCentre = (String) session.getAttribute("nomCentre");
String NEtude = (String)session.getAttribute("NEtude");
String urlAction=(String)request.getAttribute("urlAction");
%>
<html>
<head>
<title>Fiche R&eacute;sultats Legionelles - formulaire</title>
</head>
<body>
<center>
<h2>Fiche R&eacute;sultats Legionelles - formulaire</h2>
<hr>
<form action="<%= urlAction %>" method="post">
<table>
     <tr>
     <td>Nom du centre hospitalier: </td>
     <td><input name="nomCentre" value="<%=nomCentre%>" type="text" size="20"></td>
</tr>
               <tr>
                    <td>Code interne : </td>
                    <td><input name="NEtude" value="<%=NEtude%>" type="text" size="20"></td>
               </tr>
          </table>
<table>
<tr>
     <td><input type="submit" name="action" value="valider"></td>
     <td><input type="reset" value="R&eacute;tablir"></td>
</tr>
</table>
</form>
</center>
</body>
</html>
the page two:<%
ResultSet resultSetIDPrelevement = (ResultSet) request.getAttribute("resultSetIDPrelevement");
String nomCentre = (String) session.getAttribute("nomCentre");
String NEtude = (String)session.getAttribute("NEtude");
String urlAction=(String)request.getAttribute("urlAction");
%>
<% String[] listModalite= {"1erjet-HorsActivit&eacute;","1erjet-EnActivit&eacute;",
"2iemejet-D&eacute;sinfection","2iemejet-Flambage","Ecoulement"};
String [] CorrespModal={"1erjet-HorsActivite","1erjet-EnsActivite",
"2iemejet-Desinfection","2iemejet-Flambage","Ecoulement"};
String[] listExutoire={"Mitigeur","M&eacute;langeur","Robinet","Douchette",
"Douche","Temporis&eacute;","Vanne"};
String [] CorrespExu={"Mi","Me","Ro","Dt","Do","Tp","Va"};
%>
<html>
<head>
<title>Fiche pr&eacute;l&egrave;vement: Actualisation - formulaire</title>
</head>
<body>      
<center>
<form action="<%= urlAction %>" method="post">
     <img src="logoBiotech.jpg" align="left" alt="logo Biotech-Germande" width="5%"></img>
<h2>Fiche pr&eacute;l&egrave;vement: Actualisation - formulaire</h2>
<br>
</center>
     <br><br>
<table>
     <tr>
     <td>Nom du centre hospitalier: </td>
<td><input name="nomCentre" value="<%=nomCentre %>" type="text" size="20"></td>
</tr>
          <tr>
               <td>Code interne : </td>
               <td><input name="NEtude" value="<%= NEtude %> " type="text" size="20"></td>
          </tr>
     </table>
     <!-- TABLE CONCERNANT LES PRELEVEMENTS -->
<table>
     <%
     int m=1;
while (resultSetIDPrelevement.next()){
          String idPrelevement = resultSetIDPrelevement.getString("idPrelevement");
     String modalite="modalite"+m;
String exutoire="exutoire"+m;
String choix="choix"+m;
%>                
          <tr>
               <td><input name="idPrelevement" value="<%= idPrelevement %>" type="text" size="25"></td>
               <td><input type="radio" name="<%=choix %>" value="Vl">Valider
                    <input type="radio" name="<%=choix %>" value="Ef">Effacer
               </td>
               <td><SELECT name="modalite" >     
          <% for (int i=0;i<listModalite.length;i++){ %>
                    <OPTION value="<%= CorrespModal[i] %>" ><%= listModalite[i] %></OPTION>
               <% } %>                                                                                
               </SELECT></td>
               <td><SELECT name="exutoire" >     
               <% for (int i=0;i<listExutoire.length;i++){ %>
                    <OPTION value="<%= CorrespExu[i] %>" ><%= listExutoire[i] %></OPTION>
               <% } %>                                                                           
               </SELECT></td>          
          </tr>
     <% m++;
     } %>          
</table>
<table>
     <tr>
     <td><input type="submit" name="action" value="testAffichage"></td>
     <td><input type="reset" value="R&eacute;tablir"></td>
</tr>
     </table>
</form>
</body>
</html>
I really hope that i am enough clear !! Please , i really need help : why can't i recall the servlet ?? with this /null in my url ? why the urlAction in the page 2 (more complex ..) send null ?
thanks in advance !                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

Similar Messages

  • Call methods (which are in the servlet) in my response page

    Hello !
    I want to call methods which are in the servlet ( its name is ServletRecap) BUT the call is made in the response page which is generated by the servlet ServletRecap !
    I just want to allow the user to update his choice in the response page.
    example: i choice A in the initial form but i change my mind and now i want to choice B in the response page : the choice have to be update in the database.
    the insertion in the DB is made by a method in the servlet : so i have to recall the method in the response page!
    Please, anybody have an idea ?
    my servlet :
    public class ServletRecap extends HttpServlet {
        // param�tres d'instance
        private String urlErreurs = null;
        private ArrayList erreursInitialisation = new ArrayList<String>();
        private String[] param�tres = {"urlFormulaire", "urlReponse", "urlControleur", "lienRetourFormulaire"};
        private Map params = new HashMap<String, String>();
        // init
        @SuppressWarnings("unchecked")
        public void init() throws ServletException {
            // on r�cup�re les param�tres d'initialisation de la servlet
            ServletConfig config = getServletConfig();
            // on traite les autres param�tres d'initialisation
            String valeur = null;
            for (int i = 0; i < param�tres.length; i++) {
            // valeur du param�tre
                valeur = config.getInitParameter(param�tres);
    // param�tre pr�sent ?
    if (valeur == null) {
    // on note l'erreur
    erreursInitialisation.add("Le param�tre [" + param�tres[i] + "] n'a pas �t� initialis�");
    } else {
    // on m�morise la valeur du param�tre
    params.put(param�tres[i], valeur);
    // l'url de la vue [erreurs] a un traitement particulier
    urlErreurs = config.getInitParameter("urlErreurs");
    if (urlErreurs == null) {
    throw new ServletException(
    "Le param�tre [urlErreurs] n'a pas �t� initialis�");
    @SuppressWarnings("unchecked")
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException {
    // on v�rifie comment s'est pass�e l'initialisation de la servlet
    if (erreursInitialisation.size() != 0) {
    // on passe la main � la page d'erreurs
    request.setAttribute("erreurs", erreursInitialisation);
    request.setAttribute("lienRetourFormulaire", "");
    getServletContext().getRequestDispatcher(urlErreurs).forward(
    request, response);
    // fin
    return;
    // on r�cup�re la m�thode d'envoi de la requ�te
    String m�thode = request.getMethod().toLowerCase();
    // on r�cup�re l'action � ex�cuter
    String action = request.getParameter("action");
    // action ?
    if (action == null) {
    action = "init";
    // ex�cution action
    if (m�thode.equals("get") && action.equals("init")) {
    // d�marrage application
    doInit(request, response);
    return;
    if (m�thode.equals("post") && action.equals("validationFormulaire")) {
    // validation du formulaire de saisie
    doValidationFormulaire(request, response);
    return;
    if (m�thode.equals("post") && action.equals("enregistrementFormulaire")) {
    // enregistrement du formulaire de saisie
    doEnregistrementFormulaire(request, response);
    return;
    if (m�thode.equals("post") && action.equals("retourFormulaire")) {
    // retour au formulaire de saisie
    doRetourFormulaire(request, response);
    return;
    // autres cas
    doInit(request, response);
    // validation du formulaire
    void doValidationFormulaire(HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException {
    // on r�cup�re les param�tres
    String nomCentre = (String) request.getParameter("nomCentre");
    String idCentre = (String) request.getParameter("idCentre");
    String nomPreleveur = (String) request.getParameter("nomPreleveur");
    String datePrelev = (String) request.getParameter("datePrelev");
    String numFinFiche = (String) request.getParameter("numFinFiche");
    // qu'on m�morise dans la session
    HttpSession session = request.getSession(true);
    session.setAttribute("nomCentre", nomCentre);
    session.setAttribute("idCentre", idCentre);
    session.setAttribute("nomPreleveur", nomPreleveur);
    session.setAttribute("datePrelev", datePrelev);
    session.setAttribute("numFinFiche", numFinFiche);
    // v�rification des param�tres
    ArrayList<String> erreursAppel = new ArrayList<String>();
    // le nom doit �tre non vide
    nomCentre = nomCentre.trim();
    idCentre = idCentre.trim();
    nomPreleveur = nomPreleveur.trim();
    datePrelev = datePrelev.trim();
    numFinFiche = numFinFiche.trim();
    if (nomCentre.equals("")) {
    erreursAppel.add("Le champ [nomCentre] n'a pas �t� rempli");
    if (idCentre.equals("")) {
    erreursAppel.add("Le champ [idCentre] n'a pas �t� rempli");
    if (nomPreleveur.equals("")) {
    erreursAppel.add("Le champ [nomPreleveur] n'a pas �t� rempli");
    if (datePrelev.equals("")) {
    erreursAppel.add("Le champ [datePrelev] n'a pas �t� rempli");
    if (!numFinFiche.matches("^\\s*\\d+\\s*$")) {
    erreursAppel.add("Le champ [numFinFiche] est erron�");
    // des erreurs dans les param�tres ?
    if (erreursAppel.size() != 0) {
    // on envoie la page d'erreurs
    request.setAttribute("erreurs", erreursAppel);
    request.setAttribute("lienRetourFormulaire", (String) params.get("lienRetourFormulaire"));
    getServletContext().getRequestDispatcher(urlErreurs).forward(
    request, response);
    return;
    // les param�tres sont corrects - on envoie la page r�ponse
    request.setAttribute("nomCentre",nomCentre);
    request.setAttribute("idCentre",idCentre);
    request.setAttribute("nomPreleveur",nomPreleveur);
    request.setAttribute("datePrelev",datePrelev);
    request.setAttribute("numFinFiche",numFinFiche);
              request.setAttribute("lienRetourFormulaire", (String) params.get("lienRetourFormulaire"));
    getServletContext().getRequestDispatcher((String) params.get("urlReponse")).forward(request,
    response);
    return;
    //enregistre dans la base de donn�e les variables
    void doEnregistrementFormulaire(HttpServletRequest request, HttpServletResponse response) throws
    ServletException, IOException {
         String nomCentre = (String) request.getParameter("nomCentre");
    String idCentre = (String) request.getParameter("idCentre");
    String nomPreleveur = (String) request.getParameter("nomPreleveur");
    String datePrelev = (String) request.getParameter("datePrelev");
    String numFinFiche = (String) request.getParameter("numFinFiche");
         String nEtude = datePrelev + "." + idCentre + "." + numFinFiche;
    //      qu'on m�morise dans la session
    HttpSession session = request.getSession(true);
    session.setAttribute("nomCentre", nomCentre);
    session.setAttribute("idCentre", idCentre);
    session.setAttribute("nomPreleveur", nomPreleveur);
    session.setAttribute("datePrelev", datePrelev);
    session.setAttribute("numFinFiche", numFinFiche);
         Connexion com = new Connexion();
              try{     
                   //serveur,login,pwd,database
                   com.loadDriverAndConnect("127.0.0.1","3306","root","root","");
                   com.execute("USE BIOTECH");
                   com.execute("INSERT INTO RECAP (NEtude,NomCentre,idCentre,nomPreleveur,datePrelev) " +
                             "values ('"+nEtude+"','"+nomCentre+"','"+idCentre+"','"+nomPreleveur+"','"+ datePrelev + "')") ;
                   com.close();                              
              catch(Exception ex) {
                   System.err.println("\n*** SQLException caught in main()");     
              request.setAttribute("urlAction", (String) params.get("urlControleur"));
              getServletContext().getRequestDispatcher((String) params.get("urlReponse")).forward(request,
    response);
              return;      
    // affichage formulaire pr�-rempli
    void doRetourFormulaire(HttpServletRequest request, HttpServletResponse response) throws
    ServletException, IOException {
    // on r�cup�re la session de l'utilisateur
    HttpSession session = request.getSession(true);
    // on pr�pare le mod�le du formulaire
    // nom pr�sent dans la session ?
    String nomCentre = (String) session.getAttribute("nomCentre");
    if (nomCentre == null) {
    session.setAttribute("nomCentre", "");
    String idCentre = (String) session.getAttribute("idCentre");
    if (idCentre == null) {
    session.setAttribute("idCentre", "");
    String nomPreleveur = (String) session.getAttribute("nomPreleveur");
    if (nomPreleveur == null) {
    session.setAttribute("nomPreleveur", "");
    String datePrelev = (String) session.getAttribute("datePrelev");
    if (datePrelev == null) {
    session.setAttribute("datePrelev", "");
    String numFinFiche = (String) session.getAttribute("numFinFiche");
    if (numFinFiche == null) {
    session.setAttribute("numFinFiche", "");
    // urlAction
    request.setAttribute("urlAction", (String) params.get("urlControleur"));
    // on affiche le formulaire
    getServletContext().getRequestDispatcher((String) params.get("urlFormulaire")).forward(
    request, response);
    return;
    // post
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException {
    // on passe la main au GET
    doGet(request, response);
    my initial form:%
    // on r�cup�re les param�tres dans la session
         String nomCentre=(String)session.getAttribute("nomCentre");
         String idCentre= (String)session.getAttribute("idCentre");                    
         String nomPreleveur = (String)session.getAttribute("nomPreleveur");     
         String datePrelev=(String)session.getAttribute("datePrelev");          
         String numFinFiche=(String)session.getAttribute("numFinFiche");          
         String urlAction=(String)request.getAttribute("urlAction");
    %>
    <html>
    <head>
    <title>Fiche r&eacute;pitulative - formulaire</title>
    </head>
    <body>
    <center>
         <img src="logoBiotech.jpg" align="left" alt="logo Biotech-Germande" width="5%"></img>
    <h2>Fiche r&eacute;pitulative - formulaire</h2>
         <br>
    <hr>
    <form action="<%= urlAction %>" method="post">
    [... page setting: made by html language ...]
    <td><input type="submit" name="action" value="validationFormulaire"></td>
    <td><input type="reset" value="R&eacute;tablir"></td>
    </tr>
    </table>
    </form>
    </center>
    </body>
    </html>
    my response page:<%
    // on r�cup�re les donn�es
         String nomCentre=(String)session.getAttribute("nomCentre");
         String idCentre= (String)session.getAttribute("idCentre");                    
         String nomPreleveur = (String)session.getAttribute("nomPreleveur");     
         String datePrelev=(String)session.getAttribute("datePrelev");          
         String numFinFiche=(String)session.getAttribute("numFinFiche");     
         String urlAction=(String)request.getAttribute("urlAction");
    %>
    <html>
    <head>
    <title>Fiche r&eacute;pitulative - formulaire</title>
    </head>
    <body>
    <form action="<%= urlAction %>" method="post">
    [... page setting: made by html language ...]
    <br><br>
                   <td><input type="submit" name="action" value="enregistrementFormulaire"></td>
                   <td><input type="submit" name="action" value="retourFormulaire"></td>
    </body>
    </html>
    my web.xml:<!-- Servlets -->
    <!--Servlet Fiche Recapitulative-->
    <servlet>
    <servlet-name>FicheRecap</servlet-name>
    <servlet-class>germande.ServletRecap</servlet-class>
    <init-param>
    <param-name>urlReponse</param-name>
    <param-value>/WEB-INF/JSP/Recap/reponseRecap.biotech.jsp</param-value>
    </init-param>
    <init-param>
    <param-name>urlErreurs</param-name>
    <param-value>/erreursRecap.biotech.jsp</param-value>
    </init-param>
    <init-param>
    <param-name>urlFormulaire</param-name>
    <param-value>/WEB-INF/JSP/Recap/formulaireRecap.biotech.jsp</param-value>
    </init-param>
    <init-param>
    <param-name>urlControleur</param-name>
    <param-value>ServletRecap</param-value>
    </init-param>
    <init-param>
    <param-name>lienRetourFormulaire</param-name>
    <param-value>Retour au formulaire</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>FicheRecap</servlet-name>
    <url-pattern>/ServletRecap</url-pattern>
    </servlet-mapping>
    </web-apps>
    Thanks in advance for your idea.
    I resume : how can I call a method in my servlet into my response page (in jsp).
    the servlet generate this response page and i just want to update the choice of my user.
    Thanks !!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I resume : how can I call a method in my servlet into my response page (in jsp).Don't do that. Put the message into a plain old Java class which can be called from both the servlet and the JSP.

  • Opening the OAF page in New Window on the responsibility list page

    Hi Gurus,
    I have a requirement where in I need to open the page on a new window.
    I have created the page,and attached the function to the menu,and attached the menu to a responsibility.
    When a user clicks on the responsibility it shows a list of fuctions available with the appropriate prompt.
    My recquirement is to open the page in a new window when a user clicks a function on the responsibility page.
    Is it possible to do so?If yes how?If not any document supporting this limitation.
    Any help would be highly appreciated.
    Regards
    Srikanth

    Hi Srikanth,
    This is not possible. However you can open the second page in the flow in a new window by setting Target Frame property to _blank.
    Anoop

  • I had all my software, including my 'Adobe Creative Suite 4 Design Premium' removed from my MacPro (OSX 10.10.2) by a Computer technician after I had inadvertently installed some malware. Now I can't reinstall my CS4 because the installer software wants m

    I had all my software, including my ‘Adobe Creative Suite 4 Design Premium’ removed from my MacPro (OSX 10.10.2) by a Computer technician after I had inadvertently installed some malware.
    Now I can’t reinstall my CS4 because the installer software wants me to identify the product from which I am upgrading, but mine isn’t on the list. The old product from which I am upgrading is called ‘Adobe Design Collection’. Furthermore, it has 4 serial numbers (one each for Photoshop, InDesign, Acrobat and Illustrator), not just one, as the installer requires.
    I know this can be done, as I have had it working for a long time. Am I doing something wrong now?

    Contact support be web chat and have them generate a working temporary serial/ challenge code for the install.
    Mylenium

  • Problem with logout in servlet After logging out i need to expire the pages

    I have a problem in logout using servlet.
    I introduced sessions in my page and while logout i used
    session.removeAttribute("name");
    session.removeAttribute("password");
    res.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
         res.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
         res.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
    String user=(String)session.getAttribute("name");
              System.out.println(user);
              if(user==null)
                   System.out.println("hi");
                   req.setAttribute("Error", "Session has ended. Please login.");
                   res.sendRedirect("http://localhost:8080/homepage.html");
    and after i logout im redirected to login page but after clicking back button im getting back to restricted pages(the pages b4 logout).
    what should i do?????

    Thanks Dear BalusC,
    I tried with this,
    rs.getString("DATA_SCAD1")// where the source from .xls files
    String pattern = "yyyy-MM-dd";
    SimpleDateFormat format = new SimpleDateFormat(pattern);
    try {
    Date date = format.parse("DATA_SCAD1");
    System.out.println(date);
    } catch (ParseException e) {
    e.printStackTrace();
    System.out.println(format.format(new Date()));
    this out put gives me Tue Apr 03 00:00:00 IST 2007
    But I want to display the date format in yyyy-mm-dd.
    regards,
    maza

  • My macbook pro is stuck on grey screen with apple symbol in center with the progress circle under it continusly spinning. After I had turned it on. Prior to turning it on I had to force close and shut down a few hours prior. Please Help?

    My macbook pro is stuck on grey screen with apple symbol in center with the progress circle under it continusly spinning. After I had turned it on. Prior to turning it on I had to force close and shut down a few hours prior. Please Help I have tried everything I know to do

    Unfortunately this means that there is a problem in the boot sector of your hard drive. It might be indicative of a fundamental corruption in the coding that allows your computer to boot your operating system from your hard drive. I had this problem twice and it resulted in me having to get a new hard drive and restore my data.
    In other words, your computer can't talk to your operating system so you can't access your data.
    Here is my advice: DON'T CALL APPLE TECH SUPPORT though they are kind and usually helpful it will take you an hour just to explain the situation and they will only tell you to do what I'm gonna say here.
    First: Shut down your computer completely
    Two: boot up while holding down the following keys: command, option, p, and r. The computer will reboot 3 times. This solution will likely fail so if you're frustrated skip to the next step.
    Three: Boot up while holding down the option key. Select recovery drive. Select your default language. Select disk utility, click on Macintosh HD, and select "verify and repair volume." Likely the verification will produce some line like "unused node not erased." Or something like that. If anything using the words "node structure" comes up, you need a new hard drive.
    If after verification and repairs you still can't boot I sincerely hope you have apple care because you will need a new hard drive. Set up an appointment to come in to the apple store, they will tell you to go and get data recovery, just ask them to give you the old hard drive. Unless you have an up to date backup in which case you can just restore from that. If you're lucky the only issue is with the boot sector which means that if you ask them to give you the old hard drive, you can buy an enclosure and you have effectively been given a free external hard drive. It still works to store data just not to load an operating system.
    If you have a back up drive bring it to the apple store and they'll do the whole thing right there, it should take around an hour and a half but may take longer.
    Hope this helps, it's annoying but it's your safest bet.
    All the best.

  • I am trying to re-install Creative Suite 5.5 Design Standard on my Widows 7 Professional computer after I had to replace the hard drive. I keep getting error message and I get "Exit Code 15: Media DB Sync failed". I have run C Cleaner with same results. H

    I am trying to re-install Creative Suite 5.5 Design Standard on my Widows 7 Professional computer after I had to replace the hard drive. I keep getting error message and I get "Exit Code 15: Media DB Sync failed". I have run C Cleaner with same results. Have Disabled UAC and Startup items and Services with no success. Please help - frustrated to no end. Can someone help me?

    make sure you're using the adobe cleaner, not crap cleaner, Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    copy the installation files to a desktop folder and install from there.

  • I have Adobe Acrobat 9 Standard on both of my computers.  Some time ago, one crashed my computer and I had to reinstall the operating system and all applications.  After I had installed once Acrobat 9 Sdt in the computer, I wanted to update the software v

    I have Adobe Acrobat 9 Standard on both of my computers.
    Some time ago, one crashed my computer and I had to reinstall the operating system and all applications.
    After I had installed once Acrobat 9 Sdt in the computer, I wanted to update the software version 9.0.0 update to the same level as it was before the crash and that the other computer has version named 9.5.5.
    The system for update from version 9.0.0 does not work at all. "There are no updates" listed in the dialog.
    Can you advise how I get my Adobo Acrobat 9 Standard (Version 9.0.0) could be updated to the same level as the computer had before the crash.

    ftp://ftp.adobe.com/pub/adobe/acrobat/win/9.x/

  • After I've generated a DVD the video is inversed

    I've made all the footage and previewed it and all was ok. After I've generated the DVD, when I took a look of the final render, the video plays upside down. If I take a look to the project again, It showing me the video upside down too... I've made a second try and the same thing happens. Why it turns my video and puts it upside down?

    I'm not sure (use the
    Encore SEARCH Page
    ) but I think I've read that as being one symptom of having a DivX codec even INSTALLED on a computer

  • After receiving a Generator error and prompt to restart. I restarted Photoshop and the app disappeared off my computer. How do I get it back. The cloud widget says it is all up to date?

    After receiving a Generator error and prompt to restart. I restarted Photoshop and the app disappeared off my computer. How do I get it back. The cloud widget says it is all up to date?

    CC desktop lists applications as "Up to Date" when they are not
    -http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html

  • My iCloud has been 'upgrading' for the last 12 hrs. That is, after I had pressed 'install after downloading the latest, improved version without entering my password. How do I get back to the window that will allow me to enter my password?

    My iPad has been 'upgrading' for the last 12hrs.That is, after I had downloaded the new version of iCloud, and pressed 'Install' without entering my password. It is probably searching for it. How do I go back to the window that will allow me to enter my password. I have tried switching off the device, but each time the 'upgrading' comes on. I have also switched it off and left it on the charger for at least 6 hrs.

    My iPad has been 'upgrading' for the last 12hrs.That is, after I had downloaded the new version of iCloud, and pressed 'Install' without entering my password. It is probably searching for it. How do I go back to the window that will allow me to enter my password. I have tried switching off the device, but each time the 'upgrading' comes on. I have also switched it off and left it on the charger for at least 6 hrs.

  • After I had to reformat my computer I lost all the songs from my library.

    After I had to reformat my hard drive I lost all of the songs from my library. All of the cds that I had loaded to my computer previously were also wiped clean. I had of course put them on my ipod so I was wondering if there was a way I could get all of that music back onto my computer.

    Using iTunes your iTunes Music Store songs can be transferred back to computer. For other songs you have to use another program. Many are available online or in some stores.

  • TS2529 I backed up my Ipone 4s through itunes. however when after I had to restore it to factory settings i then proceeded to restore the backed up files and found that it didn't restore any of my music or apps! is there a way i can get all this back?

    I backed up my Ipone 4s through itunes. however when after I had to restore it to factory settings i then proceeded to restore the backed up files and found that it didn't restore any of my music or apps! is there a way i can get all this back?

    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Synced media like apps and music are not included in the backup that iTunes makes.

  • My husband was helping our daughter set up an apple id.  She entered her e-mail address incorrectly, but didn't realize it until AFTER they had entered a credit card number.  How can we cancel the incorrect e-mail address account?

    My husband was helping our daughter set up an apple id.  She entered her e-mail address incorrectly, but didnt realize it until AFTER they had entered a credit card number.  How can we cancel the account with the wrong e-mail address?

    iMac model?
    Mac OS version?
    Both can be viewed fby doing "About this Mac" from the Apple menu at the left end of the menubar. The OS version will be pretty obvious; posting what the window says about your processor will help us figure out what model.
    I ask becasue about 60 percent of the posts here are about newer models than the pre-2006 iMacs this forum serves.
    Not your fault if you found the wrong forum--Apple's labeling is as clear as mud!

  • My iPhone 4 is unable to backup after I had the IOS upgraded to 4.3.5 ver. In iTunes, backup progress shown in initial progress even leaving it on overnight. What shd be done to normalize the backup process? SOS

    My iPhone 4 is unable to backup after I had the IOS upgraded to 4.3.5 ver. In iTunes, backup progress shown in initial progress even leaving it on overnight. What shd be done to normalize the backup process?
    iTunes for my PC was also updated to the latest.
    .... SOS

    You should be importing all pics taken with the iphone to your computer regularly as you would with any digital camera, particularly before any update or restore.
    You should also be syncing your contacts to your computer regularly.  They hsould be in whatever program/service that you have selected to sync.
    If you have failed to do this, then they are very likely gone.
    You can try restoring from backup.

Maybe you are looking for

  • HT204053 How do you change the apple ID that is set for iCloud?

    My iCloud is set up to my families email instead of mine. It's asking for their password. Can I change the account to be my apple id?

  • STOP 0x0000007B after IDE mode on SATA 1.5 HDD / Endless Boot Time

    Lenovo IdeaCentre K410 - Windows 7 Home Premium 64-bit - ST31000524AS 1 TB Added by me: - Maxtor 6Y120M0 100 GB (Diamondmax Plus 9 SATA 1.5 Gb/s) Alternate boot methods attempted: - (DVD) Lenovo OneKey 7.0 Recovery - (DVD) Windows 7 Home Premium 64-b

  • Cinema Display or iMac

    I need a larger screen than the 15.4" of my MacBook Pro. I am torn between a 23" Cinema Display (or even a 30") and an iMac 24" which I would use as a larger display for my MacBook Pro. 1. Is the 30" Cinema Display overkill for a normal-size desktop

  • Looking for a developer to develop a custom video pod for me

    Hello, I would like to contract out the development of a special video pod for Adobe Connect 8...if you're interested in finding out more please email me at [email protected] look forward to hearing from you. Peter Hill Vice President of Research & I

  • How to change "Edit In" behavior

    I have Photoshop CC installed in the Applications folder of my startup drive, as normal.  I also have a backup drive online which backs up the startup drive each evening.  LR 5.5 insists on using PS from the backup drive for editing, instead of the c