Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. flowcontrol

    Can't connect to Oracle using Win32::ODBC

    Ooooooh! You're absolutlely right. Thanks!
  2. flowcontrol

    Retreiving message from MQseries with Msg_Id

    I know nothing about MQSeries, but I don't see where you "open a second queue".
  3. flowcontrol

    Can't connect to Oracle using Win32::ODBC

    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 =...
  4. flowcontrol

    Headers created with CGI-Session aren't included by IIS

    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...
  5. flowcontrol

    Headers created with CGI-Session aren't included by IIS

    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...
  6. flowcontrol

    Headers created with CGI-Session aren't included by IIS

    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...
  7. flowcontrol

    NoClassDefFound error

    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!
  8. flowcontrol

    context.xml problem

    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...
  9. flowcontrol

    Tomcat roles for specific applications

    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...
  10. flowcontrol

    NoClassDefFound error

    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...
  11. flowcontrol

    cannot start up my Tomcat

    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*...
  12. flowcontrol

    Servlet context for non-servlet bean

    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...
  13. flowcontrol

    Servlet context for non-servlet bean

    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...
  14. flowcontrol

    Servlet context for non-servlet bean

    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...
  15. flowcontrol

    Newbie to Java software programming

    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...
  16. flowcontrol

    Servlet context for non-servlet bean

    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...
  17. flowcontrol

    Servlet context for non-servlet bean

    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.
  18. flowcontrol

    Servlet context for non-servlet bean

    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...
  19. flowcontrol

    Servlet context for non-servlet bean

    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"/>
  20. flowcontrol

    Servlet context for non-servlet bean

    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...

Part and Inventory Search

Back
Top