multiplication function in jsp using scriptlet function

multiplication function in jsp using scriptlet function

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>

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
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
using function
using function   using a function to find the value of v from the foiiowing expression 1v=1u+1*f
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
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
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
function
function  difference between function overloading and operator overloading
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
jsp scriptlet
jsp scriptlet  can a method defined in the jsp scriptlet
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
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.ADS_TO_REPLACE_1 JSP Scriptlet Syntax is: <
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.... 
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
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
callig jsp file from javascript function - JSP-Servlet
callig jsp file from javascript function  I want to call a jsp file from javascript function. What I want to do is Whenever a user clicks on a form in html, the function should call specified jsp file.The form has no dynamic
multiple form with multiple function in 1 jsp - JSP-Servlet
multiple form with multiple function in 1 jsp  Hi, I'm using Netbean... in triggering my jsp with 2 forms as 1 for registration and 1 for log in. I need to trigger each form to call several function when user click buttons of these forms
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 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
populating textbox value from the database using onchange function,
populating textbox value from the database using onchange function,  ... selecting from dropdownlist. i have a form in jsp n I created the dropdown list... downlist it call onchange function with the selected value.. my issue issue
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
How ro convert char into string using recursive function in c#??
How ro convert char into string using recursive function in c#??  This coding is for java...but i want this in c# How ro convert char into string using recursive function in c#?? char [] ch={'H','E','L','L','o'}; TO ans
isNaN function
isNaN function  What does isNaN function do
Program to Find Cube Root of any Number without using built in function
Program to Find Cube Root of any Number without using built in function  Please help me in finding cube root of any number without using Built in function in java
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
If function in PHP
If function in PHP  Hi, Provide me the example of If function in PHP. ThanksADS_TO_REPLACE_1   Hi, If function is PHP is used to check... of if() function in PHP:ADS_TO_REPLACE_2 $book="PHP"; if($book=="PHP"){ echo "Book
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
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
disable function
disable function  Sir, I have called a java script function when one radio button is checked i want to disable this function when another radio button is checked ,both radio buttons are of same group Please help Thanks in advance
Printing the String value using NSLog function
In this section you will learn how you can print the value of NSString using the NSLog function. In the following code example we will show you how you can easily output the value of NSString variable using the NSLog function
Displaying the values in text fields of a form from a javascript function in jsp
Displaying the values in text fields of a form from a javascript function... to call a javascript function by passing 3 values from applet. And i have... and javascript function must be available in the same web page. Any help
unoin function
unoin function  how to define a union function in java?(ex:a=a U b) how to write tha java code?give ex.   Java Union Function You have learnt union, intersection etc in Sets. Here the given code finds the union of two
function method
function method  i. void display(String str.int p)with one string... is an example where we have created a function that accepts a string and an integer...); } }   Here is an example where we have created a function that accepts
sort function - JSP-Servlet
Function pointer in c
Function pointer in c  What is the difference between function call with function pointer and without function pointer(normal function call
How to change the value of a variable which is set in jsp (by jstl method) by calling the function from js?
which is set in jsp (by jstl method) by calling the function from js? I set the value in jsp by using jstl method for eg:'<'c:set var="name1" value="Add User...How to change the value of a variable which is set in jsp (by jstl method
What is the use of friend function?
What is the use of friend function?  What is the use of friend function
call function in php
call function in php  What is the call function in PHP please explain
basic function of computer system
basic function of computer system  What is the basic function of computer system
Array Sizeof Function PHP
Array Sizeof Function PHP  Hi, How to count the number of elements in an array using the PHP Array sizeof() function? Please provides me online help links or example of array sizedof() PHP. Thanks
How I get a variable from java script to use it in the scriptlet of jsp.
How I get a variable from java script to use it in the scriptlet of jsp.  Hi i want to get the tinyUrl value in the scriptlet of jsp...;class=moreRewards&dealID=27"; var tinyUrl; BitlyCB.shortenResponse = function
variable function in php
variable function in php  Can any one tell me how to write a variable function in PHP?   Go through the PHP Variable function tutorial ... PHP Variable Function

Ads