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.
...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 org.apache.jasper.runtime.*;
public class c_jsp extends HttpJspBase {...
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...
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...
Okay I've read the "How To" document but I still don't get SSL to work with Apache.
I can get it to work on one server but on another when to go to
https://www.ick.net
It chnages that to:
http://www.ick.net:443
Anybody know why?
Any really good trouble shooting docs on SSL and...
I have a pretty simple custom tag that displays a JPG which is stored in the database.
I tried to use the same method to get a SWF file but it fails to display.
Anybody have any clues?
The JPG tag looks like in file showImage.sjp
<%@ taglib uri="/p.tld" prefix="p"...
I have some flash files in a database.
Is it possible to show them straight from the database or do I need to save them a file first?
The attempts call a Serlvet which writes the bytes of the file fails to display the movie, although if I save to a file and call that file name it works fine...
Windows has something called the Active Services Directory Interface (ASDI).
I am trying to get data from it via Java.
I have looked for help, but keep getting rather vauge answers. ("It's like LDAP using JNDI, but...").
I never used LDAP and until today never heard of ASDI. My...
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.