RE: Tomcat and Servlets - DESPERATE for help
Mike, What is your question? We are happy to help, but need some detail. --Dan > -Original Message- > From: Michael McQuade [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 24, 2004 9:31 AM > To: Tomcat Users List > Subject: Tomcat and Servlets - DESPERATE for help > > > Hi folks, I pray someone can tell me something here. Im > writing an application in Servlets using Tomcat Heres my > scenario. > > I display a User Login screen, ID and Password on an HTML > form, user enters data, the submit button executes the > program to verify the Users information Obvioulsy if its > wrong, it redisplays the screen, or correct, it carries > on into the application. SO, if the user info is > correct, it CALLS another program to build and display the > users data, menu, etc.. > > This all works just fine, EXCEPT.when it builds the new > User screen, it is building it BELOW (i.e. same browser > page) as the User Login screen. Obviously this User > Login screen should be gone, and I should just see the new > results > > Ok, if the User validation process failed (i.e. invalid id > or password) my program just redisplays the log in screen, > well, same happens, a NEW login screen, gets bulit below > the Original log in screen. > > can ANYONE PLEAE help me here. Does Tomcat need > to kill the Servlet session? to know it needs to refresh the Browser? > > This is killing me here, Im desperate to get this resolved so > I can move forward with my app, I thank you all for any help > you can give me > Have a wonderful day, Merry Christmas > > Mike > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and Servlets - DESPERATE for help
I can be helpful, if u can send me the files related to whatever u r saying. -Original Message- From: Michael McQuade [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 9:01 PM To: Tomcat Users List Subject: Tomcat and Servlets - DESPERATE for help Hi folks, I pray someone can tell me something here. Im writing an application in Servlets using Tomcat Heres my scenario. I display a User Login screen, ID and Password on an HTML form, user enters data, the submit button executes the program to verify the Users information Obvioulsy if its wrong, it redisplays the screen, or correct, it carries on into the application. SO, if the user info is correct, it CALLS another program to build and display the users data, menu, etc.. This all works just fine, EXCEPT.when it builds the new User screen, it is building it BELOW (i.e. same browser page) as the User Login screen. Obviously this User Login screen should be gone, and I should just see the new results Ok, if the User validation process failed (i.e. invalid id or password) my program just redisplays the log in screen, well, same happens, a NEW login screen, gets bulit below the Original log in screen. can ANYONE PLEAE help me here. Does Tomcat need to kill the Servlet session? to know it needs to refresh the Browser? This is killing me here, Im desperate to get this resolved so I can move forward with my app, I thank you all for any help you can give me Have a wonderful day, Merry Christmas Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Servlets - DESPERATE for help
kinda sounds like your sending malformed html to the browser do the "view source" thing in the browser and see what you're sending it > Hi folks, I pray someone can tell me something here. Im writing an > application in Servlets using Tomcat Heres my scenario. > > I display a User Login screen, ID and Password on an HTML form, user > enters data, the submit button executes the program to verify the > Users information Obvioulsy if its wrong, it redisplays the > screen, or correct, it carries on into the application. SO, if > the user info is correct, it CALLS another program to build and > display the users data, menu, etc.. > > This all works just fine, EXCEPT.when it builds the new User > screen, it is building it BELOW (i.e. same browser page) as the User > Login screen. Obviously this User Login screen should be gone, and > I should just see the new results > > Ok, if the User validation process failed (i.e. invalid id or > password) my program just redisplays the log in screen, well, same > happens, a NEW login screen, gets bulit below the Original log in > screen. > > can ANYONE PLEAE help me here. Does Tomcat need to kill the > Servlet session? to know it needs to refresh the Browser? > > This is killing me here, Im desperate to get this resolved so I can move > forward with my app, I thank you all for any help you can give me > Have a wonderful day, Merry Christmas > > Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Servlets - DESPERATE for help
lol, I put my question in my Request Dan,did u not see it - Original Message - From: "Wick, Daniel" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, November 24, 2004 10:55 AM Subject: RE: Tomcat and Servlets - DESPERATE for help > Mike, > > What is your question? We are happy to help, but need some detail. > > --Dan > > > -Original Message- > > From: Michael McQuade [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, November 24, 2004 9:31 AM > > To: Tomcat Users List > > Subject: Tomcat and Servlets - DESPERATE for help > > > > > > Hi folks, I pray someone can tell me something here. Im > > writing an application in Servlets using Tomcat Heres my > > scenario. > > > > I display a User Login screen, ID and Password on an HTML > > form, user enters data, the submit button executes the > > program to verify the Users information Obvioulsy if its > > wrong, it redisplays the screen, or correct, it carries > > on into the application. SO, if the user info is > > correct, it CALLS another program to build and display the > > users data, menu, etc.. > > > > This all works just fine, EXCEPT.when it builds the new > > User screen, it is building it BELOW (i.e. same browser > > page) as the User Login screen. Obviously this User > > Login screen should be gone, and I should just see the new > > results > > > > Ok, if the User validation process failed (i.e. invalid id > > or password) my program just redisplays the log in screen, > > well, same happens, a NEW login screen, gets bulit below > > the Original log in screen. > > > > can ANYONE PLEAE help me here. Does Tomcat need > > to kill the Servlet session? to know it needs to refresh the Browser? > > > > This is killing me here, Im desperate to get this resolved so > > I can move forward with my app, I thank you all for any help > > you can give me > > Have a wonderful day, Merry Christmas > > > > Mike > > > > - > 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]
Re: Tomcat and Servlets - DESPERATE for help
May I suggest the usage of Apache Axis tcpmon tool. This is an applet based tool. Get hold of axis.jar and put this on your classpath. Then launch it like so in the same server as where Tomcat is running: java -cp axis.jar org.apache.axis.utils.tcpmon 8081 localhost 8080 This tool basically sits between your browser and your Tomcat so that you can monitor what is being sent by your browser and the response from the Tomcat. Good luck. --- Michael McQuade <[EMAIL PROTECTED]> wrote: > Hi folks, I pray someone can tell me something > here. Im writing an application in Servlets > using Tomcat Heres my scenario. > > I display a User Login screen, ID and Password on > an HTML form, user enters data, the submit button > executes the program to verify the Users > information Obvioulsy if its wrong, it > redisplays the screen, or correct, it carries on > into the application. SO, if the user info is > correct, it CALLS another program to build and > display the users data, menu, etc.. > > This all works just fine, EXCEPT.when it builds > the new User screen, it is building it BELOW (i.e. > same browser page) as the User Login screen. > Obviously this User Login screen should be gone, > and I should just see the new results > > Ok, if the User validation process failed (i.e. > invalid id or password) my program just redisplays > the log in screen, well, same happens, a NEW > login screen, gets bulit below the Original log in > screen. > > can ANYONE PLEAE help me here. Does > Tomcat need to kill the Servlet session? to know it > needs to refresh the Browser? > > This is killing me here, Im desperate to get this > resolved so I can move forward with my app, I thank > you all for any help you can give me > Have a wonderful day, Merry Christmas > > Mike __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: Tomcat and Servlets - DESPERATE for help
Hi, This is not a Tomcat specific question so I am marking the subject [OT]. You may find more enthusiastic help in a JSP/Servlet list (a Google search will yield plenty of them). Have you considered using response.sendRedirect() to send the user to another page after a successful login? -Ben On Wed, 2004-11-24 at 10:31, Michael McQuade wrote: > Hi folks, I pray someone can tell me something here. Im writing an > application in Servlets using Tomcat Heres my scenario. > > I display a User Login screen, ID and Password on an HTML form, user enters > data, the submit button executes the program to verify the Users > information Obvioulsy if its wrong, it redisplays the screen, or > correct, it carries on into the application. SO, if the user info is > correct, it CALLS another program to build and display the users data, > menu, etc.. > > This all works just fine, EXCEPT.when it builds the new User screen, > it is building it BELOW (i.e. same browser page) as the User Login > screen. Obviously this User Login screen should be gone, and I should > just see the new results > > Ok, if the User validation process failed (i.e. invalid id or password) > my program just redisplays the log in screen, well, same happens, a NEW > login screen, gets bulit below the Original log in screen. > > can ANYONE PLEAE help me here. Does Tomcat need to kill the > Servlet session? to know it needs to refresh the Browser? > > This is killing me here, Im desperate to get this resolved so I can move > forward with my app, I thank you all for any help you can give me > Have a wonderful day, Merry Christmas > > Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] RE: Tomcat and Servlets - DESPERATE for help
This sounds like the code building the initial page is also being sent down the reponse for some reason. Some code would be useful from the servlet. This kind of thing normally requires using a RequestDispatcher or like ben says, sendRedirect. Allistair > -Original Message- > From: Michael McQuade [mailto:[EMAIL PROTECTED] > Sent: 24 November 2004 15:31 > To: Tomcat Users List > Subject: Tomcat and Servlets - DESPERATE for help > > > Hi folks, I pray someone can tell me something here. Im > writing an application in Servlets using Tomcat Heres my > scenario. > > I display a User Login screen, ID and Password on an HTML > form, user enters data, the submit button executes the > program to verify the Users information Obvioulsy if its > wrong, it redisplays the screen, or correct, it carries > on into the application. SO, if the user info is > correct, it CALLS another program to build and display the > users data, menu, etc.. > > This all works just fine, EXCEPT.when it builds the new > User screen, it is building it BELOW (i.e. same browser > page) as the User Login screen. Obviously this User > Login screen should be gone, and I should just see the new > results > > Ok, if the User validation process failed (i.e. invalid id > or password) my program just redisplays the log in screen, > well, same happens, a NEW login screen, gets bulit below > the Original log in screen. > > can ANYONE PLEAE help me here. Does Tomcat need > to kill the Servlet session? to know it needs to refresh the Browser? > > This is killing me here, Im desperate to get this resolved so > I can move forward with my app, I thank you all for any help > you can give me > Have a wonderful day, Merry Christmas > > Mike > --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Tomcat and Servlets - DESPERATE for help
Ben, I think it is a Tomcat specific subject, Im just not sure what to do about it, Im thinking theres a variable in Tomcat maybe needs to be set, or session refreshed, or something.. - Original Message - From: "Ben Souther" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, November 24, 2004 11:08 AM Subject: [OT] Re: Tomcat and Servlets - DESPERATE for help > Hi, > > This is not a Tomcat specific question so I am marking the subject [OT]. > You may find more enthusiastic help in a JSP/Servlet list (a Google > search will yield plenty of them). > > Have you considered using response.sendRedirect() to send the user to > another page after a successful login? > > -Ben > > > On Wed, 2004-11-24 at 10:31, Michael McQuade wrote: > > Hi folks, I pray someone can tell me something here. Im writing an application in Servlets using Tomcat Heres my scenario. > > > > I display a User Login screen, ID and Password on an HTML form, user enters data, the submit button executes the program to verify the Users information Obvioulsy if its wrong, it redisplays the screen, or correct, it carries on into the application. SO, if the user info is correct, it CALLS another program to build and display the users data, menu, etc.. > > > > This all works just fine, EXCEPT.when it builds the new User screen, it is building it BELOW (i.e. same browser page) as the User Login screen. Obviously this User Login screen should be gone, and I should just see the new results > > > > Ok, if the User validation process failed (i.e. invalid id or password) my program just redisplays the log in screen, well, same happens, a NEW login screen, gets bulit below the Original log in screen. > > > > can ANYONE PLEAE help me here. Does Tomcat need to kill the Servlet session? to know it needs to refresh the Browser? > > > > This is killing me here, Im desperate to get this resolved so I can move forward with my app, I thank you all for any help you can give me > > Have a wonderful day, Merry Christmas > > > > Mike > > > - > 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]
Re: [OT] Re: Tomcat and Servlets - DESPERATE for help
On Wed, 2004-11-24 at 11:26, Michael McQuade wrote: > Ben, I think it is a Tomcat specific subject, Im just not sure what to do > about it, Im thinking theres a variable in Tomcat maybe needs to be set, > or session refreshed, or something.. If you want to paste the relevant part of your servlet code, I or someone on the list will look at it but it doesn't sound like a Tomcat issue to me. There are thousands of apps running under Tomcat that use form based logins with no trouble. Have you looked into response.sendRedirect or requestDispatchers for moving your user to the relevant page after a login? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Tomcat and Servlets - DESPERATE for help
If you are using a single servlet to determine the course of action and those actions are not mutually exclusive (like using a switch or if...else if structure) then something like this could definitely happen. Check your code... I am sure it is allowing two things to happen at once because it is satisfying the criteria of both. Tomcat really does not care whether your servlet sends back one page or two pages at once. In the process, you may wish to re-consider your architecture if it is that hard to debug. Best Wishes! >>> [EMAIL PROTECTED] 11-24-2004 09:40 >>> On Wed, 2004-11-24 at 11:26, Michael McQuade wrote: > Ben, I think it is a Tomcat specific subject, Im just not sure what to do > about it, Im thinking theres a variable in Tomcat maybe needs to be set, > or session refreshed, or something.. If you want to paste the relevant part of your servlet code, I or someone on the list will look at it but it doesn't sound like a Tomcat issue to me. There are thousands of apps running under Tomcat that use form based logins with no trouble. Have you looked into response.sendRedirect or requestDispatchers for moving your user to the relevant page after a login? - 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]