This is a weekly informative posting to the jsp-interest list.
Before asking questions of a general nature, please check out the
resources available online to see if your question already has an
answer. The best place to start
I am currently looking at building a large application based on servlets and
JSP. The principles behind the Model 2 architecture are solid, and this
seems like the right approach. However, I have some concerns, and would like
to hear people's thoughts.
The application I am building will likely co
Hi Yashwant Balwant!
can u tell me what kind of error is coming to u.I mean there must be some
run time error u r getting .
Do check whther u r autheticated or not for doing these
thing(authentication be server)
regards
At 06:07 AM 8/24/00 GMT, you wrote:
>I have a problem regarding servlet com
Hi Friends!
i'm presently working on JSP customize tags.I finding the problem of
setting the bodycontent(using setbodyContent() method).I wna t to know how
to use this tag.I'm retriving the body content from the JSP (in the tag
handler class) but not able to work with it(i mean making changes in i
HI SAM!
GOTO JSPTAGS.COM THEN GO FOR SUN TUTORIAL.THEY HAVE WONDERFUL TUTOTIALS
BYE
SANJEEV
At 10:37 AM 8/24/00 +0530, you wrote:
>hi
>i would like to anysites offering white papers or tutorials on JSP
>regards
>Sam
>
>===
>To
Hi! friend!
Try using "getFetchSize();" of the resultset CLass
sanjeev
At 05:55 PM 8/23/00 +0530, you wrote:
>U can try using the getUpdateCount() method in java.sql.Statement
>- Original Message -
>From: Naveen Gupta <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wedne
I have a problem regarding servlet communication. I have two servlets
in my system but on different servers and they have to be that way. Say one
servlet on myserver1 is a 'server' and other one on myserver2 is
'client'. I want to send a request containing username-password pair from
'client'servl
I have a problem regarding servlet communication. I have two servlets in my
system but on different servers and they have to be that way. Say one
servlet on myserver1 is a 'server' and other one on myserver2 is 'client'. I
want to send a request containing username-password pair from
'client'servl
hi
i would like to anysites offering white papers or tutorials on JSP
regards
Sam
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://ja
We are using connection pooling from java servlets by karl moss.
Purak
- Original Message -
From: hua ge <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 21, 2000 9:32 PM
Subject: connection pooling ---urgent!!!
| Hi,
| we are using connection pooling to connect to the Or
Dear Hitesh,
Can you please tell me which is that example? I went through all examples
and could not find it! Are you talking about StylePad? They do not allow you
to print.
Thanks and regards
BRN
-Original Message-
From: Hitesh panchal <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL P
Sorry,
I want to rewrite my question as .
I want to write some table like Hello world in the
screen. I want to write using the TableWriter java class. This java class will have a
method named write
table(JspWriter out) . How should i pass this JspWriter writer from the jsp page/how
should c
Hi Friends!
i'm presently working on JSP customize tags.I finding the problem of
setting the bodycontent(using setbodyContent() method).I wna t to know how
to use this tag.I'm retriving the body content from the JSP (in the tag
handler class) but not able to work with it(i mean making changes in i
I use only:
page contentType="text/html; charset=SJIS"
as the page directive only.
>What does the page directive look like in your jsp files?
>
>> -Original Message-
>> From: A mailing list about Java Server Pages specification and
>> reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ted
Hi,
Or you can
selet to_char(date_column, 'mm/') from your__table;
Wednesday, August 23, 2000, 7:35:49 PM, you wrote:
SB> Hi
SB> Try this, works ok for me.
SB> private int getMaxDay(String dt) {
SB> SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/");
SB> Date d = new Dat
Hi Asha
Sounds your tomcat does not respond your request. You might have
1) incorrectly installed tomcat, or
2) used the wrong port.
It may help if you can list your config and how you run your tomcat.
Regards
Lynch Wu
==
try <%= "Hello world" %>
-Original Message-
From: Asha Patel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 24, 2000 11:16 AM
To: [EMAIL PROTECTED]
Subject: Tomcat ignoring my JSP tags.
Hello All,
I have installed tomcat in my win98 machine. While creating my first
Helloworld appli
What does your browser show when you view source?
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Asha Patel
> Sent: Wednesday, August 23, 2000 6:16 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat ignori
I just simply use
<%@ page contentType="text/html; charset=SJIS" %>
in the first line of JSP file. Others do not
related to japanese.
>What does the page directive look like in your jsp files?
>
>> -Original Message-
>> From: A mailing list about Java Server Pages specification and
>>
Hello All,
I have installed tomcat in my win98 machine. While creating my first
Helloworld application, like for eg as shown below, I get only the text 'My
First JSP'. The line 'Hello World' inside the <% %> is ignored. Can anyone
please help me where I am going wrong?
/*
My First JSP
<%="H
Hello All,
I have installed tomcat in my win98 machine. While creating my first
Helloworld application, like for eg as shown below, I get only the text 'My
First JSP'. The line 'Hello World' inside the <% %> is ignored. Can anyone
please help me where I am going wrong?
My First JSP
<%="Hel
Hi,
1. Create an applicatein using the deploytool first.
2. Add web components(html, jsp, servlet and ...) to the application.
Then it will work.
xgh
- Original Message -
From: "Ding, Li" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 24, 2000 1:58 AM
Sub
I have a problem regarding servlet communication. I have two servlets
in my system but on different servers and they have to be that way. Say one
servlet on myserver1 is a 'server' and other one on myserver2 is
'client'. I want to send a request containing username-password pair from
'client'servl
Hi
Try this, works ok for me.
private int getMaxDay(String dt) {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/");
Date d = new Date();
try {
d = sdf.parse(dt);// parse a date from a string
}
catch(ParseException e) {
Syst
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
===
Hi,
iam getting month(2) and year(2000) from the databse(oracle) for given value.i need
to display in the following format
month/end of month/year(2/29/2000).can anybody suggest the function in either oracle
or java.
Thanks in advance,
I've never tried it, but according to their
documentation, you can accomplish this by deleting the
ClassCache Version file. (Use admin console, choose
Servlet tab).
You must restart the server, though.
Kachana
__
Do You Yahoo!?
Yahoo! Mail - Fr
I'm trying to config iPlanet not to cache, not my code. Do you know how to
get iPlanet to do the same thing?
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Michael Laufer
Sent: Wednesday, August 23, 2000
Hi Kenneth,
try:
1) res.setHeader("Pragma", "no-cache");
for HTTP/1.0 headers
2) res.setHeader("Cache-Control", "no-cache");
for HTTP/1.1 headers
3) res.setHeader("Expires",0);
thats's only necessary if the browsers still cache your response header.
in your doGet(HttpServletRequest req, Ht
Please Help,
We are trying to migrate from JRUN to IPlanet, we are getting the following
error.
Error loading servlet
java.lang.NoClassDefFoundError:
javax/servlet/http/HttpSessionBindingListener
at java.lang.ClassL
I am trying to disable servlet caching in iPlanet Web Server 4.0 SP2 or
force the server to reload the servlet every time the page is loaded. Can
anyone help?
Thanks,
Kenneth A. McCord
Email: [EMAIL PROTECTED]
Work: (703) 288-8232 X4641
Cell: (703) 338-9619
MSN IM: [EMAIL PROTECT
Tommy:
Thanks again for you comments which I really enjoy.
Apologies to all for this thread being slightly off topic (even though
scripting has its place in JSP/servlet development!!!)
Yea, I am looking forward to DOM1 regardless of its potential lack of
backward compatibility with any browser. I
Gaurav Gehlot wrote:
> Hi,
> I am trying to compile the struts example, but I get the following error -
>
> D:\struts\jakarta-struts\src\share\org\apache\struts\digester\Digester.java:
> 76: Class javax.xml.parsers.SAXParser not found in import.
> import javax.xml.parsers.SAXParse
What does the page directive look like in your jsp files?
> -Original Message-
> From: A mailing list about Java Server Pages specification and
> reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ted Lau
> Sent: Wednesday, August 23, 2000 8:24 AM
> To: [EMAIL PROTECTED]
> Subject: Display
Hi:
I'm configuring J2EE on Windows 2000. I have difficulty getting Java
servlets going. I used Submit in a form to
call a servlet, and it seemed the servlet did not get executed. Instead, the
browser was trying to download the
servlet class. I used
where TestServlet is the servlet class (Test
Hi,
I am trying to compile the struts example, but I get the following error -
D:\struts\jakarta-struts\src\share\org\apache\struts\digester\Digester.java:
76: Class javax.xml.parsers.SAXParser not found in import.
import javax.xml.parsers.SAXParser;
^
D:\struts\jakarta-s
-Original Message-
From: Sicaud Patrice [mailto:[EMAIL PROTECTED]]
*** OK. I did not know that. Our script is aimed at DOM1. So, I hope those
problems will be fiexed in NS 6.0.
Netscape 6 will be a different beast alltogether. As you probably know
Netscape have ditched backwards compatib
Yes, I mean Resin 1.1.3
I have some JSP pages with talk to Oracle Database and generate WML output
pages.
WE installed Oracle 8i and Resin 1.1.3 on Linux with Apache.
My WML page refresh every 20 seconds. However, after about 5 times of
refreshing, resin 1.1.3 seem to be down and require restart
For "d:\WebSphere\Studio\check_out\Jvcpro\connect_jsp_1.java:82: Undefined
variable or class name: con", I think you need to define "con" in
"connection = DriverManager.getConnection(url, username, password);" by
adding "con" in "connection con = DriverManager.getConnection(url, username,
password
Tom Ritchford wrote:
>
> At 12:00 AM -0700 8/23/00, Automatic digest processor wrote:
> >The bean goes into the WEB-INF/classes directory (if its a class) or into
> >WEB-INF/lib if it's a jar.
> >
> >Even if you have an application you don't need to change your HREFs you can
> >still use relative
Angela:
You can specify a (CSS) style width like this:
id = "whatever" name = "whatever"
style ="height:100; width:89">
Good luck
-Original Message-
From: Angela Chow [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 23, 2000 9:38 AM
To: [EMAIL PROTECTED]
Subject: se
AFAIK these files are usually put in the WEB-INF directory. The problem may be
that it cannot resolve the absolute path to the file. Define the properties file
as something like "WEB-INF/demo.config" & use getRealPath(String) ...
/** Load the System Properties. */
Properties p = new Properties(S
I am wondering if i can specify the width of a select
menu. I have a select menu that contains the address
of the customer. Because of the length of the
address, it makes my select menu wider than i
expected. I can't make the address shorter, is there
anyway that i can make the select menu fix
Hi Istvan,
There is no guaranteed way of explicitly dropping a
reference(object).But you can always maximise the
chances of the concerned object to be
collected/dropped in the next GC run by providing a
finalize() method for the concerned object.You may
also consider setting the reference to null
At 12:00 AM -0700 8/23/00, Automatic digest processor wrote:
>The bean goes into the WEB-INF/classes directory (if its a class) or into
>WEB-INF/lib if it's a jar.
>
>Even if you have an application you don't need to change your HREFs you can
>still use relative paths,
This is the "book" answer,
use "connection" where you have "con", that will solve your error about
"con" being undefined. The rest of the errors look like a CLASSPATH error.
-Original Message-
From: sumit shah [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 23, 2000 7:37 AM
To: [EMAIL PROTECTED]
Subject: please
Tommy:
Thanks for your comments.
My rebuttals tagged with *** |-)
-Original Message-
From: Tommy Enqvist [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 23, 2000 2:46 AM
To: [EMAIL PROTECTED]
Subject: Re: How to combine javascipt within JSP ?
> I would also recommend you evaluate th
Have you tried WEB-INF/classes?
Kunal Shah wrote:
>
> hi all
> In our application, we are using servlets, pure java classes for database
> manipulations, and jsps .
> In servlets and java classes we are using java resource bundle utility with
> resource files which are used in some jsps also
> In
I am working for a project that require to display some
japanese from oracle database using JSP.
I have tried this scenario using servlet and it works fine.
However, when I port the program to JSP, the Japanese
cannot be interrupted and lots of "?" are displayed.
I have also output the result re
I wrote a javabean and test it in main function, I found it cann't work,
the error as following:
java.lang.UnsupportedOperationException
java.sql.Statement sun.jdbc.odbc.JdbcOdbcConnection.createStatement(int, int)
java.sql.ResultSet lyf.mydb.executeQuery(java.lang.String, int)
hi all
In our application, we are using servlets, pure java classes for database
manipulations, and jsps .
In servlets and java classes we are using java resource bundle utility with
resource files which are used in some jsps also
In jswdk we put this property files in jsp folder where my all I pu
Did you import the java.sql stuff ! it seems that the compiler doesn't found it !
sumit shah a écrit :
> hi all,
> After changing the drivers and all i am now getting the following errors.
> I am pasting the code snippet and also the errors. I think the code is
> unable to find all the java cl
Hi;
Maybe I will say a stupidity but, normally the useBean will :
Verify if in the specified scope object (session object or request object
...) there is an object of type FormProcessor and with the name
sample. In your case you should use the same instance in page formtest.jsp and
mo
hi all,
After changing the drivers and all i am now getting the following errors.
I am pasting the code snippet and also the errors. I think the code is
unable to find all the java classes but i have already installed jdk 1.1.7
code snippet:
Connection connection;
try {
Class.f
driver class is com.ibm.db2.jdbc.app.DB2Driver and not db2.jdbc.driver.DB2Driver
Better use the DataSource
Chris
sumit shah <[EMAIL PROTECTED]> on 23/08/2000 15:25:13
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
To: [EMAIL
Hi guys...
I got apache to work on ssl mod, would you please tell
me how to connect that with tomcat?
Thanks
-Mike,
---
There is no elevator to success, you have to take the
stairs.
__
Do You Yahoo!?
Yahoo! Mail - Free email you c
all set. I was an idiot. Vishu helped me. don't bother replying.
On 23 Aug 2000, at 9:41, Rick Reumann wrote:
> This still is not working. In the following you'll see three very
> short pieces of code. What I don't understand is how come I can not
> use to pull
> stuff out of a session bean? It
The bean in "request" scope will be destroyed as soon as request is over.
make the scope of the bean in second page to "session".
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Rick Reumann
Sent: Wednesday
Hi All
I have a problem, can u solve this.
I want to write some table in the screen. I want to write using the some java class.
This java class will have a method, which request a parameter of JspObject. How
should i pass this JspObject from the jsp page.
Thanks in advance.
Shyam
=
This still is not working. In the following you'll see three very
short pieces of code. What I don't understand is how come I can not
use to pull
stuff out of a session bean? It pulls the information out of the bean
but these values were not correctly updated from the previous page
that has reque
at the time of compilation it gavi me the following error in the IBM
WebSphere Studio.
*---Start of JSP Processing---*
JSP source: d:\WebSphere\Studio\check_out\Jvcpro\connect.jsp
Generation exceptions caught:
Mapping for java; not specified
thanks,
sumit.
Hi,
I am using IBM WebSphere and DB2 database for developing my application.
Can anyone please help me out with the mapping to the database.???
I wrote the following code but that didnt work.
Please help.
Connection connection;
try {
Class.forName("db2.jdbc.driver.DB2Driver")
We are trying to get data from a servlet using http request from a standalone Java
program using URLConnection class.
We are sending back the cookie with the session id but the sesison is not being
maintained across multiple requests within the timeout period. It seems that the
session is inva
Void Dans Code :
Erwan TROEL a écrit :
> > -Message d'origine-
> > De : Erwan TROEL
> > Envoyé : mercredi 23 ao?t 2000 14:08
> > ? : '[EMAIL PROTECTED]'
> > Objet : re: out.println
> >
> > Quand j'utilise out.println dans:
> >
> >
> >
> >
> >
> > <%@ page language="java" i
U can try using the getUpdateCount() method in java.sql.Statement
- Original Message -
From: Naveen Gupta <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 23, 2000 5:17 PM
Subject: Re: JDBC: want to know the no of record fetch my any select query
> Amar try this
>
> -Message d'origine-
> De : Erwan TROEL
> Envoyé : mercredi 23 août 2000 14:08
> À : '[EMAIL PROTECTED]'
> Objet : re: out.println
>
> Quand j'utilise out.println dans:
>
>
>
>
>
> <%@ page language="java" import="java.sql.*" %>
> <%!
>
> // presentation
> final String styl
Amar try this
ResultSet rs=stmt.executeQuery("select count(*) from tablename");
rs.next();
int x=rs.getInt(1);
out.println(x);
Now this x will show thw no of records
or u can use
ResultSet rs=stmt.executeQuery("select * from tablename");
int x=0;
while(rs.next()){
x++;
}
out.println(x);
This
try
<%@ page ...%.>...
-Message d'origine-
De : Hensley, Zachary <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : mercredi 23 août 2000 11:46
Objet : Re: How to remove empty lines from JSP?
>I am pretty sure that the JSP engine takes all the text in the JSP page an
Hi Erwan,
You seem to use System.out where you want to send output over http to the client
and not to the System.out of the java process.
Yout can just use 'out' in a JSP page: it is a predefined variable like request,
response, session ... and is an instance of a JspWriter that must be used to
s
Hi,
You should use a URL relative to the "root" of your application; ie, if your
directory structure is as follows...
application_root/jsp/news/news.jsp
application_root/jsp/failure/failure.jsp
application_root/WEB-INF/classes
In the page diective of news.jsp use
<%@ page session='true' errorP
Hi all,
I'm trying to deploy some JSP files created on IPlanet 6.0 application
server. However, I encountered the following error when I tried to view my
jsp pages.
[23/Aug/2000 17:37:06:5] error: Exception: Servlet-compile_failed: Failed in
compiling template: /estmtTest/fxdetails.jsp
Excepti
> I would also recommend you evaluate the SRC attribute of the
I am pretty sure that the JSP engine takes all the text in the JSP page and
outputs it. Including the carriage returns and spaces. If you really don't
want it there than try(if you haven't already tried this) putting the line
that follows the page directive on the same line.
-Original Mess
Hi
Has anybody configure Jrun 2.3 to run Servlet and JSP in SSL and non SSL
environment
Currently I have problem to access servlet in HTTP after SSL installation.
My environment is Jrun 2.3 and IIS 4.0
Thanks for your help in advance
Best regards
Tandil
==
You mean Resin 1.1.3?
We had a look at quite a few servlet containers, including
JRUN, Jserv, Orion and a bit of Tomcat. Of course we didn't
have the time to look into them realy deep. But Orion and
Resin looked both fast and reliable. Resin has also a fairly
small footprint which is important fo
package is just in case yoiur bean is in a package ...
Regards
veronique
sufi malak a écrit :
> How to change this to a useBean tag :
> <%
>BasketBean basket = (BasketBean)session.getAttribute(BasketBean.BASKET);
> %>
>
>
Hi All
MY Environment is Windows NT 4.0 ,JDK1.3 ,Tomacat3.1 and Apache 3.1.12
I installed Apache 3.1.12 server in my windows NT server and Jakarta-Tomcat
3.1 also.
i tested there in my NT Server it is working fine.
Now where should i put my JSP files and HTML files?
and one more thing i want
excusez moi voici la derniere version:
<%@ page language="java" import="java.sql.*" %>
<%!
// presentation
final String styleTableBeg = "";
final String styleTableEnd = "";
final String styleDataRowBeg = "";
final String styleDataRowEnd = "";
final String styleHeaderCellBeg = "";
final String sty
You could use an application scope variable to count number of incomming user and
on session invalidate, decremet this same variable ...
Regards
veronique
Khoo Sweechin a écrit :
> Hello,
>
> I am creating a web chat application using Websphere server.
> How can I know the number of active use
<%@ page language="java" import="java.sql.*" %>
<%!
// presentation
final String styleTableBeg = "";
final String styleTableEnd = "";
final String styleDataRowBeg = "";
final String styleDataRowEnd = "";
final String styleHeaderCellBeg = "";
final String styleHeaderCellEnd = "";
final String styl
yes use dialog class in the awt package.
- Original Message -
From: Stefán Freyr Stefánsson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 22, 2000 9:15 PM
Subject: Applet popup question
> Is there any way of displaying a popup confirmation box (like javascript
> "conf
81 matches
Mail list logo