integrate tomcat with IIS (using JK2) and share user authentication information?

2002-09-19 Thread Alvin Wang

Hi! We plan to integrate tomcat with IIS. As I read, we can use JK2. Also we
want IIS to do the authentication. However, tomcat servlet session also need
the user login information (username...). So is there a way for tomcat to
share (or retrieve) the authentication information with IIS?

Or thinking the other way around, if we use tomcat to do the authentication,
is there a way that we can prevent IIS from loading some document until
login has been authenticated by tomcat?

Thanks a lot!

Alvin


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




RE: IIS and security constraints

2002-09-19 Thread Alvin Wang

Hi! So is there a way for tomcat to share (or retrieve) the authentication
information with IIS?

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 26, 2002 11:21 AM
To: Tomcat Users List
Subject: RE: IIS and security constraints



I think you need to have IIS authenticate the users for you, then you can
handle the authenticated user as you wish in your webapplication.

hope it helps
[EMAIL PROTECTED]


 -Original Message-
 From: Sean Dillon [mailto:[EMAIL PROTECTED]]
 Sent: 26. júní 2002 15:17
 To: [EMAIL PROTECTED]
 Subject: IIS and security constraints


 I developed a site for a client who needs to deploy it on an existing
 IIS server.  I found docs on the web that describe using the
 redirector
 dll, etc., and have gotten IIS to successfully redirect urls to my JSP
 site.  My problem is that the security constraints that work so well
 when running Tomcat standalone or even on the IIS machine via
 port 8080,
 do not work when accessing the site through IIS - there is never any
 login dialog presented by the browser; instead, Tomcat
 redirects to the
 site's 404 error page.

 So what do I need to do to use container-managed security while
 deploying Tomcat through IIS?



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



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


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




how to use relative path to point to a file which's on the same host, but on a different port number?

2002-07-12 Thread Alvin Wang

Hi! All,

In http path, how to use relative path to point to a file which's on the
same host, but on a different port number? For example I have IIS(80) and
Tomcat(8080) on the same host

thanks!


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




How to disable the directory listing in Tomcat?

2002-06-10 Thread Alvin Wang

If I do not set the welcome file in web.xml, is there a way to disable the
directory listing in Tomcat? Thanks!

Alvin


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




How to make tomcat work with IIS?

2002-05-28 Thread Alvin Wang

Could any one tell me how to configure them to let them work together? That
means to let them use the same domain and port (like 80), or at least same
domain.

Thanks!


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




How to create dynamic graphs on web pages?

2002-05-06 Thread Alvin Wang

We need to display graphs on our web pages based on our data reports. We
guess we need a set of API to create the GIF/JPEG files dynamically in
servlets. I read
http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html already.
But I feel it is not sophisticate enough. Does anyone know how to create
complex dynamic graphs on web? for example, 3D graph, XML-graph, curve,
pie. Any good vendor APIs?


Thanks!

Alvin


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




RE: How to create dynamic graphs on web pages?

2002-05-06 Thread Alvin Wang

Did anyone tried with Sitraka's JClass ServerChart?
http://services.sitraka.com/software/jclass/jclassserverchart.html

Which one is the most prevalent product in this field? For example, which
vendor API Yahoo and ETrade are using to create their stock graphs?
Comments? thanks!



-Original Message-
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Alvin
Wang
Sent: Monday, May 06, 2002 2:24 PM
To: [EMAIL PROTECTED]
Subject: How to create dynamic graphs on web pages?


We need to display graphs on our web pages based on our data reports. We
guess we need a set of API to create the GIF/JPEG files dynamically in
servlets. I read
http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html already.
But I feel it is not sophisticate enough. Does anyone know how to create
complex dynamic graphs on web? for example, 3D graph, XML-graph, curve,
pie. Any good vendor APIs?


Thanks!

Alvin

___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message signoff SERVLET-INTEREST.

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


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




Urgent.. Please help me

2002-05-03 Thread Alvin Wang

Hi! I have an urgent question. Could any guru help me to diagnosis it?

I'm using tomcat 4.0. My servlet gets the DataSource from JNDI. However, it
raise the following exception:

javax.naming.NameNotFoundException: Name java:comp is not bound in this
Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at javax.naming.InitialContext.lookup(InitialContext.java:350)

That means the the whole java:comp cannot be found, which I think should
have nothing to do with my DataSource resource setup in my web application
context. Also I use

   javax.naming.NamingEnumeration ne = initCtx.list();

I found there is nothing under JNDI root.

I think there is much some configuration not right. Can any gurus help?
thanks so much!

Alvin


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Name java:comp is not bound in this Context???

2002-05-02 Thread Alvin Wang

Hi! I have an urgent question. Could any guru help me to diagnosis it?

I'm using tomcat 4.0. My servlet gets the DataSource from JNDI. However, it
raise the following exception:

javax.naming.NameNotFoundException: Name java:comp is not bound in this
Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at javax.naming.InitialContext.lookup(InitialContext.java:350)

That means the the whole java:comp cannot be found, which I think should
have nothing to do with my DataSource resource setup in my web application
context. Also I use

   javax.naming.NamingEnumeration ne = initCtx.list();

I found there is nothing under JNDI root.

I think there is much some configuration not right. Can any gurus help?
thanks so much!

Alvin


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: How to logout for the browser based authentication?

2002-04-22 Thread Alvin Wang

So is there any JavaScript or Java API that has the write access to the
username/password stored in the browser? Thanks!



-Original Message-
From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 5:06 PM
To: Tomcat Users List
Subject: Re: How to logout for the browser based authentication?


i know that IE on the Mac (any version) doesn't actually dump session data
until you've QUIT the browser, not just closed the window.

IE on windows displays the behavior indicated in the previous
responseit's based on parent-child relationships between windows.

IE on win32:
1.  File--New Window or a target=_blank or javascript popup ... (same
session data as current window)
2.  double-click Internet Explorer or any other method will create a
totally empty new browser, devoid of previous session data.

i don't know about netscape / mozilla.



On 4/22/02 1:53 PM, Oktay Altunergil [EMAIL PROTECTED] wrote:

 You have to close the browser otherwise the cached username/password will
 still work. You might also close other instances that were spawned from
the
 same parent. ( like opening up one browser and creating new instances
within
 that browser )

 Is it clean enough? This is probably dependend on the browser itself.

 Oktay Altunergil

 On Mon, 22 Apr 2002 16:45:59 -0400
 Alvin Wang [EMAIL PROTECTED] wrote:

 Is there anyway other than closing the browser rudely? And is it clean
 enough to close the browser?

 Thanks!


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




How to logout for the browser based authentication?

2002-04-22 Thread Alvin Wang

Is there anyway other than closing the browser rudely? And is it clean
enough to close the browser?

Thanks!


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




repost an unanswered question.

2002-04-08 Thread Alvin Wang

I'm not complaining. But I read someone said that they always can get
positive responses for their postings. Maybe my question is naive, but I try
again.


-Original Message-
From: Alvin Wang [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 4:18 PM
To: Tomcat Users List
Cc: SERVLET-INTEREST
Subject: JDBCRealm problem (EMPTY page after login)


Hi! I am using JDBCRealm in Tomcat to setup the user authentication. For
example if the user want to access abc.html, Tomcat will first display the
login.jsp page. However, after the user logs in, it shows an BLANK page. The
user has to refresh the browser to see the content of abc.html

Can any guru tell me how to fix this? Thanks!

Alvin


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: repost an unanswered question.

2002-04-08 Thread Alvin Wang

But I am using tomcat 4.0 on W2k. And I do not remember the cat complained
anything when it is started up.


-Original Message-
From: todd tredeau [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 5:39 PM
To: Tomcat Users List
Subject: Re: repost an unanswered question.


Ok... I'll bite... I've seen this error (or lack of it), when I get
errors with an incompatbile jndirealm and enabling jmx beans are you
getting any kind of errors at tomcat startup, or in your log files I
understand you say basically reload after and it works. I also ran
into this when I began testing Chiki, it seems that when I updated to
Tomcat 4.0.X the problem went away... So I didn't really try to fix it,
but upgraded past the issue...I hope this helps.. from a non-technical
perspective..

todd
http://www.wiserlabz.com
collaborative effort to promote Novell and Open Source solutions


Alvin Wang wrote:

I'm not complaining. But I read someone said that they always can get
positive responses for their postings. Maybe my question is naive, but I
try
again.


-Original Message-
From: Alvin Wang [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 4:18 PM
To: Tomcat Users List
Cc: SERVLET-INTEREST
Subject: JDBCRealm problem (EMPTY page after login)


Hi! I am using JDBCRealm in Tomcat to setup the user authentication. For
example if the user want to access abc.html, Tomcat will first display the
login.jsp page. However, after the user logs in, it shows an BLANK page.
The
user has to refresh the browser to see the content of abc.html

Can any guru tell me how to fix this? Thanks!

Alvin


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Redirecting to a home page after form-based authentication

2002-04-05 Thread Alvin Wang

Timothy, can you use a filter to do this? In your homepage, you set a tag in
session. If the filter finds this tag, that means the homepage has been
visited, otherwise the user will be redirected to the homepage

Alvin

-Original Message-
From: Timothy Fisher [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 1:45 PM
To: Tomcat Users List
Subject: Redirecting to a home page after form-based authentication


Can someone tell me how to accomplish the following:

I am using form-based authentication.

Lets assume the following files exist:
 - login.html
 - home.html
 - page1.html

Both home.html and page1.html are protected so the
user is redirected to the login page if trying to
access those.

Now after a successful form-based login, I want the
user to ALWAYS be routed to the home.html page, not
necessarily the page he was implicitly trying to
access.

For example if he trys to access page1.html, he will
be redirected to login.html.  Upon successful
authentication, I want him to be redirected to
home.html.

I know this can be done.  Just dont remember how.


Sincerely,
Timothy Fisher


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JDBCRealm problem (EMPTY page after login)

2002-04-03 Thread Alvin Wang

Hi! I am using JDBCRealm in Tomcat to setup the user authentication. For
example if the user want to access abc.html, Tomcat will first display the
login.jsp page. However, after the user logs in, it shows an EMPTY page. The
user has to refresh the browser to see the content of abc.html

Can any guru tell me how to fix this? Thanks!

Alvin


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: How to do filter after Servlet?

2002-03-28 Thread Alvin Wang

Charlie, do you mean to call doChain() in servlet? I am not sure if I
understand you.

your code means my filter code?
put your code there means where?
you need to call doChain() first, from where? Servlet?

Sorry for my confusion. Thanks!



-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 11:23 AM
To: 'Tomcat Users List'
Subject: RE: How to do filter after Servlet?


the doChain() in a filter is what calls the next filter or serlvet in the
chain, so if you want your code to process the servlet's result, then you
need to call doChain() first, then put your code there.

you will need a custom HttpServletResponse object if you want to view any
part of the response.

Charlie

 -Original Message-
 From: Alvin Wang [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 27, 2002 5:02 PM
 To: Tomcat Users List
 Subject: How to do filter after Servlet?
 Importance: High


 Hi! This is naive. All the examples I saw about filter are
 pre-servlet
 filters. So how to do a post-servlet filter? Do I need to setup in
 web.xml? Or do I need to do it in code (servlet/filter)?

 Can any guru give me a sample?

 Thanks a lot!


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




How to do filter after Servlet?

2002-03-27 Thread Alvin Wang

Hi! This is naive. All the examples I saw about filter are pre-servlet
filters. So how to do a post-servlet filter? Do I need to setup in
web.xml? Or do I need to do it in code (servlet/filter)?

Can any guru give me a sample?

Thanks a lot!


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]