How to get user:password from page header?

2002-11-27 Thread Andrew Guts
Hi all, I am porting an old CGI application to JSP/servlets. I need to port user authentication code also. But getHeader("authorization") returns encoded string like "Basic YW5kcmV3Og==". How to get original value like USER:PASSWORD ? Thanks ahead Andrew -- To unsubscribe, e-mail:

jsp:getProperty problem

2002-12-13 Thread Andrew Guts
Hello all Please help me with this: file src/fe/MyBean1.java: package fe; public class MyBean1 { private String msg = "MyBean1: Initial message"; public String getMsg() { return msg ; } public void setMsg(String m) { msg = m; } } file test.jsp: <%@ page language="java" %> Result: org.

Re: jsp:getProperty problem

2002-12-13 Thread Andrew Guts
Boris Folgmann wrote: But It does not work :-( I think it should work. If you changed your bean while tomcat was already running, you have to restart tomcat. That's why you should set your webapp to "reloadable" on your development machine. If you've done this, a tomcat restart is no longer nec

Re: getProperty problem

2002-12-13 Thread Andrew Guts
Greg Trasuk wrote: Changed 'private String msg' to private String Msg' Result is the same. I guess it doesn't matter for private fields. Andrew: The beans spec says that property 'something' will be addressed through a getter method 'getSomething()' (note capitalization of 's'). So your gette

Re: getProperty problem

2002-12-13 Thread Andrew Guts
Boris Folgmann wrote: Thanks you very much! I've appreciated your and Greg's answers. It was a real help. Andrew Andrew Guts wrote: Greg Trasuk wrote: Changed 'private String msg' to private String Msg' Result is the same. I guess it doesn't matter for priva

What does that error mean?

2002-12-20 Thread Andrew Guts
Hello all file catalina.out is full with such errors: Dec 20, 2002 5:10:32 PM org.apache.jk.server.JkCoyoteHandler action SEVERE: Error in action code java.lang.NullPointerException at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:386) at org.apache.coyote.Respon

How to configure JNDI resource with connection pool?

2002-12-23 Thread Andrew Guts
Hi all, I want to use pooled data source with my application. I guess a "factory" parameter for the resource shoud be provided. Which one from the class hierarchy? By the way where can I find detailed documentation, describing Tomcat classes, including javadocs? Thank you for support. Andrew

Re: How to configure JNDI resource with connection pool?

2002-12-24 Thread Andrew Guts
Craig, Thank you for your answer. Craig R. McClanahan wrote: On Mon, 23 Dec 2002, Andrew Guts wrote: Tomcat has a default resource factory for JDBC data sources (org.apache.commons.dbcp.BasicDataSourceFactory for Tomcat 4.1.x), so you don't need to specify this. What you do need to

Why included pages fills with '????????' ?

2002-12-26 Thread Andrew Guts
Hello all When I include templates using <%@ include %> i see a lot of '?' instead of text. When using all seems as expected. Why so? Thanks ahead. Andrew -- To unsubscribe, e-mail: For additional commands, e-mail:

Log full of such messages "CoyoteAdapter An exception or error occurred.".Tomcat 4.1.18

2003-01-22 Thread Andrew Guts
Hello all My catalina.log full of exception messages: 2003-01-21 08:36:06 CoyoteAdapter An exception or error occurred in the container during the request java.lang.IllegalArgumentException: Cookie name Path is a reserved token at javax.servlet.http.Cookie.(Cookie.java:185) at org

How to continue session from one virtual host to another?

2003-01-25 Thread Andrew Guts
Hello all I want to pass session or session data from one virtual host to another. Both are served by the same Tomcat instance. It is just for soft transition from non-secure http to https. How to implement that feature? Thanks Andrew -- To unsubscribe, e-mail: