integrating Web tier (Tomcat v4.0b1) with an EJB tier (RI v1.2)

2001-04-05 Thread Bryan Basham
a:ejb/leagueService'). Nothing seems to work. Also, I tried to figure out what to use for the INITIAL_CONTEXT_FACTORY, but nothing I tried seemed to help. Please let me know if you have any ideas I should try. Thanks, Bryan +-------+--

Re: declaring a class in JSP

2000-12-14 Thread Bryan Basham
I have this JSP: % private class Something{} % this get's rejected by Jasper. Is there any reason why? Someone recommended the syntax %! [[decl]] % Remember that all such declarations are embedded in the servlet class that is generated for you. The upshot: your Something class will

Re: Reroute the output of a processed jsp page into a String

2000-12-12 Thread Bryan Basham
is it possible to reroute the output of a processed jsp page into a String or StringBuffer object in order to send it as an email message with the Java Mail API? I know that you are using Tomcat v3.x, but you might want to consider upgrading to v4.0 because you could use a Servlet Filter to

Re: I have Small Problem

2000-12-12 Thread Bryan Basham
I am new user of Tomcat. I have created simple helloworld servlet. Please can u tell me where to copy class file and how to call this from browser. I have worked on Java Web Server, there i used to copy servlet file in the following diretory: JWS-HOME/examples/Web-Inf/servlets and used to

RE: Sessions and absolute URLs

2000-12-12 Thread Bryan Basham
OK - I'll try that. Excuse the lack of knowledge, but is it possible to access a bean from a servlet (not a jsp)? There is a rough equivalence between JSP bean "scopes" and servlet code: * jsp:useBean id="name" class="..." scope="page"/ servlet equiv. is a local variable in the doXyz

RE: How do you compile ?

2000-12-11 Thread Bryan Basham
I basically want to know if a servlet is using a function in another package how do you compile that servlet? What tags do I include or how do I reference the package when I compile. These are the main techniques. * If the "other package" exists as a JAR, then use: javac -classpath

Problem with user authentication w/ Tomcat v4.0 m4

2000-12-08 Thread Bryan Basham
ot in the corrrect role for the restricted page that I get the above problem. BTW, I have attached a WAR file distribution of this WebApp. Thanks, Bryan +---+--+ | Bryan Basham | "You are not an is