Chris Hall

Ranch Hand
+ Follow
since Dec 04, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Chris Hall

For an integration project, I am trying to integrate my application with the Plateau learning management system which is deployed with EJBs in an ear file with WebLogic 8.1. I need code to interact with the Plateau code. I have had mixed success in trying to get this to work and deploy correctly. Currently I can get the ear to deploy and work on my machine but not another machine. I describe breifly how I am packaging everything up, does this sound correct? any other ideas?

My intent is to package my code in a separate jar file for deployment and put the jar file at the root of the ear file (with all the other jar files). Then I added the jar file to the META-INF/application.xml as a module

I am using ant to build the ear and jar files with their ear and jar tasks.

Thanks.
[ October 25, 2004: Message edited by: Chris Hall ]
20 years ago
I want to know how, or if it is even possible to deploy an application (ear file) in which the war file is expanded. For testing I want to be able to change jsps on the fly. I need to use the application deployment since it is not just a web application.
[ September 20, 2004: Message edited by: Chris Hall ]
20 years ago
New to Weblogic and I'm looking for a recommendation on whether or not any of the current Weblogic books are worth getting, of if web resources will work just as well.

I am currently using Weblogic 8.1 for an LMS system, I have used Tomcat extensively in the past, but nothing like Weblogic.
[ September 13, 2004: Message edited by: Chris Hall ]
20 years ago
I am new to WebLogic, but I have followed the instructions for installation on a remote SunOS, that I can't get physical access to. At this point the instuctions to start the server are by executing /{WLHOME}/common/bin/quickstart.sh which tries to bring up some GUI which my system is not configured for. What I am looking for in a non-GUI method for starting WebLogic on a remote unix machine.

Thanks.
20 years ago
Check out this recent thread, this should cover what you are asking.
https://coderanch.com/t/284560/JSP/java/First-Previous-Next-Last-Page
20 years ago
JSP
Since its a SQLException, the problem lies in the sql statement you are executing, which in this case is select * from {tableName] where 1=0 . Assuming the table name is correct, the 'where 1=0' means you have a field called 1 and you are looking for the records of that field with a value of 0. This really doesn't make sense, and I would guess that is the root of your problem. Make sure you know the structure of the database, and you can try executing the sql statement directly against the database to make sure it works.
This doesn't sound like a jdbc or mysql problem at all. From what you describe, I would say your code is using a property file name 'SelectResource.properties' which much be put on the classpath. This should solve your problem.
As a software developer, I want to flexible in my choice of tools to get a job done, but have been java focused for almost 4 years, with a year of C++ before that. There is still much for me to learn, and I'm wondering if it is possible to be a good software developer knowing and using both .NET and J2EE. I am hesitant to say that I could go back and forth effectively.
I know the Pragmatic Programmers recommend learning a new language each year, but I haven't embraced this idea yet, with so much of java I still have to learn. Does anyone follow this? I'm sure it pays off to some degree, but is it worth learning a new language when I have so much java to learn?
20 years ago
Srikanth,
Wrinkles in your solution? If it works...it works!
That is a very clever solution for a case when the data is too much for memory. Of course I overlooked that fact that the exceptional case often comes up, so the plain vanilla solution will not work.
Just wondering, how much of this did you code, and how much was taken care of by the third party applications Pager Taglib and Display Tag? I actually solved this problems years ago, and at the time the plain vanilla solution worked. I will have to keep those packages in mind if I come across this problem again.
Chris
20 years ago
JSP
Check out this recent thread:
https://coderanch.com/t/284560/JSP/java/First-Previous-Next-Last-Page
My opinion is to make only one call to the database since that is usually the most expensive operation.
[ March 10, 2004: Message edited by: Chris Hall ]
20 years ago
JSP
Yi,
You keep posting the same question is different forums, I believe this is frowned upon, so please only post your question once in the appropriate forum. In this case I think it is most appropriate in JDBC..
20 years ago
JSP
I would recommend the 3rd option, grabbing the information once and storing it in memory. Unless the size of the data is too much for memory, which would mean a lot of data. If the data is too much for memory, hitting the database each time is necessary. My personal preference would be not to use javascript, I just feel you are adding unecessary complexity.
20 years ago
JSP
Seems like the database driver jar file(s) is not on your classpath.
20 years ago
JSP

Originally posted by Hans Bergsten:

I use Struts as a concrete example of how to combine servlets and JSP, explaining how Struts works in addition to how to use its basic features. I picked Struts because it's the most commonly used framework of this kind.
JavaServer Faces (JSF) isn't covered in this book, but I have written another book about JSF, to be published late April 2004. There's some overlap between JSF and Struts, but JSF focuses on the View part (with an event-driven user interface component model similar to Swing and other GUI frameworks) while Struts focuses on the Controller part and can work with any type of user interface technology (JSP, Velocity, JSF, etc.). Let's leave it at that for now. You can read more about JSF at:
http://java.sun.com/j2ee/javaserverfaces/



Thanks for your explanation on Struts vs. JSF. I just noticed many topics covering JSF vs. Struts in the past couple weeks in this forum. Not a bad idea to 'leave it at that for now'.
20 years ago
JSP