Couple of things.
1) The code which you have sent us would throw a NullPointerException as the
string variable inputLine is null when you use it in the if statement.
2) Please do try to understand the difference between the == operator and
the equals(String s) method, it shall relieve you of a
Well, I sent out email to 8 of the emails I got back..directly to their box.
It wasn't very nice of me..but too damn bad! ;) It's amazing how some people
know how to set up auto-email, but can't figure out how to avoid pissing
people off on a list (or lists) they may require help from.
You cannot compare String like this. Use the "equals" keyword instead.
For example :
if (mystring.substring(something).equals(somethingElse) )
Hope this helps.
From: Jean Chiang(¦¿²Q§g) [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
As I understood the spec, anything between %! % declaration tags is
processed at compile time not request time.
This means that declaring a field in a declaration tag will result in your
JSP having a variable with that data. This would
result in you seeing the original values when you load a
I sent out email to 8 of the emails I got back..directly to their box
Did it work? You would have got 8 auto-replies :-)
I don't know how many I will get for this mail.
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL
Set the scope in the page directive to session for all your JSPs (%@page
language="Java" session="true"%).
The data held in the session object will be available for all JSPs and
servlets within a given user's session.
- Original Message -
From: "SEUNG-IL, CHOI"[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 02, 2001 4:05 PM
Subject: Fw: [Question] About SWING APPLET(JApplet) with Code Signing
Hello All !
Our Development System(java based Web Application)for which Clients Browser are
Hi All!!
Happy new Year!
I have a question in EJB.
What is the use of Primary Key class in EJB.
Is it must ?.
Shashi
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Hello All,
I use Tomcat and am having problems correctly formatting the web.xml file.
I have added an entry for a taglib but then I get a parse error in my jsp
when attempting to use the taglib. If I remove all the other entries from
the web.xml except the taglib entry then the parser doesn't
Hi
when u have more than one field as a primary key , u have to get a class !
regards
bahram
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body:
You haven't closed the tags properly
taglib
taglib-uri/testtagstaglib-uri
taglib-location/WEB-INF/taglib.tldtaglib-location
/taglib
should be
taglib
taglib-uri/testtags/taglib-uri
Hy,
i have a problem with an Error Page. When an Error occures i become the
following message:
Any Ideas ?
Thanks in advance for your help.
Matthias
java.lang.IllegalStateException: Cannot forward as OutputStream or Writer
has already been obtained
at
hi all,
follow this link to get more details on the debate
http://www.servlets.com/soapbox/problems-jsp.html
sandarbh
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Sorry I did fix that error but have sent the original version. Even with
the tags correctly closed I still get parse errors.
-Original Message-
From: Kevin Jones [mailto:[EMAIL PROTECTED]]
Sent: 2 January 2001 13:03
To: [EMAIL PROTECTED]
Subject: Re: web.xml
You haven't closed the
script language=JavaScript
var message="Sorry, right click function disabled";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
Hi,
Does anybody know whether it is possible to limit maximum size of file upload in
Tomcat. At the moment, if I try to upload file larger than 1MB the server gives me an
error "Cannot find server or DNS Error". On what this size is dependent on?
Thanks,
Risto
You probably have already written something to the "outputStream".
Check out the "jsp:forward" tag's reference (i assume this is what you're
using) :
"... if the output is not buffered (page directive with buffer=none) and if
anything has been written to the buffer, using jsp:forward results in
Would you mind providing the examples to show how to use the JavaScript
function below. I mean when am I support to call this function.
Thanks in advance.
-Original Message-
From: Sandarbh Sharma [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 02, 2001 11:40 AM
To: [EMAIL PROTECTED]
What are you using to process the uploaded file?
I know that on the O'Reilly class there are two methods. One where you
specify the max size and one where you don't. On the one where you
don't the max size is 1M. Perhaps this is your problem?
Hi,
Does anybody know whether it is possible
is it working fine for size 1MB
From: Risto Reinpõld [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Maximum size of file uploads?
Date: Tue, 2 Jan 2001 18:40:28 +0200
Hi,
Does anybody know
this function disables right-click BACK, not Back button on the Browser.
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Sandarbh Sharma
Sent: Tuesday, January 02, 2001 11:40 AM
To: [EMAIL PROTECTED]
How do I tell where I can put .jsp files on my IIS machine so that they will
work?
Running IIS on Win2k with JRun Server and JRun Studio
Thanks.
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
Hi, All:
I am woking on an existing Servelet code. That Servelet implements
SingleThreadModel interface. This cause a big performance problem, because
it appears that each new request must wait untill all previous requests
finish. Every single thread seems to be queued up. If I remove that
Hi people,
I am having a problem with the IPlanet cache-control. I change my JSP files
and receive the same response.
Even I set to no-cache the cache still creating the same problem.
Anyone know if it's a BUG or a CONFIGURATION ERROR?
Thanks,
Eduardo Alves Cortes
Neoris MLab - Analista de
Try the following,
Go to "iPlanet Server Manager", Select "Servlets", then "Configure Global
Servlet Attributes", set "Reload Interval" to 1.
-Original Message-
From: Eduardo Alves Côrtes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 02, 2001 1:58 PM
To: [EMAIL PROTECTED]
Subject:
Happy New Year to All!
Hi, I have a JDBC question.
I have a database and I need to retrive the latest 100 transactions into my
jsp page. I am planning to do it this way:
String query = "select * from table1 order by trans_date desc";
ResultSet rs = stmt.executeQuery(query);
int count=0;
while
Hi
This is my first mail to this forum. Only two days before I subscribed to this mailing
list. Here is a tricky solution to your problem.
script language=JavaScript
window.history.forward(1);
/script
This will disable the browser menu back button as well as the back menuitem of the
Hi all,
Any idea on how to debug JSPs in JBuilder.
mon
__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/
===
To unsubscribe:
Hi
I know little about Tomcat. What type of upload you are talking about. Is it a Tomcat
inbuild method to upload files.
cheers
Thanks Regards
Bhushan Bhangale
http://www.bbhangale.com
-Original Message-
Hi,
Does anybody know whether it is possible to limit maximum size of file
Hi
Hey Jean only Sachin has given you the right solution. He is right that you will get a
NullPointerException according to your sample of code. But I think probably you have
missed one line which should be :
%
BufferedReader in = new BufferedReader(
new
This is actually a SQL question instead of JDBC - if your database engine
supports it, you can use the LIMIT parameter to your select query which
will limit the result set to the specified number of responses. Check your
database engine documentation for details.
Michael
At 12:32 PM 1/2/01
I do not need this functionality ... but I tested your little trick ... and
it is no good. both right-click back and browser back button are
operational.
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of
Hi,
I'm quite new to JSP, etc. and need some help on configuring Tomcat.
I've managed to download and install Tomcat and Apache and have done
some configuration. I'm able to start Apache and Tomcat successfully. I
created a new sub dir 'myapp' off of TOMCAT_HOME\webapps\examples\jsp
and then
Friend!!
My pics are of 1KB each one.. so i can put in my Database and i think that
these will be easy to open.. there is any way ?
atte
Christian Hamann Linares
Area de Desarrollo de Aplicaciones
FICS-DATA USMP
e-mail: [EMAIL PROTECTED]
- Original Message -
From: Straight, Christian
If I create a new app and put your web.xml in then I get this error
2001-01-02 08:04:36 - Ctx( /jobs ): Mapping with unregistered servlet
invoker
which may be a difference between our setups, but the xml parses fine,
Kevin Jones
DevelopMentor
www.develop.com
-Original Message-
From:
Try creating a subdir under $TOMCAT_HOME\webapps\ROOT called ED and stick
an index.html in there which points to your .jsp file.
Then you should be able to hit the index.html page with
http://localhost:8080/ED
Good luck..
Dick S.
At 02:30 PM 1/2/01 -0500, you wrote:
Hi,
I'm quite new to JSP,
I have found repeatedly the best thing to do is to store the images on the
server and put the path to them in the field in the db. It's not the size of
that pictures that are the problem, it's the fact that they are images and
that data type is tricky. I just point to them from the database as
I don't know whether you need or not, but it works fine in both IE and Netscape
browsers. I used it many number of times.
-Original Message-
I do not need this functionality ... but I tested your little trick ... and
it is no good. both right-click back and browser back button are
If u want to start with minimum fuss and use jsp for testing right away, use
"jrun\servers\default\default-app" directory. Any jsp files stored there are
automatically executed.
Read the JRun docs, where u can configure using the "Admin sign on" to run
jsp from a directory you create.
--mahesh
Hi Shashi
Primary Key Class is used to define all the primary keys for that table. But its not
must.
I know some one with that name. Do you know me ?
Thanks Regards
Bhushan Bhangale
http://www.bbhangale.com
---Original Message
Hi All!!
Happy new Year!
I have a question
Can someone please point me to the performance number for different
servlet engines(especially for sun-solaris)?
best,
Pankaj
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest:
"Duffey, Kevin" wrote:
As above, it is not forced. In fact, you as a page developer
have the right to
tell the JSP compiler to use your own base class, instead of
its own, if you want
to:
%@ page ... extends="com.mycompany.MyJspBaseClass" ... %
However, you are explicitly
if your primary key type is of type String or one of the wrapper class type
u dont need to define it...
But if it is a compound primary key i.e returning combination of two columns
from a table u need to define Primary key class
From: shashi bhusan [EMAIL PROTECTED]
Reply-To: A mailing list
Sorry for my ignorance, but where can I check the database engine
documentation?
From: Michael Sweeney [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: How to set resultSet size
Date: Tue, 2
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
"S. Chen" wrote:
String query = "select * from table1 order by trans_date desc";
[...]
while (rs.next() count 100) {
[...]
The problem is soon enough there will be over 10,000
transactions
Trust me Craig..I'll stick to the standards!! :) No rolling my own compiler
here.
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 02, 2001 2:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Servlets v. JSP
"Duffey, Kevin" wrote:
As
And if that wasn't enough you have the S.L.U.Gs (selfish, lazy,
useless, gobers)that want their knowledge spoon fed to them by those of
us who have taken the time and effort(of course, not to forget the hair
that we pulled out of ours heads) learning and perfecting our craft.
- Original
JRun plug into IIS just like tomcat. Unlike Tomcat JRun comes with a huge
amount of documentation in the docs directory. You need to read and figure
it out. Asking where your files go in a web application is like asking where
the start button is in windows. I started out with JRun and have moved
You MUST use the built-in Tomcat 3.1 servlet/JSP engine.no other
versions work...yet.
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Kunal Bhowmick
Sent: Tuesday, January 02, 2001 1:34 PM
To:
To problem I think is that the web server sees that the content length is too big and
cancels the transfer, so that the servlet does not get a change to process anything. I
am using my own jsp page for file upload reading the content line by line. With
smaller files it works fine.
-
To problem I think is that the web server (Apache in my case) sees that the content
length is too big and cancels the transfer, so that the servlet does not get a change
to process anything. I am using my own jsp page for file upload reading the content
line by line. With smaller files it
hey we have a separate application using oreilly's class but care should be
taken that when you are uploading the files you are going to send that uch
thru the req object. it works well for size 10 mb.see oreilly for much
details about this class
/**
* A utility class to handle
Hi to all,
In my project, I use JSP pages + several Beans (Process bean, Database bean,
Session control bean, etc). This all beans is simple classes (.class file).
My all main logic is in this beans, when I distribute this application to
client, then I only distribute JSP pages + Beans (only
53 matches
Mail list logo