JDBC Realm not working with - Please help

2003-10-09 Thread rudidoku
Hi, I'm trying to setup my web app to use JDBC Realm. I am using SQL Server 2000. Here is the script to create tables: CREATE TABLE [dbo].[t_Role] ( [RoleId] [int] IDENTITY (1, 1) NOT NULL , [role] [varchar] (12) ) CREATE TABLE [dbo].[t_Usr] ( [UsrId] [int] IDENTITY

Re: JDBC Realm not working with - Please help

2003-10-09 Thread rudidoku
Hi again, I'm using version 4.1.27 of tomcat, and my login page is taking forever to load. I'm not actually getting any error messages. Thanks again, Rudi Hi, I'm trying to setup my web app to use JDBC Realm. I am using SQL Server 2000. Here is the script to create tables: CREATE

Re: JDBC Realm not working with - Please help

2003-10-09 Thread rudidoku
I have also placed the following files in D:\Tomcat 4.1\common\lib: msutil.jar, mssqlserver.jar, and msbase.jar, and restarted tomat, but still no joy. Hi again, I'm using version 4.1.27 of tomcat, and my login page is taking forever to load. I'm not actually getting any error messages.

Cannot view pages in frame

2003-10-09 Thread rudidoku
Hello, My welcome page has the following: [EMAIL PROTECTED] contentType=text/html% html head base href=http://localhost:8081/mosaic/welcome.jsp; / titleMosaic Admin Welcome/title /head frameset noresize=noresize cols=210, * frame noresize=noresize src=/dbs.jsp name=listframe frame

Re: Cannot view pages in frame

2003-10-09 Thread rudidoku
Thanks a million. Problem solved in a matter os seconds. They won't unless they have localhost mapped to your ip address ;) [EMAIL PROTECTED] wrote: Hello, My welcome page has the following: [EMAIL PROTECTED] contentType=text/html% html head base

String added to session in servlet not available in jsp

2003-10-09 Thread rudidoku
Hi, I created a session object and added a string (username) to it. Systemout.println shows the username from the request. My page is then forwarded to another as follows: RequestDispatcher disp = ctx.getRequestDispatcher(target); disp.forward(request, response); On this jsp

RE: String added to session in servlet not available in jsp

2003-10-09 Thread rudidoku
Can you please show how are you creating the session object??? No worries, here it is: HttpSession session = request.getSession(true); session.setAttribute(usr, request.getParameter(username)); Sincerely Lic. Computer Science Erlis Vidal Santos -Original Message-

RE: String added to session in servlet not available in jsp

2003-10-09 Thread rudidoku
Yoav, Very good point. The sessionid from the servlet is different to the one in the browser, as shown below. Ser: 1DFADA80613F3BE01C86A5C6DE2501A8 jsp: AEAE6C4879702A3CF4254FF85B778D81 Rudi Howdy, If you display the session ID before adding the user name, and then in your JSP as you

RE: String added to session in servlet not available in jsp

2003-10-09 Thread rudidoku
Sorry, not entirely sure what you meant. I have copied your code and placed it in my servlet as follows: HttpSession session = request.getSession(true); String username = ( request.getParameter(username) != null ? request.getParameter(username) : ) ;

Re: FW: String added to session in servlet not available in jsp

2003-10-09 Thread rudidoku
No worries. I added the following to doPost in my servlet: HttpSession session = request.getSession(true); String username = request.getParameter(username); if ( username == null ) username = noParameter; if ( .equals( username ) ) username = noParameter;