I am having trouble connecting to an Oracle 10g Release 2 database using Win32::ODBC. I receive the following error message:
'The instruction at "0x7c911e58" referenced memory at "0xffffffff". The memory could not be "read"'.
My code:
use Win32::ODBC;
$connectionString = 'BATHY';
$db =...
My code sets a cookie using CGI::Session. It works fine on my development server, but not on my client's server.
Both machines are running Windows 2003 Server, IIS 6, CGI-Session 3.95 and Perl 5.8.7.
On my server, the output is (literal line-end characters are shown for clarity):
HTTP/1.1...
Although the problem (HTTP headers appearing in the browser) was observed using IE 6.0SP1, the output that I presented was obtained using telnet. I just opened a connection to port 80 and sent:
GET /flrc/index.pl HTTP/1.1
Host: flrc-dev.host.domain
Accept: */*
There are no firewalls between...
My code sets a cookie using CGI::Session. It works fine on my development server, but not on my client's server.
Both machines are running Windows 2003 Server, IIS 6, CGI-Session 3.95 and Perl 5.8.7.
On my server, the output is (literal line-end characters are shown for clarity):
HTTP/1.1...
You're right on the mark. I figured it out eventually. Java 2 does not allow classes in the default package to be imported. I had failed to put a package declaration at the top of the file.
Sheesh! How could I have forgotten that?
Thanks sedj!
You say you are having problems using context.xml, but you don't say what your problems are! What is the problem?
And, what does making a dynamic link have to do with it? BTW, what's a "dynamic" link? Do you mean that you want your app's root to reside somewhere other than the webapps...
I think that you should be able to write a servlet that uses the Tomcat Manager's HTML interface. The way I envision it, access to this servlet is restricted to the desired user. The servlet sets request headers for the username and password that Tomcat Manager requires, then issues an HTML...
I'm coming back to a project after not working on it for several weeks. I created a new servlet for my web-app and "registered" it in the app's deployment descriptor. I reloaded the app using Tomcat Manager. When I try to invoke the servlet, I get a NoClassDefFound exception. The class...
That's because you haven't set the environmental variables. I would set the JAVA_HOME variable to 'C:\J2EE_1.4'. CATALINA_BASE and CATALINA_HOME should point to the Tomcat installation directory ('C:\Tomcat 4', but it would be safer to use the 8.3 dirname, 'C:\Tomcat~1'. Use dir /x c:\tomcat*...
Taking your idea of writing a setter method for setting the context, I also would have to move the initialization out of the constructor (because it doesn't have all the data it needs at that point. I would go back to having only the default constructor and would create setContext() and...
You're right. request.toString() prints OK.
You're right about the constructor. I had a one-arg constructor, but I had commented-out my default constructor. Beans must have a no-arg counstructor, right? Here is what I have now:
public TopIdBean() {
super();
}
public...
sedj:
Yes, I've imported my package, but it's not necessary because I'm using the fully quallified class name (I tried it both ways just to make sure). The error is that the compiler can't resolve the symbol "request". I'm stumped. It looks like it should work; I mean, 'request' has to be...
Check out www.BruceEckel.com . You can download (for free) several books that he has written, including "Thinking in Java, 3rd. Edition" (the book download page is at http://64.78.49.204/). This book has earned many accolades, including "best" by editors and readers of JavaWorld. Readers seem...
Thank you for hanging in there with me. I reviewed the generated java file, and indeed, the _jspService method has request and response arguments just like HttpServlet. I can see my scriptlet in there, referencing the request object, but it is not working. I'm getting this error when I try to...
I'm using Tomcat 5. I've tried to refer to the request object (and it's servlet context property) in these ways:
request.getServletContext()
pageContext.request.getServletContext()
but neither one worked.
I haven't tried wrapping the bean in a custom tag yet, but the scriptlet isn't working.
The compiler "can't resolve symbol" 'request'. That should be a HttpServletRequest object, right? Did you mean for me to type that literally? I don't know how to get the HttpServletRequest object, or the...
Pass the ServletContext to the bean? How do I do that. I'm instantiating the bean from within a JSP page like this:
<jsp:useBean id="top" class="com.company.dept.TopIdBean" scope="application"/>
I have a database that uses sequentially numbered primary keys (ID). I developed a bean to hold the next ID for each of several tables. Each servlet that needs to insert a record into a table gets the ID for the record from the bean. The bean is instantiated from within a JSP page...
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.