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
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
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
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
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);
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]
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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"
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!
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
26 matches
Mail list logo