Dear all friends,
I have been using Oracle JDBC 8.1.6 library for connectivity to database in
my JSP pages.I also use Sun Java WebServer.when I use that library in my IDE
it could be compiled and run properly but when I deploy it to JavaWebSerer I
get the following error :
ClassNotFound,
I add
Use
value = "%=table.getCity()%"
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Sivakumar S
Sent: Sunday, 27 February 2000 10:47
To: [EMAIL PROTECTED]
Subject: Display PROBLEM in text fields for JSP
Hi
Hi everybody,
I have a question regarding the architecture with servlets and JSPs:
I have seen many postings on these lists describing an architecture
with _one_ servlet that acts as the central handler and processes
_all_ requests. It chooses which action to be taken, executes that
action and
It's as simple as just adding double quotes around the City name to define
the boundaries of the string. If double quotes aren't used then you get the
default behaviour that you described.
Yes, but note that this approach leaves open the cross-site scripting
security hole, for one thing. For
Chris,
At 09:54 AM 3/1/00 +1000, Chris Tuck wrote:
input type="TEXT" name=City size="25" value="%=table.getCity()%"
Does this also work if the DB field contains double-quotes? Are JSPs
smart enough to encode the quotes, or does it still break?
Lynn (D) - Compass Solutions, Inc.
Just put quotes around your value:
input type="TEXT" name="City" size="25" value="%=table.getCity()%" /
Indeed, the new XHTML spec recommended by the W3C requires quotes around all
parameters.
-AMT
-Original Message-
From: A mailing list about Java Server Pages specification
Please note that the jspInit must be declared in a declaration using %!
instead of %
Kishore
-Original Message-
From: Kishore Raghavan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 29, 2000 5:17 PM
To: munu praveen; [EMAIL PROTECTED]
Subject: RE: jsp init() method doubt
Dear
Dear Munu,
Insert a scriplet as given below
%
public void jspInit()
{
//your code goes here
}
%
This method is run only once when the servlet gets loaded
Kishore Raghavan
Synapta Inc,
CA
-Original Message-
From: A mailing list about Java Server
I have checked the archives and have been unable to find a resolution to my
problem.
I am interested in sending a binary data stream (attachment) to the browser
so that the end-user can save these attachments
on their local workstation.
I am able to send the attachment to the browser, and then
Martin Leboeuf wrote:
Hi !
I am using an ensemble of predefined constants, grouped together in a
WebAppConstants class, which looks like this :
package com.my.package.name;
public class MyConstants
{
public final static int CONSTANT_NO_1 = 0;
public final static int
Oz Kologlu wrote:
We are currently looking for a "Servlet/JSP implementation version
independant" way of accessing our web site so that it is as portable as
possible between servers.
So far we have been developing under JSWDK and we have run into a little
grief with paths converting to
There is some limit on the no of connection that can remain open to
Oracle.Are you using connection pooling or properly closing the connection
after use so that it can be returned to the connection pool
Ashwani
--
From: Sharat Babu
Reply To: [EMAIL PROTECTED]
Sent:
Web Development with JavaServer Pages will be available in March
http://www.amazon.com/exec/obidos/ASIN/1884777996/deepmagic
http://www.manning.com/Fields
--
Duane Fields
[EMAIL PROTECTED]
Learn Web Development with JSP!
http://www.deepmagic.com/jsp
Use double quotes to surround the display value. If no quotes are there then
only the first continuous token (withoud spaces is picked rest is ignored)
Ashwani
--
From: Sivakumar S
Reply To: Sivakumar S
Sent: Sunday, February 27, 2000 5:16 AM
To: [EMAIL
Try using session.getNameValues() or getValueNames() ( I always forget which
one!) that should return u a list of all the session variables. Use this to
debug and see exactly at what page u lose the session variables..might help
in debugging..other thing is increasing the session timeout
One thing to consider is that it is ridiculously easy to decompile
java class files... you have to obfuscate them, and then
completely re-test. Usually complicated problems don't obfuscate well.
Even if you write server apps, the first person
you sell your server-app to can decompile it,
I use IE 5. Works fine here. I dont get the retry/cancel dialog box. In
your real form, are you using data fields that have been passed on to this
page?
- Original Message -
From: "Simon Jakesch" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 27, 2000 8:36 PM
Subject:
Hi gueys,
I am converting servlets to jsp.Actually in servlets
we will define class and methods.In case of JSP we
won't define classes,in that case how to call a method
in JSP. I got the error msg as ..
c:\j2sdkee1.2\repository\RICH-S\web\ganrt\_0005cRegister_0002ejspRegister_jsp_0.java:390:
Well, the basic idea is that your Oracle driver is trying to make a database
connection and is failing to do so. It could be you specified the wrong
URL/port/host to the db, or the wrong username and/or password. I'm not too
familar with Oracle, but that's the general idea. Sorry if that's too
Bill,
onSubmit="window.close()" will close the browser window immediately, before
the HTTP request can get to your servlet, and hence before your servlet
gets the chance to execute. You're going to need to let it execute, so my
suggestion would be to have the servlet forward to an almost empty
I am now designing a method which takes a java.io.JspWriter or a
java.io.BufferedWriter as a parameter. The method then writes to the
parameter.
public void test(JspWriter _out);
These classes have a common superclass, java.io.Writer but, unhappily,
that object does not feature the useful
Try putting your bean into a package (say, package try), then placing
that package dir (containing the bean classfile) into the classes
directory for the server. Then, use that package name in referenceing
the class in the useBean tag.
jsp:useBean id="try1" class="try.try1" scope="page" /
I
Personally, I
subscribe in DIGEST mode and go through a day of postings at a time...
Well, I tried subscribing in DIGEST mode also, but didn't work. I set my
list options as DIGEST- NO MAIL (I went to www.jsp-interest.com to do this)
and wait for a week, nothing happened, except that I received
If you are using Linux try downloading the mod_jserv that comes with Tomcat
3.1 - that worked for me. I've heard that on Windows NT it actually matters
which browser you use to download the DLL and that you should use IE!?!?!?!?
Petar
-Original Message-
From: Harris Wulfson
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
Is your bean in a package? I've used JSP's w/ Weblogic 4.5.1 and you must
put the fully qualified name in the useBean tag. For instance:
package com.simple.example
public class try1{
}
@page import="com.simple.example"
jsp:useBean id="try1" class="com.simple.example.try1" scope="page" /
I see there have been many of you that have gone from developing an ASP application to
developing a JSP application.
I would like to know the learning curve, and suggestions, a template, some idea of the
complexity of moving to the JSP world. I know applications vary but with your
experience
Hi, there,
I have been using IIS and ServletExec from NewAtalanta to develop jsp
files. I am happy with ServletExec except one thing. After the jsp run
and bean file are loaded, you can change the bean files but the changes
will not be reflected (loaded) until you stop and restart the
Dan,
I too have different users and permissions for various applications in our
intranet. If I understand you correctly, basically all your apps run in the
same ServletContext as the framework application, and you define an application
using its controller servlet. Is that correct? If so,
Hi,
I am trying to run a JSP page with a Bean. I am getting the following
error. I have written a Simple bean to write some value with "param" option
and retrieve it. Could some one help me?
---
Error getting compiled page
The
hi all,
i tried using the getScheme method of the Servlet Request object. basically
i am trying to extract whether the jsp is being accessed via https or http.
however, even for a page accessed by https, it returns http. does anyone
know what i need to do to get this method to work, or
Title: RE: outputting a fileinputstream
To add to Craig's statements, I would also chain a buffered reader to the FileReader for enhanced efficiency:
File file = new File(./public_html/xml/cc.xml);
BufferedReader fis = new BufferedReader(new FileReader(file));
Good luck!
Regards,
Don't forget to add mutex locking around your connection pool object,
otherwise you will have a race condition and end up with multiple instances
of the connection pool.
class SingletonConnectionPool {
private static SingletonConnectionPool m_conPool = null;
private static
The reason is so simple ,you are constructing the
byte array but you are not storing any contents in it.
try this code it will work.
File file = new File("./public_html/xml/cc.xml");
FileInputStream fis = new FileInputStream(file);
byte[] data = new byte[fis.available()];
Corbin Hoenes writes:
I am wondering which is the most effective way to display database
information (i.e. say a table) w/JSP.
I can't really find any examples on or anything so here is what I have
come up with:
create a bean that has 3 methods
openDB()
returnRow()
closeDB()
35 matches
Mail list logo