Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!

Bill Siggelkow

Ranch Hand
+ Follow
since Jun 27, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bill Siggelkow

I believe all you need to do is fomat the RT expression as a string concatenation for the onclick attribute:
21 years ago
I have had no problems running any version of Tomcat on XP Home. Are you using XP Pro? Maybe you have a conflict with IIS?
21 years ago
I know that JBoss+Tomcat supports this. Basically, the JBoss application policy is defined as a realm backed by a JAAS LoginModule (this can be custom code, or one of the provided LoginModules) -- then you configure single-sign-on in the tomcat-service.xml. There is a thread on this subject in the JBoss forums.
21 years ago
I have been using Eclipse and have been pretty impressed with its refactorings. Granted this is just a "baby step" as far as tool support -- but it is a step in the right direction. Some of the refactorings are simple things like "rename pkg" (which saves you a boatload in typing). Others are things like "Extract Method". Give it a try
Take a look at jEdit.
21 years ago
JSP
Personally, I like to keep my JavaBeans very business-object like. That is, primarily data containers with some behavior. However, when I want to provide specific presentation behavior based on that data I use a custom tag. Motivations for the custom tag are "can this functionality be used across other pages in my app?" If so, and the behavior is not tied to a specific type of data, then you may want to consider a custom tag. Often a motivation is more practical -- that is, as you build your app you will find places where it seems like you have to use scriptlet ... look at those sections and consider ... Could I put this behavior in the bean I am using? If not, or it doesn't seem appropriate, then probably a custom tag will meet your needs. Also, take a look at Struts, Jakarta TagLibs, and JSTL. Good Luck!
21 years ago
JSP
If you are dealing with a persistent queue, it could be that there are undelivered messages that are being sent. You may want to check the JBoss forums at http://www.jboss.org.
The exception you described relates to a classpath issue. I would verify that your classpath is set up correctly. You should post this question to the JBoss forums at http://www.jboss.org.
J2EE is Java 2 for the Enterprise -- this edition consists of the Enterprise APIs such as JMS, EJB, JSPs/Servlets, JNDI.
J2SE is Java 2 Standard Edition -- this edition consists of the core libraries basically all of the packages like java.lang, java.util, etc. This edition is the heart of Java and both J2EE and J2ME depend on J2SE.
Java 2 Micro Edition -- this edition is for programming Java on devices such as handhelds, cell phones, set top boxes, toasters, etc. J2ME can use *most* of J2SE but not necessarily all of the J2SE libraries.
For complete details, go to http://java.sun.com
What I tend to do is to start by defining interfaces. So I would want a basic IQuestionairre interface ... it might have method signatures for getNextQuestion(), cancel(), submit(), etc.
Then I would define an interface for the question, IQuestion ... it might have method signatures like ... getQuestion(), setResponse(), getAnswer(), etc.
Then I would provide base or default implementation these interfaces ... then I would use specific extensions of the base class for the specific questionairres ... then you might want to consider a QuestionairreFactory that would provide instances of the IQuestionairre interface given a patient profile (stage of treatment, and type of injury).
Inheritance in EJBs is not straightforward ... the main thing to keep in mind is that your bean implementation class can inherit from a base class ... however, your home and remote interfaces generally cannot. Typically, I use inheritance in EJBs only to provide some default implemenation of methods (such as the setEntityContext()), ejbActivate(), ejbPassivate(), etc. In this sense, this pattern is more of an adapter.
21 years ago
Well, a strategy pattern will tend toward more "tiny" classes. However, you may soon realize that your strategies are related in a hierarchical way ... or that there is a lot of commonality such that one strategy may be apply to many strategy holders.
Let me say this, don't be afraid to create classes. If they are organized appropriately with proper naming and packaging, and you reuse code where applicable you will find that having a larger number of classes is not a problem
It looks to me like you are trying to forward to a servlet that is identified by the URL as outside of the webapp context ... try forwarding to a relative URL for the servlet you want.
21 years ago
If you mean that you want to write a client-side application that performs the upload this can be done ... however, it is non-trivial if you want to use a servlet that is expecting to process MultiPart data. An easier approach is to write a servlet that simply expects to receive the file data through a stream which the client piece writes to.
21 years ago