The if else statement inside my jsp is not working, it gives me the following error: -
type Exception report
-
-
message
-
-
description The server encountered an internal error () that prevented it from fulfilling this request.
-
-
exception
-
-
org.apache.jasper.JasperException: Unable to compile class for JSP
-
-
An error occurred at line: 51 in the jsp file: /website/weather.jsp
-
Generated servlet error:
-
The operator > is undefined for the argument type(s) String, int
-
-
-
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
-
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
-
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
-
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
-
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
-
-
-
root cause
-
-
org.apache.jasper.JasperException: Unable to compile class for JSP
-
-
An error occurred at line: 51 in the jsp file: /website/weather.jsp
-
Generated servlet error:
-
The operator > is undefined for the argument type(s) String, int
-
-
-
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
-
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
-
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
-
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
-
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
-
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
-
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
-
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
-
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
-
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
-
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
-
-
-
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
-
-
-
-
-
-
-
-
-
-
-
3 3161
You've declared tempString as String and comparing it with an int in 'if'. Perhaps thats why you are getting an error.
The if else statement inside my jsp is not working, it gives me the following error: -
type Exception report
-
-
message
-
-
description The server encountered an internal error () that prevented it from fulfilling this request.
-
-
exception
-
-
org.apache.jasper.JasperException: Unable to compile class for JSP
-
-
An error occurred at line: 51 in the jsp file: /website/weather.jsp
-
Generated servlet error:
-
The operator > is undefined for the argument type(s) String, int
-
-
-
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
-
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
-
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
-
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
-
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
-
-
-
root cause
-
-
org.apache.jasper.JasperException: Unable to compile class for JSP
-
-
An error occurred at line: 51 in the jsp file: /website/weather.jsp
-
Generated servlet error:
-
The operator > is undefined for the argument type(s) String, int
-
-
-
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
-
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
-
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
-
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
-
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
-
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
-
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
-
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
-
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
-
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
-
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
-
-
-
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
-
-
-
-
-
-
-
-
-
-
-
Please, do not start many threads for the same problem
r u getting complilation or runtime error ....
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Ashu |
last post by:
Hi All,
I wanna know is there any method through which we can use
interfaces/Astract classes in JSPs like we implement them in Servlets ?
-regards,
Ashish
|
by: dmbkiwi |
last post by:
I am new to this group, and relatively new to python programming, however,
have encountered a problem I just cannot solve through reading the
documentation, and searching this group on google.
I have written a theme in python for the superkaramba theme engine on kde
(see http://netdragon.sourceforge.net - if you are a kde/linux user, it is
a great visual applet engine). I have uploaded it to www.kdelook.org for
others to download and...
|
by: Alan Sheehan |
last post by:
Hi,
I am re-engineering a lot of existing Web JSPs and hoping to have each
JSP execute a Python script to specify the page contents i.e. a easy
way for end users to modify aspects of the pages without deep Java
know-how.
I have proven the above by creating an interpreter in each page and
simply executing a script file.
|
by: Bart Nessux |
last post by:
Should an if statement have a corresponding else statement? Or, is it OK
to have an if statement by itself. For completeness, it seems the two
should be together, but from experience I know that a if statement by
itself works just fine. Below is an example:
if x >=0:
DO SOMETHING
Would it be better, or perhaps more complete, written like this:
|
by: Neil Zanella |
last post by:
Hello,
Unlike in pre-C99 versions of C where variables can only be defined at the
beginning of blocks, C99 allows variables to be defined in arbitrary
places inside blocks. However, gcc 3.2.2 seems to reveal that there
are still places where this is illegal. For instance, consider the
following code snippet.
int main(void) {
int i = 0;
| |
by: cj |
last post by:
Another wish of mine. I wish there was a way in the Try Catch structure
to say if there wasn't an error to do something. Like an else
statement. Try Catch Else Finally.
Also because I understand Finally runs whether an error was caught or
not, I haven't found a use for finally yet.
|
by: Neroku |
last post by:
Hello, i would like to know what the serious definition of statements
and expressions is:
i know an expression are evaluated to a value, i.e:
1 == 2
5+7
foo( 1,2)
and a statement is executed:
break;
|
by: PerlPhi |
last post by:
hi,,, while ago i was wondering why do some programmers rarely uses the ternary operator. wherein it is less typing indeed. i believe in the classic virtue of Perl which is laziness. well let me show you something first before i go to my delimma.
codes as follows using Mrs. If Else:
#!perl/bin/perl
use strict;
print "Are you sure you want to quit ('yes' or any key for 'no'): ";
chomp($_ = <STDIN>);
|
by: bearophileHUGS |
last post by:
So far in Python I've almost hated the 'else' of the 'for' loops:
- I have problems to remember its meaning;
- It gives me little problems when I later want to translate Python
code to other languages (and you always have to translate long-lived
code).
- I have used it only once, so far.
So so far I'd liked to see it removed from Python 3.0.
But then this article:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |