BMI by using JSP Languange


Share on Google+Share on Google+

BMI by using JSP Languange
1 Answer(s)      5 years and 2 months ago
Posted in : JSP-Servlet

Using JSP language, create a system that calculates Body Mass Index (BMI) of users who entered their weight and height. Then, system will display all the records. Can you provide me the coding ?

View Answers

October 31, 2012 at 11:58 AM

Here is a jsp code that accepts the height and weight of the user and find the BMI.


<form name="form" method="post" action="bmp.jsp">
Enter Weight: <input type="text" name="weight">
Enter Height: <input type="text" name="height">
              <input type="submit" value="Find BMI">


String wt=request.getParameter("weight");
String ht=request.getParameter("height");

int weight=Integer.parseInt(wt);
int height=Integer.parseInt(ht);

  int w=weight*703;
  int h=height*height;
  int bmi = w/h;
  out.println("BMI of weight "+weight+" and height "+height+" is: "+bmi);


Related Tutorials/Questions & Answers:
BMI by using JSP Languange
BMI by using JSP Languange  Using JSP language, create a system that calculates Body Mass Index (BMI) of users who entered their weight and height. Then, system will display all the records. Can you provide me the coding
BMI by using JSP Languange
BMI by using JSP Languange  Using JSP language, create a system that calculates Body Mass Index (BMI) of users who entered their weight and height. Then, system will display all the records. Can you provide me the coding
Java BMI code
in pounds and returns the BMI using the formula: weight * 703 / height2 The main...Java BMI code  could someone help me with this heightInInches( ) takes 2 integer parameters, feet and inches which represents someone?s height
BMI Calculator, BMI Calculator iPhone, BMI Calculator iPhone
BMI Calculator for iPhone Free iBMI Calculator Roseindia Technologies Pvt. Ltd. has offered a free utility tool – BODY MASS INDEX (BMI... calculators for calculating the BMI rate of the body, which accurate
Is JSF using JSP?
Is JSF using JSP?  Is JSF using JSP
report generation using jsp
report generation using jsp  report generation coding using jsp
tree using jsp code
tree using jsp code  i want to draw a tree structure of a family hierarchy using jsp code
A Java Program by using JSP
A Java Program by using JSP  how to draw lines by using JSP plz show me the solution by using program
generate charts using JSP
generate charts using JSP  any one know coding for generate bar chart or pie chart using JSP
ScatterPlot using jsp
ScatterPlot using jsp  hi, can anybody provide me code for ScatterPlot using jsp. thanks
datasource in jsp using struts
datasource in jsp using struts  how to get the datasource object in jsp.datasource is configured in struts-config.xml
using jsp's....and ajax - Ajax
using jsp's....and ajax  Hi, i need code using ajax a text box when i enter an alphabet i should get list of words starts with the alphabet given in the text box
generate pdf using jsp
generate pdf using jsp  how do i generate a pdf using jsp that should query the data from the database and write it into a pdf and download the same
video uploading using jsp
video uploading using jsp  how to upload a videos in web page using jsp   Hi, You can upload your video with the help of JSP file upload code. Once file is upload you can play using any video player. Get the code
Tiemsheet using jsp
Tiemsheet using jsp  Hi, I am working on creating timesheet using JSP. Can you please help me on how to create a timesheet in excel using jsp and users should fill the excel sheet and then on submitting it should uplaod excel
jsp using netbeans
jsp using netbeans  Code to access and manage multiple e-mail accounts on the same page.. user should be able to edit mail accounts' link as required
barcode reader using jsp
barcode reader using jsp  HI ALL, I need jsp code for barcode reader.When we scan the barcode image that barcode value will be stored in one textbox automatically. please helpe me. Regards Bhanu
Using Scriplet in JSP - JSP-Servlet
on } IN HOME JSP ****** home.jsp **** Currently I am directly using...Using Scriplet in JSP  Hi, I need to display suitable fields in my jsp but this should be done upon suitable condition becomes true for eg
sending mail using jsp
sending mail using jsp  please give me the detailed procedure and code for sending mail through jsp program   Please visit the following links: http
Concept of subqueires using JSP
Concept of subqueires using JSP  Can I implement the concept of sub queries in JSP page , if yes please tell me how this can be achieved. I have requirement where output of the SQL query should be given as input to the update
display image using jsp
display image using jsp  display image using jsp and phonegap on emulator of eclipse   Here is a simple jsp code that displays an image on browser. <%@ page import="*" %> <%@page contentType="image/gif
emailing using jsp
emailing using jsp  hi there!! i have some difficulty in sending email using jsp. basically, i have an account table that retrieve all the account from the account-table in my ms sql database. so whenever i deleted the account
Jsp using mvc - JSP-Servlet
Jsp using mvc  hi I have written using mvc2 architecture, i have written logic in java ,i want to print a message on the form stating the the values are inserted successfully.So can you tell me how i have to write the code
Displaying image using jsp and spring.
Displaying image using jsp and spring.  how to display an image stored in WEB-INF/images folder on the browser using jsp and spring
download image using url in jsp
download image using url in jsp  how to download image using url in jsp
jsp using include & with mysql
jsp using include & with mysql  Sir, I am creating a login application using jsp & Mysql. The Codes are--- Html File...... <...; Jsp file....... <%@ page import="java.sql.*" %> <% String
JSP using java - Hibernate
JSP using java  This is my part of Excal sheet code using jdbc connection. int index=1; while( using hibernate.I am having function called displayIps() and displayvalues
jsp using Beans
jsp using Beans  public class Empbean { int empno; String ename... need jsp program for above bean class   Hi Friend, Try the following...); RequestDispatcher rd = req.getRequestDispatcher("/jsp/beandata.jsp"); rd.forward
jsp page authentication panel using jsp/servlet?
jsp page authentication panel using jsp/servlet?  I have 10 jsp jsp forms and 7 users and i want to grant variour permission like edit,delete and save for users dynamically on forms.So please refer me code
Uploading image using jsp
Uploading image using jsp  how to upload image using jsp. Already i... that image file ... I want know that solution using by u... Thanks, P.S.N.   Here is a jsp code that upload image and display it on the browser. 1
upload image using JSP Hibernate
upload image using JSP Hibernate  sir, I want to take image from user and save to database(MYSQL) using Hibernate and JSP Thanks in advance


Advertisement null