Hi all!
If I want to output binary data, how can I do it? Because out is a JspWriter
object, I can't use it to output binary data. Should I use
response.getOutputStream() ?
Regards,
Thai
===
To unsubscribe: mailto [EMAIL
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 guess u can use
request.getHeader("referer"));
Dinesh
-Original Message-
From: hotmail [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 10:06 AM
To: [EMAIL PROTECTED]
Subject: HOW TO DETECT THE REFERAL PAGE
Hi all,
hey when i cometo a jsp page frm
Yes
If you use Netscape 4.6 or 4.7 or IE.u can put a code snippet from .web
file(SSJS)
to detect whether ur client has enabled or disabled JS.
Regards
Sendil
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of
Use a servlet to generate an image.It's a better option, the list would
agree with this as well :-).
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com
- Original Message -
From: Thai Thanh Ha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 04, 2001
Hi,
Suppose the follwing XML Document.
?xml version="1.0" encoding="ISO-8859-1"?
books
book isbn="123"
titleWeb Servers for Fun and Profit/title
quantity10/quantity
price$17.95/price
/book
book isbn="456"
titleWeb Programming for Mobile
Devices/title
Why do you need to use jsp to do it? It would be easier to use XSL. If you
want you can use XSL commands and save it in a .jsp file (I guess this would
work - I am not entirely sure though). Then call this .jsp file as if you
were calling a proper .jsp file. If you need any more help of how to
Hi!
This is re-post for more replies and suggestions!
I want to display a set of employee details from database in a JSP Page.
Which method is best suited and "WHY"?
1. Establish directly connection from JSP and display records...
2. Divide into
Emp.jsp
Database Bean
Hi,
I am dynamically generating rows of data using the following code :The tags have been
distorted for those who get the mails in HTML
startjsptag
for (int i=0; imyvector.size() ; i++)
{
MYCLASS myclassobj= (MYCLASS) myvector.elementAt(i);
endjsptag%
Actually, I believe it's case sensitive:
request.getHeader("Referer"));
though I may be wrong.
-Original Message-
From: Dinesh_Pandey [mailto:[EMAIL PROTECTED]]
Sent: 04 January 2001 09:19
To: [EMAIL PROTECTED]
Subject: HOW TO DETECT THE REFERAL PAGE
I guess u can use
use JSP custom tag
you write a JSP tag
you put your XML file in the body of the tag
then, in the implementation of hte Tag you instantiate an XSLT processor
you can specify the XSL either harcoding it in the implementation of hte tag
or as an attribute of your tag, like htis:
marco:xmltag
I think we have answered this one about a week ago.
From: Hariharan N [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re:
Date: Thu, 4 Jan 2001 02:48:06 -0800
Hi!
This is re-post
In the bean put all the relevant commands in order to open the connection
with the database. Lets say that you have a method called
public void openConnection()
{
try
{
// Load the database's drivers.
Class.forName("database's drivers here");
// Obtain
When is a jsp page good?
some rules could be
Easy_html_rule
A html designer can easily understand and modify the page
Easy_debug_rule
Easy to debug when an error happens
Easy_change_rule
Easy to change code without affecting other areas
Easy_to_reuse_code
Isolate
Hi Friends,
I want to write the code of JDBC connectivity in a
bean and then use the resultset in JSP page how can i
accomplish this.
Thanks in advance.
Deepak Kumar
__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
I have tried out this way. It works absolutely fine.
-Original Message-
From: Manne Fagerlind [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 4:28 PM
To: [EMAIL PROTECTED]
Subject: Re: HOW TO DETECT THE REFERAL PAGE
Actually, I believe it's case sensitive:
Nagaraj,
With due respect, I would not agree about the Easy_to_reuse_code rule;
re-use is much easier if the code is encapsulated in a good bean.
But solution 3. still seems the best, although a simpler architecture could
be ok if the app is very simple and the logic is not likely to be re-used
Well, regarding to the three solutions proposed. It depends what you are
looking for. If speed is the main issue then I would go for the second one,
otherwise, if clarity is the main issue I would go for the third one.
From: Manne Fagerlind [EMAIL PROTECTED]
Reply-To: A mailing list about
Hi All
Can anybody help me out of the JSP:FORWARD mess...
I m catching the values entered thru frontend and based on the value
entered in Masters named textboxyhe user is forwarded to different
Pages
but i m getting the following error
java.io.IOException: Error: Attempt to
Hi All,
Is TOMCAT 3.2.1 working with only Java Runtime Environment Standard =
Edition v1.3 ?
I installed Tomcat 3.2.1 and JRE 1.3 but Tomcat is not working =
correctly.
I can't run JSP example in Tomcat default home page.
I use Windows 2000 server on Intel machine.
My environment variables for
What is the error message?
From: Hyun-Chul KIM [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Tomcat question ?
Date: Thu, 4 Jan 2001 04:27:03 -0800
Hi All,
Is TOMCAT 3.2.1 working with
Manne,
re-use is much easier if the code is encapsulated in a good bean.
I agree, just transferring code from a jsp page into a bean does not make it
re-usable. But, in the case of database handling, there is some code which
is
common like opening the connection, etc. What I do is to have a
Hi,
we're going to develop a sort of e-commerce site. Security will be very
important, so it's decided to use SSL. Are there any specific issues we
should take in mind during the development stage because of the use of ssl?
Also we would like to make use of the 'default' login-dialog which the
Can the administrator disable the "[EMAIL PROTECTED]" address please. The
mailbox is full and it is really annoying to receive an error message all
the time. Obviously he would not mind if he would not receive any more jsp
related messages.
Thank you in advance.
A simpler architecture will make for faster development, so in some
situation it's the best (or even only) choice. That's true ven if you're not
learning jsp. :-)
/Manne
-Original Message-
From: G.Nagarajan [mailto:[EMAIL PROTECTED]]
Sent: 04 January 2001 13:43
To: [EMAIL PROTECTED]
Sth has been written to the output stream previously, which means a forward
won't work. This may be because you have a jsp:include before this tag on
your page, or because the page is so big that the buffer gets flushed.
/Manne
-Original Message-
From: Ramneesh Trehan [mailto:[EMAIL
request.getRemoteUser() should give you the login user name.
/Manne
-Original Message-
From: [Frank Guchelaar] [mailto:[EMAIL PROTECTED]]
Sent: 04 January 2001 13:43
To: [EMAIL PROTECTED]
Subject: Secure
Hi,
we're going to develop a sort of e-commerce site. Security will be very
hi everybody!
i am glad to annouce a first alpha-version of "DbForms", a java based
open-source rapid application development (RAD) toolkit
DbForms enables developers to build web-based database applications in
_very_ short time and under very little efforts. DbForms - applications are
built
Hello there. Does anybody know how to cast a variable of type Integer into
int? Thanks in advance.
Panos
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
-Original Message-
From: [Frank Guchelaar] [mailto:[EMAIL PROTECTED]]
Sent: 04 January 2001 13:43
To: [EMAIL PROTECTED]
Subject: Secure
Hi,
we're going to develop a sort of e-commerce site. Security
Hello there. Does anybody know how to cast a variable of
type Integer into
int? Thanks in advance.
Use the intValue() method.
example:
Integer myInteger = new Integer ("123");
int value = myInteger.intValue ();
The API documentation for Integer is on java.sun.com at the following URL.
int myInt = myInteger.intValue()
Panos Konstantinidis wrote:
Hello there. Does anybody know how to cast a variable of type Integer into
int? Thanks in advance.
Panos
_
Get Your Private, Free E-mail from MSN
Yes, I had mentioned this is a re-post for more suggestions!
At 03:02 AM 1/4/01 -0800, you wrote:
I think we have answered this one about a week ago.
From: Hariharan N [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To:
Hi!
Are u sure the System.out.println will display the records in the JSP
page, think we have to use the JSP printWriter implicit object "out" to
display something in the JSP page.
Now this gives rise to..
1. Suppose we want to display something from a bean like System.out.println
in the JSP
Hey.
Just wondering if anyones explored this part of the
Servlet 2.3 spec public draft. Any resources/examples out there?
Thanks
-Sam
_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Hi,
I am using Iplanet web server version 4 and jsp version 1.1. When
there are multiple instances of the browser I would like to have a
unique session for each instance of the browser. It is possible only
when if you disable the cookies on server and enable the URLRewriting on
server.
But
Looking at the Integer Class, you would use the method "intValue()". For example:
Integer testInteger = new Integer(5);
int testInt = testInteger.intValue();
Cheers!
octalpus.
Panos Konstantinidis wrote:
Hello there. Does anybody know how to cast a variable of type Integer into
int?
From: Hariharan N [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Executing SQL query in bean
Date: Thu, 4 Jan 2001 07:54:51 -0800
Hi!
Are u sure the System.out.println will display the
Too much acid last night. I mean you can declare a method of type String
like this.
public String printThis()
{
}
and not like
public void String printThis()
{
}
From: Panos Konstantinidis [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
I think you need JDK1.3. Tomcat uses tools.jar (I think) which is not
provided with JRE, to compile your JSP.
Luis Javier
- Original Message -
From: "Hyun-Chul KIM" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 04, 2001 7:27 AM
Subject: Tomcat question ?
Hi All,
Is
Hi
You cannot cast and Integer to int as Integer is a object and int is a datatype. You
need to use the intValue() method of Integer class which will return you the int value
from that object.
- Original Message -
From: "Panos Konstantinidis" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
This allows the home object create or find an entity bean. This is well
documented in any EJB book or tutorial
From: shashi bhusan [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: A EJB Problem
Does anyone know of any JSP-centric job boards out there?
Thanks.
Neal
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
prasanjeet wrote:
Hello everybody,
I have a strange problem the forward tag command of JSP is not
working .
ex.
html
body
hello
jsp:forward page="/examples/jsp/dw/HOME.htm" /
/body
/html
this is showing the 404 error , i have tried all the possible combination of
You mean an object of type integer and you want to cast it to a primitive
data type. Please use correct OO terminology, or else everyone will think
you are a cobol programmer. :-)
-- Pete --
- Original Message -
From: "Cassio" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday,
Pretty sure you are now tied to weblogic or whatever server visual age uses
and tomcat is not an option with this ide. You'll find out. Should of used
JBuilder professional -- better docs, better ide and cheaper also it uses
tomcat as it's server.
Good Luck.
-- Pete --
- Original Message
I m getting the following error message? What does this mean?
I verified my CLASSPATH, it seems okay as one working in other machine.
Please help.
org.apache.jasper.JasperException: Unable to compile class for
JSPC:\Tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fCredit_0002fSetNa
SendRedirect and forward are very different beasts, don't confuse them!
SendRedirect will cause an extra roundtrip to get the page (and roundtrips
are evil), whereas forward is effectively a function call to another servlet
within the same server,
Kevin Jones
DevelopMentor
www.develop.com
It's even worse than that as it depends on the version of IE you're running.
I run IE 5.0 and 5.5 on W2K. If you do a File..New Window you'll always get
the same process, so you'll share in-memory cookies. If you start a new IE
process (from the task bar, explorer etc.) you'll get a new process,
Paths in forward and include are relative to the current application and
start with a '/' so the syntax is fine.
Have you tried this with another web server (Tomcat for example) I'm not
sure how well jwsdk1.0.1 copes with this,
Kevin Jones
DevelopMentor
www.develop.com
-Original
One way would be to put all the relevant objects in
your session or context as java beans.
Now code all the links as http get request eg.
http://www.../x.jsp?name1=firstbean etc.
Now in x.jsp you can retrieve the bean and their
respective attributes.
Hope this helps
Prabhat
--- Vineet Sethi
We're running on SSL and I haven't had to make any modifications to my code, though
I will warn you that sometimes you have to redo all of the settings for where to
pass JSP files to in order to for any SSL pages if a different program is handling
the https than the http.
-Daniel
"[Frank
Hi,
I was going through the archives and found that "Service will allow
access to all variations and can permit the sending of data in an
unexpected way". Can anybody help me in understanding this. In short
what are the disadvantages, security issues etc.
Thanks.
Sushil
I've stumbled onto Sun's Forte for JSP development... easy to use and works
with Tomcat. The "Community Edition" is a free download from Sun. Can be
used to develop applets, servlets, Swing stuff, JSP HTML. It's pretty
slick.
Christian
-Original Message-
From: Pete Ehli
I've looked but can't find how to implement getInitParameter() from
jspInit().
I tried doing the following and got an error that the variable config is not
found:
%!
public void jspInit()
{
String value = (String)config.getInitParameter("whatever");
// more code...
}
%
I'm
I'm not a DOS guy, but you probably need to lose the space after the
semi-colon. I think it needs to be an unbroken string.
.Michael.
At 04:46 PM 1/4/01 -0500, you wrote:
OK, so, correc me if I'm wrong, but shouldn't
CLASSPATH=E:\jdk1.3\lib; e:\mysql
be a valid classpath? For some reason JSP
The statement that for VisualAge for Java "tomcat is not an option with this
ide" is patently incorrect. I know it for a fact. I built it and have
published a number of articles and whitepapers on it.
You can get it for free at:
jeff luo wrote:
Hi, I want to create a tag that can declare a script
variable in the jsp page, I use the tag extraInfo
class to declare the variable, it work fine when I
know how many variable I want to declare in the jsp
page. But I have a problem need to solve, the
variable number
Pete,
Pretty sure you have your facts wrong Pete. By default, VA Java Enterprise
uses the IBM Websphere Test Environment to test JSPs, but you also have the
option of using the Apache Tomcat Test Enviornment v3.1, downloadable free
of charge from http://www7.software.ibm.com/vad.nsf/.
As for
Luis Javier Beltran wrote:
I think you need JDK1.3. Tomcat uses tools.jar (I think) which is not
provided with JRE, to compile your JSP.
Or JDK 1.2.2, or even 1.1.8 (for Tomcat 3.2 only). But the key point is that you
need a JDK, not a JRE, to compile the JSP pages.
Luis Javier
Craig
1. Suppose we want to display something from a bean like System.out.println
in the JSP page,
do we have to pass the implicit out object to the bean or which way?
can we invoke a method say.. write() in the JSP page from a bean??
Wouldn't it be better to access this through a bean getter??
I am
Sameer Tyagi wrote:
Hey.
Just wondering if anyones explored this part of the
Servlet 2.3 spec public draft. Any resources/examples out there?
They are not real sophisticated, but there are a few simple application event
listeners (as well as filters) in the "/examples" web app in the
Duane,
Actually, just to add to your correct statements and suggestions for
comparing product A and B, I would add the following:
The same statements you make are applicable to the Profesional edition as
well (which is considerably less expensive) which supports the integrated
WebSphere Test
JBuilder is a great product, don't get me wrong :-) but you can actually use
whatever server you want with VisualAge for Java, including Tomcat. Check out:
http://www7.software.ibm.com/vad.nsf/Data/Document2389
or
http://www7.software.ibm.com/vad.nsf/Data/Document2390
VisualAge for Java is
Matthew L. Hankes
Senior Technical Recruiter
Jivaro
Professional Headhunters
[EMAIL PROTECTED]
408-733-5082 Voice
408-733-5066 Fax
www.jivaroinc.com
* Ask about our Referral Program! *
===
To unsubscribe: mailto [EMAIL
Hugh,
Sorry once again to inject some information into this thread. I guess I feel
justified since you are pointing right at my papers and referencing the
tools I developed :-)
While I agree with everything you say you are not completely correct.
First, the Pro version ALSO supports the JSP
I'm using JDBC 2.0 and Oracle 7.3 with no problems at all.
Is it possible to use JDBC with Oracle 7.3 or do I have to use JDBC-ODBC ?
Anthony
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
Hello List Administrator,
Singonff is not working. Please remove myself ([EMAIL PROTECTED]) for this list.
Thanks,
Reza.
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto
This might help u
http://www-106.ibm.com/developerworks/library/j-dynxml.html?n-j-141
MJ
- Original Message -
From: Deepak Kumar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 04, 2001 3:58 PM
Subject: Using XML Data in JSP File
Hi,
Suppose the follwing XML
After I created some tables with SQLPLUS, do I need to config anything on
the Oracle Server in order for Java JDBC to connnect and access the data?
For example, do I need to set anything in SQL*Net? I am using Oracle 7.3
Anthony
-Original Message-
From: A mailing list about Java Server
you can use the additonal code here
PageContext.getConfig() will return the config object then you can use the
getInitParameter.
Regards
Ramesh Kesavanarayanan
Electronic Data Systems
Steeple Reach,
25, Cathedral Road,
91-44-811 3801 to 15 ext :2186
91-44-233 0380 (res)
[EMAIL
Thanks! for the clarification.
but my second query was... suppose u have a method getRecords in a bean
which should(assume) return resultset.. now if any exception occurs in this
method i want to display a string (a custom error message) back in the JSP
page. Since the mthod is defined to send
I am looking for a little bit of help on the process of using JSP to output
XML (so you can build XML output dynamically), and then applying XSL to that
output to render HTML (or other formats..such as WML, PDF, RTF, etc) and
send the response back to the browser. I would appreciate any pointers,
Boy you throw a little stone into the pond and the watch the ripples grow.
The rational for my remarks are that I posted to a local java group and
asked which IDE would be the most suitable for JSP and servlet development.
The group which will be remain anonymous is mainly comprised of
This will help u
http://www-106.ibm.com/developerworks/library/j-dynxml.html?n-j-141
Enjoy
MJ
- Original Message -
From: Kevin Duffey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 05, 2001 10:59 AM
Subject: Anybody using JSP, XSL, XSLT and XML?
I am
Dear friends ,
I have installed tomcat3.2 in which i set path of TOMCAT_HOME in
tomcat.bat and set path of JAVA_HOME,and i was able to use tomcat for
JSP and html docs,but one problem which i am facing right now is i
am not able to use tomcat for servlet.It shows me error can not find
the path
Hi,
I'm trying to collect some information on Enterprise application design
using J2EE technologies. Mainly using JSP and EJB. Anybody with experience
on this combination or knows about the resources?
Pls. reply soon.
Meghana.
I think the way to do this would be the method getRecords should be designed
to throw the exception to the calling JSP. And when u r calling this method
in the JSP, make it a point to use a try-catch block around it.So whenever
there is an exception in this method u r JSP wud be able to print the
Hi all
Please let me know what are the tools, software (J2SDK then what else) I
need to start using JSP.
Thanx in advance
Jyotinarayan.
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For
Hi Kevin,
if this msg has nothing to do with the other that i sent u, i add
commentsotherwise you can skip it
I am looking for a little bit of help on the process of using
JSP to output
XML (so you can build XML output dynamically), and then
applying XSL to that
output to render
i want to download some html files from net using application program(class
file)
but we have a proxy server through which i am not being able to send my
request .
i tried sending using url urlconnection as well as socket
i also set gateway to the proxy.
but still i am not being able to bypass
Hi there,
this was as i was telling you...use a JSP custom tag that can include XML
code.
you can generate it dynamically from the data of your JavaBean.
in the implementation of your tag you will process it with XML...
Well..one of the problems is that we are still using JRun 2.3.3, which
How do I install Tomcat?
How does it function.
I've downloaded the 'jakarta-tomcat.zip' file and extracted it. Now how =
do i install and use it
Thanx in advance.
Jyotinarayan.
- Original Message -
From: "hiteshonline" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 05,
hello people
i have a page where i am inserting some data and after inserting i use the
JSP forward tag to forward the user to my homepage.but the problem is
that even though the data is being inserted...the forward tag does not
work..it gives me an error
"IllegalStateException : already
hi,
i am using cookies for the session tracking (request.getSession( )),
when i log into the system i will put the userInfo object into the
session object and each page i will check for existence of the userInfo
object in session , if exist allow the user to continue the page ,stop it otherwise.
Hi dear,
the following code
%@ page language = "java" %
%
getServletContext().getRequestDispatcher("/servlet/dbservlet").forward(request,
response); %
and this will solve your prob.
Regards Deepak
--- Kevin Jones [EMAIL PROTECTED] wrote:
Paths in forward and include are relative to the
Hi All!
I am using weblogic5.1 for first time. Where should i put my beans which I
need to use with jsp in useBean.
I have tried putting it in Severclasses and Servletclasses in
weblogic\myserver buts its not able to resolve the bean class
plz help
shashi
May I suggest something..use WebLogic 6. It is much better than 5.1. Lots of
fixes, xml based config files, more J2EE compliant. If you have the
opportunity, move up to 6.0, and leave 5.1 behind. It will save you lots of
problems and headaches down the road (hell..even immediately).
This could happen if the output stream in the first JSP is not buffered and
some output has been written to it.
If the output from the compiled JSP file is buffered (by using a page
directive with the default value or an explicit size set for buffer as in
%@ page buffer="5kb" autoFlush="false"
Is it possible to use JDBC with Oracle 7.3 or do I have to use JDBC-ODBC ?
Anthony
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set
OK, so, correc me if I'm wrong, but shouldn't
CLASSPATH=E:\jdk1.3\lib; e:\mysql
be a valid classpath? For some reason JSP wouldn't find any class in the
second path, but it did find the ones in e:\jdk1.3\lib
anyone have any ideas?
-Daniel
Hi ,
I was just wondering if anyone has tried using JBuilder with Websphere or
VAJ with Inprise Application Server ?
Joshua
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.225 / Virus Database: 107 - Release Date: 12/22/00
Dear all,
I am new to JRun ( and only have little experience with Oracle ).
I have Oracle 7.3 server and JRun server running on a NT 4 Server machine.
Can someone give me some solid examples on how to connect and query an
Oracle database using JRun's EJB?
Anthony
93 matches
Mail list logo