Plz Help(Reg javascript & jsp)

hi all
I am new to java .i strcked in one situation.
in appl, i used scriptlet code in javascript.
can i write script let code in javaScript.there is any prob,while writing sciptlet code in javascript.
i posted my code here .plzz help me.
function sendvalues(firstinstall){
var installmentfee = new Array();
<!--installmentfee is an array to store resp installment fees-->
<%
for (int j = 0; j < al.size(); j++) {
InstallmentVO insVo = (InstallmentVO) al.get(j);
%>
installmentfee[0]=firstinstall;
installmentfee[<%=j+1%>] ="<%=insVo.getTotalFee()%>";
alert(installmentfee[<%=j%>]);
<%}%>
alert(installmentfee[2]);
var val = document.form.money.value;
<% int k=0;%>
while(val>=0) {
alert("k"+<%=k%>);
if(val>installmentfee[<%=k%>]){
val=val-firstinstall;
document.form.installamount<%=k%>.value = (firstinstall);
bal=0;<% k++;%>
}else{
document.form.installamount<%=k%>.value = (val);
bal=(firstinstall)-(val);
val=-1;<% k++;%>
document.form.balance0.value =bal ;
if(document.form.balance0.value<=0){
document.form.FullPaid0.value = 'Y';
else{
document.form.FullPaid0.value = 'N';
document.all['Layer1'].style.visibility = "visible";
return false;
plz help me.

can i write script let code in javaScriptNo you cannot use scriplet code in a java script,
scriplets are only used in JSP files.
Kind Regards
WernsScriplets are only used in JSP files.
But OP's question was - can i write script let code in javaScript?
According to my understanding, its possible. Yes, we can write scriplet codes in java script as below
<html>
<head>
<title>Scriplet tags in Javascript</title>
</head>
<script>
function foo(){
     <%System.out.println("Scriplet tags in Javascript");%>
</script>
<body>
<form name="index" onSubmit="index.jsp" method="post">
<input type="submit" name="submit" value="Submit" onClick="foo()">
</form>
</body>
</html>and, U cant use scriplet tags in a javascript file(js file)
Am I correct? Comments pls....
Cheers.
Message was edited by:
astelaveesta

Similar Messages

  • PLZ HELP ME PROBLEM :- JSP Pages is slow

    HI, i am using oracle 10g application server to deploy my jsp pages.
    When i am running the jsp page ie. default.jsp which consist of three combo box which are dependent on each other.
    Database :- oracle 10g.
    Logic : I am retrieving all the data from the database in to a nested structure and using that nested structure to fill up in the combo box,
    Problem : when i m refreshing or opening the page , it takes a lot of time to open. well the data are also not so much huge that it take some time. ]
    Plz help me

    Why have you declared your own interface Tag?
    The server knows nothing about your custom classes.
    You should be implementing the javax.servlet.jsp.tagext.Tag Interface.
    Actually the easier way is for your tag to extend SimpleTag, which implements the basic interface for you, leaving you to override the bit you want to.
    Check out the API: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/package-summary.html

  • Plz help me regarding jsps

    Hi all,
    I have menu.jsp which is included in 100 jsp's
    in menu.jsp i have lots of db calls so each and evry action this menu is getting called so my application performence is getting decreasing so how can i include menu.jsp in all 100 jsps so i my application works faster and faster.., any suggetions are welcome
    Regards
    Rajani

    if you know the ans tell me or els dont make joke of
    itI wasn't making a joke, you quite clearly didn't bother reading my post. you just saw that I hadn't spoon-fed you code like you hoped, and moved on. this happens every single day. and since this is a free forum, I think I'll choose for myself what and who I reply to, and in what manner

  • How to open a JSP page from a form ??? plz help

    hi ..
    i want to know how to open a jsp page from a oracle apps form using a button .
    the requirement is that whenever we click on the button created on the form, it opens a jsp page.
    plz help me ..its urgent !! :-(

    In portlet project, to navigate between pages, you should not use the URL property to link to a page. Instead, portlets use navigation via action handling. You use the Page Navigation editor to set up links to pages; that is, the navigation editor sets the action property.
    Here is an example to hyperlink ans button to open a new page:
    # From within the IDE, create a new portlet project. This action creates the project and one page, PortletPage1.jsp.
    # Create a second portlet page, called PortletPage2.jsp, for the project.
    # Drop a Hyperlink component onto the first portlet page, PortletPage1. (You can drop the Hyperlink on the page in the Design window or on the PortletPage1 node in the Outline window.) Change the Hyperlink's text property to Next Page.
    # Drop a Button component (found in the Basic section of the Palette) onto the second portlet page, PortletPage2.
    # Open the Page Navigation Editor. It displays the two pages (PortletPage1.jsp and PortletPage2.jsp) of the application.
    # Click the PortletPage1.jsp icon in the Navigation window to expand it, and then drag a connector from hyperlink1 to PortletPage2.jsp. Change the name of the connector from case1 to Page2.
    # Click the PortletPage2.jsp icon in the Navigation window to expand it, and then drag a connector from button1 to PortletPage1.jsp. Change the name of the connector from case1 to Page1.
    # Run and deploy the portlet. The browser displays PortletPage1 and you should see the Next Page hyperlink. When you click the Next Page hyperlink, the Apache Pluto Portal server displays PortletPage2. Click the Page2 button to return to PortletPage1.
    Sherry
    Creator Team

  • Tabs in JSP- Plz help-Urgent

    I want to have 3 tabs say Tab1, tab2, tab3 in my page and based on which tab is clicked , I have to display the contents of a table.
    Ex: if Tab1 is clicked, i have to display contents of Table1 and tab2,table2 and so ...
    Plz help with how to link the click on the tab to calling of the JSP file which retrives and displays the data???....
    Its urgent ;plz help

    dnamiot ,
    I'm also looking for similar funcitonality.
    the URL mentioned in your reply is not free ware. you know, it is tough to convince management to buy a software for the project even it is $1.
    So if you know any taglibrary which is free ware , which generates maximum of 4 tabs and dynamic in nature, please let me know.
    Thanks in advance
    tekbond

  • How do i pass parameters from j2me to jsp?plz help

    hi everyone...
    i m doing my final year project
    can anyone plz tell me how to pass parameters like user name,password,etc.. from a j2me midlet to a jsp page running in tomcat server?
    i tried passing parameters in http connection through url as:
    String url="http://localhost:8080/example/test.jsp?name=abc";
    i need this info urgently as i am not able to proceed with my project... plz help
    any suggestions or references would be appreciated...
    thank u...
    regards,
    Rinzi

    JHD
    hi.
    you have written in URL i sperfectly right but if this is also not complete one.
    i.e url = "http://localhost:8080/dir/xxx.jsp?userName=jasmit&password=vala"
    now when u establishing connection i.e
    HttpConnection con = (HttpConnection) Connector.open(url,3);
    this will work as an declaration but if u want to send that parameter for that you have to get response from the server and that time only original connection is going to establish i.e
    when u r writting
    int responseCode = con.getResponseCode();
    if(reponseCode == 200)
    then ur parameter were passed to jsp page.
    in jsp page u have to get parameter using request class
    String userName = request.getParameter("userName").toString();
    String password = request.getParameter("password").toString();
    i hope this might solve ur problem.
    Regards,
    Jasmit vala
    [email protected]

  • Plz help me work out in jsp

    hai to all
    I am new to Jsp,plz help me how to define and declare the Function in Jsp, if i declare and define the function and how i call the function within a jsp.
    i worked the Jsp in the Tomcat 5.5 Environment it shows me some error.
    The sample coding which i have worked out is
    <html>
    <title> Sample code for calling a jsp </title>
    <head> </head>
    <body>
    <%!
    public void function()
    out.println("hai");
    %>
    <h1> hello Good Morning </h1>
    <%
    function();
    %>
    The Error which are shown in the Tomcat Environment is
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 15 in the jsp file: /call.jsp
    Generated servlet error:
    out cannot be resolved
    Regards
    udhaya.c

    The implicit objects are avbl only inside scriptlets <%........%> and not inside your own custom methods (which you shouldnt anyways be having, in first place. However its ok since you have just about begun with jsps).
    To use the implicit 'out' object within custom methods, you will have to pass them as parameters when you call the methods from within your scriptlets.
    Try this
       <% @ page import="java.io.*"%>
      <html>
    <title> Sample code for calling a jsp </title>
    <head> </head>
    <body>
    <%!
    public void function(PrintWriter out) throws IOException
    out.println("hai");
    %>
    <h1> hello Good Morning </h1>
    <%
    function(out);
    %>cheers,
    ram.

  • JSP Send Mail Application, plz help

    Hi,
    I have written a jsp send mail application, but it is giving error that NoSuchProviderException. What to do? Plz help. I m sending the code as below:
    <%@ page import="java.util.*, javax.mail.*,javax.mail.internet.*" %>
    <html>
    <head>
    <title>E-Mail Us</title>
    </head>
    <body bgcolor="white" text="#003399" >
    <%
    if(request.getMethod().equals("POST") )
    boolean status = true;
    String mailServer ="SMTP_HOST";
    String fnm = request.getParameter("fnm");
    String lnm = request.getParameter("lnm");
    String facility = request.getParameter("facility");
    String subject = request.getParameter("select");
    String fromEmail = "[email protected]";
    String toEmail = "[email protected]";
    String bccEmail = "[email protected]";
    String contact =request.getParameter("select2");
    String way =request.getParameter("way");
    String messageEnter = request.getParameter("message");
    try
    Properties props = new Properties();
         props.put("mail.smtp.host", mailServer);
    props.put("mail.smtp.auth", "true");
    Session s = Session.getInstance(props,null);
    MimeMessage message = new MimeMessage(s);
    InternetAddress from = new InternetAddress(fromEmail);
    message.setFrom(from);
    InternetAddress to = new InternetAddress(toEmail);
         InternetAddress bcc = new InternetAddress(bccEmail);
         message.addRecipient(Message.RecipientType.TO, to);
    message.addRecipient(Message.RecipientType.BCC, bcc);
    message.setSubject(subject);
         message.setSentDate(new Date());
    message.setText(messageEnter);
         message.setText(way);
         message.setText(contact);
         message.setText(facility);
         message.setText(fnm);
         message.setText(lnm);
         Transport transport = s.getTransport(mailServer);
    transport.connect(mailServer, "USER", "PASSWORD");
    transport.sendMessage(message, message.getAllRecipients());
    transport.close();
    catch(NullPointerException n)
    System.out.println(n.getMessage() );
         out.println(n.getMessage());
    out.println("<br><br><br><br><center><b>"+"ERROR!!!"+"</b></center>");//you need to enter a message"+"</b></center>");
         out.println("<br><br><center><b>"+"You need to Enter a message"+"</b></center>");
    status = false;
    catch (Exception e)
    System.out.println(e.getMessage() );
         out.println("<br><br><br><br><center><b>"+"ERROR!!!"+"</b></center>");
    out.println("<br><br><center><b>"+"Your Message to " + toEmail +" and "+ bccEmail+ " failed, reason is: " + e);
    status = false;
    if (status == true)
    out.println("<br><br><center><b>"+"Your message to " + toEmail +" and "+ bccEmail+ " was sent successfully!"+"</b></center>");
    else
    %>
    <center>
    <h1>Contact Us</h1>
    <form method="post" name="mail" action="mail.jsp">
    <table border="0">
    <tr>
    <td><b>First Name :</b></td>
    <td><input type="text" name="fnm" size=24></td>
    </tr>
    <tr>
    <td><b>Last Name :</b></td>
    <td><input type="text" name="lnm" size=24></td>
    </tr>
    <tr>
    <td><b>Facility :</b></td>
    <td><input type="text" name="facility" size=24></td>
    </tr>
    <tr>
    <td><b>Subject :</b></td>
    <td> <select name="select">
              <option>-------------------------------</option>
    <option>Missing File</option>
    <option>Correction Issue</option>
    <option>Refer Us</option>
    <option>Miscellaneous</option>
    </select></td>
    </tr>
    <p>
    <tr>
    <td><b>Comments :</b></td>
    <td><textarea name="message" rows = "10" cols="50"></textarea></td>
    </tr>
    <tr>
    <td><b>Best way to contact :</b></td>
    <td>
    <select name="select2">
              <option>--------------</option>
              <option>Phone</option>
    <option>Email</option>
    <option>Fax</option>
    </select>
    <input type="text" name="way" size=24></td>
    </tr>
    </table>
    <p>
    <font face="Helvetica"><input type="submit"
    value="Submit" name="Command">
    </font>
    </form></center>
    <%
    %>
    </body>
    </html>

    Ur messaging server will not be up..
    regards
    shanu

  • JSP send mail exception,plz help

    Hi,
    I have written code for mail program in jsp but it gives "javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketException: Connection reset "
    what will be the reason for this plz help.
    thanks

    restart your machine then it s will be corrected...i mean socketexception
    i have found my problem...its a problem about delaying emails like spam protection...ur mail server and and script must run on the same ip...and so my problem solved...
    maybe there is a trick for delaying emails even they dont run under the same ip but i dont know..!

  • Having JSP problem plz help me

    i make small proj with small DB
    i have java bean to setter and getter of the fields in the table
    so i have this Exception
    Generated servlet error:
    TabelBean cannot be resolved or is not a type
    i search for error but i didn't find it >>>>plz help me

    Did you import the class into the JSP?
    <%@ page import="myPackage.MyClass" %>

  • The jsp file does not open the new login window but opens the source code.....plz help

    When i try to log in to the log in link at the site https://efp.bpcl.in the log in page does not open but the firefox wants to ask with which program the firefox should open the file and when we give firefox or internet explorer than it opens the source code.Plz help...

    Those files are send as application/octet-stream and that makes Firefox display a download dialog.
    http://developer.mozilla.org/en/docs/Properly_Configuring_Server_MIME_Types

  • A javaScript code that runs fine in IE but not in other plz help

    Hello friends,
    plese help me in getting the code for Opera and Mozilla browsers. The following code runs fine in IE but not in other browsers. it show titlebar in other browsers. What to do disable titlebar in other browsers? plz help
    <html>
    <head>
    <script>
    //Frameless Banner Popup
    // Set the url of the banner popup window page
    //var theURL = "index.htm";
    var theURL = "/cgi-bin/login";
    // Set the title of the popup window
    var title = "Login"
    // Set the size of the popup window
    var windowWidth = 350; // cannot be less than 100
    var windowHeight = 350; // cannot be less than 100
    //var windowWidth = window.screen.width; // cannot be less than 100
    //var windowHeight = window.screen.height; // cannot be less than 100
    // Set the position of the popup window
    var windowX = ((window.screen.width/2) - 175);
    var windowY = ((window.screen.height/2) - 175);
    // Set true to auto-center (positions will be ignored)
    var autocenter = false;
    // Set true for popup to close when launch page does
    var autoclose = false;
    var s="width="+windowWidth+",height="+windowHeight;
    var beIE=document.all?true:false;
    var done=new Object("no");
    if(autocenter){
    windowX = (window.screen.width-windowWidth)/2;
    windowY = (window.screen.height-windowHeight)/2;
    function doAgilePopup(){
    if (beIE){
    agilePopper = window.open("","popAgile","fullscreen,"+s);
    agilePopper.blur();
    window.focus();
    agilePopper.resizeTo(windowWidth,windowHeight);
    agilePopper.moveTo(windowX,windowY);
    var frameString=""+
    "<html>"+
    "<head>"+
    "<title>"+title+"</title>"+
    "</head>"+
    "<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
    "<frame name='top' src='"+theURL+"' scrolling=no>"+
    "<frame name='bottom' src='about:blank' scrolling='no'>"+
    "</frameset>"+
    "</html>"
    agilePopper.document.open();
    agilePopper.document.write(frameString);
    agilePopper.document.close();
    }else{
    agilePopper=window.open(theURL,"popAgile","scrollbars=no,"+s);
    agilePopper.blur();
    window.focus();
    agilePopper.resizeTo(windowWidth,windowHeight);
    agilePopper.moveTo(windowX,windowY);
    agilePopper.blur();
    if (autoclose){
    window.onunload = function(){agilePopper.close();}
    done="okay";
    </script>
    </head>
    <BODY onLoad="doAgilePopup(),top.window.close()">
    </body>
    </html>

    missing semicolon in end of the variable frameString ,
    better write the string in single line thats easy to find the bugs like this.
    var frameString=""+
    "<html>"+
    "<head>"+
    "<title>"+title+"</title>"+
    "</head>"+
    "<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
    "<frame name='top' src='"+theURL+"' scrolling=no>"+
    "<frame name='bottom' src='about:blank' scrolling='no'>"+
    "</frameset>"+
    "</html>"

  • Reg: Plz Help me.. Not Getting output

    Hi all,
    I created a rdf using oracle 10g report for below query
    SELECT EMPNO,ENAME,DEPTNO,SAL,MGR FROM EMP
    I Registered above created rdf in oracle apps with output format as xml
    when i ran the report using concurrent request, i am getting below output.
    <G_EMP>
    * <EMPLOYEE>*
    * <EMPNO>1</EMPNO>*
    * <ENAME>ALEX</ENAME>*
    * </EMPLOYEE>*
    * <EMPLOYEE>*
    * <EMPNO>2</EMPNO>*
    * <ENAME>RAGHU</ENAME>*
    * </EMPLOYEE>*
    <EMPLOYEE>
    * <EMPNO>3</EMPNO>*
    * <ENAME>GURU</ENAME>*
    * </EMPLOYEE>*
    * </G_EMP>*
    NOTE:
    I am not getting for rest of column in above query (ie. DEPTNO,SAL,MGR) but when i ran that rdf in oracle 10g report all column in above query are displaying..
    How to resolve this. Its urgent .. Plz help me.

    Hi,
    Please refer to this thread and see if it helps.
    XML report disply XML code instead of report out put
    XML report disply XML code instead of report out put.
    Regards,
    Hussein

  • Code for radio button is not working plz help

    checkboxes are working fine but when i put radio code submit button does nothing
    plz help
    thanks in advance
    <%@ page language="java" contentType ="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" import= "java.sql.*,java.io.*,com.anaghan.MyBeans.CmsConnection"%>
    <jsp:useBean id="obj" scope="request" class="com.anaghan.MyBeans.DepartmentBean"/>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <script language="javascript" >
    function cmdOnSelect()                                   
                   var deptcode=document.DepartmentPage.cmdSelect.value;
                   DepartmentPage.method="post";
                   DepartmentPage.action="./vsnlemployee_calldatasheetcallhistory.jsp?flag=select&cmdSelect="+deptcode;
                   DepartmentPage.submit();           
    function validate()
         var user_etime = document.DepartmentPage.etime.value;
         var etime_length = document.DepartmentPage.etime.value.length;
         var user_edate = document.DepartmentPage.edate.value;
         var edate_length = document.DepartmentPage.edate.value.length;
         var user_calltype = document.DepartmentPage.calltype.value;
         var calltype_length = document.DepartmentPage.calltype.value.length;
         var user_callstatus = document.DepartmentPage.callstatus.value;
         var callstatus_length = document.DepartmentPage.callstatus.value.length;
         if( edate_length==0 )
              alert("Please enter the call date");
              return false;
         else if( calltype_length==0 )
              alert("Please enter the call type");
              return false;
         else if( callstatus_length==0 )
              alert("Please enter the call status");
              return false;
         else if( etime_length==0 )
              alert("Please enter the call timing");
              return false;
         else if(etime_length!=0 && etime_length!=4)
              alert("Entered timing is invalid");
              return false;
         else if (etime_length!=0)
              for (var i = 0; i < etime_length; i++)
                   valid_characters = new RegExp ("[0-9]", "g");
                   var part_user_etime = user_etime.charAt (i);
                   if (!valid_characters.test (part_user_etime))
                        alert("Special characters like '" + part_user_etime + "' are not allowed in timing" );
                        return false;
                   valid_characters = null;
              return true;
         else
              return true;
    function cmdOnClick()                                   
              if (validate())
                        DepartmentPage.method="post";
                        DepartmentPage.action="/anaghan/CallSheet?flag=call";     
                        DepartmentPage.submit()     
    </script>
    <script language="javascript" src="calendar1.js">
    </script>
    </head>
    <body>
    <%
    String uname=(String)session.getAttribute("employeeName");
    if(uname==null)
         response.sendRedirect("/Error.jsp?login=Login Session Problem");
    %>
    <%
         String date1="";
         String date2="";
    %>
    <%!
         ResultSet rs=null;
         Connection con =null;
         String conStr="sun.jdbc.odbc.JdbcOdbcDriver";
         String tableStr="jdbc:odbc:Anaghan";
    %>
    <%
         String companycode=request.getParameter("cmdSelect");
         HttpSession hs = request.getSession();
         hs.setAttribute("companycode",companycode);
         System.out.println("CALLLLL="+companycode);
    %>
    <%
         String flag="";
         String deptcode="";
         String commissioningdate="";
         String closuredate="";
    %>
    <%
         String a2="";String a1="";
    %>
    <form name="DepartmentPage" >
    <TABLE cellSpacing=0 cellPadding=0 width="100%" border="0" >
         <TR>
              <TD align=CENTER>
                   <h2> CALL DATA SHEET </h2>
              </TD>
         </TR>
         <TR>     
              <div>
                                  <FONT face="Arial " color=#000000 size=2>
              <TD valign="top">          
                   <TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
                        <TD width="50%" vAlign="top" align=CENTER height=24 bgcolor=#F8F8F8 >
                                       <tr>
                                            <TD align=RIGHT>Select Company - </TD>
                                                 <td><SELECT name="cmdSelect" size="1" onChange="cmdOnSelect();">
                                                 <OPTION SELECTED></OPTION>
                                                      <%
                                                           deptcode=request.getParameter("cmdSelect");
                                                           response.setContentType("text/html");
                                                           ResultSet rs = obj.onSelect();
                                                           while(rs.next())
                                                                String tempName=rs.getString(2);
                                                      %>
                                                 <OPTION id= "a<%=tempName %>" value= "<%=tempName%>"> <%=tempName %></OPTION>
                                                 <%}%>
                                                 </SELECT></td>
                                       </TR>
                                            </TD>
                                       </TABLE>
                                       <TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
                                            <TR>
                                                 <TD>
                                                 <table align="center" width="90%" cellspacing="2" cellpadding="2">
                                                      <tr>
                                                           <td align="center"><h2>Contact Person</h2></td>
                                                      </tr>
                                                 </table>
                                                 <table align="center" width="90%" border="1" cellspacing="2" cellpadding="2">
                                                 <tr><th>Name</th><th>Landline</th><th>Mobile</th><th>Fax</th><th>E-mail</th></tr>
                                                 <%!
                                                      ResultSet result=null;
                                                 %>
                                                 <%
                                                      response.setContentType("text/html");
                                                 try{
                                                      Connection con = DriverManager.getConnection("jdbc:odbc:Anaghan");
                                                      Statement stmt=con.createStatement();
                                                      result =stmt.executeQuery("select * from enquiry_details where companycode='"+deptcode+"' ");
                                                      while(result.next())
                                                      %>
                                                      <tr>
                                                           <OL><td align ="center"><%=result.getString(9) %></td>
                                                           <td align ="center"><%=result.getString(10) %></td>
                                                           <td align ="center"><%=result.getString(11) %></td>
                                                           <td align ="center"><%=result.getString(12) %></td>
                                                           <td align ="center"><%=result.getString(13) %></td></OL>
    <tr>
                                                           <OL><td align ="center"><%=result.getString(14) %></td>
                                                           <td align ="center"><%=result.getString(15) %></td>
                                                           <td align ="center"><%=result.getString(16) %></td>
                                                           <td align ="center"><%=result.getString(17) %></td>
                                                           <td align ="center"><%=result.getString(18) %></td></OL>
                                                           <%}
                                                      catch(Exception e)
                                                           e.printStackTrace();
                                                      }%>
                                                 </tr></table>
                                                 </TD>
                                            </TR>
                                            <TR>
                                                 <TD>
                                                 <table align="center" width="90%" cellspacing="2" cellpadding="2">
                                                      <tr>
                                                           <td align="center"><h2>Call History</h2></td>
                                                      </tr>
                                                 </table>
                                                 <table align="center" width="90%" border="1" cellspacing="2" cellpadding="2">
                                                 <tr><th>Call Type</th><th>Call Status</th><th>Service Type</th><th>Feedback</th><th>Next Visit</th><th>Call Date</th></tr>
                                                 <%!
                                                      ResultSet result1=null;
                                                 %>
                                                 <%
                                                      response.setContentType("text/html");
                                                 try{
                                                      result1=obj.onSelectCallHistory(deptcode);
                                                      while(result1.next())
                                                      %>
                                                      <tr>
                                                           <OL><td align ="center"><%=result1.getString(3) %></td>
                                                           <td align ="center"><%=result1.getString(4) %></td>
                                                           <td align ="center"><%=result1.getString(6) %></td>
                                                           <td align ="center"><%=result1.getString(7) %></td>
                                                           <td align ="center"><%=result1.getString(9) %></td>
                                                           <td align ="center"><%=result1.getString(8) %></td>
                                                           </OL>
                                                           <%}}
                                                      catch(Exception e)
                                                           e.printStackTrace();
                                                      }%>
                                                 </tr></table>
                                                 </TD>
                                            </TR>
                                       <TABLE cellSpacing=15 cellPadding=0 width="100%" border="0">
                                            <TD width="50%" vAlign="top" align=CENTER height=24 bgcolor=#F8F8F8 >
                                            <TR>
                                                 <TD></TD>
                                            </TR>
                                            <TR></TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 Type of Call - </TD>
                                            <td>
                                            <input type = radio name=calltype value=personal/>personal
                                            <input type = radio name=calltype value=email/>Email</td>
                                                 <!-- <TD><SELECT name="calltype" size="1" >
                                                      <OPTION SELECTED></OPTION>
                                                      <OPTION id= "s" value= "personal"> Personal </OPTION>
                                                      <OPTION id= "s" value= "telephonic"> Telephonic </OPTION>
                                                      <OPTION id= "s" value= "email"> E-mail </OPTION>
                                                      <OPTION id= "s" value= "meeting"> Meeting </OPTION>
                                                      </SELECT>
                                                 </TD>-->
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 Status of Call - </TD>
                                                 <TD>
                                                 <SELECT name="callstatus" size="1" >
                                                      <OPTION SELECTED></OPTION>
                                                      <OPTION id= "s" value= "cold"> Cold </OPTION>
                                                      <OPTION id= "s" value= "warm"> Warm </OPTION>
                                                      <OPTION id= "s" value= "hot"> Hot </OPTION>
                                                      <OPTION id= "s" value= "closed"> Connection Executed </OPTION>
                                                      <OPTION id= "s" value= "upgrade"> Upgrade </OPTION>
                                                      <OPTION id= "s" value= "downgrade"> Downgrade </OPTION>
                                                      <OPTION id= "s" value= "shiftingoflocation"> Shifting of Location </OPTION>
                                                      <OPTION id= "s" value= "connectionterminated"> Connection Terminated </OPTION>
                                                      </SELECT>
                                                 </TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>Date - </TD>
                                                 <TD><input type="text" readonly name="edate" id="edate" size="10" value="<%=date1 %>">
                                                 <img src="./cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date">
                                                 </TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 Time - </TD>
                                                 <TD><input type="text" size="4" name="etime" maxlength="4"></TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 </TD>
                                                 <TD>(Write timing in 0000 - 2400 in this format only)</TD>
                                            </TR>
                                            <TR><TD align=CENTER> INFRASTRUCTURE DETAILS
                                                 </TD></TR>
                                            <TR></TR>     
                                            <TR>
                                                 <TD align=RIGHT bgcolor=#00CCFF>     
                                                 <font color="#CC6600" size=4>Details of service </font></TD>
                                                 <TD></TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>                                   
                                                 Circuit Specification - </TD>
                                                 <TD><SELECT name="servicetype" size="1" >
                                                      <OPTION SELECTED>---Services---</OPTION>
                                                      <OPTION id= "s" value= "IPLC"> IPLC </OPTION>
                                                      <OPTION id= "s" value= "VPN"> VPN </OPTION>
                                                      <OPTION id= "s" value= "ILL"> ILL </OPTION>
                                                      <OPTION id= "s" value= "VoIP"> VoIP </OPTION>     
                                                      <OPTION id= "s" value= "ISDN"> ISDN </OPTION>
                                                      <OPTION id= "s" value= "IDC"> IDC </OPTION>
                                                      <OPTION id= "s" value= "V-IPLC"> V-IPLC </OPTION>
                                                      <OPTION id= "s" value= "contactcenter"> Contact Center </OPTION>
                                                      </SELECT>
                                                 </TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT vAlign=TOP>
                                                 Feedback Details - </TD>
                                                 <TD><TEXTAREA wrap="virtual" name="feedback" rows=5 cols=30 MAXLENGTH=100></TEXTAREA></TD>
                                            </TR>
                                            <TR>
                                                 <TD align=RIGHT>Next Visit Scheduled - </TD>
                                                 <TD><input type="text" readonly name="nextvisit" id="nextvisit" size="10" value="<%=date2 %>">
                                                 <img src="./cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date">
                                                 </TD>
                                            </TR>
                                            <TR></TR>
                                            <TR>
                                                 <TD></TD>
                                                 <TD>     
                                                      <input type="button" name="bill" value="SUBMIT" onClick="cmdOnClick();">
                                                         <input type="reset" name="reset" value="RESET" >
                                                 </TD>
                                            </TR>
                                       </FONT>
                             </div>
                        </TD>
                   </TR>
              </TABLE>
         </TD>
         <TD vAlign=TOP bgcolor=#FFFFFF>
                   </TD>
         </TR></TABLE>
    </form>
    <script language="JavaScript">
         var cal1 = new calendar1(document.forms['DepartmentPage'].elements['edate']);
         var cal2 = new calendar1(document.forms['DepartmentPage'].elements['nextvisit']);
    </script>
    <script language="javascript">
    document.getElementById('a<%=request.getParameter("cmdSelect")%>').selected=true;
    </script>
    <BR><BR>
    <jsp:include page="index-end.jsp"/>
    </body>
    </html>

    If the reset doesn't work, you have to force iPad into Recovery Mode
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.
    3. Repeat the process if necessary.

  • Plz help me to close new window !  !  !  !  !  !  !

    Hi all,
    i'm a fresher in jsp. i write a jsp page with a 'text box' & a button. when i click the button, i want to see the html page that can choose somthing from it & then, i want to see the selected data in the 'text box' of jsp page of previous window. but, when i run my code, the jsp page open, then when i click the button, the html page appear with new window. but, when i choose one & click the submit button, it call the jsp page again in new window. i don't want to see the jsp page again in new window. but in previous window with the data i selected in the 'text box'.
    How can i do it? where can i change?
    Plz help me.
    Here my coding ..........
    \\\\\\\\\\ 13p3.jsp \\\\\\\\\\\\\\\\\\\\\\
    <%@ page language="java" info="form processing page" %>
    <html>
    <head><title></title></head>
    <body>
    <%! String sid; %>
    <%
    sid = request.getParameter("id");
    %>
    <input type="text" name="ID" size=20 value=<%= sid %>>
    <%= sid %>
    <input type="button" name="ControlButton" value="Start." onClick="window.open('13p2.html','ControlWindow','width=250, height=225')">
    </body>
    </html>
    \\\\\\\\\\\\\ 13p2.html \\\\\\\\\\\\\\\\\
    <html>
    <head><title></title></head>
    <body>
    <form method=post action="13p3.jsp">
    <table width=100% border=2 bordercolor=#00ffdd>
    <tr><td colspan=2>
    <table bgcolor=#A5A6C6#00ffdd width=100%><td width=50%><center>ID</center></td><td width=50%><center>Name</center></td></table>
    </td></tr>
    <tr><td width=50%><center><input type=radio name="id" value=1>1</center></td><td width=50%>Ma The The</td></tr>
    <tr><td width=50%><center><input type=radio name="id" value=2>2</center></td><td width=50%>Ma Mar Mar</td></tr>
    <tr><td width=50%><center><input type=radio name="id" value=3>3</center></td><td width=50%>Ma Mie Mie</td></tr>
    </table>
    <table width=100% border=0>
    <tr><td width=100%><center><input type=submit value=Submit></center></td></tr>
    </table>
    </form>
    </body>
    </html>
    \\\\\\\\\\End
    thanks ...
    icyrock.

    This isn't a JSP problem. Brush up on your Javascript.

Maybe you are looking for

  • How efficient is it to hook up a monitor to my macbook pro with a usb to vga adapter

    I want to hook up a secondary monitor to my comouter by using a usb to vga adapter. However I have read that it may be really slow. Is this true? I already have a monitor connected via my thunderbolt port to hdmi.

  • Date based Resultset and Date display

    Hi I have two jsp pages. In first page user selects a Date and name, based on that 2nd jsp display a resultset in a table. I want to Display Selected name and Date on 2nd Page. I done it for name and unable to show the Date and query is also to be mo

  • Inspector Bug?  and question for Speed Users.

    Two Part Question I noticed after working with around 4 or 5 tracks containing 2 samplers and a few synths, the inspector fails to update when I press up or down to select different tracks in the arrange window. I have to click on the track name pull

  • Making changes in windows projector

    i have created a presentation in flash and published it as an exe(windows projector). now if i have to change or replace an image in it without using the FLA file or using the update button in the library..how do i do it. i tried replacing the origin

  • Error message with visual composer 7.2

    Hello, I'm starting to use the new visual composer with CE 7.2. When I deploy my model, I have this message : "exception on the server while running the build process : See the log for details. !XMSG_GENERAL_ERROR!" Could you please help me to solve