R: Problems with jsp:setProperty

2002-07-03 Thread Alessio Fiore
It all seems to be right, but... are you sure webapps/wi/WEB-INF/classes directory is in your classpath? AFAIK, tomcat.sh doesn't add automatically the WEB-INF/classes directory under webapps/context when it builds its own CLASSPATH, so you should modify the script to add

R: application Context within a TagLib

2002-07-02 Thread Alessio Fiore
Hi, there is difference between context attributes and context init parameters... Context attributes are managed with setAttribute and getAttribute methods. Init parameters are defined in the web.xml file and are read with getInitParameter method. Then, you should modify your code in following

R: taglibs and application context

2002-07-02 Thread Alessio Fiore
Hi Andreas, the problem is that you put an attribute in the request and then you get it from the context... you should, instead, get it from the request, so: request.setAttribute(Constants.VARIABLE_KEY, variable); ... variable =

R: how do I set up a information distribution list

2002-06-25 Thread Alessio Fiore
Hi, I've a suggestion: to make easy for the account manager to fill the body with right tags without remembering them, you could use in your HTML page a textarea with some buttons that, in their onClick event manager, call a JavaScript function that appends the tag string to the area-field value.

R: JDBC Connection

2002-06-25 Thread Alessio Fiore
AFAIK Tomcat4 doesn't accept ZIPped class archives, but only JARred ones. So, if you use a .zip JDBC driver archive, you should unzip it and either put unzipped classes in classes dir, or archive them in a .jar archive. Regards Alessio -Messaggio originale- Da: Juan [mailto:[EMAIL

R: HTTP 405 error

2002-06-24 Thread Alessio Fiore
Hi Halil, maybe you disabled GET requests for your JSP. Have a look at this tomcat3 examples application's web.xml: security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be

R: request.getParameter(th) returned null

2002-06-18 Thread Alessio Fiore
Hi Vano, I think that the cause of the unexpected behaviour is the absence of a default option (one of the option tags should have a selected attribute). I suppose in your sample code IE shows the first option (00), but doesn't treat it as a selected by default option and doesn't insert the th

R: Client session problems when MSIE is run within Outlook

2002-06-13 Thread Alessio Fiore
Hi Jeff, just for information, the problem is caused by a bug (?) of MSIE: that occurs when you have access to your application clicking on a hyperlink (for example if you have a custom local homepage with links to your frequently used applications/sites, or you click on a hyperlink in an outlook

R: implicit object servlet

2002-05-07 Thread Alessio Fiore
I think you're talking about struts... AFAIK a taglibrary is not directly related to a servlet, but a tag handler has access to the request, where struts sets an attribute for each datasource, which name is corrisponding to datasource's key attribute: HttpServletRequest req =

R: Help with hiding resources

2002-05-07 Thread Alessio Fiore
Hi Kris, the jar that contains the applet and related classes *must* be accessible by the browser. If not the browser could not load it and extract the applet (throwing the java.io.FileNotFoundException). -Messaggio originale- Da: Kris Kras [mailto:[EMAIL PROTECTED]] Inviato: martedì 7

R: Help with hiding resources

2002-05-07 Thread Alessio Fiore
to understand what my options are. Thanks Kris -Original Message- From: Alessio Fiore [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 9:37 AM To: 'Tomcat Users List' Subject: R: Help with hiding resources Hi Kris, the jar that contains the applet and related classes *must* be accessible

R: How to pass a global parameter to all servlet of a webapp

2002-05-06 Thread Alessio Fiore
Hi, you can use context params in web.xml: context-param param-nameConfigFilePath/param-name param-value/foo/bar.properties/param-value /context-param Then you can read this parameter in all your servlets: String strPath =

R: where javax.sql.*

2002-05-06 Thread Alessio Fiore
A javax.sql.* implementation is commonly included in a JDBC driver package (i.e. classes12.zip, Oracle JDBC driver). -Messaggio originale- Da: rainer jünger [mailto:[EMAIL PROTECTED]] Inviato: lunedì 6 maggio 2002 14.01 A: Tomcat Users List Oggetto: OT: where javax.sql.* Hi, I don't

R: How to add a throw exception to a servlet

2002-05-03 Thread Alessio Fiore
Hi Raphael, you could use an intermediate base servlet in your app, something like: public abstract class BaseServlet extends HttpServlet { public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {