Title: Problem
Hi everybody,
this is my first mail to this group.
this is my second day,i am doing JSP.
i am using JSWDK-1.0.1 and IE 5.0
i have one problem as follows:
i have this JSP page:
<%@ page import="num.naresh" %>
my class file is:
package num;
public class
You can't use rs.next() to navigate between records as rs.next() returns
boolean.
Instead of that you can use
if(rs.next()) **in place of if (rs != null) )
{
no need of rs.next()
}
and continue your loop.
This will definetly solve your
unsubscribe
hi...
i'm using JSWDK 1.0.1 and want to create my own web application.
i have copy the structure of examples directory in jswdk-1.0.1 directory to
my own directory i.e. c:\jswdk-1.0.1\mywebappl
i have my servlet (say myservlet.class) in the following directory:
c:\jswdk-1.0.1\mywebappl\
__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on
Hi,
You can get one from http://java.sun.com/products/servlet/download.html
.js
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Phoon
> Sent: Wednesday, January 19, 2000 10:12 AM
> To: [EMAIL
Dear Sir,
Please remove my name from your mailing list becaseu I am receiving a lot of
junk mail thru your system. I am not interested in this and I would
appreciate your cooperation. Thanks
Zia
e-mail: [EMAIL PROTECTED]
On Tue, 4 Jan 2000, Bhagyashree wrote:
> I am on a Windows NT client m/c with a Enterprise server 3.2.
> 3.2 does not support JSP and servlets.
>
> I tried iplanet.com but could not download any webserver.
Check out the following url.
http://www.iplanet.com/products/infrastructure/web_servers/i
hi,all,
I just dl tomcat 3.0 and some examples. How can I run it? Is it necessary to
startup Apache+Jserv, besides Tomcat itself? I have set classpath for tools.jar, what
else should I set?
BTW, My platform is Win98.
thanx in advance.
===
In my JSP page, I got a resultset rs from
a servlet via JDBC-ODBC:
ResultSet rs;
%>This is a list of all books: <%
rs = dtrans.getBooksSortedByAuthor();
if (rs != null) {
rs.next();
... ...
I know that rs does have 10 records in it.
The JSP pa
On Wed, 12 Jan 2000, Basvi Ayuluri wrote:
> By default it supports JSP 0.92.
>
> Does anybody know how to run JSP 1.1 in iPlanet Web Server,
> Enterprise Edition 4.0 (netscape server 4.0)?
iPlanet Enterprise Server (iES) 4.0 supports only JSP 0.92. How
ever, we are currently working on iES4.1 wh
Michael Bernardo wrote:
>
> Hi,
>
> I need to do session tracking when cookies are disabled.
>
> When trying to do a response.encodeURL(...) in a .jsp in the latest
> tomcat release, it doesn't seem to do anything at all. Is this a
> limitation of tomcat? I've seen an example of this working on
>
On Tue, 18 Jan 2000, Joseph Pych wrote:
> I have been trying to figure out how to link to a fragment within a
> JSP page. I have a section of a long JSP page that contains estimated
> financials. There's a button in that section to recalculate. What I
> would like to do is process the recalc,
On Tue, 18 Jan 2000, Sue Spielman wrote:
> I'm using JavaWebServer 2.0,JDK 1.2.2,JSWDK 1.0.1 and the JSP 1.1 PR2 specwith
>that said.
> I'm simply trying to execute an init method for a bean, once, when the bean is
>instantiated, as it states is possible in the JSP spec. However the method
The jsp:include is not a compile time directive the <[EMAIL PROTECTED]%> is a
compile time directive..That is why u r seeing the problems...import the
classes in the included .jsp and the errors will vanish...
hth,
A
> Hi,
> I'm trying to use the jsp:include directive to include a JSP file into
Damian Fauth wrote:
> "Craig R. McClanahan" wrote:
> >
> > That is not the case. What you should do when you are creating your form is
> > something like this:
> >
> > " method="POST">
> >
> > to ensure that the URL to which you are submitting the form is encoded if it
> > needs to be.
>
> I
Hi ..
Does anyone knows where can i download development kit for Servelets..from
www.SUN.com?
Daniel
Marc Vila Pérez wrote:
> Hi everybody!
> I'm looking for a site containing built JSPs that implement common functions
> (I know that there are a lot of
> this places for ASPs), shareware and f
Sue Spielman wrote:
>
> I'm using JavaWebServer 2.0,JDK 1.2.2,JSWDK 1.0.1 and the JSP 1.1 PR2 specwith
>that said.
> I'm simply trying to execute an init method for a bean, once, when the bean is
>instantiated,
> as it states is possible in the JSP spec. However the method is never called. I
Hi,
I need to do session tracking when cookies are disabled.
When trying to do a response.encodeURL(...) in a .jsp in the latest
tomcat release, it doesn't seem to do anything at all. Is this a
limitation of tomcat? I've seen an example of this working on
servlets.com. Does anyone know if tomcat
David Wall wrote:
>
> > I don't know about JRun specifically, but a portable solution should be
> > to make sure the URL used in the form's action attribute is "URL
> rewritten",
> >
> >method="post">
> >
> > The solution you suggest only works with JRun, since ServletUtil is not
> > a standar
I'm using JavaWebServer 2.0,JDK 1.2.2,JSWDK 1.0.1 and the JSP 1.1 PR2 specwith
that said.
I'm simply trying to execute an init method for a bean, once, when the bean is
instantiated, as it states is possible in the JSP spec. However the method is never
called. I searched the archive and did
unsubscribe
I have been trying to figure out how to link to a fragment within a JSP page. I have
a section of a long JSP page that contains estimated financials. There's a button in
that section to recalculate. What I would like to do is process the recalc, return to
that page, and scroll to that sectio
> I don't know about JRun specifically, but a portable solution should be
> to make sure the URL used in the form's action attribute is "URL
rewritten",
>
>method="post">
>
> The solution you suggest only works with JRun, since ServletUtil is not
> a standard class, and URL rewriting (accordin
"Craig R. McClanahan" wrote:
>
> That is not the case. What you should do when you are creating your form is
> something like this:
>
> " method="POST">
>
> to ensure that the URL to which you are submitting the form is encoded if it
> needs to be.
Is this correct? Is it now portable across
Hi,
I'm trying to use the jsp:include directive to include a JSP file into a
JSP file.
The included JSP file requires objects both from java and from my own
codebase. It seems that the JSP engine is attempting to compile the JSP
to be included *separately* from the including JSP. Thus, because
I believe Walmart is using Broadvision, which also uses .jsp extension (
but not necessarily meaning Java Server Pages). Walmart had a press
release about a month ago about how they are adopting BroadVision on
walmart.com.
Two interesting links on Servlets and JSP:
JSP : http://www.enterprised
> -Original Message-
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Larry Hoffman
>
> The problem in the file download dialog box. from Internet
> Explorer. When
> the servlet starts the download I get the following de
Hi
people,
Please take a look
at: http://www.gest.unipd.it/~saint/hth.html
Added a defcustom
for a symbol meant to tell Emacs that it has to consider asp/php/jsp blocks
beginning in column 1
Added messages in
the minibuffer while matching PHP/JSP/PHP blocks
Added support fo
Phil,
As Dave notes, the two sessions should be completely different. However,
let me ask
how you are testing with two browsers. Are you simply opening two windows
on the same
computer using the same browser application, filling out the forms, and then
submitting
them one after the other?
If t
One thing you could try would be to change the way you create URLs for downloadable
files:
Page Title
File 1
Note that there is a slash before the filename instead of a question mark.
Now, assuming that your download servlet is mapped to "/servlets/download", you can
Duffey Kevin wrote:
> Hi,
>
> >The HttpSession does what you say, associates a 'session' (some java object)
> >with an id. The id is passed as the Cookie to the browser.
>
> Yeah..this much I knew. I just wasn't sure if I didn't use cookies or URL
> rewriting, if the HttpSession does it for you.
The beans would give your clients the ability to just design their own pages
and pull the properties (info) from the bean and display it as they choose.
We use IBM's WebSphere Studio, which has a really nice model for using JSP,
Servlets, and beans together to accomplish sites like this. And don't
Sorry Sharath, but I don't understand your comment.
You say there is NO need to import java.util.* since it takes care of
everything.
What exactly is the "it" that takes care of everything?
Did you mean to say that there is no need to import java.util.Vector
specifically,
but that it is sufficie
David Wall wrote:
>
> > When posted in a multipart form, the form fields are no longer directly
> > stored in the request, and thus available with a request.getParameter.
>
> I'm not sure what you are really saying, but if you want to ensure that the
> current JRun session parameter is included in
there is no need to import java.util.*;
it takes care of everything.
-Original Message-
From: Arun Thomas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 18, 2000 10:35 AM
To: [EMAIL PROTECTED]
Subject: Re: Can anyone see why this won't work?
Leon,
Just a thought
As far as I
What you're 'missing' is that the second request (B) does not just get the session
ID. It gets a whole different session *object*. Different from that of A's
session object. Therefore when you put something in that session object you're not
overwriting some other session's data (even if it's th
I developed a java servlet that takes the query string from a html form.
For example:
File 1
Well, I click the link to call the servlet. The servlet takes the query
string and appends it to the path were the file is loacted. See code below:
res.setContentType("application/x-zip-compresse
Hi,
>The HttpSession does what you say, associates a 'session' (some java object)
>with an id. The id is passed as the Cookie to the browser.
Yeah..this much I knew. I just wasn't sure if I didn't use cookies or URL
rewriting, if the HttpSession does it for you. I now know that you must use
one
Subbu,
Querystring parameters are available in both doPOST and doGET methods. The
only difference is that
doGet methods have access ONLY to querystring parameters. Therefore, if you
are doing a form POST,
you want to be catching this in a doPost method, not in a doGet.
-AMT
> -Original Me
"Joseph W. Albert" wrote:
> To the best of my knowledge, URL rewriting has nothing to do with form
> submittal.
>
That is not the case. What you should do when you are creating your form is
something like this:
" method="POST">
to ensure that the URL to which you are submitting the form i
Leon,
Just a thought
As far as I know, there is no "import" directive in JSP 1.0.
The following line is probably invalid.
<%@ import="java.util.Vector" %>
You can add the import to your page directive at the top of the page.
This may be what is causing the error.
-AMT
> -Orig
>can i access a javascript method within jsp...
one of solutions you can see at http://coldjava.hypermart.net
J2J servlet lets you call server side java from JavaScript
ColdJava: java server side programming
http://coldjava.hypermart.net
_
Hi all,
I have been following the discussion on "Providing application resources"
and have found it very interesting and helpful. I think a lot of good ideas
came out in the discussion, therefore, I would like to put my current
development plan up for discussion to see if I can receive any input.
Well, there are many ways. But, the way we do it is quite easy actually.
Assuming you have a database set up, and a table called LoginTable, we'll
go from there.
Ideally, you would have a JSP page with a form on it, that allows them to
enter their use name and password. When submitted your JavaBe
Chary,
When you do a sendRedirect, you are essentially asking the users browse to
perform an
HTTP GET from the new URL that you have provided. If you wish to pass
information to
that URL, therefore, you must use a means permitted by the GET method - a
query string.
You can add a query string wit
-Original Message-
From: Paul Holser
Sent: Tuesday, January 18, 2000 11:23 AM
To: '[EMAIL PROTECTED]'
Subject: RE: losing session data using URLrewriting
> -Original Message-
> From: James Skehan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 18, 2000 8:44 AM
> To: [EMAIL PR
Your Oracle driver (probably named classes111.zip) probably isn't in your
classpath. Your classpath should have something like
"classpath=c:\orant\jdbc\lib\classes111.zip;...". Don't forget to read the
install instructions for whatever driver you're using also. Some require you
to put another zip
Hi All,
I'm just starting to use JSP and wanted to know what is the best JSP editor
out there.
I used to use HomeSite for HTML/ASP and ColdFusion Studio for ColdFusion.
But I wanted to know if there is such tools for JSP where it is a simple
fast text editor with Lang. Help and so on..
Thanks fo
What is the replacement in jsp for
session = request.getSession(false);
i.e. return the existing session if there is one but null if not?
Is this the only work-around in jsp?:
if ( session.isNew() )
{
session.invalidate();
session = null;
}
Converting a number of old jhtml pages t
Sorry if I misexplained something.
What I wanted to say is that the parameter needed for sesion tracking is
unavailable when posted from a multipart form.
>value="<%=request.getSession(false).getId()%>">
I off course included such a parameter in my form, and this works great when
not in a multi
Hi...
I have an error like yours... I don`t know how but in an application I
can connect to my Oracle8, but when I use an jsp file, the following
error appears:
===
oracle/jdbc/driver/OracleConnection
===
I don`t know how to fix it.. I don`t understand it also, because the
same jsp file on my
To the best of my knowledge, URL rewriting has nothing to do with form
submittal.
You probably need to add this within your :
Hope this helps.
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of James Skeh
> When posted in a multipart form, the form fields are no longer directly
> stored in the request, and thus available with a request.getParameter.
I'm not sure what you are really saying, but if you want to ensure that the
current JRun session parameter is included in forms, including the
multipa
No, you can't use the same one. Go to http://technet.oracle.com and download
the one for jdk 1.2.
Bill Hines
Hershey Foods
-Original Message-
From: Sharat Babu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 18, 2000 10:43 AM
To: [EMAIL PROTECTED]
Subject: thin driver problem in jdbc t
I am getting an error class not found.
driver problem
i am using thin driver classes111.zip
my database is oracle 8.
I am thinking that thin driver classes111.zip should be used for jdk1.1.x.
i am using jdk1.2.2..can i use the same one.
any help is thankful..
regards
sharat
Here is what seems to be a solutionless problem.
I use JRun, with session persistence enabled, but without session cookie.
AFAIK, the jrunsessionid parameter is what is used to recognize the session
in this case. I think it is not strictly a jrun problem, because I know
other servlet servers also
Hi everybody!
I'm looking for a site containing built JSPs that implement common
functions
(I know that there are a lot of
this places for ASPs), shareware and for buying.
Thank U all!
Bye
Marc
===
To unsubscribe: mailto
My basic architecture is as follows:
servlet -> jsp -> servlet -> jsp
In the first servlet, I create a session and place data in it. This data is
visible in the following jsp page (I sendRedirect(encodeRedirectURL("blah"))
to it) but not to the servlet that this jsp page invokes via a form
submi
I am no expert, either, but I think you've closed the useBean tag too
early... the setProperty tag should be in the body of the useBean, like
this:
(This syntax is on page 62 of the 1.1 spec)
-Original Message-
From: Leon Andrews [mailto:[EMAIL PROTECTED]]
Sent: Monday, Janua
Yes, I too am getting the "undeliverable" aka bounce message but see the
post. Me thinks their maillist server needs some attending. We will see if
they read this or not. Is there an admin address for the mail lists?
Ollie
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROT
Look at the list near the end of that page:
http://java.sun.com/products/jsp/industry.html
- Walter
-Ursprungliche Nachricht-
Von: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]Im Auftrag von Duffey Kevin
Gesendet: Montag, 17. Januar 2000 0
You might want to try Forte (www.netbeans.com) and the internet early access
stuff.
It's a complete IDE with Servlet and JSP support.
- Walter
-Ursprungliche Nachricht-
Von: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]Im Auftrag von John
hai
iam new to javaservlets
i have a question
please carefully read the follwing and try to help me out.
i have a form where i have a textbox and a submit button . if the submit button is
clicked it is sent to another servlet where i check whether the textbox contains value
if the textbox does no
Hi all,
Can anyone help me how to call a JSP from a servlet.
1.) I've tried with "callPage" but I'm getting ClassCastException at
this step:
((com.sun.server.http.HttpServiceResponse)
res).callPage("/DisplayData.jsp", req);
2.) I can call a JSP page with sendRedirect but I can't se
I don't understand why, same code when trying to connect to oracle 8.0.4
database connects and fetches the data in JSP but when tried to connect to
oracle 8.1.5 which is pure java compliant, throw the subjected error.
I am using JDBC Thin Driver, and am really in confusion, can somebody from
the
Hi everybody!
I'm looking for a site containing built JSPs that implement common functions
(I know that there are a lot of
this places for ASPs), shareware and for buying.
Thank U all!
Bye
Marc
===
To unsubscribe: mailto
You have a multimode.el. To have both HTML and Java you have to configure it
like this in your .emacs (once you got the multimode from GNU site, and
byte-compiled it):
;; MULTIMODE PARA JSP
;; jsp/html multi-mode
(autoload
Hi,
i'm not a real specialist, bit I think your problem could be du to the 'import'
that should be include in the page directive. You could write
<%@ page import="db.DataBaseSelect, java.util.Vector" %> or <%@ page
import="db.DataBaseSelect" import="java.util.Vector" %>
Hope this help
ve
The HttpSession does what you say, associates a 'session' (some java object)
with an id. The id is passed as the Cookie to the browser.
And yes URL re-writing does entail changing all of the URLs on a page
dynamically so that each client sees a unique URL - you don't need to use
JavaScript, you e
You're not missing something obvious - Session state must be protected from
concurrent access. Like all concurrency you need to keep time in the
synchronized block as short as possible, so don't synchroize whole methods,
but use 'watchdog' objects instead, so
Object o = new Object;
void someMetho
Hi Drew,
I have to admit I haven't really understood what you meant because I
didn't really carefully read your message ;).
Anyway, We've developed an approach to deal with the problem you are
facing and it's close to what you are using. We actually never call our
controller servlet but we use su
Hi Dan,
Yes, well, thats ok, I only skim most posts to the list (not yours, of
course ;-). And after re-reading my questions, I can see that I tend to
waffle on, like I am now - doh!
So, what I though was a problem is actually a feature, useful for deployed
customisation, quite ingenious. In t
74 matches
Mail list logo