RadioButton + JSP

I am doing an project named an online exam.
I have various questions say about 10 questions.And there are 4 radiobutton are given as option.In the next page I want to retrive the answers clicked by the user for each of the question.I am getting the values from the database ie, the questions and answers(the options)
The code for the first page
<%@ page language="java"%><%@ page import="java.sql.*,java.io.*,java.util.*,javax.servlet.*"%>
<%@ include file="dbconnection.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<script language="javascript">
function insertproduct()
window.location="dbquestion.jsp";
</script>
</head>
<%!
String qid,ans1,ans2,ans3,ans4;
%>
<body>
<%
String id=request.getParameter("id");
String str="select * from qa_bank where TOPIC_ID='"+id+"'";
PreparedStatement ps=con.prepareStatement(str);
ResultSet rs=ps.executeQuery();
%>
<p> </p>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<%
while(rs.next())
qid=rs.getString(1);
ans1=rs.getString("ANSWER1");
ans2=rs.getString("ANSWER2");
ans3=rs.getString("ANSWER3");
ans4=rs.getString("ANSWER4");
%>
<form name="frm">
<tr>
<td width="100%"><%=rs.getString("QUESTION")%> </td>
</tr>
<td width="100%">
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<td width="50%"><input type="radio" value="<%=ans1%>" name="R1"><%=rs.getString("ANSWER1")%></td>
<td width="50%"><input type="radio" value="<%=ans2%>" name="R1"><%=rs.getString("ANSWER2")%></td>
</tr>
<tr>
<td width="50%"><input type="radio" value="<%=ans3%>" name="R1"><%=rs.getString("ANSWER3")%></td>
<td width="50%"><input type="radio" value="<%=ans4%>" name="R1"><%=rs.getString("ANSWER4")%></td>
</tr>
<tr>
<td width="50%"> </td>
<td width="50%"> </td>
</tr>
</table>
</form>
<%}%>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<p> </p>
<td><p align="center">SUBMIT</p>
</td>
</tr>
</body>
</html>
Could anybody help me in giving the code for next page,ie to get the values clicked by user for each questions.
My mail id is [email protected]
I expect response from all as early as possible.
Thank u

No one's going to mail you, you might as well make the effort to visit the forums after we make the effort to answer you :D
You've already used request.getParameter() and so I guess you know what that does.
That's your solution, getParameter("R1"). Figure out the rest, it's easy.

Similar Messages

  • Urgent Please help RadioButton + Jsp

    I am doing an project named an online exam.
    I have various questions say about 10 questions.And there are 4 radiobutton are given as option.In the next page I want to retrive the answers clicked by the user for each of the question.I am getting the values from the database ie, the questions and answers(the options)
    The code for the first page
    <%@ page language="java"%><%@ page import="java.sql.*,java.io.*,java.util.*,javax.servlet.*"%>
    <%@ include file="dbconnection.jsp"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 1</title>
    <script language="javascript">
    function insertproduct()
    window.location="dbquestion.jsp";
    </script>
    </head>
    <%!
    String qid,ans1,ans2,ans3,ans4;
    %>
    <body>
    <%
    String id=request.getParameter("id");
    String str="select * from qa_bank where TOPIC_ID='"+id+"'";
    PreparedStatement ps=con.prepareStatement(str);
    ResultSet rs=ps.executeQuery();
    %>
    <p> </p>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
    <%
    while(rs.next())
    qid=rs.getString(1);
    ans1=rs.getString("ANSWER1");
    ans2=rs.getString("ANSWER2");
    ans3=rs.getString("ANSWER3");
    ans4=rs.getString("ANSWER4");
    %>
    <form name="frm">
    <tr>
    <td width="100%"><%=rs.getString("QUESTION")%> </td>
    </tr>
    <td width="100%">
    </td>
    </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
    <tr>
    <td width="50%"><input type="radio" value="<%=ans1%>" name="R1"><%=rs.getString("ANSWER1")%></td>
    <td width="50%"><input type="radio" value="<%=ans2%>" name="R1"><%=rs.getString("ANSWER2")%></td>
    </tr>
    <tr>
    <td width="50%"><input type="radio" value="<%=ans3%>" name="R1"><%=rs.getString("ANSWER3")%></td>
    <td width="50%"><input type="radio" value="<%=ans4%>" name="R1"><%=rs.getString("ANSWER4")%></td>
    </tr>
    <tr>
    <td width="50%"> </td>
    <td width="50%"> </td>
    </tr>
    </table>
    </form>
    <%}%>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
    <tr>
    <p> </p>
    <td><p align="center">SUBMIT</p>
    </td>
    </tr>
    </body>
    </html>
    Could anybody help me in giving the code for next page,ie to get the values clicked by user for each questions.
    My mail id is [email protected]
    I expect response from all as early as possible.
    Thank u

    Hi,
    You are using name id
    String id=request.getParameter("id");
    ,but in your code actual name is R1
    "><input type="radio" value="<%=ans1%>" name="R1"><%=rs.getString("ANSWER1")%></td>

  • Jsp:include static svg does not work

    I am running tomcat4- and I have a jsp file that outputs svg content like so:
    <?xml version="1.0" encoding="US-ASCII"?>
    <%@ page contentType="image/svg+xml"%>
    This works fine- the problem is that up until now I have included other svg widgets like this:
    <g id="radio_off" >
                   <%@ include file="../graphics/radioButton.svg" %>
              </g>
    which also works just fine. Now, I have to change this to pass in a dynamic directory containing the image (there will be various directories with same file name- I determine at runtime which directory to use)- so I have to use a jsp:include instead.
    When I do this:
    <g id="radio_off" >
    <jsp:include page="graphics/radioButton.svg" flush="true"/>
              </g>
    When it is run I just get:
    g id="radio_off" >
              </g>
    Just blank inside the <g> . If I change radioButton.svg to radioButton.jsp and say:
    g id="radio_off" >
    <jsp:include page="graphics/radioButton.jsp" flush="true"/>
              </g>
    Then I get what I expect with
    g id="radio_off" >
    <svg width="15" height="15">
    ....and so on
              </g>
    I thought jsp:include would include the static content of a file (like html or svg), but apparently only the OUTPUT of that file.....
    Is this correct- I cannot get my svg content to be included in the svg by using jsp:include or am I missing something?
    I think it will be strange that I have to rename all my svg files jsp to get them included...Anu ideas???
    Thanks,
    Jim

    Michael,
    You are right- I reread your post more closely and saw that you are suggesting to basically just map all my static files (like the .svg) into .jsp extensions- which is basically what I was asking was true- that for svg, xml, htm, any static content to be included as in the <%@include directive but using the action <jsp:include it needs to either be changed to the extension .jsp or, as you suggested, mapped in the web.xml to .jsp. I have remapped my svg to .jsp so as to preserve their .svg extensions- (of course now the first user is hit by about 20 jsp:init's on that page!!- but is then cached as in all jsp's).
    I guess kinda makes since since the include action gets the actual response from the page (which is blank image)- but as jsp it is the actual code....Well needed confirmation- and that's what I got along with the reminder to use the mapping in web.xml.
    So thanks alot- even put extra duke in for you !!
    Jim

  • How to add or remove data from one table to another in � jsp page

    I have two tables on my jsp page.
    On the fist table feed by a data base, u have in the first column radiobutton
    second colum data
    third columm data
    on the second table feed by the data of the first table, u have in the first
    columm checkbox
    second colum data
    this column data
    u have two link, one link to add and another to remove
    1 when u click one of the radiobutton of the fist table following by the click of the link add, u add the line into the second table.
    2 when u click on one or two checkboxes of the second table following by a click on the link remove, u remove the line or lines checked.
    Did somebody could send to me en example of code and give to me solution on way to make it. thank u.

    rather than sending you the whole code, i would like
    to see your code first, how far you implemented the
    code ? and where are you getting problem, asking the
    code like this is not a professional.
    All the Best !******************************************************************************************************************************
    that's what i have implements. U have a bean witch picked data in that the data base, and catch properties .
    i describe to u how work the page.
    when u chose or selected TypeDetoyer, it present to u the first table with all the toyer contains in the typeDeToyer, and presents the second table empty.
    Secondly, u click a radio button to select � toyer of typeDeToyer and by clicking to the link ada, u feed the second table with the toyer selected.
    the seconde table is fill with a checkbox.
    inverse, when u check a check box or many of the second table and clicking on the link remove, u remove the selected lines.
    the aim of all of this is to save in the data base
    the second table, after saving the page is redirect to the modifying form.
    I am waiting for ur answer.
    Coul u send to me how u implements the part beetween the two tables
    Thank s
    <%@ page language="java" import="java.util.*"%>
    <jsp:useBean id="nsimalenBean" scope="session" class="nsimalen.NsimalenBean" />
    <jsp:useBean id="toyerBean" scope="session" class="nsimalen.ToyerBean" />
    <jsp:useBean id="vectorLstTasks" scope="session" class="java.util.Vector" />
    <jsp:useBean id="hashtableToyerSelected" scope="session" class="java.util.Hashtable"/>
    <jsp:useBean id="hashtableRegimeFiscalToyers" scope="session" class="java.util.Hashtable"/>
    <%
    //nsimalen.NsimalenBean nsimalenBean=nsimalenBean();
    ///vectorLstTasks.removeElementAt(i);
    String cVide="";
    String typeOperation;
    String monCodeNsimalen;
    //String monCodeNsimalen=request.getParameter("txtCreateNsimalenFormCode");
    String monNomNsimalen;
    String maVilleNsimalen;
    String monPaysNsimalen;
    String monTypeDetoyerSelected;
    String codeToyerSelected;
    String codeToyerSelectedToAdd;
    String codeToyerSelectedToRemove;
    String currentlibelleTypeDetoyer=cVide;
    String typeAction;
    /// d�finition de variable dont les valeurs seront stock�es dans l'objet de session
    if(request.getParameter("txtCreateNsimalenFormCode")!=null)
    monCodeNsimalen=request.getParameter("txtCreateNsimalenFormCode");
    else
    monCodeNsimalen=cVide;
    if(request.getParameter("txtCreateNsimalenFormNom")!=null)
    monNomNsimalen=request.getParameter("txtCreateNsimalenFormNom");
    else
    monNomNsimalen=cVide;
    if(request.getParameter("txtCreateNsimalenFormVille")!=null)
    maVilleNsimalen=request.getParameter("txtCreateNsimalenFormVille");
    else
    maVilleNsimalen=cVide;
    if(request.getParameter("selCreateNsimalenFormPays")!=null)
    monPaysNsimalen=request.getParameter("selCreateNsimalenFormPays");
    else
    monPaysNsimalen=cVide;
    if(request.getParameter("optCreateNsimalenFormTypeToyer")!=null)
    {monTypeDetoyerSelected=request.getParameter("optCreateNsimalenFormTypeToyer");
    currentlibelleTypeDetoyer=toyerBean.getLibelleTypedeToyer(monTypeDetoyerSelected);
    else
    monTypeDetoyerSelected=cVide;
    if(request.getParameter("radioCreateNsimalenFormCodeToyers")!=null)
    codeToyerSelectedToAdd=request.getParameter("radioCreateNsimalenFormCodeToyers");
    else
    codeToyerSelectedToAdd=cVide;
    if(request.getParameter("radioCreateNsimalenFormCodeToyersRemove")!=null)
    codeToyerSelectedToRemove=request.getParameter("radioCreateNsimalenFormCodeToyersRemove");
    else
    codeToyerSelectedToRemove=cVide;
    if(request.getParameter("typeOperation")!=null)
    typeOperation=request.getParameter("typeOperation");
    else
    typeOperation=cVide;
    if(request.getParameter("typeAction")!=null)
    typeAction=request.getParameter("typeAction");
    else
    typeAction=cVide;
    // Stockage des valeurs dans l'objet
    nsimalenBean.setCodePays(monPaysNsimalen);
    nsimalenBean.setNomNsimalen(monNomNsimalen);
    nsimalenBean.setVilleNsimalen(maVilleNsimalen);
    nsimalenBean.setCodeNsimalen(monCodeNsimalen);
    nsimalenBean.setDateCreation("12/12/2001");
    // if typeOperation=Invalidation
    // nsimalenBean.setDatad'invalidation
    if(typeAction.equals("Save"))
    nsimalenBean.validationCreation();
    Vector validationErrors= nsimalenBean.getChampVide();
    %>
    <body>
    <%
    if (validationErrors!=null && validationErrors.size()!=0 )
    for (int i=0; i<validationErrors.size();i++)
    %>
    <BR> Champs Invalides : <%=(String)validationErrors.elementAt(i)%>; <BR>
    <%
    else
    if (hashtableToyerSelected!=null && hashtableToyerSelected.size()<=10)
    nsimalenBean.insertRowNsimalen();
    nsimalenBean.insertRowsToyersAssocieesNsimalen(hashtableToyerSelected);
    if (hashtableToyerSelected!=null && hashtableToyerSelected.size()>=0)
    %>
    <BR> num Toyers max 10 <BR>
    <%
    if (hashtableToyerSelected!=null && hashtableToyerSelected.size()==0)
    %>
    <BR> vous devez au moins selectionner une toyer pour un nsimalen <BR>
    <%
    %>
    <form method="post" name="CreateNsimalenForm" action="CreateNsimalen.jsp">
              <table cool width="681" height="424" usegridx usegridy showgridx showgridy gridx="16" gridy="16" border="0" cellpadding="0" cellspacing="0">
                   <tr height="16">
                        <td width="16" height="423" rowspan="11"></td>
                        <td width="288" height="16" colspan="3"></td>
                        <td width="376" height="144" colspan="3" rowspan="5"></td>
                        <td width="1" height="16"><spacer type="block" width="1" height="16"></td>
                   </tr>
                   <tr height="32">
                        <td width="100" height="32" valign="top" align="left" xpos="16"><label><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><b>Code :</b></font></label></td>
                        <td width="188" height="32" colspan="2" valign="top" align="left" xpos="116"><input type="text" name="txtCreateNsimalenFormCode" size="24" value='<%=nsimalenBean.getCodeNsimalen()%>'></td>
                        <td width="1" height="32"><spacer type="block" width="1" height="32"></td>
                   </tr>
                   <tr height="32">
                        <td width="100" height="32" valign="top" align="left" xpos="16"><label><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b>Nom :</b></font></label></td>
                        <td width="188" height="32" colspan="2" valign="top" align="left" xpos="116"><input type="text" name="txtCreateNsimalenFormNom" size="24" value='<%=nsimalenBean.getNomNsimalen()%>'></td>
                        <td width="1" height="32"><spacer type="block" width="1" height="32"></td>
                   </tr>
    <input type="hidden" name="typeOperation" size="24" >
    <input type="hidden" name="typeAction" size="24" >
                   <tr height="32">
                        <td width="100" height="32" valign="top" align="left" xpos="16"><label><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b>Ville :</b></font></label></td>
                        <td width="188" height="32" colspan="2" valign="top" align="left" xpos="116"><input type="text" name="txtCreateNsimalenFormVille" size="24" value='<%=nsimalenBean.getNomVille()%>'></td>
                        <td width="1" height="32"><spacer type="block" width="1" height="32"></td>
                   </tr>
                   <tr height="32">
                        <td width="100" height="32" valign="top" align="left" xpos="16"><label><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b>Pays : </b></font></label></td>
                        <td width="188" height="32" colspan="2" valign="top" align="left" xpos="116"><select name="selCreateNsimalenFormPays" size="1">
    <option value="" ><b><font size="2" name="optCreateNsimalenFormPays"></font></b></option>
    <%
    //String cVide="";
    Vector nsimalenLst = new Vector();
    //strNomNsimalen=request.getParameter("txtSearchFormNom").trim();
    nsimalenLst = nsimalenBean.getAllPays();
    // Pour savoir la taille du vecteur
    if(nsimalenLst!=null && nsimalenLst.size()!=0)
    for(int i=0;i< nsimalenLst.size();i++)
    Hashtable myrecord = (Hashtable)nsimalenLst.elementAt(i);
    String monCodePays ="";
    String monLibelle="";
    monCodePays =(String)myrecord.get("NNAM_CODE");
    monLibelle =(String)myrecord.get("NNAM_LIBELLE");
    System.out.println("mon code pays= "+monCodePays+"i="+i+ " mon Libelle Pays="+monLibelle+"nsimalenLst.size() ="+nsimalenLst.size());
    %>
    <option value='<%=monCodePays%>' <%if(monCodePays.equals(monPaysNsimalen))
    out.print("selected");%> ><b><font name="optCreateNsimalenFormPays" size="2"><%=monCodePays%></font></b></option>
                             <%}
    %>
    </select></td>
                        <td width="1" height="32"><spacer type="block" width="1" height="32"></td>
                   </tr>
                   <tr height="16">
                        <td width="664" height="16" colspan="6" valign="top" align="left" xpos="16">
                             <hr width="644" size="2">
                        </td>
                        <td width="1" height="16"><spacer type="block" width="1" height="16"></td>
                   </tr>
                   <tr height="32">
                        <td width="100" height="32" valign="top" align="left" xpos="16"><label><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b>Type de toyer :</b></font></label></td>
                        <td width="32" height="32"></td>
                        <td width="156" height="32" valign="top" align="left" xpos="148"><select name="optCreateNsimalenFormTypeToyer" size="1" onChange="javascript:document.CreateNsimalenForm.submit();">
    <option value="" ><b><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></b></option>
    <%
    //String cVide="";
    Vector toyerLst = new Vector();
    //strNomNsimalen=request.getParameter("txtSearchFormNom").trim();
    toyerLst = toyerBean.getAllTypeDeToyers();
    // Pour savoir la taille du vecteur
    if(toyerLst!=null && toyerLst.size()!=0)
    hashtableRegimeFiscalToyers = new Hashtable();
    for(int i=0;i< toyerLst.size();i++)
    Hashtable myrecord = (Hashtable)toyerLst.elementAt(i);
    String monTypeToyer ="";
    String monLibelleToyer="";
    monTypeToyer =(String)myrecord.get("TTOY_CODE");
    monLibelleToyer =(String)myrecord.get("TTOY_LIBELLE");
    // System.out.println("mon code pays= "+monTypeToyer+"i="+i+ " mon Libelle Pays="+monLibelleToyer+"nsimalenLst.size() ="+toyerLst.size());
    %>
    <option value=<%=monTypeToyer%> <%if(monTypeToyer.equals(monTypeDetoyerSelected))
    out.print("selected");%>><b><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><%=monLibelleToyer%></font></b></option>
                             <%}
    }%>
    </select></td>
                        <td width="376" height="32" colspan="3"></td>
                        <td width="1" height="32"><spacer type="block" width="1" height="32"></td>
                   </tr>
                   <tr height="128">
                        <td width="288" height="128" colspan="3" valign="top" align="left" xpos="16">
                             <%if (!monTypeDetoyerSelected.equals(cVide))
    //String cVide="";
    Vector maTypeToyerDetailList = new Vector();
    //strNomNsimalen=request.getParameter("txtSearchFormNom").trim();
    maTypeToyerDetailList = toyerBean.getToyersDetailsSelected(monTypeDetoyerSelected);
    // Pour savoir la taille du vecteur
    if(maTypeToyerDetailList!=null && maTypeToyerDetailList.size()!=0)
    %>
    <table border="1" cellpadding="0" cellspacing="0" width="224" height="75">
              <tr height="19">
                                       <td height="19" width="20"></td>
                                       <td height="19" width="46"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="3"><b>Toyer</b></font></td>
                                       <td height="19" width="140"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="3"><b>Libell�</b></font></td>
                                  </tr>
    <%
    {  hashtableRegimeFiscalToyers= new Hashtable();
    System.out.println( " je passe dans le premier for");
    for(int i=0;i< maTypeToyerDetailList.size();i++)
    Hashtable myRecord = (Hashtable)maTypeToyerDetailList.elementAt(i);
    System.out.println( " je passe dans le premier for 1");
    String myCodeToyer ="";
    String myLibelleToyer="";
    String myTypeDeToyerCode="";
    myCodeToyer =(String)myRecord.get("TOY_CODE");
    myLibelleToyer =(String)myRecord.get("TOY_LIBELLE");
    // myTypeDeToyerCode=(String)myRecord.get("TTOY_CODE");
    System.out.println( " je passe dans le premier for 2");
    Hashtable hashToyerCaracteristique = new Hashtable();
    hashToyerCaracteristique.put("TOY_LIBELLE",myLibelleToyer);
    hashToyerCaracteristique.put("TTOY_CODE",monTypeDetoyerSelected);
    hashToyerCaracteristique.put("TTOY_LIBELLE",currentlibelleTypeDetoyer);
    hashtableRegimeFiscalToyers.put(myCodeToyer,hashToyerCaracteristique);
    System.out.println( " je passe dans le premier for 3");
    %>
                                  <tr height="19">
                                       <td height="19" width="20" align="center" valign="middle"><input type="radio" value='<%=myCodeToyer%>' name="radioCreateNsimalenFormCodeToyers"></td>
                                       <td height="19" width="46"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b><%=myCodeToyer%></b></font></td>
                                       <td width="140" height="19"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b><%=myLibelleToyer%></b></font></td>
                                  </tr>
    <%
    %>
    <%}%>
    </table>
                        </td>
    <% System.out.println( " je passe dans le premier for 4_1");
    if (hashtableToyerSelected==null)
    hashtableToyerSelected = new Hashtable();
    System.out.println( " je passe dans le premier for 4_2");
    if(hashtableToyerSelected!=null)
    System.out.println( " je passe dans le premier for 4_3");
    %>
    <td width="376" height="128" colspan="3" valign="top" align="left" xpos="304">
                             <table border="1" cellpadding="0" cellspacing="0" width="355" height="117">
                                  <tr height="38">
                                       <td height="38" width="32"></td>
                                       <td width="47" height="38"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="3"><b>Code</b></font></td>
                                       <td height="38" width="112"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="3"><b>Type de toyer</b></font></td>
                                       <td height="38" width="152"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="3"><b>valeur par d�faut</b></font></td>
                                  </tr>
    <%
    System.out.println( " je passe dans le premier for 3");
    if(!codeToyerSelectedToAdd.equals(cVide) && typeOperation.equals("add"))
    System.out.println( " je passe dans le premier for 3_a");
    Hashtable hashToyerCaracteristique = (Hashtable)hashtableRegimeFiscalToyers.get(codeToyerSelectedToAdd);
    hashtableToyerSelected.put(codeToyerSelectedToAdd,hashToyerCaracteristique);
    System.out.println( " je passe dans le premier for 3_a_fin");
    if(!codeToyerSelectedToRemove.equals(cVide) && typeOperation.equals("remove"))
    System.out.println( " je passe dans le premier for 3_a");
    System.out.println( "remove ");
    System.out.println(codeToyerSelectedToRemove);
    hashtableToyerSelected.remove(codeToyerSelectedToRemove);
    if (hashtableToyerSelected.size()!=0)
    for( Enumeration e=hashtableToyerSelected.keys();e.hasMoreElements();)
    System.out.println("je rentre dans la boucle");
    String codeToyer =(String)e.nextElement();
    Hashtable hashToyerCaracteristique = (Hashtable)hashtableToyerSelected.get(codeToyer);
    String libelleToyer =(String)hashToyerCaracteristique.get("TOY_LIBELLE");
    String libelleTypeToyer =(String)hashToyerCaracteristique.get("TTOY_LIBELLE");
    %>
    <tr height="19">
                                       <td height="19" width="32" align="center" valign="middle"><input type="checkbox" value="<%=codeToyer%>" name="radioCreateNsimalenFormCodeToyersRemove"></td>
                                       <td width="47" height="19"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b><%=codeToyer %></b></font></td>
                                       <td height="19" width="112"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b><%=libelleTypeToyer %></b></font></td>
                                       <td height="19" width="152"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b><%=libelleToyer %></b></font></td>
    </tr>
    <%
    /* if (!codeToyerSelected.equals(cVide) && hashtableToyerSelected==null)
    hashtableToyerSelected = new Hashtable();
    if(hashtableToyerSelected!=null)
    //insertion du code HTml pour afficher l'entete du tableau
    if(operationType.equals("ajout"))
    Hahstable toyersdetails = getToyersDetail(IdToyerSelected);
    hashtableToyerSelected.put( IdToyerSelected, toyersdetails);
    if(operationType.equals("remove"))
    hashtableToyerSelected.remove(IdToyerSelected);
    // avant d'afficher l'entete verifier qu'il ya des elements dans hashtableToyerSelected (
    // hashtableToyerSelected.size!=0
    //Affichage de la hashtable
    for( Enumeration e=hashtableToyerSelected.keys();e.hasMoreElements;)
    String IdToyers =(String)e.nextElement();
    Hashtable ToyersDetails = (Hashtable) hashtableToyerSelected.get(IdToyers);
    string defaultValue = (String)ToyersDetails.get(defaultValue);
    // on fait la mise en page apres avoir recuperer tous les caracteristiques
    %>
                   <!--     <td width="376" height="128" colspan="3" valign="top" align="left" xpos="304">
                             <table border="1" cellpadding="0" cellspacing="0" width="355" height="117">
                                  <tr height="38">
                                       <td height="38" width="32"></td>
                                       <td width="47" height="38"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="3"><b>Code</b></font></td>
                                       <td height="38" width="112"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="3"><b>Type de toyer</b></font></td>
                                       <td height="38" width="152"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="3"><b>valeur par d&eacute;faut</b></font></td>
                                  </tr>
                                  <tr height="19">
                                       <td height="19" width="32" align="center" valign="middle"><input type="checkbox" value="checkboxValue" name="checkboxName"></td>
                                       <td width="47" height="19"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b>J</b></font></td>
                                       <td height="19" width="112"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b>Sp&eacute;cifique</b></font></td>
                                       <td height="19" width="152"><b><font size="3" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2">Nuit</font></b></td>
                                  </tr>
                                  <tr height="19">
                                       <td width="32" align="center" valign="middle" height="19"><input type="checkbox" value="checkboxValue" name="checkboxName"></td>
                                       <td width="47" height="19"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b>K</b></font></td>
                                       <td height="19" width="112"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b>Quantit&eacute;</b></font></td>
                                       <td height="19" width="152"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b>Kilo</b></font></td>
                                  </tr> -->
                             </table>
                        </td>
                        <td width="1" height="128"><spacer type="block" width="1" height="128"></td>
                   </tr>
                   <tr height="51">
                        <td width="100" height="51" valign="top" align="left" xpos="16"><label><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b>Add</b></font></label></td>
                        <td width="188" height="51" colspan="2"></td>
                        <td width="224" height="51" valign="top" align="left" xpos="304"><label><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b>Remove</b></font></label></td>
                        <td width="152" height="51" colspan="2"></td>
                        <td width="1" height="51"><spacer type="block" width="1" height="51"></td>
                   </tr>
                   <tr height="13">
                        <td width="664" height="13" colspan="6" valign="top" align="left" xpos="16">
                             <hr width="644" size="2">
                        </td>
                        <td width="1" height="13"><spacer type="block" width="1" height="13"></td>
                   </tr>
                   <tr height="39">
                        <td width="512" height="39" colspan="4"></td>
                        <td width="80" height="39" valign="top" align="left" xpos="528"><label><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b>Save</b></font></label></td>
                        <td width="72" height="39" valign="top" align="left" xpos="608"><label><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><b>Fermer</b></font></label></td>
                        <td width="1" height="39"><spacer type="block" width="1" height="39"></td>
                   </tr>
                   <tr height="1" cntrlrow>
                        <td width="16" height="1"><spacer type="block" width="16" height="1"></td>
                        <td width="100" height="1"><spacer type="block" width="100" height="1"></td>
                        <td width="32" height="1"><spacer type="block" width="32" height="1"></td>
                        <td width="156" height="1"><spacer type="block" width="156" height="1"></td>
                        <td width="224" height="1"><spacer type="block" width="224" height="1"></td>
                        <td width="80" height="1"><spacer type="block" width="80" height="1"></td>
                        <td width="72" height="1"><spacer type="block" width="72" height="1"></td>
                        <td width="1" height="1"></td>
                   </tr>
              </table>
              <p></p>
    </form>
    </body>
    </html>

  • Please Help(How to get RadioButtons in tree View)

    Hi.
    Sub/Requirement: How to implement RadioButtons in tree view with/without using xml file.
    I have a requirement like this i want to display RadioButton in tree view.
    I implemented tree same as which is given in sampleApplications.
    In this sampleApplications they implemted tree by using xml file.
    I also implemented tree by Generating xml file. In this xml file i get the values from the database. I am using <netui:tree > tag.
    Is it possible to implement tree without using xml file. I need to generate tree Dynamically.
    Please any one help me to come out with this solution.

    The issue here is while you are retrieving all the details, you are consistently overwriting them in the request.setAttribute() call before you get to the JSP to display them.
    Do you actually have a class/object called Student?
    That object should have attributes for classes, subjects, teachers (all of which are lists apparently)
    public class Student{
      String name;
      List classes;
      List subjects;
      List teachers;
      // appropriate getter/setter methods
    }Then you load each student, and populate its individual lists.
    That lets you pass the list of students, each student having its own lists for display.
    Hope this helps,
    evnafets

  • Problem in gui components methods  in jsp dynpage

    Hi all,
    i have created an application by using jspdyn page. in that apllication  i have created a button and label . i am not geting any methods for that label and button in jsp file. i am not gettin label_id. set text, button_id setWidth etc..  methods are not getting .please help me regaurding in this issue.
    from..
    RatnaKumar

    Hi ratna,
    write this code
    <hbj:content id="myContext" >
    <hbj:page title="PageTitle">
    <hbj:form id="myFormId" >
    222
    <hbj:radioButton id="RBGenderFemale" text="female" key="rb_fem" tooltip="I am female" disabled="false" />
    <hbj:radioButton id="RBGenderMale" text="male" key="rb_male" tooltip="I am male" disabled="false" />
    111
    </hbj:form>
    </hbj:page>
    </hbj:content>

  • How to use setSelectedItem (java) in jsp

    hai,
    iam very much new to JSP. i have a combo box which has values populated from database. i got the combo box value selected by the user.
    now my question is how to set a particular value in a combo as we do in java using setSelectedItem("value");
    thanks

    Hi,
    You can Do it through Ajax as such you can't d it directly in Jsp.Since You are New to Jsp I dont want to confuse you.What you can do is instead of Using another combobox initially you can try to list those items with a radiio button once you select the radiobutton and give a go button the corresponding items can be selected initially you can try then you can try another way.
    R.Ramesh.

  • Questions/answers from jsp to java bean

    Hi
    This is what i need to do .
    I am showing some questions, say 4 of them , and radio buttons(yes/no) as answers in the JSP.
    Now how do i transfer these questions and their answers from jsp to java bean .
    I did try hashmap ,but not quite working .
    any help?
    thanks

    Name each radiobutton differently, and then provide 1 property and accessor methods for each of your four answers in the JavaBean, with the same name as specified in the HTML FORM.
    So in the HTML:
    <input type="radio" name="answerOne" value="true"...>
    and then have a property named answerOne with accessor methods in the javaBean...

  • Want a better solution for radiobutton code

    I am using radio buttons the code works but it seems very long winded any ideas how I can cut down the code?
    // code snippet
    //basicly decare some JRadioButton
    //set action command
    currentaccount = new JRadioButton("Current Account");
    currentaccount.setMnemonic(KeyEvent.VK_C);
    currentaccount.setSelected(true);
    currentaccount.setActionCommand(currentACString);
    panelRadioButtonAC.add(currentaccount);
    savingaccount = new JRadioButton("Saving Account");
    // Group the radio buttons.
    ButtonGroup group = new ButtonGroup();
    group.add(currentaccount);
    group.add(savingaccount);
    // Register a listener for the radio buttons.
    RadioListener myListener = new RadioListener();
    currentaccount.addActionListener(myListener);
    currentaccount.addActionListener(myListener);
    //here is the code check which is very long winded
    /* I am checking each radiobutton and then determining if it is true, since I have used a button group isn't there a way I can find out which is chosen????
    /** Listens to the radio buttons. */
    class RadioListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    if ( e.getActionCommand().equals("Current Account") )
    {       curAC = true;
    savAC = false;
    if( e.getActionCommand().equals("Saving Account") )
    {      savAC = true;
    debAC = false;
    Please help

    See my answer in
    http://forum.java.sun.com/thread.jsp?forum=54&thread=196354
    ... and please don't post a question 20 times...
    Doug

  • Two bugs in SP9 HTMLB radioButton?

    I am trying to trigger a client-side event when a radio button is clicked.  There are examples of this, but involve embedding Java in the JSP in the radioButton tag.  When I do that, there are two problems.  First, the object is null and cannot be accessed.  Second, the text label for the radio button disappears.
    <hbj:radioButtonGroup
      id="rbgSearchSelect"
      columnCount="1"
      selection="<%=SearchBy%>">
      <hbj:radioButton
        id="rbSubscriptionSelect"
        jsObjectNeeded="true"
        text="Search by popular"
        key="101"
        disabled="false" >
    <% // rbSubscriptionSelect is null, and text does not appear %>
      </hbj:radioButton>
    </hbj:radioButtonGroup>
    If I simply remove the <% %> line, the text label appears again.  Moving the code to add the client event to the bottom should also work, but the object is still null, even if you try to get it directly from the pageContext object (where the internal code puts it).  Here's the code I want to add:
    rbSubscriptionSelect.setClientEvent(EventTrigger.ON_CLICK, "myfunc()");
    Does anyone have a working example of setting a client-side event on a radio button on EP6 SP9?

    Have you seen these Blogs??
    Portal: Bug in the  radio button's javascript api
    Useful undocumented javascript code for portal
    Regards,
    P.

  • Jsp with diplay dynamic data

    acually my proble is
    i m selecting recods from database that each record displaying on jsp page with radio button in each row .if i select radiobutton that corresponding
    record should be display on that page
    if body pls can help me

    acually my proble is
    i m selecting recods from database that each record
    displaying on jsp page with radio button in each row
    .if i select radiobutton that corresponding
    record should be display on that page
    if body pls can help meYour description is rather vague. Could you just elaborate?
    Anyway, you can store the records in some Collection (List, Vector... or HashMap would be better) and on click of that radio button, you could fetch that particular record. If the database is frequently getting updated, you may requery it using the primary key.
    I don't know if my answer was what you needed to know. Post in more details so that I can help.
    Annie.

  • HTMLB RadioButton

    Hi
    I am using a HTMLB radioButton in a JSPDynpage.
    I have a radiobutton group consisting of 2 radio buttons.
    I am unable to get the selected value in Javascript.
    I am using the following code
    (eval(func("radiobuttonId"))).getChecked();
    I get an error
    "Undefined is null or not an object"
    Can somebody help out please.

    Hi Prakash
    I tried your suggestion but it still doesn't work.
    I have pasted my JSP code here so that you can have a look.
    Towards the end there is a javascript function openwindow() where I am trying to alert the radio button values.
    <%@ taglib uri= "tagLib" prefix="hbj" %>
    <%@ page import = "com.sapportals.htmlb.enum.EventTrigger" %>
    <%     String buttonid = "";%>
    <jsp:useBean id="ProductInfoBean" scope="application" class="bean.ProductInfoBean" />
    <hbj:content id="myContext" >
    <hbj:document>
         <hbj:documentHead title="test"></hbj:documentHead>
         <hbj:documentBody>
       <hbj:form id="myFormId" >
              <hbj:gridLayout
              id="myGridLayout1"
              debugMode="False"
              width="40%"
              cellSpacing="5"
              >
                   <hbj:gridLayoutCell
                        rowIndex="1"
                        columnIndex="1"
                        width="10%"
                        horizontalAlignment="LEFT"
                   >
                        <hbj:textView
                             text="Title"
                             id="txtTitle"
                             tooltip="Title"
                             encode="false">
                        </hbj:textView>
                   </hbj:gridLayoutCell>
                   <hbj:gridLayoutCell
                        rowIndex="1"
                        columnIndex="2"
                        width="10%"
                        horizontalAlignment="LEFT"
                   >
                        <hbj:inputField
                             id="ipTitle"
                             type="String"
                             invalid="true"
                             width="100"
                             value=""
                             visible="true"
                             disabled="false"
                             required="false"
                             maxlength="30"
                             size="50"
                             design="standard"
                             jsObjectNeeded="true"
                        >
                        <%
                             ipTitle.setClientEvent(EventTrigger.ON_KEYDOWN,"handle_enter()");
                             ipTitle.setClientEvent(EventTrigger.ON_CHANGE,"handle_titleChange()");
                        %>
                        </hbj:inputField>
                   </hbj:gridLayoutCell>
                   <hbj:gridLayoutCell
                        rowIndex="2"
                        columnIndex="1"
                        width="10%"
                        horizontalAlignment="LEFT"
                   >
                        <hbj:textView
                             text="Promotion"
                             id="txtPromotion"
                             tooltip="Promotion"
                             encode="false">
                        </hbj:textView>
                   </hbj:gridLayoutCell>
                   <hbj:gridLayoutCell
                        rowIndex="2"
                        columnIndex="2"
                        width="10%"
                        horizontalAlignment="LEFT"
                   >
                        <hbj:dropdownListBox
                             id="ddPromotion"
                             tooltip="Promotion"
                             disabled="false"
                             jsObjectNeeded="true"
                        >
                             <hbj:listBoxItem
                                  key=""
                                  value="- Select Promotion -"
                             />
                             <%for(int i=0;i<ProductInfoBean.getPromotions().size();i++){%>
                             <hbj:listBoxItem
                                  key="<%=(String)(ProductInfoBean.getPromotions().elementAt(i))%>"
                                  value="<%=(String)(ProductInfoBean.getPromotions().elementAt(i))%>"
                                  />
                             <%}%>     
                        <%
                             ddPromotion.setClientEvent(EventTrigger.ON_CHANGE,"handle_promotionChange()");     
                        %>
                        </hbj:dropdownListBox>
                   </hbj:gridLayoutCell>
                   <hbj:gridLayoutCell
                        rowIndex="3"
                        columnIndex="1"
                        width="10%"
                        horizontalAlignment="LEFT"
                   >
                        <hbj:textView
                             text="Selection #"
                             id="txtSelection"
                             tooltip="Selection #"
                             encode="false">
                        </hbj:textView>
                   </hbj:gridLayoutCell>
                   <hbj:gridLayoutCell
                        rowIndex="3"
                        columnIndex="2"
                        width="10%"
                        horizontalAlignment="LEFT"
                   >
                        <hbj:inputField
                             id="ipSelection"
                             type="String"
                             invalid="true"
                             width="100"
                             value=""
                             visible="true"
                             disabled="false"
                             required="false"
                             maxlength="30"
                             size="50"
                             design="standard"
                             jsObjectNeeded="true"
                        >
                        <%
                             ipSelection.setClientEvent(EventTrigger.ON_KEYDOWN,"handle_enter()");
                             ipSelection.setClientEvent(EventTrigger.ON_CHANGE,"handle_selectionChange()");
                        %>
                        </hbj:inputField>
                   </hbj:gridLayoutCell>                                                                           
              </hbj:gridLayout>
                   <hbj:radioButtonGroup
                        id="rbgTypeSelect"
                        columnCount="2"
                        selection="rb_artwork"
                         >
                        <hbj:radioButton
                             id="rbArtwork"
                             text="Artwork"
                             key="rb_artwork"
                             tooltip="Extranet"
                             disabled="false"
                              jsObjectNeeded="true"
                        >
                        </hbj:radioButton>
                        <hbj:radioButton
                             id="rbProductDetails"
                             text="ProductDetails"
                             key="rb_productDetails"
                             tooltip="OVLC"
                             disabled="false"
                              jsObjectNeeded="true"
                        />
                   </hbj:radioButtonGroup>
                   <hbj:button
                     id="searchButton"
                    text="Search"
                  tooltip="Please click to search"
                  disabled="false"
                  onClientClick = "openWindow()"
                  jsObjectNeeded="true"
                  >
                   </hbj:button>
              </hbj:group>
       </hbj:form>
      </hbj:documentBody>
    </hbj:document>
      <script language="javascript">
         function clearSearchCriteria(){
              var funcName = htmlb_formid+"_getHtmlbElementId";
            func = window[funcName];
           (eval(func("ipTitle"))).setValue("");
           (eval(func("ipSelection"))).setValue("");
           (eval(func("ddPromotion"))).setValue("");
         function handle_enter(){
             var src= window.event.srcElement;
             k = window.event.keyCode;
             if (k == 13) {
                 // enter key pressed
                      openWindow();
         function handle_titleChange(){
              var funcName = htmlb_formid+"_getHtmlbElementId";
            func = window[funcName];
            var title = (eval(func("ipTitle"))).getValue();
            if(title != "")
                 (eval(func("ipSelection"))).setDisabled(true);
                 (eval(func("ddPromotion"))).setDisabled(true);
            else
                 (eval(func("ipSelection"))).setDisabled(false);
                 (eval(func("ddPromotion"))).setEnabled(true);       
         function handle_selectionChange(){
              var funcName = htmlb_formid+"_getHtmlbElementId";
            func = window[funcName];
            var selection = (eval(func("ipSelection"))).getValue();
            if(selection !="")
                 (eval(func("ipTitle"))).setDisabled(true);
                 (eval(func("ddPromotion"))).setDisabled(true);
            else
                (eval(func("ipTitle"))).setDisabled(false);
                (eval(func("ddPromotion"))).setEnabled(true);
         function handle_promotionChange(){
              var funcName = htmlb_formid+"_getHtmlbElementId";
            func = window[funcName];
            var promotion = (eval(func("ddPromotion"))).getValue();
            if (promotion!=""){
                 (eval(func("ipTitle"))).setDisabled(true);
                 (eval(func("ipSelection"))).setDisabled(true);
            else
                (eval(func("ipTitle"))).setDisabled(false);
                 (eval(func("ipSelection"))).setDisabled(false);
          function openWindow(){
               var funcName = htmlb_formid+"_getHtmlbElementId";
            func = window[funcName];
            var title = (eval(func("ipTitle"))).getValue();
            var selection = (eval(func("ipSelection"))).getValue();
                var promotion = (eval(func("ddPromotion"))).getValue();
    //            var selType = (eval(func("rbProductDetails"))).getChecked();
                var rb = eval(func(htmlb_radiobuttonmodifier+"rbArtwork")).getChecked();
                var rb2 = eval(func(htmlb_radiobuttonmodifier+"rbProductDetails")).getValue();
         alert("rb cheked " + rb);
         alert("rb2 value " + rb2);
    </script>
    </hbj:content>

  • Set cursor in HTMLB/JSP??

    Hi SDN
    Can anyone tell me how I can set the cursor in a specific field, when I'm using JSP taglib?
    Thanks in advance
    Peter

    Here is my jsp
    It's fx "customerNumber" I would like to place the cursor in
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="rushOrderDataBean" scope="session" class="com.rushorder.DataBean" />
    <jsp:useBean id="rushOrderLanguageBean" scope="session" class="com.rushorder.LanguageBean" />
    <jsp:useBean id="rushOrderPropertiesBean" scope="session" class="com.support.PropertiesBean" />
    <jsp:useBean id="rushOrderUserBean" scope="session" class="com.support.UserBean" />
    <%@ page import="com.support.OrderItemCellRenderer"  %>
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
    <!-- Navigation Top -->
    <%
         String getCustomer = null;
         String getShipToCustomer = null;
         String getMaterial = null;
         String getMaterialInList = null;
         String shipChanged = null;
         String returnsChanged = null;
         String deleteYesNo = rushOrderLanguageBean.getMsgDeleteYesNo();
         String selectARow = rushOrderLanguageBean.getMsgSelectARow();
         String internalNote = rushOrderDataBean.getInternalNote();
         String orderTypeMissing = rushOrderLanguageBean.getMsgOrderTypeMustBeChecked();
         String orderHandlerMissing = rushOrderLanguageBean.getMsgOrderHandlerMissing();
    %>
         <Table width="100%">
            <TR>
              <TD>
               <TABLE width="100%">
                <TR><TD width="40%"></TD>
                        <TD width="100%" align="left" valign="bottom">
                    <hbj:isolatedHtmlContainer id="isohtmlCont"
                          width="100%"
                          height="75"
                          srcUrl="<%= rushOrderPropertiesBean.returnRoadmapUrl() %>"
                          scrolling="AUTO"
                          bordered="FALSE"
                          tooltip="Roadmap"
                    />
                     </TD>
                   <TD align="right" valign="bottom">
                        <hbj:button
                         id="btnBack"
                         text="<%= rushOrderLanguageBean.getButtonPreviousText() %>"
                          onClick="MoveBackClicked"
                          disabled="FALSE"
                          design="EMPHASIZED" />
                   </TD>
                   <TD align="right" valign="bottom">
                        <hbj:button
                         id="btnCreate"
                         text="<%= rushOrderLanguageBean.getButtonCreateAndPrintText() %>"
                          onClick="CreateClicked"
                          onClientClick="validate()"
                          disabled="<%=rushOrderDataBean.getCreateDisabled() %>"
                          design="EMPHASIZED"
                          jsObjectNeeded="true" />
                   </TD>
                </TR>
               </TABLE>
               <HR align="left" size="4" color="#800000">
            </TD>
           </TR>
         <TR>
          <TD>
              <TABLE>
               <TR>
                   <TD>
                        <hbj:button
                         id="btnCancel"
                         text="<%= rushOrderLanguageBean.getButtonCancelOrderText() %>"
                          onClick="CancelClicked"
                          disabled="FALSE"
                          design="EMPHASIZED" />
                   </TD>
               </TR>
              </TABLE>
              <TABLE style="BORDER-COLLAPSE: collapse" BGCOLOR="silver" borderColor="gray" border="1" cellPadding="3" width="100%">
               <TD>
                <TR>
                    <TD width="25%">
                        <hbj:label
                             id="label_pgiDate"
                             labelFor="pgiDate"
                          width="100%"
                             wrapping="TRUE"
                             text="<%= rushOrderLanguageBean.getLabelPgiDate() %>"      />
                    </TD>
                    <TD width="25%">
                       <hbj:textView
                              id="pgiDate"
                          text="<%=rushOrderDataBean.getPgiDate() %>" />
                   </TD>
                   <TD width="25%" BGCOLOR="snow" BORDERCOLOR="SNOW">
                   </TD>
                   <TD width="25%" BGCOLOR="snow" BORDERCOLOR="SNOW">
                   </TD>
                </TR>
                <TR>
                    <TD width="25%">
                        <hbj:label
                             id="label_order_type"
                             labelFor="rbOrderType"
                          width="100%"
                             wrapping="TRUE"
                             text="<%= rushOrderLanguageBean.getLabelOrderType() %>" />
                    </TD>
                    <TD width="25%" BGCOLOR="snow">
                       <hbj:radioButtonGroup
                        id="rbOrderType"
                             columnCount="2"
                             selection="<%= rushOrderDataBean.getRbUpdateOrderTypeSelection() %>" >
                        <hbj:radioButton
                           id="First"
                           text="<%= rushOrderLanguageBean.getLabelCredit() %>"
                           key="Credit"
                           disabled="false"
                           jsObjectNeeded="true" />
                        <hbj:radioButton
                           id="Second"
                           text="<%= rushOrderLanguageBean.getLabelCashsale() %>"
                           key="Cashsale"
                           disabled="false"
                           jsObjectNeeded="true" />
                       </hbj:radioButtonGroup>
                    </TD>
                    <TD width="25%">
                        <hbj:label
                             id="label_hhcReference"
                             labelFor="hhcReference"
                          width="100%"
                             wrapping="TRUE"
                             text="<%= rushOrderLanguageBean.getLabelReferenceFromHcc() %>"      />
                    </TD>
                    <TD width="25%">
                       <hbj:textView
                              id="hhcReference"
                          text="<%=rushOrderDataBean.getHhcReference() %>" />
                   </TD>
                </TR>
                <TR>
                    <TD width="25%">
                        <hbj:label
                             id="label_customerName"
                             labelFor="customerName"
                          width="100%"
                             wrapping="TRUE"
                             design="EMPHASIZED"
                             text="<%= rushOrderLanguageBean.getLabelCustomerName() %>" />
                    </TD>
                    <TD width="25%">
                       <hbj:textView
                              id="customerName"
                          text="<%=rushOrderDataBean.getCustomerName() %>" />
                   </TD>
                    <TD width="25%">
                        <hbj:label
                             id="label_customerNumber"
                             labelFor="customerNumber"
                             design="STANDARD"
                             wrapping="TRUE"
                          width="100%"
                             text="<%= rushOrderLanguageBean.getLabelCustomerNo() %>" />
                    </TD>
                    <TD width="25%" BGCOLOR="snow">
                         <hbj:inputField
                             id="customerNumber"
                          type="string"
                          invalid="<%=rushOrderDataBean.getIsCustomerInvalidAsString() %>"
                          width="100%"
                          value="<%=rushOrderDataBean.getCustomerNumber() %>"
                          tooltip="<%=rushOrderDataBean.getToolTipForCustomerNumber() %>"
                          jsObjectNeeded="true" >
                             <%      customerNumber.setClientEvent(
                                  com.sapportals.htmlb.enum.EventTrigger.ON_CHANGE,
                                  "getCustomer()");
                             %>
                       </hbj:inputField>
                   </TD>
                </TR>
                <TR>
                    <TD width="25%">
                        <hbj:label
                             id="label_customerName2"
                             labelFor="customerName2"
                             design="EMPHASIZED"
                          width="100%"
                             wrapping="TRUE"
                             text="<%= rushOrderLanguageBean.getLabelCustomerName2() %>" />
                    </TD>
                    <TD width="25%">
                       <hbj:textView
                              id="customerName2"
                          text="<%=rushOrderDataBean.getCustomerName2() %>" />
                   </TD>
                    <TD width="25%">
                        <hbj:label
                             id="label_tel"
                             labelFor="telNumber"
                             design="STANDARD"
                          width="100%"
                             wrapping="TRUE"
                             text="<%= rushOrderLanguageBean.getLabelPhone() %>" />
                    </TD>
                    <TD width="25%">
                       <hbj:textView
                           id="telNumber"
                          width="100%"
                           text="<%=rushOrderDataBean.getPhone() %>" />
                   </TD>
                </TR>
                <TR>
                    <TD width="25%">
                        <hbj:label
                             id="label_address"
                             labelFor="address"
                             design="STANDARD"
                          width="100%"
                             wrapping="TRUE"
                             text="<%= rushOrderLanguageBean.getLabelAddress() %>" />
                    </TD>
                    <TD width="25%">
                       <hbj:textView
                           id="address"
                           width="100%"
                           text="<%=rushOrderDataBean.getAddress() %>" />
                    </TD>
                </TR>
                <TR>
                    <TD width="25%">
                        <hbj:label
                             id="label_postalcode"
                             labelFor="postalcode"
                             design="STANDARD"
                          width="100%"
                             wrapping="TRUE"
                             text="<%= rushOrderLanguageBean.getLabelPostal() %>" />
                    </TD>
                    <TD width="25%">
                       <hbj:textView
                           id="postalcode"
                          width="100%"
                           text="<%=rushOrderDataBean.getPostalCode() %>" />
                   </TD>
                    <TD width="25%">
                        <hbj:label
                             id="label_city"
                             labelFor="city"
                             design="STANDARD"
                          width="100%"
                             wrapping="TRUE"
                             text="<%= rushOrderLanguageBean.getLabelCity() %>" />
                    </TD>
                    <TD width="25%">
                       <hbj:textView
                           id="city"
                          width="100%"
                           text="<%=rushOrderDataBean.getCity() %>" />
                   </TD>
                </TR>
               </TD>
              </TABLE>
              <TABLE style="BORDER-COLLAPSE: collapse" BGCOLOR="silver" borderColor="gray" border="1" cellPadding="3" width="100%">
                   <TR>
                    <TD width="25%">
                        <hbj:label
                             id="label_shipToCustomerNumber"
                             labelFor="shipToCustomerNumber"
                             design="STANDARD"
                             wrapping="TRUE"
                          width="100%"
                             text="<%= rushOrderLanguageBean.getLabelCustomerShipTo() %>" />
                    </TD>
                    <TD width="25%" BGCOLOR="snow">
                         <hbj:inputField
                             id="shipToCustomerNumber"
                          type="string"
                          invalid="<%=rushOrderDataBean.getIsShipToCustomerInvalidAsString() %>"
                          disabled="<%=rushOrderDataBean.getShipToCustomerDisabled() %>"
                          width="100%"
                          value="<%=rushOrderDataBean.getShipToCustomerNumber() %>"
                          tooltip="<%=rushOrderDataBean.getToolTipForShipToCustomer() %>"
                          jsObjectNeeded="true" >
                             <%      shipToCustomerNumber.setClientEvent(
                                  com.sapportals.htmlb.enum.EventTrigger.ON_CHANGE,
                                  "getShipToCustomer()");
                             %>
                       </hbj:inputField>
                    </TD>
                    <TD width="50%">
                       <hbj:textView
                           id="shipToCustomerAddress"
                           width="100%"
                           text="<%=rushOrderDataBean.getShipToCustomerAddress()%>" />
                    </TD>
                   </TR>
              </TABLE>          
              <TABLE width="100%">
               <TR>
                   <TD width="1%">
                        <hbj:button
                         id="btnSearchCust"
                         text="<%= rushOrderLanguageBean.getButtonSearchCustText() %>"
                          onClick="MoveSearchCustomerClicked"
                          disabled="FALSE"
                          design="STANDARD" />
                   </TD>
                   <TD width="1%" align="left">
                        <hbj:button
                         id="btnSearchShipCust"
                         text="<%= rushOrderLanguageBean.getButtonSearchShipCustText() %>"
                          onClick="MoveSearchShipToCustomerClicked"
                          disabled="<%=rushOrderDataBean.getShipToCustomerDisabled() %>"
                          design="STANDARD" />
                   </TD>
                   <TD align="left">
                        <hbj:button
                         id="btnAccept"
                         text="<%= rushOrderLanguageBean.getButtonAcceptCustomerChoiceText() %>"
                          onClick="AcceptClicked"
                          disabled="<%= rushOrderDataBean.getAcceptCustomerChoiceDisabled()%>"
                          design="STANDARD" />
                   </TD>
                   <TD align="right">
                        <hbj:button
                         id="btnPrice"
                         text="<%= rushOrderLanguageBean.getButtonPriceQuotationText() %>"
                          onClick="MovePriceQuotationClicked"
                          disabled="false"
                          design="STANDARD" />
                   </TD>
               </TR>
              </TABLE>
              <TABLE width="100%">
                <TR>
                    <TD width="25%">
                        <hbj:label
                             id="label_purchase"
                             labelFor="purchaseorder"
                             design="STANDARD"
                          width="100%"
                             wrapping="TRUE"
                             text="<%= rushOrderLanguageBean.getLabelPurchaseNo() %>" />
                    </TD>
                    <TD width="25%">
                        <hbj:inputField
                             id="purchase"
                          type="string"
                          width="100%"
                          value="<%=rushOrderDataBean.getPurchaseOrder() %>" >
                       </hbj:inputField>
                   </TD>
                    <TD width="25%">
                        <hbj:label
                             id="label_order"
                             labelFor="orderno"
                             design="STANDARD"
                          width="100%"
                             wrapping="TRUE"
                             text="<%= rushOrderLanguageBean.getLabelManualRoutineOrderNo() %>" />
                    </TD>
                    <TD width="25%">
                        <hbj:inputField
                             id="orderno"
                          type="string"
                          width="100%"
                          value="<%=rushOrderDataBean.getOrderNo() %>" >
                       </hbj:inputField>
                   </TD>
                </TR>
                <TR>
                    <TD width="25%">
                        <hbj:label
                             id="label_orderHandler"
                             labelFor="orderHandler"
                             design="STANDARD"
                          width="100%"
                             wrapping="TRUE"
                             text="<%= rushOrderLanguageBean.getLabelOrderHandler() %>" />
                    </TD>
                    <TD width="25%">
                        <hbj:inputField
                             id="orderHandler"
                          type="string"
                          width="100%"
                          value="<%=rushOrderDataBean.getOrderHandler() %>"
                          jsObjectNeeded="true" >
                       </hbj:inputField>
                   </TD>
                    <TD width="25%">
                        <hbj:label
                             id="label_personalId"
                             labelFor="personalId"
                             design="STANDARD"
                          width="100%"
                             wrapping="TRUE"
                             text="<%= rushOrderLanguageBean.getLabelPersonalId() %>" />
                    </TD>
                    <TD width="25%">
                        <hbj:inputField
                             id="personalId"
                          type="string"
                          width="100%"
                          value="<%=rushOrderDataBean.getPersonalId() %>" >
                       </hbj:inputField>
                   </TD>
                </TR>
               </TABLE>
               <TABLE width="100%">
                <TR>
                    <TD width="25%">
                        <hbj:label
                             id="label_text"
                             labelFor="text"
                             design="STANDARD"
                          width="100%"
                             wrapping="TRUE"
                             text="<%= rushOrderLanguageBean.getLabelOrderText() %>" />
                    </TD>
                    <TD width="75%" align="left">
                        <hbj:inputField
                             id="text"
                          type="string"
                          maxlength="50"
                          width="100%"
                          value="<%=rushOrderDataBean.getOrderText() %>" >
                       </hbj:inputField>
                   </TD>
                </TR>
              </TABLE>
              </TD>
           </TR>
         <TR>
          <TD>
              <TABLE style="BORDER-COLLAPSE: collapse" BGCOLOR="silver" borderColor="gray" border="1" cellPadding="3" width="100%">
                    <TD width="100%">
                       <hbj:textView
                           id="oi"
                           text="<%= rushOrderLanguageBean.getLabelOrderItems() %>"
                           design="HEADER2" />
                   </TD>
              </TABLE>        
              <TABLE>
               <TR>
                   <TD>
                        <hbj:button
                         id="buttonDeleteOI"
                         text="<%= rushOrderLanguageBean.getButtonDeleteOrderItemText() %>"
                          onClick="DeleteOIClicked"
                          onClientClick="confirmDelete();"
                          disabled="<%= rushOrderDataBean.getDeleteOrderItemDisabled()%>"
                          design="STANDARD"
                          jsObjectNeeded="true" />
                   </TD>
                   <TD>
                        <hbj:button
                         id="buttonAddOIText"
                         text="<%= rushOrderLanguageBean.getButtonAddOrderItemText() %>"
                          onClick="MoveAddOrderItemTextClicked"
                          onClientClick="checkFlag()"
                          disabled="<%= rushOrderDataBean.getAddOrderItemTextDisabled() %>"
                          design="STANDARD"
                          jsObjectNeeded="true" />
                   </TD>
                   <TD>
                        <hbj:button
                         id="buttonEditIccInfo"
                         text="<%= rushOrderLanguageBean.getButtonViewEditIccInfoText() %>"
                          onClick="MoveViewEditIccClicked"
                          onClientClick="checkFlag()"
                          disabled="<%= rushOrderDataBean.getViewEditIccDisabled()%>"
                          design="STANDARD"
                          jsObjectNeeded="true" />
                   </TD>
                   <% if (rushOrderUserBean.getManualPriceAllowed().equalsIgnoreCase("Y")){ %>
                   <TD>
                        <hbj:button
                         id="buttonItemPrice"
                         text="<%= rushOrderLanguageBean.getButtonChangeOrderItemPriceText() %>"
                          onClick="MoveManualPriceClicked"
                          onClientClick="checkFlag()"
                          disabled="<%= rushOrderDataBean.getViewEditIccDisabled()%>"
                          design="STANDARD"
                          jsObjectNeeded="true" />
                   </TD>
                   <% } %>
               </TR>
              </TABLE>
           </TD>
          </TR>
         <TR>
          <TD>
              <TABLE width="100%">
               <TR>     
                 <TD>
                  <hbj:tableView
                    id="orderItemsTableView"
                   model="rushOrderDataBean.orderItemsModel"
                   design="ALTERNATING"
                   headerVisible="false"
                   footerVisible="true"
                   fillUpEmptyRows="false"
                   navigationMode="BYLINE"
                   selectionMode="SINGLESELECT"
                   visibleFirstRow="<%=rushOrderDataBean.getOrderItemListVisibleFirstRow() %>"
                   visibleRowCount="100"
                   width="100%"
                   onNavigate="orderItemsNavigation" >
                   <%
                        orderItemsTableView.setUserTypeCellRenderer(new OrderItemCellRenderer());
                        orderItemsTableView.setOnClientRowSelection("setFlag()");
                      %>
                  </hbj:tableView>
                </TD>
               </TR>
              </TABLE>
               </TD>
              </TR>
              <TR>
               <TD width="100%" BGCOLOR="snow" BORDERCOLOR="snow">
                  <hbj:textView
                       id="message"
                       design="HEADER2"
                      text="<%=rushOrderDataBean.getMessage() %>" />
              </TD>
            </TR>
         <SPAN STYLE="visibility: hidden">
         <hbj:button id='searchCustomerEvent'
               text=""
               onClick="getCustomerByNumber">
               <% getCustomer = myContext.getParamIdForComponent(searchCustomerEvent); %>
         </hbj:button>
         <hbj:button id='searchShipToCustomerEvent'
               text=""
               onClick="getShipToCustomerByNumber">
               <% getShipToCustomer = myContext.getParamIdForComponent(searchShipToCustomerEvent); %>
         </hbj:button>
         <hbj:button id='searchMaterialEvent'
               text=""
               onClick="getMaterialByNumber">
               <% getMaterial = myContext.getParamIdForComponent(searchMaterialEvent); %>
         </hbj:button>
         <hbj:button id='searchMaterialInListEvent'
               text=""
               onClick="getMaterialInList">
               <% getMaterialInList = myContext.getParamIdForComponent(searchMaterialInListEvent); %>
         </hbj:button>
         <hbj:button id='shipChangedEvent'
               text=""
               onClick="shipChanged">
               <% shipChanged = myContext.getParamIdForComponent(shipChangedEvent); %>
         </hbj:button>
         <hbj:button id='returnsChangedEvent'
               text=""
               onClick="returnsChanged">
               <% returnsChanged = myContext.getParamIdForComponent(returnsChangedEvent); %>
         </hbj:button>
         </SPAN>
         <SCRIPT language = "JavaScript">
              function getCustomer()
                   document.all.<%=getCustomer%>.click();
              function getShipToCustomer()
                   document.all.<%=getShipToCustomer%>.click();
              function getMaterial()
                   document.all.<%=getMaterial%>.click();
              function getMaterialInList()
                   document.all.<%=getMaterialInList%>.click();
              function shipChanged()
                   document.all.<%=shipChanged%>.click();
              function confirmDelete() {
                var agree=confirm("<%= deleteYesNo%>");
                if (agree) {
                     if (checkFlag()==true) {
                       return true ;
                   } else return false;
                } else {
                  htmlbevent.cancelSubmit = true;
                  return false ;
              var flag = false;
              function setFlag(){
                   flag = true;
              function checkFlag(){
                   if(flag == false) {
                        alert("<%= selectARow%>");
                        htmlbevent.cancelSubmit="true";
                        return false;
              function validate(){
                      var funcName = htmlb_formid+"_getHtmlbElementId";
                      func = window[funcName];
                      var rb1 = eval(func("rbOrderType" + htmlb_radiobuttonmodifier.substring(3,7)+ "1"));
                      var rb2 = eval(func("rbOrderType" + htmlb_radiobuttonmodifier.substring(3,7)+ "2"));
                   var inpOh = eval(func("orderHandler"));
                   var valOh = inpOh.getValue();
                   if ((!rb1.getChecked())&&(!rb2.getChecked())) {
                        alert("<%= orderTypeMissing%>");
                        htmlbevent.cancelSubmit="true";
                   } else {
                        if (((valOh==" ")||(valOh==""))&&(<%= rushOrderUserBean.getOrderHandlerMandatory().equalsIgnoreCase("Y")%>)){
                             alert("<%= orderHandlerMissing%>");
                             htmlbevent.cancelSubmit="true";
              if ('<%= internalNote %>' != '') {
                   alert("<%= internalNote%>");
         </SCRIPT>
        </TABLE>
       </hbj:form>
      </hbj:page>
    </hbj:content>

  • Code Completion on portal jsps & htmlb

    Hello,
    what I have to do to use the code completion within a portal JSP file ?
    The htmlb taglib is referenced in te portalapp.xml as follows:
    <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
    Are there other settings needed for the project in the NDS ? The help is only referencing the standard web.xml
    Thanks.

    Hi Christian,
        You have to add a reference in JSP as well. Here is a sample portalapp.xml and a .jsp page.
    <b>Portalapp.xml</b>
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
        </application-config>
      <components>
        <component name="display">
          <component-config>
            <property name="ClassName" value="nasa.ifmp.testjsp.display"/>
            <property name="SecurityZone" value="nasa.ifmp.testjsp/high_safety"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    <b>
    JSP Page</b>
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <hbj:content
         id="myContext">
    <script LANGUAGE="JavaScript" TYPE="text/JavaScript">      
    function alertSelectedRadio(){
    var funcName = htmlb_formid+"_getHtmlbElementId";
    func = window[funcName];
    alert(func);
    var radiobutton = eval(func(htmlb_radiobuttonmodifier+"radiobutton"));
    alert(radiobutton);
    </script>
         <hbj:document>
              <hbj:documentHead
                   title="test">
              </hbj:documentHead>
              <hbj:documentBody>
                   <hbj:form
                        id="simpleForm">
                        <hbj:radioButtonGroup
                             id="TestRadioGroup"
                             columnCount="2"
                             selection="rb_fem">
                             <hbj:radioButton
                                  id="TestRadioButton1"
                                  text="female"
                                  key="rb_fem"
                                  tooltip="I am female"
                                  jsObjectNeeded="TRUE"
                                  disabled="false"
                                  />
                             <hbj:radioButton
                                  id="TestRadioButton2"
                                  text="male"
                                  key="rb_male"
                                  tooltip="I am male"
                                  jsObjectNeeded="TRUE"
                                  disabled="false"
                                  />
                        </hbj:radioButtonGroup>
                        <br>
                        <hbj:button
                             id="SubButton"
                             text="Submit"
                             tooltip="Sends your info"
                            onClientClick="alertSelectedRadio()"
                             width="30px"
                             design="EMPHASIZED"
                             jsObjectNeeded="true">
                        </hbj:button>
                   </hbj:form>
              </hbj:documentBody>
         </hbj:document>
    </hbj:content>

  • Datatable radiobutton issue

    Hi I have a page with multiple datatables that are shown based on some condition. At any given point only on edatatable is visisble and the rest are hidden. I have radiobuttons in one of the columns. The problem is that radio button selection is not working properly. The problem is selecting one radio button does not unselect the previously selected button: Here is the javascript I have:
    <script>
                        function dataTableSelectOneRadio(radio) {
                             var id = radio.name.substring(radio.name.lastIndexOf(':'));
                             var el = radio.form.elements;
                             for (var i = 0; i < el.length; i++) {
                                  if (el.name.substring(el[i].name.lastIndexOf(':')) == id) {
                                       el[i].checked = false;
                             radio.checked = true;
                   </script>
    Here is the partial jsp code:
    <h:dataTable value="#{reqbean.listOne}"
                                         var="varlistOne" border="0"
                                         id="table1" width="777"
                                         headerClass="header"
                                         rowClasses="evenRow, oddRow"
                                         columnClasses="firstColumn,secondColumn,thirdColumn"
                                         binding="#{reqbean.dataTable1}"
                                         rendered="#{reqbean.flagBtn}">
                              <h:column>                           
                                <h:selectOneRadio valueChangeListener="#{reqbean.setSelectedItem}" onchange="dataTableSelectOneRadio(this);"><f:selectItem itemValue="null" /></h:selectOneRadio>
                              </h:column>
                                    Some more columns
                            </h:dataTable>
                            <h:dataTable value="#{reqbean.listTwo}"
                                         var="varlistTwo" border="0" id="table2"
                                         headerClass="header" width="777"
                                         rowClasses="evenRow, oddRow"
                                         columnClasses="firstColumn,secondColumn,thirdColumn"
                                         binding="#{reqbean.dataTable2}"
                                         rendered="#{reqbean.flagBtn2}">
                              <h:column>
                                <h:selectOneRadio valueChangeListener="#{reqbean.setSelectedItem}" onchange="dataTableSelectOneRadio(this);"><f:selectItem itemValue="null" /></h:selectOneRadio>
                              </h:column>
                                    Some more columns
                            </h:dataTable>Thanks

    Do you understand what the Javascript is doing? Check the client ID's of your form and radio button elements in the HTML source.

Maybe you are looking for

  • Not able to open pdf files in outlook

    All the PDF attachment files are opening in word from outlook 2010. Not able to open as PDF. How to fix this problem?

  • Call Oracle from within MS Word

    Using VBA macro within MS Word to extract data from Oracle DB 8.1.5. I get "Unable to open data source". What values for datasource name?

  • Sequential Model: Locals.BatchSerialNumber in ReportOptions callback

    Hello I am using Teststand 2010 f1 I have configured my report options for logging with an expression: "P:\\Data_Log\\<FileYear>\\<ClientFileName>\\" +  Locals.UUT.BatchSerialNumber + "\\<UUT>[<FileDate>][<FileTime>].<FileExtension>" In the PreUUTLo

  • PO Version Printout

    Hi Gurus, We have 10 company codes  created during implementation......We have implemented Version Management for all company codes. Latter we added two more company codes and version management for that 2 company code also.... Now the problem is for

  • Changing the air flow in Nexus 5596UP without interuption.

    We have a Nexus 5596UP and we want to change the air flow to the opposite direction. I think it is possible to change it without an interruption but have no lab to test it. I think when I remove all the fans and change 1 power supply the systems keep