Hello All,
I use Tomcat and am having problems correctly formatting the web.xml file.
I have added an entry for a taglib but then I get a parse error in my jsp
when attempting to use the taglib. If I remove all the other entries from
the web.xml except the taglib entry then the parser doesn
Hi,
I have just started using Tomcat. I have a web module with a few jsp
pages.
In the web.xml, an entry
userinfoinput
userinfoinput
userinfoinput.jsp
is giving me an error while this works fine in Weblogic.
Tomcat works fine without any such entry in the web.xml.
I have placed all my jsp
r
www.develop.com
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Marina Kalkanis
> Sent: 02 January 2001 11:49
> To: [EMAIL PROTECTED]
> Subject: web.xml
>
>
> Hello All,
>
Sorry I did fix that error but have sent the original version. Even with
the tags correctly closed I still get parse errors.
-Original Message-
From: Kevin Jones [mailto:[EMAIL PROTECTED]]
Sent: 2 January 2001 13:03
To: [EMAIL PROTECTED]
Subject: Re: web.xml
You haven't close
If I create a new app and put your web.xml in then I get this error
2001-01-02 08:04:36 - Ctx( /jobs ): Mapping with unregistered servlet
invoker
which may be a difference between our setups, but the xml parses fine,
Kevin Jones
DevelopMentor
www.develop.com
> -Original Mess
Hola! How does tomcat know about my application's classes/servlets?
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
So
Hi,
Why Servlets API / J2EE API doesn't contain any methods to edit web.xml
file?
Is it fine if to edit web.xml file through my program using some XML parser
?
If not then why?
Cheers
Lakshmeenarayana G G
ArisGlobal India Development Center,
SysArris Software Pvt. Ltd.,
Bangalore, India
Tel
Hi All,
i am new in JSP. can somebody say how to map servlets. i read something
about web-inf or web.xml. how can write the web.xml - with an editor or
generator. can somebody say where to get an introduction.
Thx
DK
Hi
There's a good tutorial on servlets and their use with
Tomcat and an introduction to configuring Tomcat with
a bookstore example in java Sun's web page. Try:
http://java.sun.com/docs/books/tutorial/servlets/servletrunner/webappdd.html
Hope this helps.
Regards.
---
Jose Ramon Rodriguez Garcia
Hi, I am still have the same error :
Error: 503
Location: /fvote/servlet/fastvote
java.io.FileNotFoundException: /WEB-INF/fv.properties (The system cannot
find the path specified)
Service is permanently unavailable
the web.xml is like this :
.
fastvote
rameter in the
web.xml file that would allow me to call it on every page and if it needed
to be changed, just change it in one place. I can do it using session
variables, but I would not like to do this. I was looking into the web.xml
file and thought that I may be able to do something similar in JSP
Dimitrij, the best reference for web.xml syntax is the JavaServer Pages
reference (actual version is 1.1). Look at http://java.sun.com/jsp/download.html
Dimitrij Kisselev wrote:
>
> Hi All,
>
> i am new in JSP. can somebody say how to map servlets. i read something
> about web
Hi, I am new to servlet, I am trying to use the Upload servlet from Java
Servlet Programming book, Jason Hunter, this is whay I have :
tomcat\webapps\myapp\WEB-INF\classes\UploadTest.class
tomcat\webapps\myapp\WEB-INF\web.xml ???
I created this web.xml :
http://java.sun.com/j2ee/dtds/web
Hi!
Is there any tags defined in web.xml for auto-login feature? Presently web.xml
is written to provide OS level security.
If there are no standards in this direction, can any one point me to the
location of auto-login example code.
Regards,
Nagendra
I'm trying to create my own web.xml file for use in Tomcat. I've read the
doc, but I need help to understand what's going on exactly...
I created a new document folder, and added the context mapping in
server.xml. I put a simple HTML file and a simple JSP file in the folder,
I have an application called fvote under tomcat :
tomcat\webapps\fvote\WEB-INF\web.xml
tomcat\webapps\fvote\fvdata\fv.propertiesand when Invoke the servlet like
this :
http://mil2wwds10/fvote/servlet/fastvote?object=booths&message=LIST
I got this error :
Error: 503
Location: /fvote/ser
Put fv.properties in your classpath; e.g. the WEB-INF/classes that contains
the referencing class. WEB-INF is not in your classpath.
On Tuesday, June 19, 2001, at 09:51 AM, sufi malak wrote:
> properties
---
For industrial age goods there were checks and credit cards.
For everything else there i
it still does not work.
>From: Brad Cox <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: properties in web.xml ??
>Date: Tue, 19 Jun 2001 10:05:38 -040
to "My Website", could I create a parameter in the
> web.xml file that would allow me to call it on every page and if it needed
> to be changed, just change it in one place. I can do it using session
> variables, but I would not like to do this. I was looking into the web.xml
> f
If you're using the servlet method, and specify , you want
to put the startup code in Servlet.init(), right? (as opposed to the
Servlet.service() method.)
I've never actually needed to use that parameter but it seems like a good
thing to know...
=
Hi all,
I have this problem where I want to get a parameter value from the web.xml
file.
In JSP, you would do it this way:
<%=config.getInitParameter("username")%>
How would I do this from a regular class? Would I have to parse through the
xml as i would with any other xml
Hi
Can anyone tell me how to set up a db connection in the web.xml?
I mean how to set the driver, url, user and pwd as parameters and how to call
them in the jsp page or servlet.
Is it possible to call the same from a javabean?
Thanks
Deepak
Hi,
Is there a way to programatically read the context params specified in
the web.xml file under the WEB-INF directory.
TIA,
gg
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST&q
The following is my web.xml file:
http://java.sun.com/j2ee/dtds/web-app_2.2.dtd'>
Web App
no description
hello_jsp
hello_jsp
no description
hello.jsp
30
-Original Message-
From: A mailing list about Java Server Pages specification and r
You have the servlet mapping defined, which maps
a URL to a servlet, but you don't have the actual servlet
declared (which actually associates a class file with the servlet name).
You should have the following text block
in your web.xml file as well.
SomeName
fully.qualified.Servle
Now my web.xml looks like this :
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
UploadTest
UploadTest
UploadTest
UploadTest
But I got this error in line 15:
Starting service Tomcat-Standalone
Apache Tomcat/4.0-b1
ERROR reading java.io.FileInputStream@7
I found a solution, thanks
just I changed UploadTest
to
/UploadTest
>From: sufi malak <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: new bie servelt, we
In JSP, if I use a jsp custom taglib, I must include
one line in all JSP file:
<%@ taglib uri="http://java.apache.org/tomcat/examples-taglib" prefix="eg"
%>
but in more occasion, a taglib will use in all JSP of a application,
Can I config it in web.xml and don&
Difficult to say what the problem is but it sounds like something in your web.xml
file. I recommend replying with your web.xml contents in your message.
>>> chris brown <[EMAIL PROTECTED]> 04/23/01 09:12AM >>>
I'm trying to create my own web.xml file for use in Tomc
Thanks for responding.
I have the default "web.xml" file in my tomcat/conf folder. I copied this
into a the WEB-INF folder of a new context, which I successfully added using
the "context" directives of "server.xml". Things only started going wrong
*after* I
This follows on from my questions from yesterday... still not solved... :-(
>From a fresh Tomcat install -- which worked, including the addition of a
simple "hello world" type context of my own -- I then tried to add my own
custom "web.xml" file. As soon as I put this in
Hello,
I am writing a web application using the MVC in jsp/servlet. The data in the
table is encrypted. Is it safe to store the encryption key in my
application's web.xml file so that it can be retrieved by the servlet ? If
it's not, where else ? I am using Tomcat as the container.
Hello,
I have a JSP page which uses a bean. I want the bean to be able to read the web.xml
deployment descriptor parameters. As far as I know I need a ServletContext to access
this. Is this true? Or is there a way to access parameters without passing the
ServletContext into the bean.
Thanks
]>
Sent: Monday, June 18, 2001 3:12 PM
Subject: [JSP-INTEREST] init-param in web.xml ??
> I have an application called fvote under tomcat :
> tomcat\webapps\fvote\WEB-INF\web.xml
> tomcat\webapps\fvote\fvdata\fv.propertiesand when Invoke the servlet like
> this :
> http://mil2w
I'd like to craete a jsp with databaseaccess and have - due to security
reasons - to put the login parameters and serverlocations in a special file.
Can I therefor use the web.xml file, which JBuilder 5 is automatically
creating? If yes, how do I read out the data?
thx alot
Christian Ha
dear all,
i've just downloaded the DBTags Tag library from jakarta.apache.org.
the documentation mentioned that the connection info can stored in the
web.xml file, so i was wondering how do i specify it in the xml file.
can anyone give me some examples?
thank you.
sincerely,
ced
<%
In web.xml you can use
username
myusename
java.lang.String
and you can access this from bean like this..
String username = (String)ctx.lookup("java:comp/env/username");
For this you need to import javax.naming.*;
Well why you need to edit the web.xml?? c
Hi
As you explained I added the to the web.xml and tried to
call it in my javabean as below:
---
Context ctx = null;
try {
ctx = new InitialContext();
} catch (Exception
sure he would
help you on this specific occasion (pp. 485-489), but
anyway, I think this generally is a must-have in your
library. No, I'm not being paid for that statement.
-- Chris (SCPJ2)
> Hi
>
> As you explained I added the to the web.xml an
Like this:
String value =
getServletContext().getInitParameter("paramname");
Craig McClanahan
Gaurav Gehlot wrote:
> Hi,
>Is there a way to programatically read the context params specified in
> the web.xml file under the WEB-INF dir
> Is there a way to programatically read the context params specified in
> the web.xml file under the WEB-INF directory.
You can access it from servlet and JSP.
For e.g.
idleTimeout
30
>From Servlet:
String idleTimeoutValue =
getServletContext().getInitParameter("idleTim
:05 - PoolTcpConnector: Starting Ajp13ConnectionHandler on
8009
No "tomcat.log" file was generated. I have no webapps in the "webapps"
folder, I just use one context which maps to "/".
Does having the same mapping in /conf/web.xml and any other
"web.xml" cause the mapp
Chris,
I'm not sure I understand what you are doing exactly. You've mentioned that
you put a copy of the default web.xml file in your application directory,
but you have mentioned that you edited the file to reflect your
application, so I'm beginning to guess that you haven'
Sorry, here's some more information then...
I have read the servlet spec (2.2 and 2.3), and have looked at web.dtd as
well. Normally, as you say, each web application should have a copy of
"web.xml" in its "web-inf" folder. Tomcat additionally allows one "su
Other place can be in the DB
> -Original Message-
> From: Mohammed Ali [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 31, 2001 9:47 AM
> To: [EMAIL PROTECTED]
> Subject: Storing encryption key in web.xml
>
>
> Hello,
>
> I am writing a web applicatio
using
javax.servlet.ServletContext.getResource() method.
Justy
- Original Message -
From: "Haering Christian" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 5:34 AM
Subject: read variable out of web.xml
> I'd like to craete a jsp with databa
1 80 3127
Fax:+49 9621 80 2274
> -Ursprüngliche Nachricht-
> Von: horwat [SMTP:[EMAIL PROTECTED]]
> Gesendet am: Mittwoch, 12. September 2001 20:47
> An: [EMAIL PROTECTED]
> Betreff: Re: read variable out of web.xml
>
> The application's WE
Hi,
I'm running a site based on JSP , using tomcat 3.2.1 and Apache 1.3.12 on
Windows.i would be thankful if someone , with this reference , will put some
light
on following issues :
(1) During run time , can a JSP page from *same* web application context
can read web.xml file of m
Hi,all.
I want to set some global variables by the parameters in web.xml when the
web server inited. so:
1)How I can get the value of web.xml parameters in jsp?
2)How I can make a servlet run at the beginning of the web server inited?
Thanks for your answer(s).
BestRegards
Ivy
Dear All,
I want to set when client makes request from
xxx.jsp that jsp is not in our list
then it will display the error-page.
so i set in web-xml like
404
/404.jsp
and place 404.jsp in our application with
jsp.
sometime it works and sometime it didn't
works.
anyone know
Listed below is a copy of my web.xml file located in the /web-inf directory
of my application.
Here is the problem. When the JSP page listed below is invoked for the first
time I was expecting the Enumeration to list out three params and their
values. Instead, I only see the last params and it
kindly pls ignore my previous mail, i have it solved already.
many thanks.
[EMAIL PROTECTED] wrote:
> dear all,
>
> i've just downloaded the DBTags Tag library from jakarta.apache.org.
> the documentation mentioned that the connection info can stored in the
> web.xml file
age-
From: ivy chen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 2:30 AM
To: [EMAIL PROTECTED]
Subject: Howto get the value of web.xml parameters?
Hi,all.
I want to set some global variables by the parameters in web.xml when
the
web server inited. so:
1)How I can get the value of web.
-Ursprüngliche Nachricht-
Von: bipin_jsp [mailto:[EMAIL PROTECTED]]
Gesendet am: Freitag, 17. August 2001 07:27
An: [EMAIL PROTECTED]
Betreff: Error in setting error-code in web.xml
Dear All,
I want to set when client makes request from xxx.jsp that jsp is not in our
list
then it
: [EMAIL PROTECTED]
Subject: Error in setting error-code in web.xml
Dear All,
I want to set when client makes request from xxx.jsp that jsp is not in our
list
then it will display the error-page.
so i set in web-xml like
404
/404.jsp
and place 404.jsp in our application with jsp
Glenn Wilson wrote:
>
> Webmaster
> [EMAIL PROTECTED]
> JNDIServer
> 201.201.201.201
> LooneyName
> BillGates
>
>
Context parameters have to be listed separately, with one name/value pair apiece:
Webmaster
[EMAIL PROTECTED]
JNDIServer
201.201.201.201
LooneyName
gs in the web.xml file. Tags must appear in this order:
Any deviation of this order yields an error when calling the JSP page.
The error can easily be reproduced with the web.xml file of the example
webapp provided with tomcat. Re-arranging the order of tags within that
file breaks the "
ect: Re: Error in setting error-code in web.xml
> U might probably be trying with IE 5 and above. Try making your 404.jsp
more
> than 500 kb (by putting in some gif or whatever).. and it would work.
>
> Lemme know if it doesnt.
>
> Rishabh.
>
> -Original Message-
&
ar all,>> i've just downloaded the DBTags Tag library from jakarta.apache.org.> the documentation mentioned that the connection info can stored in the> web.xml file, so i was wondering how do i specify it in the xml file.> can anyone give me some examples?>> thank you.>> since
Hi all,
can anyone tell me where i can find a piece of doc about
the order of the tags in a web.xml file? For a while, i have been trying
to use different combinations of those tags but still i couldn't find out
the right order. I searched archives, FAQs , even
http://java.sun.com/dtd/web-ap
t; <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 02, 2000 12:22 PM
Subject: Re: web.xml parsing bug in Tomcat3.1 (custom tag libs) ???
> What in the DTD below requires this? Simply the order of the Elements?
>
> Scott Evans
>
>
> > -Original
What in the DTD below requires this? Simply the order of the Elements?
Scott Evans
> -Original Message-
> From: Allan Scott [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 02, 2000 5:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: web.xml parsing bug in Tomcat3.1 (
, 2000 7:47 AM
Subject: web.xml parsing bug in Tomcat3.1 (custom tag libs) ???
> Hi,
>
> you may (or may not) have noticed my posting some days ago regarding a
> problem with Tomcat3.1 and a custom tag library. Since no one solved
> this problem, I had to solve it myself. Here's
Just take a look at the DTD file associated with web.xml.
It's in the DOCTYPE tag, for example:
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>
At 11:20 AM 12/26/2001 +0800, you wrote:
>Hi all,
>can anyone tell me where i can find a piece of doc about
>the order of the
Hi group,
I just installed tomcat, and Im coming up to speed on JSP/Servlets.
However, I cant seem to digest how to setup my own virtual directory
(context) which involves creating web.xml and server.xml entries. I want
to install my servlets and access them and Im confused how to accomplish
t2000 [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 7:38 PM
To: [EMAIL PROTECTED]
Subject: Servlets / Tomcat / JSP / How to setup web.xml and server.xml
tags
Hi group,
I just installed tomcat, and Im coming up to speed on JSP/Servlets.
However, I cant seem to digest how to setup my
-Original Message-
From: NewsNet2000 [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 9:38 AM
Subject: Servlets / Tomcat / JSP / How to setup web.xml and server.xml
tags
>>Hi group,
>>1) Is there a source/link/website to explain (or HOW-TO) on creating
>>
Hello.
I wrote jspInit() method to get initial parameter from web.xml file.
The JSP page contains this:
<%!
public void jspInit() {
ServletContext c = getServletContext();
String data = (String)c.getInitParameter("name");
}
%>
and web.xml fi
Hi all,
I am trying to use two servlets in weblogic... but web.xml file is
allowing me to register only one servlet. If anybody used more than one
servlet in weblogic server by registering through web.xml file please give
suggetion how to register them.
If possible please send the contents of
69 matches
Mail list logo