Say you have a class with an instance scope like belong.
Once you set the variable you set it not for just the current user but all users of the web site. How can I can I make an instance variable accessible to only the current session?
Below "a" is only null the first time any user hits the...
Never mind... The person who did the install did something a little brain dead. We have lots of JAR files we've created or bought so he moved them from Windows to Fedora. When doing so he also over wrote the installed ones for Tomcat.
For reasons I don't know if you use Window Tomcat JAR files...
Okay I was wrong, or my info was wrong.
It fails in Tomcat 4 as well.
The difference is between Windows and Linux (Fedora).
Same code. Same Tomcat version now. Different results.
Well I am not seeing that declared in the file... Here is the entire Java. Yea something isn't declared right. Trying to trace it myself but not finding it.
Thansk for any help.
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import...
Here is routine that gets created. Error happens have the out.print (I marked with ERROR HAPPENS HERE)
private boolean _jspx_meth_core_ifRequestEquals_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out =...
Hi!
I am trying to get Tomcat 5 to work with JSP tags
I have the a page that does this:
<mytags:tag1>
<mytags:tag2/>
</mytags>
It works in Tomcat 4. It doesn't in Tomcat 5. It I take out the nested tag, tag2, and put in text the things work. Tag1 is a conditional which does...
I thought of that, but was hoping for a Java method on the File Class or something. I dunno. Too many laguanges, some do this.
Since I really needed this for DB servers I found I can do EXEC master..xp_fixeddrives in SQL Server to get space. So I just to a JDBC connection to get the disk space...
Let me re-phrase.
If when I browsing around I click on something that executes the code:
response.setStatus(response.SC_UNAUTHORIZED);
response.setHeader("WWW-Authenticate", "NTLM");
Then I have a form with a post:
<form method="POST">... </form>
Then...
Okay, but then how to turn off the NTLM handshake?
Once I set it the browser wans to keep doing for every page that follows.
Once I am done with the handshake, how do I get my hand back?
If I add the following two lines to do NTLM Authorization:
response.setStatus(response.SC_UNAUTHORIZED);
response.setHeader("WWW-Authenticate", "NTLM");
Then form data past in form using POST is gone!
GETs still work, but the POSTs fail.
So how do undo the response...
I get that message on and off. I trap and send myself e-mail every time it happens. Always on the same page, and that page is using SSL. Page works about 8,000 times per every time it fails so I don't think it's the code but SilverStream. Never figured it out, never had SilverStream get back to...
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.