Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet multiplication function in jsp using scriptlet function
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


FATANIA SUMEET
multiplication function in jsp using scriptlet function
0 Answer(s)      7 months ago
Posted in : JSP-Servlet


how to display data on text filed at total amount???

FlashTemplatesDesign.com Free Css Templates

    <!-- <form method="link" action="logoutp.jsp">
        <input type="submit" value="logout">-->

    <script type="text/javascript">
        function txtnull(txt)
        {

        var a=txt.value;
            if(a=="")
          {
                alert("insert data");

        }
     }
     function sum(txt)
     {
     var txtFirstnumberValue = parseint(document.getElementById('txt1').value);
     var txtSecondnumberValue = parseint(document.getElementById('txt2').value);
     var result = parseint(txtFirstnumberValue) * parseint(txtSecondnumberValue);
     if(!isNULL(result))
         {
         document.getElementById('txt3').value = result;
            }
     }

    </script>
</head>
<body>
    <!--<p>
    <img src="E:\project\web\images/b.jpg"></p> -->
   <div id="content">

        <!-- header begins -->
       <div id="headertop">



        </div>
        <!-- header ends -->
        <!-- content begins -->
        <div id="main">
           <!-- <div id="leftcon" >-->
    <table width="379" height="277" border="0" style="margin-left:150px"  >
       <form action="save_inv.jsp" method="post">

       <tr>
           <td></td>
           <td></td>
       </tr>
           <tr>
               <td width="181">
               <font color="#000000">DATE::</font>
               </td>
           <td width="174">
               <input type="text" name="date" size="+30" value="<%= new java.util.Date() %>" />                   </td>
      </tr>
            <tr>
                <td>
                    <font color="#000000"> ZONE_NO::</font>
              </td>
                    <td>
                <select id="text" name="type"  ><br />
                         <option value="r1" >r1</option>
                         <option value="m1" >m1</option>
                         <option value="b1" >b1</option>
                </select>
                </td>
      </tr> <br />

           <tr>















          <
           <tr><td> 
                  <font color="#000000">PROUDCT_PRICE::</font></td><td><input type="text1" name="product_price" size="+30" onBlur="txtnull(product_price)" onBlur="sum(product_price)" >
            </td></tr> <br />
             <tr><td>
                <font color="#000000">QUENTITY::</font></td><td><input type="text2" name="total_quentity" size="+30" onBlur="txtnull(total_quentity)" onBlur="sum(total_quentity)" />
            </td></tr><br />
            <tr><td>
                  <font color="#000000">REMINING QUENTITY::</font></td><td><input type="text" name="remining_quentity" size="+30" onBlur="txtnull(remining_quentity)">
              </td></tr> <br />
           <tr><td> 
                     <font color="#000000">TOTAL_AMOUNT::</font></td><td><input type="text3" name="total_amount" size="+30" onBlur="txtnull(total_amount)" onBlur="sum(total_amount)" ></td></tr> <br />
           <tr>
             <td>

               <div align="right">
                 <input name="button" type="submit"  value="SAVE" align="center" />
               </div>
             <td><input name="button" type="submit"  value="SEARCH" align="center" />
          <!--   <input name="button" type="submit" value="DELETE" align="center"  />-->
           <!--  <input name="button" type="submit" value="BACK" align="center"  />--></td>
           <tr><br />
       </table>


</body>


Advertisement
View Answers

Related Tutorials/Questions & Answers:
multiplication function in jsp using scriptlet function
multiplication function in jsp using scriptlet function   how...">--> <script type="text/javascript"> function txtnull...; if(a=="") { alert("insert data"); } } function sum(txt
In JSP page, inside a javascript function, can I place a java code using scriptlet tag?
In JSP page, inside a javascript function, can I place a java code using... to checkListValue() method using scriptlet tag. My doubt here is, can I call the method checkListValue() using scriptlet tag inside the javascript function closeWind
Advertisements
using function
using function   using a function to find the value of v from the foiiowing expression 1v=1u+1*f
how to call the array variable in scriptlet from javascript function
and display them in the dropdown list by using the below function function myFunction...how to call the array variable in scriptlet from javascript function  This is the scriptlet code:- <% String[] abc={"saab","volvo","bmw","Benz
using function
using function  write a program using function overloading to accept any sentence and print vowels and consonants sepratly   Here is an example that accepts a sentence from the user and display the vowels and consonants
Handle mail function using JSP & Servlet
Handle mail function using JSP & Servlet  Dear Sir, for my final year project i want to add email function to confirm registration & confirm appointment. I'm using JSP & Servlet and apache web server. I'm developing
function
function  difference between function overloading and operator overloading
jsp function - JSP-Servlet
jsp function  how to make function in jsp... i want example of jsp... an Example We can write functions or methods into JSP using the Declaratives tags... or print the data from database using JSP. http://www.roseindia.net/jsp/submit
jsp scriptlet
jsp scriptlet  can a method defined in the jsp scriptlet
JSP Scriptlet
JSP Scriptlet   Explain JSP Scriptlet and give the syntax of this Scriplet.   Hi, The JSP Scriptlet can contain any number of language... in the page scripting language. JSP Scriptlet Syntax is: <% //java codes
user defined function inside a jsp
user defined function inside a jsp  how to write a user defined function inside a jsp page
calling function - JSP-Servlet
calling function  Hai, How to call a java file in jsp file... : 1.Create a jsp page "test.jsp" Example of Extends Attribute of page Directive in JSP 2.Use "import" attribute in JSP
validation of strings using java function
validation of strings using java function  hi all, i am uploading data from csv file to data base where i took student id as string of length 6 char of the form abc123 will you please give me a function to validate this field
sum and avg function using HQL.
sum and avg function using HQL.  How to use sum and avg function... of them. sum() function returns summation of specified field in the table. avg() function returns average of specified field in the table. Example
Help with javascript function - JSP-Servlet
is that the function BookSeat() to change the value of the button being clicked to "You... properties of those clicked buttons to be transferred to the next jsp page. ----So what should i write in the BookSeat() function that'll accomplish
calling zipping function - JSP-Servlet
calling zipping function  Hi, Is it possible to zip a jsp file. I wrote a java function for zipping a file.How to call that java file (zipping function ) in JSP ? pls help me Thanks.... 
JSP Scriptlet Tag
JSP Scriptlet Tag   Defined JSP Scriptlet Tag ?   A scriptlet tag is used within a Java Server page to execute a java source code scriplet... the code in between the Scriptlet tag accesses any variable or bean declared. <
How i write a function/method in jsp?
How i write a function/method in jsp?  How write the function/method in jsp? Using that method i can retrieve the value coming from database. give me example plz. Actually i want to show the list of user detail
Round of to a multiple of 5 without using function
Round of to a multiple of 5 without using function  Please help me out... U enter values like 239, 2543.876, 962.... Give me an equation without using any function which will give output of 240, 2545, 960 respectively
Round of to a multiple of 5 without using function
Round of to a multiple of 5 without using function  Please help me out... U enter values like 239, 2543.876, 962.... Give me an equation without using any function which will give output of 240, 2545, 960 respectively
how to invoket javascript function in JSP - JSP-Interview Questions
how to invoket javascript function in JSP  Dear Sir, my question is how to invoke javascript function written in .js file into our JSP. using which tag in JSP this is possible
i want to pass Javascript value to JSP scriptlet..
i want to pass Javascript value to JSP scriptlet..  i am having a problem that, i am having a combo box in the JSP page when i select an item from... now i want to pass this value to JSP scriptlet
isNaN function
isNaN function  What does isNaN function do
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
function method
function method  input Rs. 12000 Discount= 10%, 8% = Rs.(12000-1200) = Rs.(10800-864) = Rs. 9936
function method
function method  input Rs. 12000 Discount= 10%, 8% = Rs.(12000-1200) = Rs.(10800-864) = Rs. 9936
Calling a function
Calling a function  Hi, I have a function xyz() in php code. When a button is clicked it should execute that particular function for that i have... function function xyz() { } but this is not working can u tell me
If function in PHP
If function in PHP  Hi, Provide me the example of If function in PHP. Thanks   Hi, If function is PHP is used to check for some condition and the execute a block of code. He is an example of if() function in PHP
How can we get second of the current time using date function?
How can we get second of the current time using date function?  How can we get second of the current time using date function
 

 

 

DMCA.com