Home Tutorialhelp Comment RUNNING JSP PROGRAM TO FIND MAXIMUM OF 2 NOS.

 
 

Comment

RANITA GANGULY
RUNNING JSP PROGRAM TO FIND MAXIMUM OF 2 NOS.,
January 14, 2008 at 12:50 PM

sir,
I ve successfully installed tomcat 4.1, with environment variables as JAVA_HOME=C:\Program Files\java\jdk1.5.0_14, TOMCAT_PATH=C:\Program Files\java\Tomcat 4.1 and classpath=C:\Program Files\java\jdk1.5.0_14\bin;C:\Program
Files\java\Tomcat 4.1\common\lib\servlet.jar; AS PER THE GUIDELINES MENTIONED YOUR DOWNLOAD MATERIALS yet the JSP file MAX with simple code
<HTML>
<%! int a = 10, b=20,max = 0;
if(a>b) out.println("MAXIMUM IS:"+a);
else out.println("MAXIMUM IS:"+b);%></HTML>
and with URL:: "http://localhost:8080/examples/MAX" is given ERROR: with description "The requested resource (/examples/MAX) is not available". Please guide me, TO get the correct result on browser.

Regards,
RANITA
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Programming Tutorials

index
Flash Tutorials JSP Tutorials Perl Tutorials 

Java Beginners

prime nos
prime nos  Instead of using break statement in finding the prime nos...[] args) { for (int number = 2; number <= 100; number++) { int... factor = 2; while (isPrime && factor <= maxFactor 

JSP Servlet Questions

Can not find "org.apache.poi " - JSP-Servlet
Can not find "org.apache.poi "  Hi friend, Thanks for giving me a solution.Thanks a lot.I have executed the program but it is showing... the following jar files 1) poi-2.5.1-final-20040804.jar 2) poi 

SQL Question

Find the Running time in sql***
Find the Running time in sql***  I have 10 backend jobs in sql which... want to find the running time of both the jobs. (i.e when i run the query it should show me how long job has been running) Eg:- Lets consider the sysdate 

EJB Tools

J2EE Tutorial - Running RMI Example
;/html>   How to compile and run the RMI-IIOP program? 1) We require jndi package for running this program.  ... J2EE Tutorial - Running RMI Example     

Java Beginners

To find first two maximum numbers in an array
To find first two maximum numbers in an array  Java program to find first two maximum numbers in an array,using single loop without sorting array 

JSP Servlet Questions

Error 500-Server are not find the jar file in the program of upload the file - JSP-Servlet
Error 500-Server are not find the jar file in the program of upload... to keep in mind. 2. Come back later. The 500 Internal Server Error message is one... a program to upload a file.I include the commons-fileupload-1.2.1.jar file in lib 

Java Beginners

Java Not running - Java Beginners
) and final_grade (type of String) program using getter/setter but not want a public setter method for final_grade; Here is my program that calcuate the average of all... to represntation of each score into a double in .JSP file double sum, average 

Programming Tutorials

Features of Jsp 2
Features of Jsp 2.0 JSP 2.0 is released with new promises. JSP 2.0 is a upgrade version of JSP 1.2 with several new and interesting features. This version... of the JSP 2.0 is to make JSP easier than ever, it has been made in such a way 

Java Beginners

How to find maximum value for userdefined objects in ArrayList
How to find maximum value for userdefined objects in ArrayList  Hi sir,I have requirement i.e finding maximum value in userdefined objects... for employe class and write for below sample code ,in this code i can findout maximum 

Java Beginners

How to find maximum value for userdefined objects in ArrayList
How to find maximum value for userdefined objects in ArrayList  Hi sir,I have requirement i.e finding maximum value in userdefined objects... for employe class and write for below sample code ,in this code i can findout maximum 

Java Beginners

How to find maximum value for userdefined objects in ArrayList
How to find maximum value for userdefined objects in ArrayList  Hi sir,I have requirement i.e finding maximum value in userdefined objects... for employe class and write for below sample code ,in this code i can findout maximum 

JSP Tutorials

JSP Tutorials - Page2
JSP Tutorials page 2 JSP Examples Hello World JSP Page... in JSP Applet is java program that can be embedded into HTML pages. Java... Page 1 | JSP Tutorials Page 2 | JSP Tutorials Page 3 

Blog

Site map Index
sections by topics on our website. You can find the best tutorials here at Rose... Tutorial  | J2ME Tutorial | JSP Tutorial | Core Java Tutorial...; | Java Servlets Tutorial | Jsp Tutorials | Java Swing Tutorials 

Java Server Faces Questions

plz help me find a program
plz help me find a program  plz help..i want a source code in jsp for order processing 

JSP Servlet Questions

Program - JSP-Servlet
Program  Respected Sir/Madam, I am R.Ragavendran.. Thanks for your reply.. Still I have 2 doubts: 1)And how can I get the clicked image Emp ID value in Emp ID text box? 2)Where can I find repar.jpg and greenar.gif? Asusual 

Struts Questions

STRUTS 2 Could not find action or result
STRUTS 2 Could not find action or result  hiii..i am new to struts 2 framework...i developed my jsp code into sturs frame work...but its showing some... on my log: WARNING: Could not find action or result There is no Action 

JSP Servlet Questions

jsp program - JSP-Servlet
jsp program  1.write a servlet program that finds out the given... an application in jsp to redirect the request to any other page.  Hi Friend...: 2)ArmstrongServlet: import java.io.*; import java.sql.*; import 

WebSevices Questions

While running jsp
While running jsp  I found this error when i run the client.jsp can anyone help me javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://localhost:8080/WebService1/MyWebService?wsdl. It failed with: http 

JSP Servlet Questions

Apache POI Excel Maximum Row - JSP-Servlet
Apache POI Excel Maximum Row  I am using Apache POI lib for export jsp results to excel file. I am getting error : Row number must be between 0... row value ? and How can I change that ? Thanks in advance Regards 

Java Beginners

counting the positive,negative and zero nos. - Java Beginners
counting the positive,negative and zero nos.  Create a program that will input n number, and determine the number of positive, negative 

JSP Servlet Questions

Program Very Urgent.. - JSP-Servlet
Program Very Urgent..  Respected Sir/Madam, I am R.Ragavendran.. Thanks for your superb reply. I got the link you sent. But I find a simple problem... in the value of strar[1] and strar[2] in winopenradio.jsp.. But i dont know 

Java Interview Questions

maximum size of arraylist - java
on size of RAM. The theoretical maximum number of elements in an ArrayList is 2^31-1. 2)Inserting an element in the middle of the array list and removing...maximum size of arraylist - java  1.what is the maximum size 

JSP Servlet Questions

jsp
enter. 9)You jsp program will then display the output on the browser...jsp  I'm attempting to run the program , I got the following error.I...-tomcat-5.5. 2)Like that create another variable classpath and put the path of apache 

Java Beginners

jsp - Java Beginners
Program. 1. Write your JSP code or find it from the above given link and write...jsp  How to Run the my first jsp program?  Steps to run JSP Program If you are new to JSP, please first read what is JSP and how you can 

JavaScript Questions

jsp program related
jsp program related  how to run jsp program   How to run jsp program: Follow these steps: 1)Go to the Control Panel>>System>>... url: http://localhost:8080/examples/hello.jsp and press enter. 9)You jsp program 

Java Beginners

Program to find no of metrics in a file ----- Java code
Program to find no of metrics in a file ----- Java code  Hi Friends, I got a task to calculate the metrics of a program, like to find the no of SELECT and INSERT statement is a program. With that I have to even calculate 

JSP Servlet Questions

Jsp program
Jsp program  A sample program of jsp using dml quaries 

Struts Examples

Struts 2 Tutorial
on Struts 2 framework.    Writing Jsp, Java... to write program in Struts 2 to upload the file on the server. In this example we...Struts 2 Tutorial       

JSP Servlet Questions

jsp
;" import = "java.io.*" errorPage = "" %> <jsp:useBean id = "formHandler...; var third_cell = row.insertCell(2); third_cell.innerHTML... = row.insertCell(2); third_cell.innerHTML = document.getElementById("txt 

JSP Servlet Questions

jsp
;" import = "java.io.*" errorPage = "" %> <jsp:useBean id = "formHandler...; var third_cell = row.insertCell(2); third_cell.innerHTML... = row.insertCell(2); third_cell.innerHTML = document.getElementById("txt 

MySQL

Validating User in JSP
Validating User in JSP       Example program for validating user in JSP In this example we have to develop a JSP... server for running servlet. Validating user means to find out whether the user 

Java Beginners

To find first two maximum numbers in an array,using single loop without sorting array.
To find first two maximum numbers in an array,using single loop without sorting array.  Java program to find first two maximum numbers in an array,using single loop without sorting array 

Java Beginners

To find first two maximum numbers in an array,using single loop without sorting array.
To find first two maximum numbers in an array,using single loop without sorting array.  Java program to find first two maximum numbers in an array,using single loop without sorting array 

JSP Interview Questions

To insert maximum number of data in database.
To insert maximum number of data in database.  how to change string data type into clob data type in jsp   Hi Friend, Please visit the following link: http://www.roseindia.net/jdbc/insert-clob-example.shtml Thanks 

JSP Servlet Questions

draw the running or moving graph using database in jsp
draw the running or moving graph using database in jsp  hi my question is how to draw the running or moving graph using jsp and take x and y co-ordinate value from database 

JSP Servlet Questions

draw the running or moving graph using database in jsp
draw the running or moving graph using database in jsp  hi my question is how to draw the running or moving graph using jsp and take x and y co-ordinate value from database 

JSP Servlet Questions

program - JSP-Servlet
program  Example program on RequestDispatcher  Hi I am sending links, where u find about requestDispatcher method, how it work and. http://www.roseindia.net/javacertification/wcd-guide/machanism.shtml http 

Java-Tutorials

JavaScript array index of
JavaScript array index of  In this Tutorial we want to describe that makes you to easy to understand JavaScript array index of. We are using JavaScript... line. 1)index of( )  - This return the position of the value that is hold 

Java Beginners

How to find maximum value in ArrayList
How to find maximum value in ArrayList  **Sir i am writing below code but its not working.i don't know how to implement logic my requirement.My requirement is find maximum value in userdefined objects and dispaly that object 

Java Beginners

How to find maximum value in ArrayList
How to find maximum value in ArrayList  **Sir i am writing below code but its not working.i don't know how to implement logic my requirement.My requirement is find maximum value in userdefined objects and dispaly that object 

Java Beginners

How to find maximum value in ArrayList
How to find maximum value in ArrayList  **Sir i am writing below code but its not working.i don't know how to implement logic my requirement.My requirement is find maximum value in userdefined objects and dispaly that object 

Java Beginners

How to find maximum value in ArrayList
How to find maximum value in ArrayList  **Sir i am writing below code but its not working.i don't know how to implement logic my requirement.My requirement is find maximum value in userdefined objects and dispaly that object 

JSP Servlet Questions

Program Urgent - JSP-Servlet
Program Urgent  Respected Sir/Madam, I am R.Ragavendran. I am...]; document.getElementById("emp_id").value= strar[2]; document.getElementById("ename... for more information. http://www.roseindia.net/jsp Thanks. Amardeep 

RMI Questions

Java Compilation and running error - RMI
Java Compilation and running error   The following set of programs... showing problem. Please tell me why I am unable to run this program with Java... and set the message label on frame */ gbc.gridx = 1; gbc.gridy = 2 

JSP Servlet Questions

Program - JSP-Servlet
"))); pstmt.SetString(2,(request.getParameter("name"))); Resultset rs... for more information, http://www.roseindia.net/jsp/ Thanks Roseindia Team 

JSP Servlet Questions

Sample program of JSP
Sample program of JSP  <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html...; <td>Address:</td> <td><textarea rows="2" cols="20" name 

JSP Servlet Questions

Sample program of JSP
Input program in JSP  <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html...;td>Address:</td> <td><textarea rows="2" cols="20" name 

Java Beginners

jsp program
jsp program  sir how we can load the data on the server in the on line project 

JSP Servlet Questions

Program - JSP-Servlet
) function call. 2."img_id" parameter return the current id of clicked image 

JSP Tutorials

JSP Simple Examples
JSP Simple Examples Index 1. Creating... in jsp. To make a program on factorial, firstly it must be clear what... by the expression language. Index 2 

Java Beginners

error while running a jsp page in netbeans
error while running a jsp page in netbeans  this is error that come under column "java db processes" in netbeans Exception in thread "main" java.lang.ExceptionInInitializerError 

JSP Servlet Questions

Simple Program Very Urgent.. - JSP-Servlet
Simple Program Very Urgent..  Respected Sir/Madam, I am R.Ragavendran.. Thanks for your superb reply. I find a simple problem which i have tried my...: strar[1]=tahoma,arial,serif;color strar[2]=white;background color Plz Plz check 

JSP Servlet Questions

JSP cannot find symbol error - JSP-Servlet
JSP cannot find symbol error  Suppose-- we created 'a.jsp' in which we make a database connection... how to retrieve 'new' here... If I want to access the 'new' string within the form what should i do???   

JSP Servlet Questions

Running threads in servlet only once - JSP-Servlet
Running threads in servlet only once  Hi All, I am developing a project with multiple threads which will run to check database continuously... process while mail thread is running. these two separate threads has to run 

JSP Servlet Questions

Jsp Program - JSP-Servlet
Jsp Program  Write a code in JSP to insert a record in product table with fields prod_id,prod_name,quantity,price.The table is created in MS-Access  Hi Friend, Try the following code: Here 'access' is our DSN 

JSP Servlet Questions

About MVC 2 architecture and jsp - JSP-Servlet
About MVC 2 architecture and jsp  Sir, I want to know about MVC 2... is the need of servlets when jsp can perform all functionalities .  Hi Friend, JSP and Servlets both are the server side components which can respond 

JSP Servlet Questions

jsp program
jsp program  for example assume four user u1,u2,u3,u4 having the passwords pwd1,pwd2,pwd3,pwd4 respectively.write a servlet for doing the following 1.create a cooki and add these four user id's and passwords to this cookies 

JSP Servlet Questions

JSP
JSP  How to run jsp program in eclipse 

JSP Servlet Questions

To find the reminder for a double - JSP-Servlet
To find the reminder for a double  Dear sir , How to find the reminder for a 0.5%0.1.When i do this it is giving 0.09999999999999998 .it is giving correct zero reminder for even numbers for odd numbers it is giving 

JDBC Questions

jsp
jsp   what is the basic necessities reguired for running jsp using JDBC bridge?? and how to write a jsp code to access the detail present in microsoft access pls send link regarding above 

Java Beginners

error while running the applet - Java Beginners
is correct but u have problem in running the program. You follow the following steps...error while running the applet  import java.applet.Applet; import...); ++num; } } } } i have problem while running the code , error 

Java Magazine Questions

Program
... can any body help for me.using servlet,html   Here is a jsp test...;%= rs.getString(2) %>"></td><td><%=rs.getString(2)%></td>...; </form> 2) result.jsp: <%@page import="java.sql.*"%> <%@page 

JDBC Questions

select maximum time entry row - JDBC
select maximum time entry row  Hi fried you given ans this Sql Query for select maximum value max() function use. "select max(fieldname) from tablename" but this query only for find a max value of that column 

Programming Tutorials

Find position of an array element
Enter element to find its position: 30 30 is found at index...Find position of an array element In this section, you will learn how to find the index of an array element. For this, we have allowed the user to enter 

Java Beginners

Trouble in running Dos Command from Java Servlet
as: java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The system cannnot...Trouble in running Dos Command from Java Servlet  Hello All, I have...:Scan_Result.txt vscanwin32 is resided at location: C:\Program Files\Trend 

Servlets

Java : Servlet Tutorials - Page 2
servlets and jsp in a context or web application.    ...; Upload Image using Servlet In this example program a form... Page 2 

Struts 2 Tutorials

Struts 2 Tutorial: Easy steps to learn Struts 2
are Servlet API 2.4, JSP API 2.0 and Java 5. Struts 2 Tutorial at Roseindia.net... Struts 2 Tutorial: Index Page of Struts 2 Tutorial at Rose India...Struts 2 Tutorial: Easy steps to learn Struts 2 Apache Struts 2 is a popular 

JSP Servlet Questions

jsp
jsp  how to write a servlet and jsp program for user login form 

JSP Servlet Questions

jsp
jsp  how to write a servlet and jsp program for user login form 

Applet Questions

applet running but no display - Applet
applet running but no display  Hai, Thanks for the post. I have... as being empty) but the other jsp text are displaying. In the information bar.... http://www.roseindia.net/jsp 

Java Interview Questions

Please find me a solution that
Please find me a solution that   Write a java program that calculates the area of rectangular, square, triangular, and circle. Your program...' to keep the user running your program until he enters number '5' to exit 

Struts Examples

Struts 2 File Upload
Struts 2 File Upload       In this section you will learn how to write program in Struts 2 to upload the file... in any directory on the server machine. The Struts 2 FileUpload component can 

JSP Servlet Questions

jsp
jsp  how to create multiple tables in oracle 9i using jsp program 

JSP Servlet Questions

JSP code problem - JSP-Servlet
JSP code problem  Hi friends, I used the following code... PROGRAM FOR UPLOADING THE FILE Choose...: <% //to get the content type information from JSP 

JSP Interview Questions

JSP
JSP  how does jsp engines instantiae tag handler classes instances   JSP engines will always instantiate a new tag handler instance every time a tag is encounteredin a JSP page. A pool of tag instances are maintained 

JSP Tutorials

JSP Tutorials
JSP Tutorials and examples, you will find many examples... against database user name and password. This program consists of a JSP page... the fields from table through JSP This is detailed java program to connect 

JSP Tutorials

JSP Architecture, JSP Model 1 architecture, JSP Model 2 architecture
Architecture Model 2 Architecture JSP Model 1 Architecture In case.... Here is the diagram of JSP Model 1 architecture: JSP Model 2 architecture The JSP Model 2 architecture is based on the popular MVC architecture. Here Model 

Struts Questions

jsp to struts 2 action conversion problem - Struts
jsp to struts 2 action conversion problem  i have one jsp page that includes 3 other jsp pages(using RequestDispactcher).how to convert that jsp page to a struts2 action?among that one jsp page is wrritten using jpivot,wct tags 

Struts 2 Tutorials

Struts 2 Hello World Annotation Example
Video tutorial of creating Struts 2 Hello World Annotation Example in Eclipse... World application in Struts 2 version 2.3.15.1" and modify it and add the annotation for and then run the example from Eclipse IDE.  Now Struts 2 

JSP Servlet Questions

jsp - JSP-Servlet
jsp  how can i do program in jsp ???   Hi Friend...:\apache-tomcat-6.0.18; 2)CLASS_PATH= C:\apache-tomcat-6.0.16; Create application folder inside C:\apache-tomcat-6.0.18\webapps and put your jsp file 

JSP Servlet Questions

jsp errors - JSP-Servlet
jsp errors  Hi I got errors when running a jsp file I am giving the file. this is from rose india. I set the class path for 3 jar files i.e.... Now i am getting less errors compared to previous. But I am getting 2 errors 

Java Beginners

index of javaprogram
index of javaprogram  what is the step of learning java. i am not asking syllabus am i am asking the step of program to teach a pesonal student.   To learn java, please visit the following link: Java Tutorial 

JSP Servlet Questions

JSP
JSP   My question is How to create referral hyperlink to the target websites using JSP/JAVA/HTMl...? for eg:assume gmail is the target...://gmail.google.com/gmail/a-19a3...439-46fe2208eb 2)http://gmail.google.com 

Development process Questions

Jsp
Jsp  how can we compile the jsp file in dos command prompt. when i... as an internal or external command, operable program or batch file. how can we... to my file and compilation for the jsp file 

JSP Servlet Questions

Jsp.jasper exception - JSP-Servlet
I am geeting an exception while running the code exception org.apache.jasper.JasperException: Index: 2, Size: 2...:802) root cause java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 

JSP Servlet Questions

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 

Java Beginners

JSP
JSP  1>>>I have 2 page. 1st page is for registration &... on that page 2>>>Please know me about document object and how use document...; Hi Friend, Please visit the following links: http://www.roseindia.net/jsp 

JSP Servlet Questions

JSP
JSP  Hello...this is Prashant khandekar..i am very much new to JSP... there will be 2 text boxes "start" and "end" this text boxes will contain 2 different numbers in which "start will hav 1" and "end will hav 2" and i want 

JSP Interview Questions

JSP
JSP  1)Suppose we edited something in JSP page, do we need to refresh the page? 2)What is pagination? And do we achieve it give me logic? 3)Suppose we have a Servlet in that service () method is there. what will be , if request 

Struts 2 Tutorials

Struts 2 Hello World Example
web application Add JSP and html page to the project Add the Struts 2...Struts 2 Hello World Example - Video Tutorial that shows how to create Hello World example program in Eclipse IDE. In this video tutorial I will teach you 

Java Beginners

Running core java program
Running core java program  I am jayesh raval. I am going to make simplae program and at the time of runnint that program I found class not found exception. I have clear source of that program and that is right in the syntax. so 

Java Beginners

About running the Applet Program
About running the Applet Program  Hi I have composed an Applet Program and compiled the program, until that it is fine but how to run the Applet program(compiling i typed as javac AppletDemo.java)? Is compiling 

Java Beginners

About running the Applet Program
About running the Applet Program  Hi I have composed an Applet Program and compiled the program, until that it is fine but how to run the Applet program(compiling i typed as javac AppletDemo.java)? Is compiling 

JSP Tutorials

JSP Tutorials Resource - Useful Jsp Tutorials Links and Resources
.  You should be able to program in Java. This tutorial teaches JSP...JSP Tutorials          JSP Tutorial The prerequisites for the tutorial 

JSP Servlet Questions

Simple JSP program
Simple JSP program  create a simple jsp page in which number is to be entered by user in jsp page and submit button clicked.If number entered is greater then 100,then message box "no is greater" elseif less "no is lesser 

JSP Interview Questions

jsp.....
jsp.....  1..login screen->user-id and password will be entered and save has to be validated against database corresponding table.on successful... will appear.Secondary page will have two links:search and logout 2..search screen->option 

HTML Questions

jsp
jsp  Develop a JSP page (with some fields) with all the JSP tags with a submit button.Make the JSP page to communicate with the database   ...; 2)insertstudent.jsp: <%@page import="java.sql.*,java.util.*"%> < 

General

Index Out of Bound Exception
the compilation of a program. Index Out of Bound Exception Occurs  when... the exception and keeps your program running. Place the code that cause... of program 2.String Index Out of Bound Exception- The String Index Out of Bound 

JSP Servlet Questions

JSP
JSP  Hi , I am working in JSP. In my project i have to generate my... available on internet. If you have to write Java program for this then you... report program. Thanks   Hi, You many also use Jasper Assistant from 

Advertisements Advertisements
 

 

 

DMCA.com