Re: Issue with redirect..

2005-07-03 Thread Kannan Shastri
 Hi,
  I am running a JSF application on Tomcat 5.0.25...the problem is, i
 need to redirect using response.sendRedirect(url) , and i am getting
 an exception
 
  java.lang.IllegalStateException : Cannot forward after response has
 been committed.
 
  This same code is running fine on Websphere server, and when i check
 for response.isCommitted() , it returns false on Tomcat also.
  But still I am getting this error.
 
 can somebody advise?
 
 Cheers,
 
 kan
 

Kannan Shastri
Software Engineer
Computer Sciences Corporation

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



Fwd: Issue with redirect..

2005-07-01 Thread Kannan Shastri
-- Forwarded message --
From: Kannan Shastri [EMAIL PROTECTED]
Date: Jul 1, 2005 3:18 PM
Subject: Issue with redirect..
To: Tomcat Users List [EMAIL PROTECTED]


Hi,
 I am running a JSF application on Tomcat 5.0.25...the problem is, i
need to redirect using response.sendRedirect(url) , and i am getting
an exception

 java.lang.IllegalStateException : Cannot forward after response has
been committed.

 This same code is running fine on Websphere server, and when i check
for response.isCommitted() , it returns false on Tomcat also.
 But still I am getting this error.

can somebody advise?

Cheers,

kan


-- 
Kannan Shastri
Software Engineer
Computer Sciences Corporation

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



Tomcat auth problem

2005-03-10 Thread Kannan Shastri
Hi ,

 I am facing a very peculiar problem..I have configured my web-app to
use form-based auth and it is working fine, except when I give the
complete URL of a JSP pafe inside a restricted area, it allows me
access without redirecting to the login page.

I have in my web.xml something like..

security-constraint
   display-nameagentHome/display-name
   web-resource-collection
   web-resource-nameagentHome/web-resource-name
   descriptionAgent Home Applicaiton/description
   url-pattern
   /index.jsp/url-pattern
   url-pattern/agentHome/*/url-pattern
   url-pattern/lob/*/url-pattern
   url-pattern/lob/term/*/url-pattern
   http-method
   GET/http-method
   http-method
   POST/http-method
   /web-resource-collection
   auth-constraint
   description/description
   role-nameappAgentHome/role-name
   /auth-constraint
   /security-constraint

But when i type the URL http://localhost:8080/nbpapps/faces/lob/term/ABC.jsp
it takes me directly to the page.
But on one machine in the network, it behaves OK and redirects me to
the login page...

Any idea what the problem could be?

Regards,

Kannan

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