Re: Cannot read file: ze file

2001-11-29 Thread yilmaz
Thanks Anthony, below is the header of my troublesome jsp page. %@ page language=java contentType=text/html; charset=utf-8 % %@ page import=java.sql.*,java.text.DateFormat,java.lang.Math,java.util.*,com.oreil ly.servlet.*% when charset is set to big5 , there is no problem. Since my OS is Win

Re: Cannot read file: ze file

2001-11-29 Thread Anthony Tagunov
Hello yilmaz, Thursday, November 29, 2001, 12:08:33 PM, you wrote: y Thanks Anthony, y below is the header of my troublesome jsp page. y %@ page language=java contentType=text/html; charset=utf-8 % Sorry, about my idea with utf8 instead of utf-8 - the iana registry has utf-8 not utf8. y %@

Re: display image from table

2001-11-29 Thread I Wayan Saryada
Hi, You can create a servlet that read your image BLOB from database, the write it to the HttpServeltResponse output stream. Before writing it to the output stream be sure to set the content type to the type of image that you store on the database (image/gif), etc. regards, wayan

Catching exceptions....

2001-11-29 Thread Papo Napolitano
Hi! I've a method in an EJB that returns a CachedRowSet. This method before returning the rows, checks from some privileges of the user that is logged in. If the user haven't necesary privileges doesn't return the CachedRowSet. Now I want to now how can I do to know which exception has made

Re: hashtable elements

2001-11-29 Thread Ashish
If using Java 2 is not a problem, I would suggest you look into the collection framework in it. Give TreeMap a try! Ashish === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto

Re: XML URL error

2001-11-29 Thread Eric Fleming
If you go to http://luxurydomain.com you can see the error. Eric - Original Message - From: Richard Yee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 05:52 pm Subject: Re: XML URL error Can you do an nslookup on both names and does it return the IP

Session management

2001-11-29 Thread cbarnes
I am using the default session management in JSPs, but I want it to use URL rewriting instead of cookies. In tomcat/conf/server.xml I changed the SessionInterceptor so that noCookies was set to true (it is false by default). I thought this would force it to use URL rewriting instead of cookies,

Re: Cannot read file: ze file

2001-11-29 Thread yilmaz
Hi Anthony, thank you very very much for your detailed explanation :) you helped me a lot, As you said , with windows notepad editor i opened and re-saved my jsp file with utf-8 encoding, now another proble arose :( this time the data entered by the user from a html form(inside the jsp file) are

tomcat4.0, how to ad new context ??

2001-11-29 Thread sufi malak
Hi, It's my first time using Tomcat4, so I created an application called activeuser and put it in webapps and then I added in server.xml this : Context path=/activeuser docBase=activeuser debug=0 reloadable=true When I try to start tomcat4 server it does not, but whenever I take

Re: tomcat4.0, how to ad new context ??

2001-11-29 Thread Ketharinath Kamalanathan
Malak: I just went thru the process and got the TomCat Srever up. First lets try to start the server. Assuming that your tomcat is installed in c:\tomcat, from the dos prompt, say set CATALINA_HOME=c:\tomcat. Also check that you have the JAVA_HOME set properly to the folder where jdk is

Re: tomcat4.0, how to ad new context ??

2001-11-29 Thread sufi malak
It still does not work when I add a context in server.xml like : Context path=/activeuser docBase=activeuser debug=0 reloadable=true From: Ketharinath Kamalanathan [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED]

Re: tomcat4.0, how to ad new context ??

2001-11-29 Thread Ketharinath Kamalanathan
does your Server Startup now? /KK - Original Message - From: sufi malak [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 11:48 AM Subject: Re: tomcat4.0, how to ad new context ?? It still does not work when I add a context in server.xml like : Context

tomcat4.0, ad new context ??

2001-11-29 Thread sufi malak
yes when I use it as I downloaded it, it works fine, when I start tomcat4 I get the catalina prompt : Starting service Tomcat-Standalone Apache Tomcat/4.0.1 Starting service Tomcat-Apache Apache Tomcat/4.0.1 BUT when I add a context to server.xml, it does not work at all, there is no catalina

Re: tomcat4.0, ad new context ??

2001-11-29 Thread Ketharinath Kamalanathan
I assume you have set the CATALINA_HOME properly. Anyways, Check this site for deploying web apps on TomCat. http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html Thanks /KK - Original Message - From: sufi malak [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 29,

Re: tomcat4.0, ad new context ??

2001-11-29 Thread Chen, Gin
A few things.. 1) I dont think you actually have to do add the context in your server.xml - if you place your activeuser directory into your webapps folder, it should automatically place a context for it into activeuser (not tested by me) - if you place a war file

Re: Session management

2001-11-29 Thread horwat
When you use URL rewriting you will need to include the session ID in a link. The method that associates a session ID with a URL is HttpServletResponse.encodeURL. If you redirect the user to another page, the method to associate the session ID with the redirected URL is called

Tomcat4 problem ??

2001-11-29 Thread sufi malak
Now tomcat4 is running, the web.xml of my new application activeuser : tomcat4\webapps\activeuser\WEB-INF\web.xml is like this : ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN

Re: tomcat4.0, ad new context ??

2001-11-29 Thread Renuka Prasad
As per the point Chen Gin 1) I don't think you actually have to do add the context in your server.xml - if you place your activeuser directory into your webapps folder, it should automatically place a context for it into activeuser (not tested by me) Even though Chen Gin not tested,

Interesting Sort Problem

2001-11-29 Thread Michael Pomeroy
I am adding sort functionality to a successful Results(Invoice2.jpg) page. I've created two drop-down list boxes to select the sort parameters: One with column names, the other sort order (ASC or DESC) I'm receiving a Null Pointer Exception error when I subit the sort. The URL generated by the

Re: Interesting Sort Problem

2001-11-29 Thread Chris Tucker
Michael, Easiest way to find out what's causing this is to open up the generated JSP file (not sure where this will be for you, it depends on the container you're using), go to line 78, and see what the code is doing. It's much easier than digging around in your JSP file trying to guess where

errors starting tomcat 4 on linux

2001-11-29 Thread Daliso Zuze
Hi All, Would anyone have any idea what the following error may be caused by when trying to start up tomcat 4 on suse linux 6.2 thanks Function name=(N/A)Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release

Re: display image from table

2001-11-29 Thread I Wayan Saryada
Hi Dwi, I think it is much better if you wrote you code in servlet, it's more reusable than to wrote it in jsp. If you have your servlet then you can call it from your jsp, for instance you can do it like this: img src=http://www.myhost.com/ImageViewServlet?imgid=pic001;/img if you still want

Re: display image from table

2001-11-29 Thread Richard Yee
You can't do it using it in a JSP because a JSP cannot output binary data. Regards, Richard At 05:00 PM 11/29/2001 -0800, you wrote: yeah .. I already have a imange stored at table and I got some advice to display it using servlet but that i wanna do is display it using jsp. but i don't know

Re: display image from table

2001-11-29 Thread Dwi Nugroho
and i hate to doing servlet stuff .. i hate compile and then compile again -Original Message- From: Richard Yee [SMTP:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 9:58 AM To: [EMAIL PROTECTED] Subject: Re: display image from table You can't do it using it in a JSP

Re: Cannot read file: ze file

2001-11-29 Thread yilmaz
Hi Orlando , What you mean with a blank email? - Original Message - From: Orlando Perdomo To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 9:34 AM Subject: Re: Cannot read file: ze file

Re: display image from table

2001-11-29 Thread Richard Yee
Check the archives, I'm pretty sure there is full source code available to return an image. I think I posted one myself. If you can't find it, I can send you the code. -Richard At 05:59 PM 11/29/2001 -0800, you wrote: and i hate to doing servlet stuff .. i hate compile and then compile again

Re: what's wrong with this piece of code

2001-11-29 Thread Billy Chan
Title: Meddelande Ah, but you can use the string to write to another jsp file that then gets jsp:forward'ed to (or meta-redirect, or response.sendRedirect), which would get interpreted and compiled at that point. Billy[EMAIL PROTECTED](310) 348-3142 -Original Message-From: Chen, Gin

Resin + Apache

2001-11-29 Thread Hardeep Singh
Hi, I have configured apache to use resin as the servlet runner. Now, if Apache is running on port 80 and I enter http://localhost/examples/login/index.jsp, Apache is able to service the request. However, if I enter http://localhost/examples/login (which was working when only resin was running),

how to set session time out in jsp page?

2001-11-29 Thread Robin
hi: how to set session time out in jsp page? thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some

Should the controller be a JSP or a servlet ?

2001-11-29 Thread Sowbhagyavalli Suryadevara
Hi I am new to JSPs. My application was developed using servlets. We are planning to redo the whole thing using MVC architecture. My question is should the controller be a JSP or a servlet ? What are the advantages and disadvantages ? Thank you Valli

Re: Should the controller be a JSP or a servlet ?

2001-11-29 Thread Richard Yee
Since it has controller code and doesn't display anything directly, a servlet is a better candidate for the controller. Regards, Richard At 11:18 AM 11/30/2001 +0530, you wrote: Hi I am new to JSPs. My application was developed using servlets. We are planning to redo the whole thing using

setup global session, how ?

2001-11-29 Thread Miao, Franco CAWS:EX
Hi there, how can I create a global session, that means the session (userid and password) created in User login form can be used anywhere (any Jsp page) in the site? Right now I just can create session within individual Jsp, other jsp page can't take advantage of it, it shows null in other Jsp

Re: Java number format question....please help

2001-11-29 Thread David T. Wilson
KL, Assuming you just want to display the 20 as 00020 then you could do some formatting like: public class TestNum { public static void main(String[] args) { int x = 20; String numberString = new String(); System.out.println(Option One:);

Java number format question....please help

2001-11-29 Thread KL OOI
Hi all, How do I format a integer 20 to 00020 ? Thanks. Regards, KL OOI _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To

anyone know how to install and configure petstore in jboss ?

2001-11-29 Thread chenghong