Re: servlet

2005-10-20 Thread Richard Yee
no. Since it will be called from init(), it will be called only once when the servlet is loaded. You might want to set the servlet to load on startup or do this in a ContextListener instead. -R SUBSCRIBE EJB-INTEREST anonymous wrote: Hi, I have a question. I have a servlet.I want to load count

Re: Global Data

2005-08-31 Thread Richard Yee
Why don't you have an initialization servlet that is set to load on startup and whose init method calls another method that actually loads the state information and puts it in application scope. You can also code the doGet() method of the servlet to call the initialization method. Whenever you wan

Re: [Help] How to solve this problem(Urgent)

2005-07-01 Thread Richard Yee
Use a source level debugger in an IDE. At 08:21 PM 6/30/2005, you wrote: Hai, i have a problem like this. In my result the data not display perfect. in my suspicion 1. i have a problem in ResultSet 2. i have problem in StringBuffer so i test my suspicion in point 1, i remark inside while lo

Re: Help with JDBC query

2005-01-23 Thread Richard Yee
Oops, my mistake, I see the VALUES clause is there but it seems that the close parenthesis is missing. -> "?, ?, ?, ?"); } else { -Richard At 07:32 PM 1/23/2005, you wrote: I'm getting the following error in an insert, the update works fine. Is there a way to get a more informative error messa

Re: Help with JDBC query

2005-01-23 Thread Richard Yee
You are missing the "VALUES" clause before the open parenthesis. -Richard At 07:32 PM 1/23/2005, you wrote: I'm getting the following error in an insert, the update works fine. Is there a way to get a more informative error message about the error? Does anyone see a syntax error that I missed? I'm

Re: init called multiple times

2004-08-24 Thread Richard Yee
Mary, I'm not sure why you are using the SingleThreadModel. As long as you keep you use method local variables and don't use class instance variables, you should be thread-safe. Are any exceptions occurring which would cause the thread to exit? See what happens when you don't use single thread mode

Re: servlet access in the same time and the result "error"(urgent)

2004-05-12 Thread Richard Yee
Andy, As long as you use only method local variables instead of class variables in your servlet (ie; java.io.PrintWriter out; in Rinaldo's post) you will be fine. The single threaded model does not need to be used and I think it is even deprecated in the Servlet 2.4 spec. Regards, Richard At 09:5

Re: ANNOUNCE: J2EE 1.4 SDK Now Available with support for Java Se rver Faces and JSTL

2004-03-31 Thread Richard Yee
Just go to jakarta.apache.org and look around for struts. -Richard At 10:17 AM 3/31/2004, you wrote: I sent to [EMAIL PROTECTED] with the subject as SUBSCRIBE My mail is bounced back. Which URL should we use? Thanks, CL __

Re: OT - 10 messages

2003-09-15 Thread Richard Yee
There's more traffic on the JSP-INTEREST list. There is a lot more traffic on sites like struts-user since it caters to developing more complicated sites. -Richard At 09:57 PM 9/15/2003 -0500, Tom K wrote: I've been a member of this list for more then three years and have seen the traffic

Re: Where is JavaDocs for javax.servlet package

2003-06-25 Thread Richard Yee
Kenny, Did you try using "javax.servlet javadoc" in the search box on the java.sun.com site? The JavaDoc for the package javax.servlet comes up as the first listing. Regards, Richard At 02:15 PM 6/25/2003 -0500, you wrote: I have searched all over Sun's web site and I can't seem to locate the

Re: Which is Optimal

2003-06-16 Thread Richard Yee
Vj, I think you need to re-think the user interface and figure out how a user is actually going to find a product among 1, 1000, or even 100 items. Is this program of yours going to be used on an intranet or over the Internet? What connection speeds are your users going to have? What type of s

Re: Which is Optimal

2003-06-13 Thread Richard Yee
Displaying your records sequentially or even distributing them among several pages is useless in terms of usability. Do you expect your users just to go through each page in hopes of finding something to select? You need to categorize the products and then allow the user to drill down to the desir

Re: WebMacro versus Pajes Servlet Framework

2003-06-13 Thread Richard Yee
Have you looked at Struts? http://jakarta.apache.org/struts -Richard At 09:48 AM 6/13/2003 -0500, you wrote: I am looking for a presentation framework to use with my servlets. Has anyone tried WebMacro or Pajes Servlet Frameworks? Any suggestions, success/failure stories out there? I am leaning

Re: port 8080

2003-06-05 Thread Richard Yee
via a broadbad connection.     Roshan     - Original Message - From: Richard Yee To: [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 10:18 AM Subject: Re: port 8080 Roshan, How is your computer connected to the Internet? Are you using a dialup modem, connected to a LAN, or using a broadband conne

Re: port 8080

2003-06-05 Thread Richard Yee
ed be?   Thanks again,   Roshan   web: www.josephonline.info - Original Message - From: Richard Yee To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:13 PM Subject: Re: port 8080 Roshan, Are you using a Cable/DSL Firewall/Router at home? If so, you might need to configure it so th

Re: port 8080

2003-06-03 Thread Richard Yee
Roshan, Are you using a Cable/DSL Firewall/Router at home? If so, you might need to configure it so that it allows port 8080 to be accessed on your computer from the Internet -Richard At 06:41 AM 6/3/2003 +0800, you wrote: Hi All,   I recently wrote my own guestbook application which I added onto

Re: Newbie needs help with sub-classes outside my main servlet

2003-03-08 Thread Richard Yee
Kenny, Put the class in a package and then import it. -Richard At 12:27 PM 3/6/2003 -0600, you wrote: I hate to sound stupid but I'm having trouble with this. I created a public class named InitPts in a file named InitPts.java and compiled it to InitPts.class. All these files reside in WEB-INF/c

Re: Cookie

2003-02-14 Thread Richard Yee
Why don't you iterate through the entire array returned by req.getCookies()? When you change the cookie name, it doesn't replace the existing cookie. I would expect that getCookies is returning an array with two elements in it. Regards, Richard At 04:31 PM 2/14/2003 -0800, you wrote: HI, i am

[no subject]

2003-01-25 Thread Richard Yee
Giovanni, The servlet.jar file needs to be in your classpath when you compile. You can do this by using the -classpath option on the command line for javac. I'd suggest downloading an IDE such as Oracle's JDeveloper, or Eclipse however as you will find writing and debugging servlets much easier.

Re: Is there java classes implementation for the GISB protocol ?

2003-01-03 Thread Richard Yee
Have you even tried to search Google for "GISB Java" yet? There are 284 hits for those search terms. Regards, Richard At 03:28 PM 1/3/2003 +0200, you wrote: Dear All, I'm developing java application in which i need to interface to GISB protocol so i asked if is there any supporting java imple

Re: URL Mapping

2002-12-10 Thread Richard Yee
Partha, What does your question have to do with the subject of your email "Re: URL Mapping"? If you are going to post to this list, you should have a subject that corresponds to the content of your mail. To answer you question anyway, your seeing exactly what your page2.jsp is supposed to output a

Re: socket type

2002-11-24 Thread Richard Yee
Purav, It is a TCP socket. -Richard At 10:02 PM 11/24/2002 -0800, you wrote: Hello Guys, Sorry for the off-topic question. Just wanted info on the type of socket created by the serversocket class. Is it UDP based or TCP based??? Please help. _

Re: ServletExec 4.2 and IIS5.0

2002-11-18 Thread Richard Yee
Geoff, The null pointer exception will occur when you try to forward to a URL that the servlet container can't resolve. Remember that you need to specify a path that is relative to your current web application. Regards, Richard At 02:59 PM 11/18/2002 -0500, you wrote: Does anyone have any exper

Re: session, tomcat

2002-11-12 Thread Richard Yee
John, I think you need to re-architect / debug your JSP's and Servlets so that you use session.removeAttribute() and session.invalidate() properly. If used correctly, either of the methods would clear out the values in your session and not leave as you wrote, "garbage data (data entered in the firs

Re: Help running servlet!

2002-11-07 Thread Richard Yee
Fawaz, You shouldn't even have to edit the server.xml file. I'd suggest just copying the example web app to a different name, under /webapps, putting your servlet class file under the WEB-INF/classes directory, and then altering a servlet entry in the web.xml file to match your servlet name. What

Re: web.xml file

2002-10-03 Thread Richard Yee
Fawaz, Isn't this the way it is documented in the DTD for the web.xml file? -Richard At 02:13 PM 10/3/2002 -0500, you wrote: >If anyone else has this problem in the future, i did figure it out. You >have to encapsulate each seperate init param w/in a block. > >Fuz > > On Thu, 3 Oct 2002, Duan

Re: mp3 and tomcat

2002-09-30 Thread Richard Yee
Peter, If you are using the Netscape browser when the mp3 file is displayed as text, then go to the View->Page Source menu and look under the General tab. It should show you what the mime type that the Server is sending when you request the page. It probably says text/plain. This would indicate th

Re: mp3 and tomcat

2002-09-30 Thread Richard Yee
Peter, What browser are you using on the MacOS machine? I clicked on the 1.mpg link from http://24.132.85.220:9006/VoiceBase/audio using Netscape and it opened the file as text. This indicates to me that your server is not configured to serve files that end in .mp3 properly. Have you rebooted your

Re: Mixing HTML and JPEG image on one output page

2002-09-30 Thread Richard Yee
Kenny, Use two servlets or a JSP and a servlet. One jsp/Servlet outputs the HTML page with an img tag that has the src attribute that specifies a URL to a second servlet that produces the JPEG image. -Richard At 02:27 PM 9/30/2002 -0500, you wrote: >I'm trying to write a servlet that draws a ch

Re: simplest Servlet-JDBC not working

2002-09-25 Thread Richard Yee
Manoj, Put the classes12.zip file in your WEB-INF/lib directory. Depending on your app server, you might need to change the name to classes12.jar. -Richard At 06:03 PM 9/25/2002 +, you wrote: >Hi Friends, > >THANKS for sharing your thoughts on my problmes. > >I tried to run my Servlet-JDBC

Re: simplest Servlet-JDBC not working

2002-09-25 Thread Richard Yee
Manoj, Are you trying to run this servlet code as an application from the command line? Since it extends HttpServlet, you need to run it in a servlet container. Regards, Richard At 04:32 PM 9/25/2002 +, you wrote: >hi, > >i am having simplest of Servlet program (DBServlet.java) which is t

Re: R: Tomcat and IIS

2002-09-25 Thread Richard Yee
Luca, The ISAPI filter doesn't do any conversions. Usually, the application server (IIS) is used to handle only one type of web application (ASP or JSP/Servlet) and not both. You can't share session data between the two. -Richard At 09:11 AM 9/25/2002 +0200, you wrote: Yes, I understand...but if

Re: return two CachedRowSet

2002-09-24 Thread Richard Yee
Albert, You can't return more than one object from a Java function. In order to return two CachedRowSet objects, you can do one of the following: 1) Return an Array or Vector of CachedRowSet objects. 2) Create another object that has two CachedRowSet objects as member variables and return an insta

Re: Using Frames with servlets

2002-09-18 Thread Richard Yee
ld also help in differentiating the requests. Regards, Richard At 12:33 PM 9/18/2002 -0500, you wrote: >All of them need to access a database which can only be done from the >first servlet. >fuz > >On Wed, 18 Sep 2002, Richard Yee wrote: > > > Fuz, > > Why do th

Re: Using Frames with servlets

2002-09-18 Thread Richard Yee
Fuz, Why do they have to be generated from the same servlet? -Richard At 12:17 PM 9/18/2002 -0500, you wrote: >Hello, > >I am stuck with a problem using frames and can not think of a good >solution. Does anyone have advice for the following problem: > >I have a log-in screen and once the user i

Re: More File IO trouble

2002-09-07 Thread Richard Yee
Monte, The path that you show is a relative path and not an absolute path. put a leading '/' on the path and try it again. -Richard At 03:34 PM 9/7/2002 -0700, you wrote: >In order to process a user request to make changes to the >user's preference file, I have to write to a file from a Servlet

Re: How to broadcast a message

2002-08-20 Thread Richard Yee
You could have all of your JSP's check for the presence of an application variable. If the variable is found, a JavaScript popup window can be made to appear the next time the server sends a response and the appropriate message can be displayed. Note that the message will only appear once a client

Re: Out of topic Question : credit card processing

2002-08-14 Thread Richard Yee
Travis, You won't be able to do anything directly with your merchant account. You should check your bank and see what they support in the way of Internet transaction processing. There are also several solutions available. PayPal, Authorize.Net and VeriSign are some. I know Bank of America and Well

Re: JSP single-threaded

2002-08-09 Thread Richard Yee
Monte, Use the page directive with the isThreadSafe attribute set to false <%@ page isThreadSafe="false" %> Regards, Richard At 03:17 PM 8/9/2002 -0700, you wrote: >Is there a way to have a JSP page compile to a servlet that >implements the single-threaded model? > >--Monte Glenn Gardner > >__

Re: Offtopic: Http Proxy Sniffer Software

2002-08-08 Thread Richard Yee
eturned by each request. Thanks, Richard At 01:02 PM 8/8/2002 -0700, you wrote: >Richard Yee wrote: > > > Do any of you know of any good Http Proxy Sniffer programs > > that are available. > > > > This seems like a reasonably on-topic request. Ethereal >(g

Offtopic: Http Proxy Sniffer Software

2002-08-08 Thread Richard Yee
Do any of you know of any good Http Proxy Sniffer programs that are available. I need to monitor the headers of some HTTP requests and responses for my SERVLET development. I've seen one that displayed the information in side-by-side text areas using a Swing GUI, but I forgot where I saw it. Any i

OT:Test Mail

2002-07-25 Thread Richard Yee
I haven't seen any activity on the list for the last two days. Just checking if it is up. -Richard ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archi

Re: methods on a servlet

2002-07-17 Thread Richard Yee
oke this method from a jsp page on user clicking the Submit button >? >thanks for your help. > > > >-Original Message- >From: A mailing list for discussion about Sun Microsystem's Java Servlet >API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of >Richa

Re: FINALLY Re: Getting the output of a JSP

2002-06-26 Thread Richard Yee
mport javax.servlet.jsp.tagext.VariableInfo; /** * Title: CopyTagInfo.java * Description: A TagInfo class for the CopyTag tag * Copyright: Copyright (c) 2002 * Company: Single Track Software * @author Richard Yee * @version 1.0 */ public class CopyTagInfo extends TagExtraInfo { public Variabl

Re: methods on a servlet

2002-06-26 Thread Richard Yee
Dossani, Yes, it is possible to invoke methods in a servlet class from a jsp page. You need to import the servlet's class if it is in a package. What method do you want to invoke? You shouldn't invoke any of the methods defined by the HttpServlet interface. You would treat the servlet just like an

Re: FINALLY Re: Getting the output of a JSP

2002-06-26 Thread Richard Yee
Iván, Are you running this as a separate application or from a JSP different from the original request? It was my understanding that the requirement was to return a response to the user and also generate an email to be sent to the user containing the same response. If that is the case, I think

Re: Can I use HTTPS protocol using JDK1.4?

2002-06-26 Thread Richard Yee
Luca, If you just want to use Https to secure the communication between the client browser and your server, all you have to do is install a SSL certificate on your server. You do not need to use the javax.net.ssl classes at all. The server will handle the SSL handshake for you and decrypt and encr

Re: Getting the output of a JSP

2002-06-26 Thread Richard Yee
Iván, As I stated in a previous email, you can do this by writing your own custom tag or if your application server supports the 2.3 servlet spec., a filter. What application server are you using? Regards, Richard At 08:38 AM 6/26/2002 -0600, you wrote: >yes, this is it. I need to store the

Re: Getting the output of a JSP

2002-06-25 Thread Richard Yee
Iván, If you want to only capture outputs from a few JSPs, I'd suggest writing a custom tag and enclosing the content of the JSP's that you want to capture with it. Your tag would extend BodyTagSupport and override the doAfterBody() method. Another approach is to use a filter if your container

Re: how to prevent the showing of a web folder

2002-06-21 Thread Richard Yee
servlet >has an initial parameter 'listings'. 'listings' has a default value of true >and that means that the listings of the all files is accessible for a given >folder. > >Is my understanding correct? > >Thanks! >Asim > >-Original Message- >F

Re: how to prevent the showing of a web folder

2002-06-21 Thread Richard Yee
Iván, For Tomcat 4, edit the /conf/web.xml file so that the default servlet 'listings' init param is set to false. ie. default org.apache.catalina.servlets.DefaultServlet debug 0 listings false 1 Regards, Richard At 0

Re: Tomcat Problem

2002-06-18 Thread Richard Yee
Kaustubh, What port do you have Tomcat and/or any web servers listening on? What port is your chat server application listening on? You need to make sure your chat server is not using a socket that is also being used by another program. I highly doubt there is a bug in the ServerSocket class beca

Re: Java Website ISP

2002-06-07 Thread Richard Yee
Mark, I've been using Addr.com.  They are pretty cheap $15.95/mo for a package w/ mySQL.They are somewhat reliable, though in the last few days I've found the server has been down for a few minutes at a time. They say they are in the process of upgrading their facilities. -Richard At 10:25 AM 6/7

Re: Web Servers

2002-06-06 Thread Richard Yee
Joseph, I'd say that the software isn't as important as the hardware you run it on. Regardless of the software you get, you won't be able to support that kind of traffic if your machine isn't powerful enough, has enough memory, or doesn't have a big enough connection to the Internet. The Yahoo sit

Re: Why JSP can't fully but partly display the message delivered by Servlet?

2002-06-05 Thread Richard Yee
Edward, The anwser to your first question is because you aren't putting the values of your attributes inside double quotes. This is what you have: value=<%=message[j]%> > This is what you need to do: As for your question about setting the button size, as far as I know, the size attribute does

Re: Telnet from windows

2002-05-30 Thread Richard Yee
Check out, http://xml.apache.org/soap/ All the information you need should be there. Regards, Richard At 11:38 AM 5/30/2002 -0400, you wrote: >Richard: > How do I use Tomcat server with SOAP ? > >Albert Pi >Corp IS System Delivery >516-803-3762 > > > >>> [EMAIL PROTECTED] 05/30/0

Re: Telnet from windows

2002-05-30 Thread Richard Yee
rexec and rsh are available on Windows 2000 and WinXP. Have you also considered putting a Tomcat server on the Unix machine and then using SOAP? Regards, Richard At 04:19 PM 5/30/2002 +0530, you wrote: >Hi guys >I need to trigger a Unix script on a remote Unix machine from a Windows >2000 Ma

Re: Securing EJB calls, urgent!!!

2002-05-21 Thread Richard Yee
Bhushan, Aren't your machines in a secure network? I would think that your servers would be protected by a firewall so that such security precautions would be unnecessary. Otherwise, you could probably set up a VPN between the two machines using (CheckPoint, Cisco, Agilent, etc. hardware). Otherwi

Re: Me again.. HTML Question....

2002-05-16 Thread Richard Yee
Gehan, First, the HttpUtils class has been deprecated in the servlet 2.3 API. Use HttpServletRequest.getHeader("Referer") to get the URL of the referring document. -Richard At 11:47 PM 5/15/2002 -0700, you wrote: > Ok I've looked through the servlet API, and the tutorial on >servlets and I stil

Re: Murthy

2002-05-10 Thread Richard Yee
Murthy, What entries did you use in the web.xml file and what code did you use in your servlet to retrieve the parameters. In the web.xml inside your servlet section, you should have an entry like this yourParamName

Re: Large Table

2002-05-10 Thread Richard Yee
>running in my Server. >Thanks, >-Tim > >-Original Message- >From: Richard Yee [mailto:[EMAIL PROTECTED]] >Sent: Friday, May 10, 2002 1:46 PM >To: [EMAIL PROTECTED] >Subject: Re: Large Table > > >Gin, >Why don't you just have the servlet write the d

Re: Large Table

2002-05-10 Thread Richard Yee
Gin, Why don't you just have the servlet write the data out as a temporary file and then return a link to it. You will then be able to close the connection sooner and possibly compress the data to make the download go faster. Regards, Richard At 01:08 PM 5/10/2002 -0400, you wrote: >that's ac

Re: included jsp init()

2002-05-09 Thread Richard Yee
Mike, Override the jspInit() method like this in your JSP. <%! public void jspInit() { } %> -Richard At 06:43 PM 5/9/2002 +0100, you wrote: >Every page on my site is a jsp that is made up of various <%@ included> .jsp >files. >Though the first include is always the same. > >Does the individua

Re: Maintaining session state when opening a URL from within a servle t

2002-05-01 Thread Richard Yee
Dan, You might want to look into using query string parameters rather than relying on an existing session. There are several reasons for this. 1) The session exists only between the particular browser that the user is currently using. If the email was received on another machine, the session would

Re: Problem posting XML string

2002-04-26 Thread Richard Yee
Venki, There is no problem posting an XML string from a page to a servlet. I've done it before. You must not be reading the correct request parameter. Post your code. The only issue I have seen is that you can't output your XML within an HTML page w/o escaping the '<' and '>' characters. Outputti

Re: DB2Driver

2002-04-26 Thread Richard Yee
Jose, Have you tried searching google with the words "DB2 JDBC download"? There seem to be several matches returned. Regards, Richard At 09:55 AM 4/26/2002 -0700, you wrote: >Hi everybody: > >I'm using a servlet with JDBC to access DB2 tables, the JDBC driver used is >AS400JDBCDriver, but I wa

Re: Model 2 questions

2002-04-25 Thread Richard Yee
Jay, One approach is to separate your JSP pages into different 'actions''. The controller servlet can then determine route the request to the particular action handler class or code which in turn handles the instantiation of the necessary beans for the page and then forwards the request to the app

Re: Combining WBMP and java servlets

2002-04-22 Thread Richard Yee
Helen, You can only set the contentType of a response once. The last setContentType method call will be the value that is used. Hence your code: response.setContentType("text/vnd.wap.com"); response.setContentType("text/vnd.wap.wml"); response.setContentType("image/vnd.wap.wbmp"); will resu

Re: sql statement

2002-04-22 Thread Richard Yee
It looks like I haven't had my morning coffee. My last response was wrong. Only tno needs to be enclosed in single quotes and not entire where clause. Also I agree with Margaret in that the fields in the GROUP BY should also be present in the fields that are in the SELECT clause. Regards, Rich

Re: Please Help!! - Displaying WBMP files via Servlets

2002-04-19 Thread Richard Yee
Helen, Here's some info on setting up Tomcat http://dcb.sun.com/technology/webinfra/qa_archive/qa072701_6.html -Richard At 06:12 AM 4/20/2002 +0100, you wrote: >Dear people, >I would REALLY appreciate ANY HELP that someone can give me on this topic. > >I am using the Nokia Toolkit 2.0 which use

Re: Please Help!! - Displaying WBMP files via Servlets

2002-04-19 Thread Richard Yee
Helen, You will also need to add some mime type entries in your web.xml in your /conf file wml text/vnd.wap.wml wbmp image/vnd.wap.wbmp -Richard At 06:12 AM 4/20/2002 +0100, you wrote: >Dear people, >I would REALLY appreciate ANY HELP that someone can give me on this topic. > >I am using

Re: calling another Servlet

2002-04-18 Thread Richard Yee
Ezeilo, What are you exactly trying to do? Call a method in another servlet? Invoke a doGet or doPost method in another servlet? If you are trying to do the latter and the other servlet is in the same web application, you should forward the request to the other servlet. You will need to do somethi

Re: servlet mapping to the root

2002-04-16 Thread Richard Yee
June, Apparently, Jason has updated the filter example. The previous code that I posted had several compile problems. Here's a new version that works. import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class TimerFilter implements Filter { private FilterConfig conf

Re: servlet mapping to the root

2002-04-16 Thread Richard Yee
June, One more thought is that if you are using a container that is using the 2.3 Servlet API, you should use a filter instead of a servlet. It seems that this is more appropriate since your servlet is not actually ever creating a response. public class LogFilter implements Filter { FilterCon

Re: servlet mapping to the root

2002-04-16 Thread Richard Yee
June, You might also try omitting the '/' from your mapping entry. Here's the mapping for the Struts action servlet. action *.do Notice that there is no '/' in the url-pattern. Regards, Richard At 03:59 PM 4/16/2002 -0600, you wrote: >Hi Michael, > >After reading your rep

Re: servlet mapping to the root

2002-04-16 Thread Richard Yee
June, Can you send the source code to your EntryServlet? Regards, Richard At 03:59 PM 4/16/2002 -0600, you wrote: >Hi Michael, > >After reading your reply, I thought it seemed to explain the recursive >call to the EntryServlet, because I do reference other resources like >images and other JSPs.

Re: Windows file I/O

2002-04-15 Thread Richard Yee
Lance, You will need a servlet to handle the file upload. Look on the archives for 'file upload'. There are free packages available to handle the work for you. Regards, Richard At 03:59 PM 4/15/2002 -0500, you wrote: >I do not think I was very clear in my question. After I open a file using >

Re: Endswith question

2002-04-15 Thread Richard Yee
scape/server4/https-kb-dev/config/../ClassCache/_jsps/_all/ >_results_jsp.java:557: Missing term. > { >Thank you in advance >Lance Prais > > >-Original Message- >From: A mailing list for discussion about Sun Microsystem's Java Servlet >A

Re: Endswith question

2002-04-11 Thread Richard Yee
Lance, Check the Javadocs. The method name is endsWith(String s) You can't use a switch statement b/c endsWith returns a boolean. You would have to use a if-else ifconstruct. You need something like: String fileName; . . . /* assign a string to filename */ if (filename.endsWith(".txt") {

Re: Output xml string from a servlet directly to browser and pres erve the xml structure

2002-03-27 Thread Richard Yee
This isn't going to work in a SERVLET. -Richard At 01:31 PM 3/27/2002 -0500, you wrote: Dont use a response.setContentType do this instead: <%@ page contentType="text/xml;charset=ISO-8859-1" %> then just write out the xml example:   <%@ page contentType="text/xml;charset=ISO-8859-1" %>   text1  

Re: Output xml string from a servlet directly to browser and preserve the xml structure

2002-03-27 Thread Richard Yee
If you have your XML string in the middle of an HTML file, you will need to replace all <,>, and " with their HTML equivalents (ie. <>, and ") -Richard At 12:49 PM 3/27/2002 -0500, you wrote: >Hi, > >I asked for help in displaying xml in IE as it is and get little hint. Let >me restate the prob

Re: bespoke messages (not sure if previous was sent)

2002-03-22 Thread Richard Yee
No. The problem is that the web server that the servlet runs behind won't have a clue as to how to handle your own protocol. But you can just write a standalone application that acts as a socket server. Regards, Richard At 09:07 AM 3/22/2002 -0700, you wrote: >Is there a way to ask my servlet

Re: Export to Excel spread Sheet

2002-03-21 Thread Richard Yee
Tejas, This question has been answered in the past. Check the archives. -Richard At 11:49 AM 3/21/2002 -0800, you wrote: >Hi all, > >any one knows how to transfer data to excel spread sheet. Basically, My >servlet connect to database and display all data in Table in HTML. later >on I want to

Re: Update Query

2002-03-21 Thread Richard Yee
Tejas, Use the executeUpdate(String sql) method instead of executeQuery(). Since the SQL UPDATE command doesn't return a resultSet, but instead returns an integer that indicates the # of records updated, an error occurs in the executeQuery command when it tries to get a resultSet. Regards, Ri

Re: Servlet IDE

2002-03-20 Thread Richard Yee
The current version of JBuilder is JBuilder6. I have a 700mhz machine w/ 256MB RAM and it runs fine. Regards, Richard At 04:11 PM 3/20/2002 -0700, you wrote: >I've only used JBuilder V2 and V3.5. I've uninstalled 3.5 because it is >written in Java and is thus very slow, even on my 800MHz machi

Re: When does a servlet reloads/recalculates ?

2002-03-20 Thread Richard Yee
Could your browser be caching the image? Put some debug code in the servlet to print to the console. It should print each time a request is sent. -Richard At 09:56 AM 3/20/2002 +, you wrote: >Hi ! I copied,compiled and ran the code(Please see the attached mail from a >different thread) an

Re: Mailing using Java

2002-03-18 Thread Richard Yee
Viju, Is your machine connected to a DNS server? It sound's like it isn't. -Richard At 10:04 AM 3/19/2002 +0530, you wrote: >Rohan, >I mean ,I have a server called penta and if i send mail within that server >ie: From : [EMAIL PROTECTED] To:[EMAIL PROTECTED] it works. >if i send mail From [EMAI

Re: Mailing using Servlets

2002-03-17 Thread Richard Yee
The JavaMail jar file is also included with the J2EE download. -Richard At 09:53 AM 3/18/2002 +0530, you wrote: >Hi Yuriy, >Plz tell me from which jdk javax.mail.*; package will be available. >Thanks >viju > > > > -- > > From: Þðèé Ñòåïîâîé[SMTP:[EMAIL PROTECTED]] > > Reply To:

Re: contentType doens't work

2002-03-17 Thread Richard Yee
You shouldn't need to set the content type in your JSP. What are you setting it to and what is not working with it? What do you mean when you say that you have a servlet integrated with your JSP? Your content type should most likely be text/html regardless of if it is a servlet or JSP. What error

Re: Mailing using Servlets

2002-03-17 Thread Richard Yee
Viju, JavaMail is an optional package. You can find information about it here: http://java.sun.com/products/javamail/index.html If you ever need information about the Java API, I'd suggest to try searching the java.sun.com site first. Regards, Richard At 09:53 AM 3/18/2002 +0530, you wrote:

Re: Type 4 Driver for Sybase

2002-02-19 Thread Richard Yee
keyan. > >- Original Message - >From: Richard Yee <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Tuesday, February 19, 2002 3:56 AM >Subject: Re: Type 4 Driver for Sybase > > > > > > karthikeyan, > > Did you look on the Sybase site? W

Re: Type 4 Driver for Sybase

2002-02-18 Thread Richard Yee
karthikeyan, Did you look on the Sybase site? Why can't you use jConnect? Go to www.sybase.com and download it. It's free. -Richard At 10:33 PM 2/18/2002 +0530, you wrote: >Hi Guys, > > I need type 4 driver for Sybase. I have also looked at > www.javasoft.com/jdb

Re: Sharing a bean between servlet and jsp. Arrggghhhhh

2002-02-11 Thread Richard Yee
Eric, I think you need to put your fb object in the user's session. To do this, put the following code in your process method. HttpSession session = request.getSession(true); session.setAttribute("myFormBean", fb); Regards, Richard At 09:57 PM 2/11/2002 -0500, you wrote: >Now I'm going crazy.

Re: Stored Procedures

2002-01-24 Thread Richard Yee
Marcos, Yes, you can use the CallableStatement.setArray method to set your in parameter. The Array parameter needs to be created using code like the following: // create a new ARRAY object int elements[] = { 300, 400, 500, 600 }; ArrayDescriptor desc = ArrayDescriptor.createDescriptor("NUM_VARR

Re: Question - Problem

2002-01-23 Thread Richard Yee
Tony, See http://www.jspinsider.com/faq/32.view It answers the problem of "Why do I lose my session context when doing a response.sendRedirect()?"Answered by: Jayson Falkner Here's the text of the answer: Some browsers do not accept and handle cookies properly. When this happens the jspses

Re: Servlet-Applet Communication

2002-01-23 Thread Richard Yee
What exactly is the exception? You might want to use the Java console of Netscape to show it. You might need to edit the java.policy file to grant the permission. Try searching www.javasoft.com for the exception that you are getting. -Richard At 11:39 AM 1/23/2002 +0530, you wrote: >Hi guys!!!

Re: Attaching a bean instance to a session

2002-01-03 Thread Richard Yee
TML. >But, given a JavaBean class MyBean the properties of which are set by >RecordSet values by a DAO class SQLgateway, > > req.setAttribute( "MyBean", MyBean); > >from Controller yields "null" (in HTML) for each getAttribute in the JSP. > > >Mark

Re: Attaching a bean instance to a session

2002-01-03 Thread Richard Yee
control back >to the controller. Me wonders if this could be the problem? Am I stepping >on my sessions? (I'm at the office right now and can't test this.) > >Mark > >-Original Message- >From: Richard Yee >Sent: Wednesday, January

Re: Last Question Today

2002-01-02 Thread Richard Yee
Mark, You need to have HttpSession session = req.getSession(); . . . session.setAttribute("user", userBean); in your controller. Regards, Richard At 07:58 PM 1/2/2002 -0500, you wrote: >Thanks, Danny! I have tried every suggestion made to no avail - I still >cannot get the bean to instantia

Re: about servletoutputstream

2002-01-02 Thread Richard Yee
doesn't > > > work properly, I didn't use any request parameters > > at > > > this time. When I invoke doPost(req, res) by using > > > , nothing get display, the > > screen is > > > empty. also nothing in the log file. > > > >

  1   2   >