Re: iPleanet Web Server -- Help Beans talking to Beans
Hi dear, go to G:\docs\Web-inf\classes and then compile your file by following command G:\docs\Web-inf\classes\javac ./name/NameBean.java and this will compile your file. Regards Deepak Kumar http://www.geocities.com/deepak_38 --- Dasti, Hassan [EMAIL PROTECTED] wrote: I am using IPlanet web server to do JSP work. Individually, my beans work fine when I try to use them from JSP pages. However, if I try to instantiate a bean class in another bean I get an error message, message is followed: *** G:\docs\Web-inf\classes\name\NameBean.java:9: cannot resolve symbol symbol : class Databean location: package name name.Databean db = new name.Databean(); ^ G:\docs\Web-inf\classes\name\NameBean.java:23: cannot resolve symbol symbol : class ResltSet location: class name.NameBean public ResltSet getStates(){ ^ G:\docs\Web-inf\classes\name\NameBean.java:9: cannot resolve symbol symbol : class Databean location: package name name.Databean db = new name.Databean(); ^ 3 errors Tool completed with exit code 1 Both of my java files are in same folder called name and both are in same package called name Below is my NameBean.java File. Please help Thanks * /* This is a NameBean.java file . */ package name; import java.sql.*; import java.util.*; import java.io.*; public class NameBean implements Serializable { name.Databean db = new name.Databean(); private String beansName; // constructors public NameBean(){} public void setName(String str){ beansName = str; } public String getName(){ return beansName; } public ResltSet getStates(){ db.Connect(); String sqlStmt = SELECT state, state_name, status + FROM CONTACT.VALID_STATE ORDER BY state ASC ; ResultSet stateRS = db.DBSelect(sqlStmt); db.Disconnect(); return stateRS; } } === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: off topic (package compilation) ???
Hi Dear, go to C:\Program_Files\tomcat321\webapps\formprocess\WEB-INF\classes put your java files in C:\Program_Files\tomcat321\webapps\formprocess\WEB-INF\classes\mypackage\fieldcontroll\ and user the following command to compile the java files C:\Program_Files\tomcat321\webapps\formprocess\WEB-INF\classesjavac ./mypackage/fieldcontroll/*.java for compiling all the java files or C:\Program_Files\tomcat321\webapps\formprocess\WEB-INF\classesjavac ./mypackage/fieldcontroll/one.java for compiling one file. Regards Deepak Kumar http://www.geocities.com/deepak_38 --- sufi malak [EMAIL PROTECTED] wrote: Hi, I have : C:\Program_Files\tomcat321\webapps\formprocess\WEB-INF\classes\mypackage\fieldcontroll\ some compiled classes AND I need to compile some classes (that are using the above compiled classes in fieldcontroll directory ) in mypackage directory. Could you please show me how to do it ? Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: CACHE CONTROL EXAMPLE
Set the Following before sending any content, response.setHeader(Cache-Control,no-cache); response.setHeader(Cache-Control,no-cache); response.setHeader(Pragma,no-cache); response.setDateHeader (Expires, 0); This prevents caching. Additionally the Servlet engine may also be configured to cache the page. Check for this also in the confog files. --- Karau, Joe [EMAIL PROTECTED] wrote: It may not be the browser's fault in this particular instance. It is possible that the webserver, or a proxy is caching the page. I believe setting the header to something like Expires=0 will turn off proxy caching (not sure about that one, should double check). Depending upon the server you are using it may not be possible to eliminate the caching of pages. I have not seen that in any production quality webserver, however we use IBM's VAJAVA's WebSphere test environment, and the pages always get cached in development, but when we deploy the no-cache settings work fine. Joseph Karau Kingland Systems [EMAIL PROTECTED] 507-536-3629 AIM: jkara3629 -Original Message- From: Ruaidhrí Fernandes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 7:31 AM To: [EMAIL PROTECTED] Subject: CACHE CONTROL EXAMPLE Hi all, still having problems with this one. Can anyone show me a simply WORKING example of JSP code telling the IE5 browser not to use cached pages and to reload the page if the user presses the back button. Ive tried everything and no success. Help would be very welcome. Thanks Rui = If a rabbit's foot is so lucky,. what happened to the rabbit? __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: How to prevent IE from cacheing a JSP page
1) Have you look at Hans Bergsten site http://www.thejspbook.com/? 2) Is there something in Microsoft IE Preferences Dialog that overrides caching? Have you checked the preferences dialog? It would be typically MICROSOFT bullshit to not follow the standard. -- Peter Pilgrim Putting PLEASE HELP ME! URGENT HELP! in the E-Mail Subject: Line, will probably lead to the opposite intention. The Windows Trash Can Message History From: Celeste Haseltine [EMAIL PROTECTED]@java.sun.com on 17/05/2001 14:49 EST Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] DELEGATED - Sent by: A mailing list about Java Server Pages specification and [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: How to prevent IE from cacheing a JSP page --CUT-- head META HTTP-EQUIV=expires CONTENT=0 META HTTP-EQUIV=Pragma CONTENT=no-cache /head which had no effect at all on IE. I have since discovered that the current version of IE ignores MetaTags. So I tried to use the response.setHeader method in the jsp's as follows: head % response.setHeader(expires,0); response.setIntHeader(expires,0); response.setHeader(Pragma,no-cache); % /head --CUT-- -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Custom Tags on WebLogic 6.0
I will only add to Hans note this: If fact with BodyTag implementation put your tag output code in the doEndTag() and not in the doAfterBodyTag() as I have seen some TagHandler author wrongly do. /** * The method above gets called at the end of the BodyTag. * We can either return SKIP_PAGE to indicate that * the page content should be skipped, or return * EVAL_PAGE to continuee evaluating the page. * */ public int doEndTag() throws JspTagException { try { if (bodyContent != null) bodyContent.writeOut(bodyContent.getEnclosingWriter()); } catch (IOException e) { throw new JspTagException( IO Error: + e.getMessage()); } return EVAL_PAGE; } -- Peter Pilgrim Putting PLEASE HELP ME! URGENT HELP! in the E-Mail Subject: Line, will probably lead to the opposite intention. The Windows Trash Can Message History From: Hans Bergsten [EMAIL PROTECTED]@java.sun.com on 24/05/2001 15:19 MST Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] DELEGATED - Sent by: A mailing list about Java Server Pages specification and [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: Custom Tags on WebLogic 6.0 Abhijeet Surve wrote: --CUT-- My questions here is thus. 1. Is this a expected behaviour in WebLogic? because (Synatx 1) works fine under TOMCAT 3.2.1 2. Is it that if a certain tag extends BodyTagSupport then (Syntax2) is the only way of using it irrespective of the fact that i specify or not specify a body to it. This is an area where the JSP 1.1 specification is not clear, so unfortunately different containers deal with tag/, tag/tag and tagfoo/tag differently. More specifically, they differ in under what circumstances they call setBodyContent() and doInitBody(). Tomcat (and some others) invokes these methods for all cases (as long as doStartTag() doesn't return SKIP_BODY). Others invoke them only for the second case and/or third case (i.e. when an opening and closing tag are used). A common problem in a tag handler that assumes them to always be invoked is using the bodyContent variable in doEndTag() without checking for null, leading to a NullPointerException in a container. This has been discussed in the JSP specification expert group and it will be clarified in JSP 1.2 as follows: tag/, tag / and tag/tag are all equal, and are called an empty tags (empty *elements* would have been better ...). tag /tag, tag%= foo %/tag, tagfoo/tag etc. are all non-empty The container will only call setBodyContent() and doInitBody() for non-empty tags, and only the BodyTag.doStartTag() returns EVAL_BODY_BUFFER. So, given this, WebLogic is doing the right thing in your case while Tomcat is not (it's a known bug in Tomcat 3.2.1, but it may have been fixed in later versions). [...] Hans --CUT-- -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
xmlhttp jsp
hello friends well my problem is that i am sending xml from client side to a jsp page through xmlhttp object, but i don't know where could i get the xml in jsp ,in asp we can directly get it from Request object plz help me in this regard thanks in advance === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: xmlhttp jsp
You should install the JAXP package, the latest version is 1.1. You can download it from http://java.sun.com under Product API choose XML Erwin Kodiat Mitrais Software Development Center Bali, Indonesia Tel: +62 361 755025 Fax: +62 361 755024 http://www.mitrais.com This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this E-mail are the opinion of the writer only and are not endorsed by MROnly.com Pte Ltd unless expressly stated otherwise. -Original Message- From: Randeep Singh Sidhu [mailto:[EMAIL PROTECTED]] Sent: Friday, May 25, 2001 18:35 To: [EMAIL PROTECTED] Subject: xmlhttp jsp hello friends well my problem is that i am sending xml from client side to a jsp page through xmlhttp object, but i don't know where could i get the xml in jsp ,in asp we can directly get it from Request object plz help me in this regard thanks in advance === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Jsp and Swing??
tried what exactly, you really need to be more specific. If you are talking about using Swing components to create the GUI for the client... You can, but shouldn't unless you have a small number of users that will be using your app, and/or until browsers start shipping with a Java2 JVM. The JVM's that currently ship with browsers do not have Swing components available, so users will have to download a plug-in that allows Java2 code to be run in applets. Possible, but not adviseable for apps where you have no control over who is going to be using it. As far as using Swing components for the GUI. It can be done, but only as an applet, which is why I mention the browser's JVM above. If you were asking if Swing components could be used in the Java Scriptlets of your JSP page. Of course they can, you can write just about any Java code in the Java Scriptlets of JSP pages, because when everything is said and done, they are basically transformed into little itty bitty prorams. However, when a user calls the JSP page using the Swing components the Swing GUI will appear on the SERVER machine, not the client. This will not only happen the first time that the page is called, but EVERY time the page is called. Meaning that if the page that contains the Swing components is falled 100 times, you will have 100 Swing windows open on your server machine. Which in turn will gobble up the resources like a mad man. So, my advice is do not use Swing components in JSP unless you understand the implications. Joseph Karau Kingland Systems [EMAIL PROTECTED] 507-536-3629 AIM: jkara3629 -Original Message- From: Simon Chia [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 7:02 AM To: [EMAIL PROTECTED] Subject: Jsp and Swing?? has any tried it before? plz le tme know how if you have! === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
signoff JSP-INTEREST
On Thu, 24 May 2001, Sreemushta, Santhosh (c) wrote: -Original Message- From: Mahale, Mahesh [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 2:16 PM To: [EMAIL PROTECTED] Subject: signoff JSP-INTEREST -Original Message- From: Agarwal, Shekhar (MED, TCS America) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 9:44 AM To: [EMAIL PROTECTED] Subject: signoff JSP-INTEREST SHEKHAR AGARWAL(B.TECH) TATA CONSULTANCY SERVICES Email : [EMAIL PROTECTED] Tel: 268-548-2592 (work) 262-798-1052 (home) -Original Message- From: Clemente Dani [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 7:47 AM To: [EMAIL PROTECTED] Subject: Re: Using JSP to redirect to a PDF file located outside the web document root It depends wether you are granted to acced this file or not, if you can, you may use file streams to get del bytes of the file and then send them to the client, before of that you must set the content-type of the response. I hope not to be wrong with this. Bye Amunt València! - Missatge Original - De: Bernard Gaughran [EMAIL PROTECTED] Data: Dimecres, Maig 16, 2001 1:33 pm Assumpte: Using JSP to redirect to a PDF file located outside the web document root I would like to use a JSP file to redirect a user's browser to a PDF file located OUTSIDE the web document root on the same machine. How do I use JSP to do this? Regards Bernard Gaughran Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP- INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets ¡Es el mes de El Regreso de la Momia! Con motivo del estreno de El Regreso de la Momia, Airtel, UIP, Port Aventura, y Navegalia te invitan a un mundo de promociones misteriosas y grandes regalos. Viaja por nuestra web y te encontrarás todo tipo de tesoros: Viajes, preestrenos, películas, videojuegos, etc. Visita http://www.elregresodelamomia.navegalia.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets Naren, Programmer
why servlet not working from package ????
Hi, I am trying to call a servlet from a package like this : http://mil2wwds10/formprocess/servlet/mypackage.MyServlet BUT I got ERROR : The page cannot be found Here is the structure of this application : tomcat\webapps\formprocess\WEB-INF\lib\form.jar tomcat\webapps\formprocess\WEB-INF\classes\mypackage\FormServlet.class tomcat\webapps\formprocess\WEB-INF\classes\mypackage\MyForm.class tomcat\webapps\formprocess\WEB-INF\classes\mypackage\MyServlet.class tomcat\webapps\formprocess\WEB-INF\classes\mypackage\fieldcontroll\CharRestriction.class tomcat\webapps\formprocess\WEB-INF\classes\mypackage\fieldcontroll\LoginRestriction.class tomcat\webapps\formprocess\WEB-INF\classes\mypackage\fieldcontroll\TextRestriction.class Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
JRun
Does anyone know where to put JSP files in Jrun. According to document, we should put the JSP files under: jruninstalldirectory/servers/default/default-app I have put a jsp file in this directory, however, when I try to run this file, I get the following error: 404 Not Found /firstjsp.jsp: allaire.jrun.JRunServletException: The page /firstjsp.jsp could not be found. . does anyone know what I need to do Regards, === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Generate a JSP database access bean through table interrogation?
Hello, I was thinking of a utility that would interrogate a set of database tables, and then generate java beans that would be able to get/set, update, delete, insert, and validate.. the beans could then be dropped onto an html page (as in Macromedia Ultradev 4). Has anyone found anything like this? Are you doing anything like this? Is it of value? I found something similar to what I am talking about http://space.tin.it/computer/csadun/software/cmaker/cmaker.html Thanks, Keith === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Generate a JSP database access bean through table interrogation?
Hi Keith. You're talking about implementing a persistence layer - still one of the hottest topics in OO development. I'll point you in the direction of some of the best work in this area - http://www.ambysoft.com. Exolab is developing a java based persistence layer (Castor) that is gaining allot of acceptance in the community right now - http://castor.exolab.com. It's a great platform for using XML to map objects to relational databases. Keith Kwiatek wrote: Hello, I was thinking of a utility that would interrogate a set of database tables, and then generate java beans that would be able to get/set, update, delete, insert, and validate.. the beans could then be dropped onto an html page (as in Macromedia Ultradev 4). Has anyone found anything like this? Are you doing anything like this? Is it of value? I found something similar to what I am talking about http://space.tin.it/computer/csadun/software/cmaker/cmaker.html Thanks, Keith === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets -- Erik I Morton Software Developer -- CommerceHub http://www.commercehub.com 518-886-0704 21 Corporate Drive Clifton Park, NY 12065 === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: JRun
What version of JRun are you running ? In JRun 3.0 JRun\servers\default\default-app - maps to http://servername:portnumber/ If you have a firstjsp.jsp under JRun\servers\default\default-app you should be able to serve it with this url http://servername:portnumber/firstjsp.jsp You can put JSPs wherever you want , provided you map a virtual directory to your physical path. To test your JRun settings, if using 3.0 , start teh Admin Server and go to Administrator . You can run samples from that page.If your samples work , that proves JRun is serving pages , but there might be something else wrong. Santosh [Qari Qasim] [EMAIL PROTECTED] on 05/25/2001 10:45:59 AM Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Santosh Daryani/IT/Aon Consulting) Subject: JRun Does anyone know where to put JSP files in Jrun. According to document, we should put the JSP files under: jruninstalldirectory/servers/default/default-app I have put a jsp file in this directory, however, when I try to run this file, I get the following error: 404 Not Found /firstjsp.jsp: allaire.jrun.JRunServletException: The page /firstjsp.jsp could not be found. . does anyone know what I need to do Regards, === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Generate a JSP database access bean through table interrogation?
Check Town-2.2 from http://www.working-dogs.com/town/ It creates beans from a database, and generate the insert/update/delete/retrieve methods. Gopi I was thinking of a utility that would interrogate a set of database tables, and then generate java beans that would be able to get/set, update, delete, insert, and validate.. the beans could then be dropped onto an html page (as in Macromedia Ultradev 4). Has anyone found anything like this? Are you doing anything like this? Is it of value? I found something similar to what I am talking about http://space.tin.it/computer/csadun/software/cmaker/cmaker.html Thanks, Keith === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets --- Gopi Mandava(703) 267-1735 x307 CoManage Inc. The world is more apt to be destroyed by bad politicians than bad physics - A.Einstein === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: JRun
If your using JRUN with IIS, you should put your jsp's during the development process in C:\Inetpub\wwwroot\your apps name\WEB-INF\jsp The compiled jsp's (servelets) from your JSP's are automatically put by JRUN into the directory that you installed JRUN on your machine. In my case, its: C:\Program Files\Allaire\JRun\servers\default\default-app\WEB-INF\jsp Celeste -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of [Qari Qasim] Sent: Friday, May 25, 2001 9:46 AM To: [EMAIL PROTECTED] Subject: JRun Does anyone know where to put JSP files in Jrun. According to document, we should put the JSP files under: jruninstalldirectory/servers/default/default-app I have put a jsp file in this directory, however, when I try to run this file, I get the following error: 404 Not Found /firstjsp.jsp: allaire.jrun.JRunServletException: The page /firstjsp.jsp could not be found. . does anyone know what I need to do Regards, === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Question About events in java beans
Hi all, Does any one of you know a link to a good example about events in java beans. I undestand the theory behind events but I feel like I need an example to completely understand it I have done some search but it has been unsuccesful. Please help === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
MVC, EJBs and Oracle
Hello, I am writing an MVC application accessing an Oracle database. I am using a servlet as controller, JSP only for presentation (view) and EJBs for accessing data. I have seen that even with just a few records in the database the performance of the application is really good. So maybe it is a good idea using EJBs even for small applications. In this way you will not have to rewrite code if your application or data grow and it is already scalable. Somebody asked before about when to re-query the database. Of course we need to re-query the database every time and, as expected, the response times are very short after the first request. For example, the first time I do a query took 140 milliseconds, the next times it took 50, 40, 40, 40, etc. Of course you also get the benefits of MVC like cleanest separation of presentation, control and data. Please let me know if you have any comments, Benjamin === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: MVC, EJBs and Oracle
1) You of course stress tested with implementation with something like Mercury's tools and such that would simulate 1000+ users hitting the submit button at the same time ? 2) You of course compared this design to an MVC servlet/JSP implementation using regular Beans and a pooled connection to the database ? if not, then: a) perform #1 for 100, 1000, 1 simulated users b) perform #2 for 100, 1000, 1 simulated users c) compare testing results of #1 to #2 THEN YOU CAN COME TO SOME VALID CONCLUSIONS. BTW: You of course are not deploying EJB's for read-only queries, right ? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Nevarez, Benjamin Sent: Friday, May 25, 2001 4:36 PM To: [EMAIL PROTECTED] Subject: MVC, EJBs and Oracle Hello, I am writing an MVC application accessing an Oracle database. I am using a servlet as controller, JSP only for presentation (view) and EJBs for accessing data. I have seen that even with just a few records in the database the performance of the application is really good. So maybe it is a good idea using EJBs even for small applications. In this way you will not have to rewrite code if your application or data grow and it is already scalable. Somebody asked before about when to re-query the database. Of course we need to re-query the database every time and, as expected, the response times are very short after the first request. For example, the first time I do a query took 140 milliseconds, the next times it took 50, 40, 40, 40, etc. Of course you also get the benefits of MVC like cleanest separation of presentation, control and data. Please let me know if you have any comments, Benjamin == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Question About events in java beans
The javabeans tutorial has a section on events which includes a good example. http://java.sun.com/docs/books/tutorial/javabeans/events/index.html Justy - Original Message - Hi all, Does any one of you know a link to a good example about events in java beans. I undestand the theory behind events but I feel like I need an example to completely understand it I have done some search but it has been unsuccesful. Please help === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: MVC, EJBs and Oracle
Well, I am not saying that my solution is the best and that other solutions are bad. I am just saying that this solution looks very good to me. But anyway it will be interesting to compare the two choices you say, and probably others. I think I'll do it, later. I do not know about the tools to 'simulate 1000+ users hitting the submit button at the same time' so please give us more info about it. Benjamin -Original Message- From: M. Simms [mailto:[EMAIL PROTECTED]] Sent: Friday, May 25, 2001 3:14 PM To: [EMAIL PROTECTED] Subject: Re: MVC, EJBs and Oracle 1) You of course stress tested with implementation with something like Mercury's tools and such that would simulate 1000+ users hitting the submit button at the same time ? 2) You of course compared this design to an MVC servlet/JSP implementation using regular Beans and a pooled connection to the database ? if not, then: a) perform #1 for 100, 1000, 1 simulated users b) perform #2 for 100, 1000, 1 simulated users c) compare testing results of #1 to #2 THEN YOU CAN COME TO SOME VALID CONCLUSIONS. BTW: You of course are not deploying EJB's for read-only queries, right ? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Nevarez, Benjamin Sent: Friday, May 25, 2001 4:36 PM To: [EMAIL PROTECTED] Subject: MVC, EJBs and Oracle Hello, I am writing an MVC application accessing an Oracle database. I am using a servlet as controller, JSP only for presentation (view) and EJBs for accessing data. I have seen that even with just a few records in the database the performance of the application is really good. So maybe it is a good idea using EJBs even for small applications. In this way you will not have to rewrite code if your application or data grow and it is already scalable. Somebody asked before about when to re-query the database. Of course we need to re-query the database every time and, as expected, the response times are very short after the first request. For example, the first time I do a query took 140 milliseconds, the next times it took 50, 40, 40, 40, etc. Of course you also get the benefits of MVC like cleanest separation of presentation, control and data. Please let me know if you have any comments, Benjamin == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Question About events in java beans
Hi, I have a question related to ODBC Microsoft Access Driver. It gave me the below error. What I have is an Access Database with has one column (SelForDistrInSession) of type: Long Integer. My web server is tomcat3.2.1 running on an NT box. I was able to query all my data from this database using my java class (jbdc), I was able to display all the rows, delete a row, however, when I can not update a row with this Long Integer value, I am getting the error below. Is is something that ODBC does not support type Long? Please help, I also include my prepareStatement below. -- Log message -- in doPost(...) userOption == AppletUpdate Updateing the object Closing database connection java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Optional feature not implemented Complete. --- SQL prepareStatement public class PdsToolDataAccessor { // data members // CTL stands for Catalog. private Connection dbConnection; private PreparedStatement displayCTLStatement; private PreparedStatement updateCTLStatement; private PreparedStatement deleteCTLStatement; /** * Constructor that make a database connection and prepares SQL statements */ public PdsToolDataAccessor(String dbDriver, String dbURL, String userID, String passwd) { // use println statements to send status messages to web server console try { log(PdsToolDataAccessor init: Start); log(PdsToolDataAccessor init: Loading Database Driver: + dbDriver); Class.forName(dbDriver); log(PdsToolDataAccessor init: Getting a connection to - + dbURL); dbConnection = DriverManager.getConnection(dbURL, userID, passwd); log(PdsToolDataAccessor init: Preparing display statement); displayCTLStatement = dbConnection.prepareStatement(select * from PdsCatalog order by PdsName); log(PdsToolDataAccessor init: Preparing update statement); updateCTLStatement = dbConnection.prepareStatement(update PdsCatalog set + Comments = ? , ProcessName = ?, EffectiveDate = ?, CreateDat = ?, + ReadyForDistribution = ?, + InformedSites = ?, CdaComments = ?, SelForDistrInSession = ? + where PdsName = ? and NonPdsVer = ?); log(PdsToolDataAccessor init: Preparing delete statement); deleteCTLStatement = dbConnection.prepareStatement(delete * from PdsCatalog where PdsName= ? and NonPdsVer = ? ); log(PdsToolDataAccessor init: End); } catch (Exception e) { cleanUp(); log(e); } } /** * Closes the database connection */ public void cleanUp() { try { log(Closing database connection); dbConnection.close(); } catch (SQLException e) { log(e); } } /* * Updates a catalog by inserting them into the database */ public void updateCatalog(PdsCatalogBean aCatalog) { try { // set sql parameters updateCTLStatement.setString(1, aCatalog.getComments()); updateCTLStatement.setString(2, aCatalog.getProcessName()); updateCTLStatement.setDate(3, aCatalog.getEffectiveDate()); updateCTLStatement.setDate(4, aCatalog.getCreateDate()); updateCTLStatement.setString(5, aCatalog.getReadyForDistribution()); updateCTLStatement.setString(6, aCatalog.getInformedSites()); updateCTLStatement.setString(7, aCatalog.getCdaComments()); updateCTLStatement.setLong(8, aCatalog.getSelForDistrInSession().longValue()); updateCTLStatement.setString(9, aCatalog.getPdsName()); updateCTLStatement.setString(10, aCatalog.getNonPdsVer()); // execute sql updateCTLStatement.executeUpdate(); } catch (Exception e) { cleanUp(); log(e); } } /** * Deletes a catalog by removing it into the database */ public void deleteCatalog(PdsCatalogBean aCatalog) { try { // set sql parameters deleteCTLStatement.setString(1, aCatalog.getPdsName()); deleteCTLStatement.setString(2, aCatalog.getNonPdsVer()); // execute sql deleteCTLStatement.executeUpdate(); } catch (Exception e) { cleanUp(); log(e); } } /** * Simply closes the database connection */ public void destroy() { log(PdsToolDataAccessor: destroy); cleanUp(); }
How to install SSL onto Tomcat?
Hi, Does anyone know a quick,easy way to install SSL onto TOMCAT or if they know a web site that explains it clearly and well. Somebody told me I might have to integrate Tomcat with Apache web server and then put SSL on. Is this true? Any help on the topic is welcomed. thanks Rui = If a rabbit's foot is so lucky,. what happened to the rabbit? __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: why servlet not working from package ????
I would check your web.xml file. The servlet element establishes a mapping between a servlet name and the fully-qualifed name of the servlet class: servlet servlet-namemyservlet/servlet-name servlet-classmypackage.MyServlet/servlet-class /servlet When a request is received by Tomcat it must determine which servlet should handle it. You designate that certain paths map to a specific servlet with the servlet-mapping element. servlet-mapping servlet-namemyservlet/servlet-name url-pattern/servlet/url-pattern /servlet-mapping Justy - Original Message - From: sufi malak [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 25, 2001 7:20 AM Subject: why servlet not working from package Hi, I am trying to call a servlet from a package like this : http://mil2wwds10/formprocess/servlet/mypackage.MyServlet BUT I got ERROR : The page cannot be found Here is the structure of this application : tomcat\webapps\formprocess\WEB-INF\lib\form.jar tomcat\webapps\formprocess\WEB-INF\classes\mypackage\FormServlet.class tomcat\webapps\formprocess\WEB-INF\classes\mypackage\MyForm.class tomcat\webapps\formprocess\WEB-INF\classes\mypackage\MyServlet.class tomcat\webapps\formprocess\WEB-INF\classes\mypackage\fieldcontroll\CharRestr iction.class tomcat\webapps\formprocess\WEB-INF\classes\mypackage\fieldcontroll\LoginRest riction.class tomcat\webapps\formprocess\WEB-INF\classes\mypackage\fieldcontroll\TextRestr iction.class Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
ODBC Microsoft ACCESS and JBDC
Hi, I have a question related to ODBC Microsoft Access Driver. It gave me the below error. What I have is an Access Database with has one column (SelForDistrInSession) of type: Long Integer. My web server is tomcat3.2.1 running on an NT box. I was able to query all my data from this database using my java class (jbdc), I was able to display all the rows, delete a row, however, when I can not update a row with this Long Integer value, I am getting the error below. Is is something that ODBC does not support type Long? Please help, I also include my prepareStatement below. -- Log message -- in doPost(...) userOption == AppletUpdate Updateing the object Closing database connection java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Optional feature not implemented Complete. --- SQL prepareStatement public class PdsToolDataAccessor { // data members // CTL stands for Catalog. private Connection dbConnection; private PreparedStatement displayCTLStatement; private PreparedStatement updateCTLStatement; private PreparedStatement deleteCTLStatement; /** * Constructor that make a database connection and prepares SQL statements */ public PdsToolDataAccessor(String dbDriver, String dbURL, String userID, String passwd) { // use println statements to send status messages to web server console try { log(PdsToolDataAccessor init: Start); log(PdsToolDataAccessor init: Loading Database Driver: + dbDriver); Class.forName(dbDriver); log(PdsToolDataAccessor init: Getting a connection to - + dbURL); dbConnection = DriverManager.getConnection(dbURL, userID, passwd); log(PdsToolDataAccessor init: Preparing display statement); displayCTLStatement = dbConnection.prepareStatement(select * from PdsCatalog order by PdsName); log(PdsToolDataAccessor init: Preparing update statement); updateCTLStatement = dbConnection.prepareStatement(update PdsCatalog set + Comments = ? , ProcessName = ?, EffectiveDate = ?, CreateDat = ?, + ReadyForDistribution = ?, + InformedSites = ?, CdaComments = ?, SelForDistrInSession = ? + where PdsName = ? and NonPdsVer = ?); log(PdsToolDataAccessor init: Preparing delete statement); deleteCTLStatement = dbConnection.prepareStatement(delete * from PdsCatalog where PdsName= ? and NonPdsVer = ? ); log(PdsToolDataAccessor init: End); } catch (Exception e) { cleanUp(); log(e); } } /** * Closes the database connection */ public void cleanUp() { try { log(Closing database connection); dbConnection.close(); } catch (SQLException e) { log(e); } } /* * Updates a catalog by inserting them into the database */ public void updateCatalog(PdsCatalogBean aCatalog) { try { // set sql parameters updateCTLStatement.setString(1, aCatalog.getComments()); updateCTLStatement.setString(2, aCatalog.getProcessName()); updateCTLStatement.setDate(3, aCatalog.getEffectiveDate()); updateCTLStatement.setDate(4, aCatalog.getCreateDate()); updateCTLStatement.setString(5, aCatalog.getReadyForDistribution()); updateCTLStatement.setString(6, aCatalog.getInformedSites()); updateCTLStatement.setString(7, aCatalog.getCdaComments()); updateCTLStatement.setLong(8, aCatalog.getSelForDistrInSession().longValue()); updateCTLStatement.setString(9, aCatalog.getPdsName()); updateCTLStatement.setString(10, aCatalog.getNonPdsVer()); // execute sql updateCTLStatement.executeUpdate(); } catch (Exception e) { cleanUp(); log(e); } } /** * Deletes a catalog by removing it into the database */ public void deleteCatalog(PdsCatalogBean aCatalog) { try { // set sql parameters deleteCTLStatement.setString(1, aCatalog.getPdsName()); deleteCTLStatement.setString(2, aCatalog.getNonPdsVer()); // execute sql deleteCTLStatement.executeUpdate(); } catch (Exception e) { cleanUp(); log(e); } } /** * Simply closes the database connection */ public void destroy() { log(PdsToolDataAccessor: destroy); cleanUp(); }
java.sql.SQLException error
Hello Everyone, I have a BugTracking project I generated from CodeCharge that is up and running on our WebLogic6.0 server. I have the tables on a SQL Server 2000 database and the program works fine, except when I go to enter a new bug report, which is an INSERT operation on the table - I get this error message: java.sql.SQLException: Cannot insert the value NULL into column 'bug_id', table 'BugTrack does not allow nulls. INSERT fails. Severity 16, State 2, Procedure 'DB1 null', Line 1 The column 'bug_id' in this table is an int field, with nulls not allowed. I allowed nulls, and I don't get the error message, but then I don't get an auto-incremented ID number which I need to have for the Bug ID#. Because I had upsized this table from MSAccess 2000, I also tried creating a new table and replacing this 'bug_id'(int) field with a (uniquedentifier) field and tried the original (int) field, but that didn't work either. So, how can I get the JSP page(s) to write an incremental ID number to this table? When I generated the code for this project, it created table records (in the BugTrack table there were already 8 records to begin with, with ('bug_id' 1 through 8), but I am unable to add any more without this error. Thanks in advance, John Wilson Programmer/Analyst _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
cant start j2ee server
Hi every one, when I try to start j2ee server using command: j2ee -verbose I get bad command or file name message. I have following lines in autoexec.bat file to set evviroment variables: SET JAVA_HOME=C:\jdk1.3 set J2EE_HOME=c:\j2sdkee1.3 set path=c:\j2sdkee1.3\bin; c:\jdk1.3\bin; Any clue about what is wrong? Thanks in advance. shuaib === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: How to install SSL onto Tomcat?
Please checkout the tomcat mailing list. And check the archives first, this is a VERY COMMON question that is answered there many times over. See http://mikal.org/interests/java/tomcat/index.jsp -Original Message- From: Ruaidhrí Fernandes [mailto:[EMAIL PROTECTED]] Sent: Friday, May 25, 2001 4:10 PM To: [EMAIL PROTECTED] Subject: How to install SSL onto Tomcat? Hi, Does anyone know a quick,easy way to install SSL onto TOMCAT or if they know a web site that explains it clearly and well. Somebody told me I might have to integrate Tomcat with Apache web server and then put SSL on. Is this true? Any help on the topic is welcomed. thanks Rui = If a rabbit's foot is so lucky,. what happened to the rabbit? __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
This mail ID has been changed to rajeshk@erunway.com ,Please amend your address book for
This mail ID has been changed to [EMAIL PROTECTED] ,Please amend your address book for future use. Thanking you for your co-operation MIS eRUNWAY India === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: cant start j2ee server
Hi go to the c:\j2sdkee1.3\bin directory and then execute the following commands j2ee -verbose Regards Deepak Kumar http://www.geocities.com/deepak_38 --- cupid1 [EMAIL PROTECTED] wrote: Hi every one, when I try to start j2ee server using command: j2ee -verbose I get bad command or file name message. I have following lines in autoexec.bat file to set evviroment variables: SET JAVA_HOME=C:\jdk1.3 set J2EE_HOME=c:\j2sdkee1.3 set path=c:\j2sdkee1.3\bin; c:\jdk1.3\bin; Any clue about what is wrong? Thanks in advance. shuaib === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: cannot find the package
maybe u've already answered this by now (i came in late on this one) has the path /webapps/JSP/Web-inf/classes/ been added to ur CLASSPATH ?! Mayuresh -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Sachin S. Khanna Sent: Thursday, May 24, 2001 12:35 PM To: [EMAIL PROTECTED] Subject: Re: cannot find the package That should be fine. If you have renamed the folder to WEB-INF, it doesn't really matter what it displays. Try running your webapp again. If it still doesn't work there might be some other problem. Post it to the list and surely some one will help you out. Have a nice day. With regards, Sachin S. Khanna http://www.emailanorder.com - Original Message - From: [Qari Qasim] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 8:31 PM Subject: Re: cannot find the package It's a bit funny, but I have tried to rename Web-inf to WEB-INF. But as I press 'return' key, it changes back to 'Web-inf'. Do u how I can keep the name as WEB-INF. Regards, -Original Message- From: Sachin S. Khanna [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 2:09 PM To: [EMAIL PROTECTED] Subject:Re: cannot find the package Try renaming the Web-inf folder to WEB-INF. It might just do the trick :-). Have a nice day. With regards, Sachin S. Khanna http://www.emailanorder.com - Original Message - From: [Qari Qasim] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 5:29 PM Subject: cannot find the package Hi I have a java class package in the following directory: /webapps/JSP/Web-inf/classes/test and in my .jsp file I try to import this package : %@ page import=test.* session=true errorPage=error.jsp % (I have this jsp file in /webapps/jsp ) but somehow, when I try to run this file, I get the error that this package is not found. Can anyone help thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets