Re: Custom Tag / JavaBean question

2002-10-15 Thread Padhu Vinirs
Looks like you defined a type as java.util.Vector ( wtih rtexprvalue set to true ) in your tld for the accessList attribute ? -- padhu Cindy Ballreich wrote: I have a custom tag that takes a collection as one of it's parameters. I'd like to be able to give the name of an attribute (a

Re: Avoid jsp reload

2002-10-15 Thread Padhu Vinirs
set reloadable=false in the context definition in server.xml. But this will require a restart of the server. Else, you can change the timestamp of the new source files to a older timestamp. -- padhu Alberto Romei wrote: Hi all, i wanted to know if it is possible to tell tomcat NOT to

Re: 405 Error

2002-10-14 Thread Padhu Vinirs
In 4.0, I think you need an entry for the webapp context in server.xml and your servlet/jsp in web.xml unless you turn on the InvokerServlet. -- padhu Michael Finney wrote: Version 3.3.1 of Tomcat. Redirect via ISAPI filter IIS and Tomcat. When I POST using a form, I get a 405 Error. Why?

Re: Unspecified NoClassDefFoundError

2002-10-13 Thread Padhu Vinirs
Just curious, why is a servlet calling paintComponent ? Is there any accompanying exception ? -- padhu Ben Monnahan wrote: Hi all, I am getting NoClassDefFoundError in my servlet, but it doesn't tell me which one it couldn't find. I'm guessing its a problem with

Re: Why did not http://localhost:8080 work ...

2002-10-12 Thread Padhu Vinirs
Are you connecting through Apache ? What version of Tomcat ? -- padhu Satish Sachdeva wrote: ... but http://localhost:8080/ worked? What's the importance of trailing /? Thanks, Satish __ Do you Yahoo!? Faith Hill - Exclusive Performances,

Re: Using external login pages for web applications

2002-10-11 Thread Padhu Vinirs
Correct me if I understood this wrong: Login Form html ( external web site ) ---Servlet/JSP ( Your web site ) If you setup https access in your web site, then the external form can securely send the login info to your servlet, which can authenticate the user, set a session attribute,

Re: wml or jsp to download midlets ?

2002-10-11 Thread Padhu Vinirs
Cant you access a jsp or servlet, which will set the right content type so that the browser can start the download ? -- padhu Daniel Hellstrand wrote: Hello I got tomcat to work so I can make a simple .wml file and access it through my mobile phone. But if I want to be able to download .jar

Re: wml or jsp to download midlets ?

2002-10-11 Thread Padhu Vinirs
should support downloads. -- padhu Daniel Hellstrand wrote: I thought I only could use .wml files when browsing with a cell phone (ie over WAP) ?? /D Padhu Vinirs wrote: Cant you access a jsp or servlet, which will set the right content type so that the browser can start the download

Re: 404 on new webapp

2002-10-11 Thread Padhu Vinirs
Try: http://localhost:8080/manager/install?path=/testwar=file:/tomcat/webapps/test -- padhu Michael Muller wrote: i just installed jakarta-tomcat-4.1.12-LE-jdk14. i'm running version 1.4.0-b92 of sun's jdk on red hat linux 7.2. i created a test subdirectory off the webapps and

getServletContext call from jsp page...

2002-10-11 Thread Padhu Vinirs
Wanted to know if this assumption is valid in most jsp containers: Is calling getServletContext() ( instead of getServletConfig().getServletContext() ) assuming that the servlet generated from the jsp will be derived from HttpServlet ? This works ( in Tomcat ) because HttpJspBase derives

Re: New Install, New Question

2002-10-11 Thread Padhu Vinirs
Try Context path=/newapp docBase=newapp debug=0 reloadable=true / Also, install the web app using the manager webapp. I am not sure if a restart installs new webapps automatically. -- pady Scott Purcell wrote: Hello, New Install of Tomcat 4.1.12 on 2000. Installed on

Re: Help Defining new webapp

2002-10-10 Thread Padhu Vinirs
That is correct. -- padhu Chuck Carson wrote: I have the following app: /usr/local/tomcat/webapps/changemgmt/ Tomcat detects it upon startup and it works fine. However, I want to enabled automatic reloading of classes. Is this what I need to add to server.xml: Context path=/changemgmt

Re: Servlet config problem

2002-10-10 Thread Padhu Vinirs
I am seeing the same problem. Must be reported as a bug ? -- padhu freddy auwer wrote: Hi, I'am using Tomcat 4.0.6 on Windows NT. I have a jsp declared in the DD with a init-param When I try to retrieve with getInitParam() method the value of this param, I receive null. Here the part of

reloading of jsp page...

2002-10-10 Thread Padhu Vinirs
Tomcat 4.1.12 I have a jsp page that compiles fine. Then I make a change and try to access the page again. The page is not recompiled. I am still getting back the old value. I do have reloadable=true for my context. I have to restart Tomcat to get the new page. Anybody else notice this ? --

Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs
Reloading of jsp works if I start a new browser window. But on same window ( Ctrl-r or reload ) doesnt show the new changes. -- padhu Padhu Vinirs wrote: Tomcat 4.1.12 I have a jsp page that compiles fine. Then I make a change and try to access the page again. The page

Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs
8:37 AM Subject: Re: reloading of jsp page... This may be caused by your browser cacheing the existing page. Try clearing the browser cashce and see what happens. I know RELOAD is supposed to actually RELOAD from the server, but. . . . Padhu Vinirs wrote: Reloading of jsp works if I

Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs
Vinirs wrote: Reloading of jsp works if I start a new browser window. But on same window ( Ctrl-r or reload ) doesnt show the new changes. -- padhu Padhu Vinirs wrote: Tomcat 4.1.12 I have a jsp page that compiles fine. Then I make a change and try to access the page again

Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs
to actually RELOAD from the server, but. . . . Padhu Vinirs wrote: Reloading of jsp works if I start a new browser window. But on same window ( Ctrl-r or reload ) doesnt show the new changes. -- padhu Padhu Vinirs wrote: Tomcat 4.1.12 I have a jsp page that compiles fine. Then I make

Re: Possible to disable session persistence?

2002-10-10 Thread Padhu Vinirs
Are you referring to creating a new session for every call ? If so, only way is to set timeout to 1 ( 1 minute !!! ) or call invalidate in every servlet/jsp. -- padhu Jonathan Eric Miller wrote: Does anyone know if it is possible to turn off session persistence? I don't have an immediate

Re: want to show a message to the user before issuing shutdown command

2002-10-09 Thread Padhu Vinirs
U want to show a message to the client ? If so, The server cannot instantiate a session on the client. If you want to send a email, then the ServletContextListener's contextDestroyed might help. -- pady shoban kumar wrote: Hi there, I want to show a message to the END USER'S before

Re: How to catch the thrown Exception

2002-10-09 Thread Padhu Vinirs
If the exception is thrown from a Servlet, then catch the Exception, wrap it with a ServletException, throw this. Then you can retrieve the exception from attribute javax.servlet.error.exception, and get the root cause exception. yourException =

Re: Too Many Sessions!

2002-10-09 Thread Padhu Vinirs
Register a HttpSessionListener, and log the session destroy message in the sessionDestroyed method. -- padhu Michael Schulz wrote: A few questions: 1) does the session listener document when sessions are destroyed? 2) are there other servlets in your web app that might be causing the

Re: Form-based authentication

2002-10-09 Thread Padhu Vinirs
Shouldnt the url format be http://url?user=xxxpassword=xxx ? Also, if you do this, you could encrypt the password it before calling sendRedirect and decrypt it at the url cgi. -- padhu Rajesh Kanderi wrote: how do you access a webpage which has a form-based authentication setup using java.

Re: trivial question...

2002-10-07 Thread Padhu Vinirs
-Original Message- From: Padhu Vinirs [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 05, 2002 3:18 PM To: Tomcat Users List Subject: trivial question... Tomcat 4.1... I print all the header values. Then I set a new header value ( response. setHeader ) in the service method. When I

reload objects...

2002-10-07 Thread Padhu Vinirs
When I recompile a servlet with changes, and call the servlet, the new object is not loaded unless I restart Tomcat ( 4.1.12 ). Is there a config parameter to reload the object everytime the class is changed ? -- padhu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

Re: Reload Servlets/Classes

2002-10-07 Thread Padhu Vinirs
I asked the same question few minutes back. One of two ways: 1. set reloadable=true for your web app context element in server.xml. Restart tomcat. 2. Copy the ant build.xml in tomcat-docs/appdev/sample into your web app, edit the build.xml for ur app and call ant reload everytime. --

Re: Reload Servlets/Classes

2002-10-07 Thread Padhu Vinirs
to this section? Thanks, CC -Original Message- From: Padhu Vinirs [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 9:40 AM To: Tomcat Users List Subject: Re: Reload Servlets/Classes I asked the same question few minutes back. One of two ways: 1. set reloadable=true

Re: TOmcat 4.0.1 and JDOM b8

2002-10-07 Thread Padhu Vinirs
JDOM is only a easy-to-use-wrapper for java programmers around standard xml parsers. The 'SAXNotRecognizedOption is an object in xerces.jar. make sure the xerces.jar that comes with JDOM beta 8 is in your web app's classpath. Maybe JDOM beta 8 supports a version of xerces that Tomcat is not

trivial question...

2002-10-05 Thread Padhu Vinirs
Tomcat 4.1... I print all the header values. Then I set a new header value ( response. setHeader ) in the service method. When I refresh the page shouldnt the set header value be part of the printed header values ??? I am not seeing this value. Arent header values persisted for the session

authorization using tomcat...

2002-10-02 Thread Padhu Vinirs
I am testing web resource form-based authentication. I have created a dummy jsp page Details.jsp and have created the following nodes in web.xml: security-constraint web-resource-collection web-resource-nameSecurePages/web-resource-name

Re: authorization using tomcat...

2002-10-02 Thread Padhu Vinirs
is: Realm className=org.apache.catalina.realm.MemoryRealm / Any ideas ? Thanks -- padhu Craig R. McClanahan wrote: On Wed, 2 Oct 2002, Padhu Vinirs wrote: url-patternDetails.jsp/url-pattern URL patterns need to start with a / character. Change this to: url

Re: authorization using tomcat...

2002-10-02 Thread Padhu Vinirs
When I commented out the data constraint CONFIDENTIAL the code worked. Thanks everybody, -- padhu Craig R. McClanahan wrote: On Wed, 2 Oct 2002, Padhu Vinirs wrote: url-patternDetails.jsp/url-pattern URL patterns need to start with a / character. Change

Re: authorization using tomcat...

2002-10-02 Thread Padhu Vinirs
: Padhu Vinirs [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 02, 2002 10:19 AM Subject: authorization using tomcat... I am testing web resource form-based authentication. I have created a dummy jsp page Details.jsp and have created the following nodes in web.xml: security

beginner question...

2002-09-19 Thread Padhu Vinirs
Tomcat 4.0.4. I am trying to use the Manager application to deploy and start a web-app. Have created the directory under CATALINA_HOME/webapps ( c:\tomcat40\webapps\ExamBuilder ). Even have a default web.xml under web-inf. Have put a one-liner index.html under my app directory. I call

Re: How to block listings on a SPECIFIC directory

2002-09-19 Thread Padhu Vinirs
Shouldnt the code that creates the directories dynamically also make the decision of whether the directory is browse-able or not ? Depending on that, then it can copy a default file into each of these directories. -- padhu adi wrote: new directories are being created dynamically and they

manual procedure to deploy...

2002-09-19 Thread Padhu Vinirs
What is the manual procedure to deploy web apps in Tomcat ? Also, does the server do a auto reload for manual changes ? Thanks -- padhu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: manual procedure to deploy...

2002-09-19 Thread Padhu Vinirs
Forget this question. The copying manually into webapps works fine. But deployment through the manager app is still a problem. Thanks -- padhu Padhu Vinirs wrote: What is the manual procedure to deploy web apps in Tomcat ? Also, does the server do a auto reload for manual changes

Re: Tomcat 4.0.4 - Error 500

2002-09-19 Thread Padhu Vinirs
You might have to print the full stack of the NullPointerException to find out which class could be creating this exception. -- padhu Natarajan, Raj wrote: I have approx 25 applications deployed on a stand-alone Tomcat 4.0.4 instance. These apps retrieve data from a DB2 database via jsp's

Re: two instances of tomcat (in diferent ports) on the same machine

2002-09-19 Thread Padhu Vinirs
You have to set CATALINA_HOME for each instance. A batch/shell script can export/set parent directory ( assuming you are in bin directory ) as CATALINA_HOME and then call startup/shutdown. -- padhu Christian J. Dechery wrote: I tried that... but I get some kind of conflict with