Taglibs help needed???

2004-04-10 Thread Kumar, Sumit

Hello All,

I am having some strange problem using taglibs in tomcat 4.1.27 and jdk1.4.
My webapp named 'hris', works well without taglibs. I am using 2.3 dtd which
i refer as http://java.sun.com/j2ee/dtds/web-app_2_3.dtd. 
I have downloaded the taglibs standard library (not standard-1.0) from
apache website and its standard-examples webapp works fine when deployed and
run as a seperate webapp. However if I add the tag-libs tag element in my
hris webapp, the tag-lib does not work. I deployed it as

  taglib
taglib-uri/tag/taglib-uri
taglib-location/WEB-INF/taglibs-input.tld/taglib-location
  /taglib

and in my jsp page use %@ taglib uri=/tag prefix=input %
However I get an error message 
The absolute url /tag cannot be found

I have tried several different ways and no matter what I do, I get the same
error from 'hris' but the standard-examples works ok. I am baffled and
stuck. Any help or suggestions will greatly help.

thanks
-sumit

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



excel from java

2004-01-07 Thread Kumar, Sumit
Hello,

I want to generate some complex excel sheets (performing calculations, using
pivot tables etc) from my java code. Can somebody point me to good
opensource tools available to do that. I looked on apache and came across
POI-HSSF project. Is this the way to go or there are any better tools..

Thnaks
-sumit

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



CVS on windows

2004-01-06 Thread Kumar, Sumit
I am trying to configure CVS on windows 2000 machine running tomcat 4.1. Is
there a place I can get instructions on how to do that.

thanks
-sumit

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Illegal State Exception while redirecting

2003-12-18 Thread Kumar, Sumit
Hello,

I am including a jsp header in every jsp page as follows:

jsp:include page=ConnInclude_Authenticate.jsp flush=true /

In this header, I call a class that checks if the valid user objects exists
in session. Otherwise the class returns authentication as false. If the user
object donot exist I redirect to another web site using
response.sendRedirect. 

However I get illegal state Exception (java.lang.IllegalStateException
at
org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(CoyoteResponseFa
cade.java:340) 

Any suggestions please.. 

 The page of header is as follows:

%
   boolean isAuthenticated =
AuthenticationManager.authenticate(request.getParameter(userId)==null?:r
equest.getParameter(userId),
 
request.getParameter(password)==null?:request.getParameter(password),s
ession);
   if(!isAuthenticated)
   {
   System.out.println(\n AUTHENTICATION FAILED);


response.sendRedirect(http://sgtwebdv/gm?format=Sogeti/testAuth/portalHead.
shtmlappId=1ul=/reports.jsp);
   return;
   }
% 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



including a page outside webapp

2003-12-09 Thread Kumar, Sumit
Hi,

I want to include a html header in my jsp page. However that html is not
located in the same webapp. It is actually not located in any webapp but in
a different folder.  I tried using the following syntax but doesn't finds
the file.
[EMAIL PROTECTED] file=../../CustomerTemplates/common_bannerSection.html %  
Any comments?

Thanks
-sumit



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Ant install tasks

2003-12-08 Thread Kumar, Sumit
Hello,

Is it possible to put an object in session of another webapp, like I am in
context of webapp1 and I want to put an UserInfo object in session of
webapp2. Can I even access session of webapp2 from webapp1. Both are
deployed under Tomcat4.1.

Thanks
-sumit

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



session sharing across webapps

2003-12-08 Thread Kumar, Sumit
Sorry, I posted the message earlier with a wrong subject.

Is it possible to put an object in session of another webapp, like I am in
context of webapp1 and I want to put an UserInfo object in session of
webapp2. Can I even access session of webapp2 from webapp1. Both are
deployed under Tomcat4.1.

Thanks
-sumit
-Original Message-
From: Kumar, Sumit 
Sent: Monday, December 08, 2003 2:39 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Ant install tasks


Hello,

Is it possible to put an object in session of another webapp, like I am in
context of webapp1 and I want to put an UserInfo object in session of
webapp2. Can I even access session of webapp2 from webapp1. Both are
deployed under Tomcat4.1.

Thanks
-sumit

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



servlet redeploy

2003-12-01 Thread Kumar, Sumit
Hello,

I am running tomcat 4.1. Can I deploy the servlet after my servlet code has
changed without restarting the server. I am running Tomcat in stand-alone
mode.

-sumit

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



forward thing: tomcat 4.1

2003-12-01 Thread Kumar, Sumit
Hello,

This is more like a jsp question rather then the tomcat one but pardon me
for asking here. In my servlet, I do a 
getServletContext().getRequestDispatcher(
/reports.jsp?msg='selectEval'pid= + pid).forward( req, res ). The code is
given below. I believe this should forward it to reports.jsp[line (4)]. But
what happens is that even though it forwards it to reports.jsp, it continues
to execute the servlet even below the forward statement. When it encounters
the next forward statement[line (5)], it gives IllegalStateException. I
would think it should not go even past first forward[line (4)]. Please help
in clarifying.

if (revList.length  1)
{
req.setAttribute(revList, revList);   
   (4)getServletContext().getRequestDispatcher(
/reports.jsp?msg='selectEval'pid= + pid).forward( req, res );
}
else if (revList.length == 1)
{   

req.setAttribute(projEvalInfo, pe);
}   
(5)getServletContext().getRequestDispatcher(
/OtaceEvalFormRpt.jsp).forward( req, res );

-sumit  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



sharing sessions across multiple webapps

2003-11-25 Thread Kumar, Sumit
I have two webapps on my server. 
I am using the same userInformation object in both the webapps that is
located in tomcat/common/classes. When a user is authenticated by any webapp
it puts the userinformation object in session. I want to track number of
active users for each application. My userinformation object is implementing
the HttpSessionBindingListener. The problem is it shows the total number of
users for both apps. Can I find out the number of active users for each app
and still use the code at one place.

thanks
-sumit

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: sharing sessions across multiple webapps

2003-11-25 Thread Kumar, Sumit
Didn't get you. Can you explain it a little more for me.

Thanks
-sumit

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 1:40 PM
To: Tomcat Users List
Subject: RE: sharing sessions across multiple webapps



Howdy,
Yes, write an HttpSessionListener which accesses a singleton whose code
is in common/lib.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kumar, Sumit [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 2:16 PM
To: 'Tomcat Users List'
Subject: sharing sessions across multiple webapps

I have two webapps on my server.
I am using the same userInformation object in both the webapps that is
located in tomcat/common/classes. When a user is authenticated by any
webapp
it puts the userinformation object in session. I want to track number
of
active users for each application. My userinformation object is
implementing
the HttpSessionBindingListener. The problem is it shows the total
number of
users for both apps. Can I find out the number of active users for each
app
and still use the code at one place.

thanks
-sumit

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



two questions

2003-11-21 Thread Kumar, Sumit
I am trying to use authentication of a product, that uses Basic
authentication using JAAS. It stores data in database using SHA-1 encryption
and uses Tomcat as servlet engine. Not in any of the web.xml of several
webapps deployed do they specify to use Basic authentication. I am wondering
is there any other place also where you can specify the login-config and
realm-name besides  web.xml. or any other suggestions to go abt it.

-sumit

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Basic Authentication

2003-11-20 Thread Kumar, Sumit
Hello,

I have a third party application named Intraspect5.6. It uses Tomcat 4.1 as
servlet engine. It uses Basic Authentication. I want to use the same Basic
Authentication used by Intraspect for my custom application that I have
deployed in the same Tomcat instance. From my webapp, can I go to the table
where intraspect stores the userid and passwords and decode the password Or
is their a better way. I also donot understand how Basic Authentication is
implemented. Any help please.

Thnaks
-sumit
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Basic Authentication

2003-11-20 Thread Kumar, Sumit
Can somebody suggest how to implement Basic Authentication in Tomcat4.1 or
use an existing Basic Authentication being used by other application.

Thanks
-sumit

-Original Message-
From: Kumar, Sumit 
Sent: Thursday, November 20, 2003 11:44 AM
To: 'Tomcat Users List'
Subject: Basic Authentication


Hello,

I have a third party application named Intraspect5.6. It uses Tomcat 4.1 as
servlet engine. It uses Basic Authentication. I want to use the same Basic
Authentication used by Intraspect for my custom application that I have
deployed in the same Tomcat instance. From my webapp, can I go to the table
where intraspect stores the userid and passwords and decode the password Or
is their a better way. I also donot understand how Basic Authentication is
implemented. Any help please.

Thnaks
-sumit
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]