Body Tag throwing nullpointer exception with scripting elements

2003-03-10 Thread Scott Walter
the findAttribute() method is called to locate my scripting elements? Any clues why Tomcat is generating source code to exclude the finding of scripting elements if my doStart returns EVAL_BODY_INCLUDE? thanks in advance, scott = ~~ Scott Walter--have you been

List of jsp pages

2002-01-13 Thread Scott Walter
Is there an easy way to get a list of JSP pages that are inside the war file? I can do this with the java.io.File class but would like to do it by get access to the resources in the jar file? thanks, scott. = ~~~ Scott

Jsp Tag State

2001-11-28 Thread Scott Walter
If I have an instance variable defined in a custom tag. It seems each time I refresh a page that I have the placed the tag onto the value of the variable gets re-initialized. Is there anyway that you can maintain state of instance variables of a custom tag for a given user's session without

custom tag architecture question

2001-11-26 Thread Scott Walter
Just curious, if I place the same tag on a JSP page twice, will there be two instances of the tag class or just one? thanks. = ~~~ Scott __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site

Request Dispatcher

2001-11-14 Thread Scott Walter
I am trying to use a RequestDispatcher include with a JSP page, it seems to be including the content above the location where I have coded the include. Any clues??? Below is my code % RequestDispatcher rd = request.getRequestDispatcher(pageName);

Re: how to embed Javascript in Jsp?

2001-11-13 Thread Scott Walter
you could try: % out.println(SCRIPT src=\file.js\/SCRIPT); % --- Miao, Franco CAWS:EX [EMAIL PROTECTED] wrote: Basically I would like to put javascript file .js inside %%, just don't know the syntax. thanks! Franco -- To unsubscribe: mailto:[EMAIL PROTECTED]

Environment Entries via JNDI Woes

2001-10-23 Thread Scott Walter
I am trying to access an environment entry via JNDI. I have set up in my web.xml and server.xml but I am get an exceptions saying the name is not found in the context. Any clues? Below are my files portion of web.xml env-entry env-entry-nameparms/filesLocation/env-entry-name

Re: ResultSet not found

2001-04-18 Thread Scott Walter
I have never used the jsp:directive tag, instead try this: %@ page import="java.sql.*" % --- Shun-Luoi Daniel Fong [EMAIL PROTECTED] wrote: I'm using a JavaBean to communicate with a mysql database. Here's what I do: 1. login.jsp -- user enters ID and password; also when this page is

Re: Dates in Java

2001-04-06 Thread Scott Walter
This is the way I would do it, which will allow it be portable to any database. Calendar c = Calendar.getInstance(); c.add(Calendar.DATE,-7); //Connection is assumed PreparedStatement stmt = conn.prepareStatement("select * from sometable where somedatetimefield = ?"); stmt.setTimestamp(1,new

Re: Servlet Chaining...

2001-04-04 Thread Scott Walter
Could you use a request dispatcher to forward the request to the second servlet? From the first servlet's request object you could code this: RequestDispatcher rd = req.getRequestDispatcher("path to second servlet"); rd.forward(); --- Gaƫl_Oberson [EMAIL PROTECTED] wrote: Hello I try

Storing property file

2001-04-02 Thread Scott Walter
Hi, I want to get your guys/girls input on the following: I am building an app that will run under Tomcat and in the future J2EE app servers. Currently I am storing parameters for connecting to a database (i.e. jdbc url, driver, etc.) inside a .properties file. When the app is started for

Re: JSP Load on startup?

2001-03-30 Thread Scott Walter
In the war file under the servlet tag, instead of using servlet-class, use jsp-file. scott. --- "Alex A. Almero" [EMAIL PROTECTED] wrote: just the same with servlets - Original Message - From: Angel Blesa Jarque To: [EMAIL PROTECTED] Sent: Friday, March 30, 2001 4:04 PM

Tags and Sendredirect

2001-03-19 Thread Scott Walter
Is this even possible: I have a JSP page called (page1.jsp), that uses jsp:include to include page2.jsp. Page2.jsp has a custom tag on it. Inside my custom tag based on a condition I want to send the user to another page, let's say page3.jsp. The way I attempted to do this is within my custom

Re: How to get rs.last() supported by Tomcat

2001-03-18 Thread Scott Walter
First of all are you using a JDBC 2.0 driver? How are you creating your statement object. By default statement objects are forward-only. You need use a onverloaded version of the createStatement() method to make it scrollable, which is needed for the last() method. Check the jdk api docs for

RE: How to get rs.last() supported by Tomcat

2001-03-18 Thread Scott Walter
c:\jdk1.3. As I know, jdk3.0 has JDBC 2.0 in it. When I used the javac to compile a similar program at DOS prompt and it worked fine. But the same code in JSP got no class error message. Do I need to install JDBC2.0 separately? Thanks, Jack -Original Message----- From: Scott Walt

Re: Simple SQL Statement.....

2001-03-12 Thread Scott Walter
Looks to me you are trying to update the price field with the literal "thePrice", move "thePrice" outside your double quotes such as: String query = "UPDATE parkingPrice SET Price = " + thePrice; --- Mick Sullivan [EMAIL PROTECTED] wrote: Hi, Does anyone know why this statement WILL

Re: How to configure tomcat to us xalan and xerces

2001-03-09 Thread Scott Walter
I just deleted the jaxp.jar and the parser.jar from the tomcat\lib directory and replaced with the xerces/xalan jars and it worked like a champ, scott. --- [EMAIL PROTECTED] wrote: Which files to I have to replace to get tomcat to work with xalan 2.0. Is it simply a matter of removing

RE: saving a file on client's machine using servlets

2001-03-07 Thread Scott Walter
Below is some code I have written which will take a file that was uploaded from an html page that has the file control on it to a servlet. The servlet then inserts the file into a database, it can be easily modified to save to a disk file. FYI--I use the o'reilley package for working with

Tomcat, Jaxp, Xalan

2001-03-01 Thread Scott Walter
Help! I am trying to do xml transformation with tomcat. I want to use the xalan transformation engine. However the jaxp.jar that is included in the tomcat lib is getting in the way. I keep on getting a "Namespace not supported by parser" exception. If I remove jaxp.jar and parser.jar from

pre compile

2001-02-22 Thread Scott Walter
Is there a way in tomcat to precompile all my jsp pages? So that as I am navigating to a new page I don't have to wait for it to compile? thanks, scott. = ~~~ Scott May the Force be with you! __ Do You

Re: Updating cookies in servlets and JSPs

2001-02-09 Thread Scott Walter
Let's see the code snippet you are using. --- Joseph Carew [EMAIL PROTECTED] wrote: I have a class used by a page that needs to update the value of an existing cookie. It should be simple but the browser is not receiving the updated cookie. I have even tried making a brand new cookie

RE: Dynamically created calendar

2001-02-08 Thread Scott Walter
Go to one of the javascript sites, such as javascript.com. They have free code snippets of generating calendars dynamically for any month and year. scott. --- "Cato, Christopher" [EMAIL PROTECTED] wrote: Yes, I'd say it is possible. As long as you figure out the logics around creating the

Re: Load JSP page on start up

2001-02-08 Thread Scott Walter
Yes, but instead of specifying the servlet-class tag, you will need to use the jsp-file tag. This will cause the jsp page to be compiled and loaded. scott. --- Amir Nuri [EMAIL PROTECTED] wrote: Hi Can I load jsp page on start-up the same way I load a Servlet (e.g:

Re: Servlet URLs

2001-02-08 Thread Scott Walter
just specify the url mapping in the web.xml file. It does not have to have servlet in it. For example I have a servlet that processes a login from an html and the url to the servlet is: http://localhost/processlogin or http://localhost/myapp/processlogin cheers, scott. --- "Cumming, Murray"

Servlet init method called twice

2001-02-07 Thread Scott Walter
If I have a servlet that I have setup as load-on-startup the init() method is called twice. However if remove the load-on-startup and call the servlet manually the init() method is called once. Any clues? thanks, scott. __ Do You Yahoo!? Yahoo!

RE: Another Newbie Question -- Urgent Please!

2001-02-07 Thread Scott Walter
No you don't have to download anything extra. The classes are included with tomcat in the servlet.jar file, which is located in the lib directory under your tomcat install. FYI--When specifying a classpath for jar files you can't just specify the directory in which the jar file exist in, you