typos, = or ==, array length, and all elementary things like that should be
elminated. Come on guys, this is a JSP mailing list, not a debugging list,
at least not debug at this level.
Everyone should do a Real Through research before post.
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Karau, Joe
Sent: Friday, February 16, 2001 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Can't convert int to boolean. ??
you also want to user == (which is the comparison operator) instead of =
(which is the assignment operator). Two suggestions for you.
1. Spend a little more time reviewing syntax (and all other options) before
asking for help.
2. To prevent problems similar to this in the future do null == whatever,
therefore when you forget one of the equal signs and code this null =
whatever, it will help you to realize that you missed an equal sign because
you can not assign anything to null.
Joseph Karau
Kingland Systems
[EMAIL PROTECTED]
507-536-3629
-----Original Message-----
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 11:09 AM
To: [EMAIL PROTECTED]
Subject: Can't convert int to boolean. ??
what's wrong with this if statment :
Can't convert int to boolean.
<%
String imageurl = (String)request.getParameter("txtImageURL");
String lastname = (String)request.getParameter("txtLastName");
String firstname = (String)request.getParameter("txtFirstName");
String id = (String)request.getParameter("txtId");
String phone = (String)request.getParameter("txtPhone");
String date = (String)request.getParameter("txtDate");
String department = (String)request.getParameter("txtDept");
String extension = (String)request.getParameter("txtExt");
String email = (String)request.getParameter("txtEmail");
String note = (String)request.getParameter("txtNotes");
String nominatedby = (String)request.getParameter("txtNominatedby");
%>
<%
Driver DriverResults =
(Driver)Class.forName(MM_connCompass_DRIVER).newInstance();
Connection ConnResults =
DriverManager.getConnection(MM_connCompass_STRING,MM_connCompass_USERNAME,MM
_connCompass_PASSWORD);
PreparedStatement StatementResults;
String stmt = "insert into employee VALUES(id, firstname, lastname,
nominatedby, photo, extension, department, note, phone, email, date)";
StatementResults = ConnResults.prepareStatement(stmt);
if (!((imageurl =null) | (lastname =null) | (firstname =null) | (id =null)
| (phone =null) |
(department =null) | (date =null) | (extension =null) | (email =null) |
(note =null) | ( nominatedby =null) ))
StatementResults.executeQuery();
%>
Thanks
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets