Oops, left some of my other stuff in there. you only need a couple of lines in your JSP file. Exactly as follows will do the trick.
<%
session.invalidate();
response.sendRedirect("index.jsp");
%>
Hey mnellutla,
I've just done something similar to this, and found that the easiest way was to have a base JSP file that was protected by Tomcat. I would point a LOGIN link to this protected page, that was simply a res.sendRedirect("somepage.jsp").
Once the user is logged in though...
Wow. I'm even more confused now. As it turns out, i've stripped the original context, and slowly rebuilt it, the strange thing is, once it breaks i cannot recover it again. re-starting the service, pulling the class objects, nothing works.
I've drilled down to find out that the IE session is...
ya. the only thing i can figure is that the context i want to use it in is buggered with some cross-dependencies. i've already started porting things to the new context, and will slowly figure out what i've knackered. Even though everything else in that context works, just not form entry with...
get this.
if i move the two files to a new <context> and remove the JAVA code at the top it works. but just removing the JAVA code and leaving in the current <context> it does not work. doesn't matter how simple the page is, it just won't populate form data under this context.
I'll have to...
Well, here is my simple page for submitting some random information to my database.
firstpage.jsp
<%
// all of the raw Java code works
String userName = NADFC.NTLM.getNTuser(response, request);
NADFC.DB.NADFCdb mydb = new NADFC.DB.NADFCdb();
String sqlSELECT = "SELECT Dress_Pant_Size...
and that's a big NO.
even with JDK 1.5.0.04 and tomcat 5.5.9 it still doesn't pass the data. I haven't tweaked the JDK or Tomcat at all other than just dropping these two files, and i'm getting nothing to pass when using IE.
argh.
OMG.
So far i've installed it on numerous machines, and nothing is working.
I'm biased towards Tomcat 4.1, and am running it on top of JDK 1.4 and 1.5. Both machines pass NULLs when using IE.
I just don't get it. I'll try Tomcat5 in a few minutes, but i really wish i could trouble...
Well, of course they work for me.
now i'm just more confused.
I've just confirmed that it works on all of my other servers, just not the one I need it to work on. I've reinstalled Tomcat 4 & 5, and it's bunk in both. So I guess it's my JDK build.
Thanks for your time sedj.
I'll whine again...
Hey sedj,
Actually, the first page present blank text fields for a user to enter information. If you were to enter info with IE, you would not see it go to the 2nd page; however, if you were to use FF the data you enter does go.
Let's modify the 1st HTML a little as:
****** form_GET.jsp...
Hey sedj,
Basically, all i want is IE to pass data as if it were a better browser. If there is something fundamentally stupid about my simple pages I'd like to know, but with my eyes having looked at it soooo much i can't figure the problem. As the: <%= request.getParameter("text1") %>...
Hey sedj,
what i'm expecting is that when the user enters values in the first page, it should pass them to the 2nd page. Where FireFox does this perfectly IE just passes NULLs.
Thanks,
Michael
Hello all,
I have a simple test JSP page for passing a couple form TEXT inputs to a 2nd JSP that re-displays. Actually it does some DB work, and redirects back to 1st for re-disply; but i've created an even simpler implmentation that still doesn't work.
The problem is, IE is passing NULLs...
Hey,
I'm looking to do the same thing in production. I want to test in MS-SQL with JDBC, but can't seem to get MD5 working anywhere.
Have you figured this out?
Thanks,
Michael
I'm trying to build a webpage with a basic photo album where my client uploads image files and the server will build a thumbnail and original images from the uploaded image. However, i'm having serious issues porting the FileUpload.jar file from Sun's Common downloads.
Basically, i'm having...
I'm just wondering if anyone knows how to get an embedded form for a user to login to my site. Just something simple that lets then type there name and password into the form located in a border frame and click the login button. then have it just reload the main page after they login.
Just...
Hello, i'm using the session.set/getAttribute() functions under Tomcat, and have noticed that some browsers don't refresh the values.
I've subsequently had to revert to using QueryStrings instead of session variables to be able to handle all the browsers. Primarily i'm testing with...
CristinaD wrote:
"But for all of those of us that are in the software business we know that deadlines and release dates aren't allways met. I for one am looking forward to seeing Crystal XI soon."
Well, I work for classic Crystal, and you will be glad to know that this AM was the official...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.