Re: Newbie question about using the JAR file
try this: ***copied from another mail*** Dear if u just copy activation.jar and mail.jar to your SDK jre\lib\ext folder (like C:\j2sdk1.4.1_02\jre\lib\ext) you can get the requierd results regards, Imran ***copied from another mail*** On Mon, 13 Dec 2004 23:26:34 -0700, Thomas Tsang [EMAIL PROTECTED] wrote: Add full path with activation.jar to the variable and restart the server, but still failure... My testing environment is WinXP + Apache + tomcat 5.5, I think it may be setting problem, any more suggestion? === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Newbie question about using the JAR file
Dear Ravi Kumar Imran Anwar, Thank you for your help, it is work now. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Newbie question about using the JAR file
Be sure to reference activation.jar and mail.jar in your system classpath. This is the reference in my system. C:\Apache\Tomcat\common\lib\jdom.jar;C:\Apache\Tomcat\common\lib\mail.ja r;C:\Apache\Tomcat\common\lib\activation.jar In regards to calling it, I don't believe you actually use activation.jar. The javaMail jar file will need classes in this jar file to do its thing Hope that helps Ken -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Tsang Sent: Friday, December 10, 2004 7:56 AM To: [EMAIL PROTECTED] Subject: Re: Newbie question about using the JAR file Thank for your information, but I think the main case is I don;t know how to install the jar in the server, the same error is retuen when I add the code you provide, and even I remark the line 'Session mailSession = ...', the similar error is returm for the next line == InternetAddress cannot be resolved or is not a type == === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Newbie question about using the JAR file
hi, try adding the full path and the jar file name to the classpath variable. regards. ravi. On Mon, 13 Dec 2004 19:21:15 -0700, Thomas Tsang [EMAIL PROTECTED] wrote: Can I know how to reference the jar file in my system classpath? I have copy the activation.jar to C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\, and add this path to the value of Classpath (My Computer- Property- Advanced- Environment), then restart the server. But the result is still failure === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Newbie question about using the JAR file
Add full path with activation.jar to the variable and restart the server, but still failure... My testing environment is WinXP + Apache + tomcat 5.5, I think it may be setting problem, any more suggestion? === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Newbie question about using the JAR file
Dear if u just copy activation.jar and mail.jar to your SDK jre\lib\ext folder (like C:\j2sdk1.4.1_02\jre\lib\ext) you can get the requierd results regards, Imran On Mon, 13 Dec 2004 23:26:34 -0700, Thomas Tsang [EMAIL PROTECTED] wrote: Add full path with activation.jar to the variable and restart the server, but still failure... My testing environment is WinXP + Apache + tomcat 5.5, I think it may be setting problem, any more suggestion? === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com -- Imran Anwar === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Newbie question about using the JAR file
Can I know how to reference the jar file in my system classpath? I have copy the activation.jar to C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\, and add this path to the value of Classpath (My Computer- Property- Advanced- Environment), then restart the server. But the result is still failure === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Newbie question about using the JAR file
I want to add a send email function in my JSP server (WinXP + Apache + Tomcat), and download JAVA Mail API from web, I extract the zip file and find there are a file named activation.jar, some *.java example file and some doc files. But I don't know how to use this *.jar file, I copy it to the lib directory under tomcat, restart the server, and run the following JSP page = %@ page import=java.util.* % %@ page import=javax.mail.* % %@ page import=javax.mail.internet.* % % java.util.Properties props = new java.util.Properties(); props.put(mail.smtp.host, [SMTP Server]); Session mailSession = Session.getDefaultInstance(props,null); InternetAddress fromAddress = new InternetAddress([Email Address]); % === But the following error is return... === Session cannot be resolved or is not a type === Am I miss some steps in using the jar? And I also want to know how to use those .java example file. Source code is return when viewing them in browser. Thank 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 archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Newbie question about using the JAR file
You're introducing Session without getting the Session object from the JSP request beforehand You can obtain your HttpSession object from your request HttpSession Session = request.getSession(true); HTH, Martin Gainty US 001-617-852-7822 http://www.laconiadatasystems.com (e)[EMAIL PROTECTED] - Original Message - From: Thomas Tsang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 10, 2004 6:22 AM Subject: Newbie question about using the JAR file I want to add a send email function in my JSP server (WinXP + Apache + Tomcat), and download JAVA Mail API from web, I extract the zip file and find there are a file named activation.jar, some *.java example file and some doc files. But I don't know how to use this *.jar file, I copy it to the lib directory under tomcat, restart the server, and run the following JSP page = %@ page import=java.util.* % %@ page import=javax.mail.* % %@ page import=javax.mail.internet.* % % java.util.Properties props = new java.util.Properties(); props.put(mail.smtp.host, [SMTP Server]); Session mailSession = Session.getDefaultInstance(props,null); InternetAddress fromAddress = new InternetAddress([Email Address]); % === But the following error is return... === Session cannot be resolved or is not a type === Am I miss some steps in using the jar? And I also want to know how to use those .java example file. Source code is return when viewing them in browser. Thank 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 archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Newbie question about using the JAR file
Thank for your information, but I think the main case is I don;t know how to install the jar in the server, the same error is retuen when I add the code you provide, and even I remark the line 'Session mailSession = ...', the similar error is returm for the next line == InternetAddress cannot be resolved or is not a type == === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Newbie question about using the JAR file
On Friday 10 December 2004 13:56, Thomas Tsang wrote: Make sure you've put the *,jar files in a directory where the classloader can find them. If unsure, put them in your application's /WEB-INF/lib directory, not one of the Tomcat server's directories. Then, I'm not sure about the Session thing. AFAIK there's a Session in Java Mail as well, not to be mixed up with the usual HttpSession, and I guess the former one may be the culprit here. If this is fixed, look at the the settings you provide the (mail) Session with. Though I'm no JavaMail expert, IIRC the whole thing works by setting several System properties, but before going into the details, the whole thing you're experiencing looks more like a simple classloader problem to me: the classes contained in the *.jar files are just not found. HTH, -- Chris (SCPJ2) Thank for your information, but I think the main case is I don;t know how to install the jar in the server, the same error is retuen when I add the code you provide, and even I remark the line 'Session mailSession = ...', the similar error is returm for the next line == InternetAddress cannot be resolved or is not a type == = == To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Newbie question about jdbc:odbc connection
Hi, You will have to load JDBC-ODBC bridge driver, with the following statement, Class.forName(jdbc.odbc.JdbcOdbcDriver); //loads the driver before calling DriverManager.getConnection. Thanks, H.Ananthalakshmi. From: Thomas Tsang [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Newbie question about jdbc:odbc connection Date: Thu, 2 Dec 2004 20:35:14 -0700 I am using apache + tomcat to do with my jsp project, and I do a jsp page with following codes: %@ page session=true % %@ page import=java.sql.* % %@ page import=java.util.Date % %@ page import=java.io.* % %@ page import=java.net.* % %@ page import=java.text.* % % java.sql.Connection connBooking; java.sql.Statement sqlStmt; connBooking = java.sql.DriverManager.getConnection (jdbc:odbc:onlinebooking,username,password); sqlStmt = connBooking.createStatement (java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_READ_O NLY); % === Then I create a ODBC source in System DNS with the name onlinebooking, this source is connect to a remote SQL server, I have tested the connection in ODBC interface and it can return ok. However the following error is returned when i load the above jsp page = javax.servlet.ServletException: No suitable driver org.apache.jasper.runtime.PageContextImpl.doHandlePageException (PageContextImpl.java:845) org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImpl.java:778) org.apache.jsp.Booking.admin.Global_jsp._jspService (org.apache.jsp.Booking.admin.Global_jsp:138) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802 = I check the similar post here and someone suggest it is classpath problem. I find the following value is set in the apache tomcat property C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar; Anyone have suggestion for my case? Thank 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 archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com _ Cool ringtones, snazzy logos! Funny cards, addictive games! http://www.msn.co.in/Mobile/ Get them all at one place! === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Newbie question about jdbc:odbc connection
Thank for your information. However, the following error is display after the line Class.forName (jdbc.odbc.JdbcOdbcDriver); is add before the line connBooking = ... = javax.servlet.ServletException: jdbc.odbc.JdbcOdbcDriver org.apache.jasper.runtime.PageContextImpl.doHandlePageException (PageContextImpl.java:845) org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImpl.java:778) org.apache.jsp.Booking.Global_jsp._jspService (org.apache.jsp.Booking.Global_jsp:139) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) = Do I miss any setting in the tomcat? === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Newbie question about jdbc:odbc connection
Hi , It should be Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); Regards Darshan On Fri, 3 Dec 2004 03:11:08 -0700, Thomas Tsang [EMAIL PROTECTED] wrote: Thank for your information. However, the following error is display after the line Class.forName (jdbc.odbc.JdbcOdbcDriver); is add before the line connBooking = ... = javax.servlet.ServletException: jdbc.odbc.JdbcOdbcDriver org.apache.jasper.runtime.PageContextImpl.doHandlePageException (PageContextImpl.java:845) org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImpl.java:778) org.apache.jsp.Booking.Global_jsp._jspService (org.apache.jsp.Booking.Global_jsp:139) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) = Do I miss any setting in the tomcat? == To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP- INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Newbie question about jdbc:odbc connection
To quote a fellow from the J2EE List Using MS Access with CMP enterprise beans is like putting a moped engine in a Mercedes-Benz. At one time I worked for a company that was using the Jdbc-Odbc bridge for connecting to SQL Server DB. This was fine for 20 records. We experienced serious performance issues when 5000 records needed to be displayed with joins on 3 different tables using a single non-pooled Jdbc thin driver implementation. Yes you can design your own Connection Pool (info available at) http://www.devx.com/Java/Article/20891/0/page/2 Provided you would be willing to manage the thread initiation life and starvation at your end Not a pleasant task as you would be essentially managing a number of different thin client hard connects..with each connection being the most difficult and expensive way to connect to the DB If you want speed and performance you will probably want to start thinking about Transaction Management and for Transactions I would strongly suggest Third Party tools Take a look at http://www.bcs-corp.com/java/aveconnect/aveconnect25.html and download the eval and see is this works for you, Please keep me apprised, Martin Gainty (cell) 617-852-7822 From: Darshan Kashi [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Newbie question about jdbc:odbc connection Date: Fri, 3 Dec 2004 04:51:36 -0700 Received: from mc12-f13.hotmail.com ([65.54.167.149]) by mc12-s10.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Fri, 3 Dec 2004 04:05:12 -0800 Received: from swjscmail2.java.sun.com ([192.18.99.108]) by mc12-f13.hotmail.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 3 Dec 2004 04:04:43 -0800 Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid AF99D226CB; Fri, 3 Dec 2004 04:57:08 -0700 (MST) Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8e) with spool id 48106262 for [EMAIL PROTECTED]; Fri, 3 Dec 2004 04:51:52 -0700 Received: from swjscmail2.java.sun.com (swjscmail2.Sun.COM [192.18.99.108]) by swjscmail1.java.sun.com (Postfix) with ESMTP id 2BBFD49AB for [EMAIL PROTECTED]; Fri, 3 Dec 2004 04:51:52 -0700 (MST) Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107]) by swjscmail2.java.sun.com (Postfix) with ESMTP id 7D2122139B for [EMAIL PROTECTED]; Fri, 3 Dec 2004 04:56:45 -0700 (MST) X-Message-Info: WCnvqBl1Q3iLE2NqPDoQVBaKtZKDi7g1OmD6TzHaYYo= X-Original-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Precedence: list Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 03 Dec 2004 12:04:43.0973 (UTC) FILETIME=[469F7750:01C4D930] Hi , It should be Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); Regards Darshan On Fri, 3 Dec 2004 03:11:08 -0700, Thomas Tsang [EMAIL PROTECTED] wrote: Thank for your information. However, the following error is display after the line Class.forName (jdbc.odbc.JdbcOdbcDriver); is add before the line connBooking = ... = javax.servlet.ServletException: jdbc.odbc.JdbcOdbcDriver org.apache.jasper.runtime.PageContextImpl.doHandlePageException (PageContextImpl.java:845) org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImpl.java:778) org.apache.jsp.Booking.Global_jsp._jspService (org.apache.jsp.Booking.Global_jsp:139) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) = Do I miss any setting in the tomcat? == To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP- INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant archives, FAQs and Forums on JSPs can be found
Newbie question about jdbc:odbc connection
I am using apache + tomcat to do with my jsp project, and I do a jsp page with following codes: %@ page session=true % %@ page import=java.sql.* % %@ page import=java.util.Date % %@ page import=java.io.* % %@ page import=java.net.* % %@ page import=java.text.* % % java.sql.Connection connBooking; java.sql.Statement sqlStmt; connBooking = java.sql.DriverManager.getConnection (jdbc:odbc:onlinebooking,username,password); sqlStmt = connBooking.createStatement (java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_READ_O NLY); % === Then I create a ODBC source in System DNS with the name onlinebooking, this source is connect to a remote SQL server, I have tested the connection in ODBC interface and it can return ok. However the following error is returned when i load the above jsp page = javax.servlet.ServletException: No suitable driver org.apache.jasper.runtime.PageContextImpl.doHandlePageException (PageContextImpl.java:845) org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImpl.java:778) org.apache.jsp.Booking.admin.Global_jsp._jspService (org.apache.jsp.Booking.admin.Global_jsp:138) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802 = I check the similar post here and someone suggest it is classpath problem. I find the following value is set in the apache tomcat property C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar; Anyone have suggestion for my case? Thank 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 archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
newbie question
Hi all, I create a URL object and URLConnection objects. But when I opent he connection, the site presented in URL object asks me for userid and password. Is there any way I can give the user name and password also while creating the URL object??/ Regards RameshKesavanarayanan [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com
Re: newbie question
http://username:[EMAIL PROTECTED] may work depends if the receiving site actually uses these values. Hugo - Original Message - From: Kesavanarayanan, Ramesh (Cognizant) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 04, 2002 12:11 PM Subject: newbie question Hi all, I create a URL object and URLConnection objects. But when I opent he connection, the site presented in URL object asks me for userid and password. Is there any way I can give the user name and password also while creating the URL object??/ Regards RameshKesavanarayanan [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: newbie question
Hi, When you entered the site, was a window asking userid and password popped up? so, how about using java.net.Authenticator class? - Original Message - From: Kesavanarayanan, Ramesh (Cognizant) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 04, 2002 7:11 PM Subject: newbie question Hi all, I create a URL object and URLConnection objects. But when I opent he connection, the site presented in URL object asks me for userid and password. Is there any way I can give the user name and password also while creating the URL object??/ Regards RameshKesavanarayanan [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] èº{.nÇ+·¦j)m¢X¬¶Ç«¾6¯j˧r°Ø[¡Ü¬è}òRSLZ+v(²Ù[h+-±êï«Ú²éÜ¢l¶èw+´ ÔÄDD I4¨êÞëÚÑ@BÊ'%#ÿIêïëlq©Ûyú.ÖÛiÿö«r¯zÈÚ½«.Êþ;){^ë-Ù¥ÛiÿøÚ½«.Êþèvç-³øì§÷Úªfm§ÿðì¥êÚÚ(® óþ;)þ;)}ª£²m¶ÿÃ#êîr¿}ª¿w^Æ;)Ûiÿü0Â;){uêÜ¢
Newbie Question
And probably shows my utter lack of understanding of jsp/servlets/webbeans. However: I have an application that displays the current record of a database (which is complicated by the fact that the database is split into 14 tables, but that's ok...). Now I need a way to navigate it reasonably. I would think it would be a much happier system to have two webbeans: one for the navbar, one for the display record. So, the question is, how to I pass information from bean one (navbar) to bean two (display record)? All of my previous experience is unfortunately in visual basic for applications w/ an access database, so it's bit different. Any suggestions of where to start? Thanks for your time, Mike Nicholson ==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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Newbie Question
I have just begun learning jsp, and everything is still quite confusing. I am still in the process of learning my environment set-up, what should go in which directory and so on, so please bear with me. I'm running Tomcat locally and am trying to run a jsp page that uses a bean that is compiled from a .java file. The files are MiscSystemProperties.jsp and MiscSystemProperties.class When I access the file MiscSystemProperties.jsp file from a browser, I get the following: exception 'org.apache.jasper.JasperException: com.instantjsp.Chapter2.MiscSystemProperties' and root cause 'java.lang.ClassNotFoundException: com.instantjsp.Chapter2.MiscSystemProperties' I suspect that this has something to do with my classpath variable and the placement of my .class file in the wrong directory. Any suggestions? === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Newbie Question
Beau, Put your class files in the WEB-INF\classes directory of your web application. No change to your system classpath is necessary. Restart your server. Remember, if your classes are part of a package, your entire package tree should be placed under the classes directory. Here's a link that should help you get started: http://java.sun.com/webservices/docs/ea1/tutorial/doc/WebApp.html (I found it searching google with (web application deployment) Regards, Richard Regards, Richard At 10:32 AM 4/25/2002 -0400, you wrote: I have just begun learning jsp, and everything is still quite confusing. I am still in the process of learning my environment set-up, what should go in which directory and so on, so please bear with me. I'm running Tomcat locally and am trying to run a jsp page that uses a bean that is compiled from a .java file. The files are MiscSystemProperties.jsp and MiscSystemProperties.class When I access the file MiscSystemProperties.jsp file from a browser, I get the following: exception 'org.apache.jasper.JasperException: com.instantjsp.Chapter2.MiscSystemProperties' and root cause 'java.lang.ClassNotFoundException: com.instantjsp.Chapter2.MiscSystemProperties' I suspect that this has something to do with my classpath variable and the placement of my .class file in the wrong directory. Any suggestions? === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: cocoon x xerces a newbie question
In a message dated 21/02/2002 12:32:35 GMT Standard Time, [EMAIL PROTECTED] writes: What the major differences between Cocoon and Xerces (Xalan ?) ? 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: cocoon x xerces a newbie question
Cocoon is an XML publishing framework that uses an XML Parser (Xerces) to process XML. Andrew n a message dated 21/02/2002 12:32:35 GMT Standard Time, [EMAIL PROTECTED] writes: What the major differences between Cocoon and Xerces (Xalan ?) ? 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
JRUN x XML - another newbie question.
How to use JRUN with XML ? I have JRUN running on my computer, and i want to implement XML on my jsp/servlet application. I was thinking in download cocoon /xalan for parse xml, but i don't know if it's correct or exist another better alternative. Any help ? thanks in advance. [Gilson do Nascimento Del Rei] === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JRUN x XML - another newbie question.
JRun already has jaxp.jar and parser.jar in the lib/ext directory. If you want to use a different (or even merely a later) set of XML routines, you probably need to back the standard ones out and put the new ones in this directory to avoid version and compatibility problems. Duane Morse, Eldorado Computing Inc., Phoenix, Arizona -Original Message- From: Gilson Nascimento D Elrei [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 11:49 AM To: [EMAIL PROTECTED] Subject: JRUN x XML - another newbie question. How to use JRUN with XML ? I have JRUN running on my computer, and i want to implement XML on my jsp/servlet application. I was thinking in download cocoon /xalan for parse xml, but i don't know if it's correct or exist another better alternative. Any help ? thanks in advance. [Gilson do Nascimento Del Rei] === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
RES: JRUN x XML - another newbie question.
thanks Duane, i think that it resolve my doubt. ;-) Now, let's go to test it! - Mensagem original - De: Duane Morse [SMTP:[EMAIL PROTECTED]] Enviada em: sexta-feira, 15 de fevereiro de 2002 15:11 Para: [EMAIL PROTECTED] Assunto: Re: JRUN x XML - another newbie question. JRun already has jaxp.jar and parser.jar in the lib/ext directory. If you want to use a different (or even merely a later) set of XML routines, you probably need to back the standard ones out and put the new ones in this directory to avoid version and compatibility problems. Duane Morse, Eldorado Computing Inc., Phoenix, Arizona -Original Message- From: Gilson Nascimento D Elrei [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 11:49 AM To: [EMAIL PROTECTED] Subject: JRUN x XML - another newbie question. How to use JRUN with XML ? I have JRUN running on my computer, and i want to implement XML on my jsp/servlet application. I was thinking in download cocoon /xalan for parse xml, but i don't know if it's correct or exist another better alternative. Any help ? thanks in advance. [Gilson do Nascimento Del Rei] == = 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Stupid newbie question
Papo Napolitano wrote: MessageI only want to know how can i do to stop the execution of a JSP script. For example: if (i == 666) { STOP HERE! } else { continues . . . } Just put a return; in the line you want to stop. -- Ashish Shrestha Gha 2-482, Balajutar, Kathmandu, Nepal Phone: 977-1-350593. === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Stupid newbie question
MessageI only want to know how can i do to stop the execution of a JSP script. For example: if (i == 666) { STOP HERE! } else { continues . . . } In php I use die() but I can't found the correct method for JSP. Regards Papo === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Stupid newbie question
Title: RE: Stupid newbie question just use return. if (i == 666) { return; } -Original Message- From: Papo Napolitano [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 4:52 PM To: [EMAIL PROTECTED] Subject: Stupid newbie question MessageI only want to know how can i do to stop the execution of a JSP script. For example: if (i == 666) { STOP HERE! } else { continues . . . } In php I use die() but I can't found the correct method for JSP. Regards Papo === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
newbie question
Hi Everybody I`m new to this list i need free JSP editer. Can any one suggest me from where can i download free JSP editer Thanks in Advance Ashok www.himline.com _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp === 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: newbie question
Forte is one full Java IDE that is free, although I find it a tad hard to use and confusing. I use UltraEdit for $30 reg fee, which works quite well for most things. Its by no means a graphical editor for JSP though. I have yet to see any real drag/drop JSP ide that supports full JavaBean and tag-lib drag/drop to a JSP page. I still wonder why there hasn't been any real push towards a fully HTML editor with full JSP support. Ideally, a full Java Web Development IDE would be nice, one that supports all the great features of products like JBuilder, Visual Cafe, Dream Weaver, JRun Studio and IntelliJ IDEA all wrapped up into a single IDE. At 10:10 AM 9/21/2001 +0530, you wrote: Hi Everybody I`m new to this list i need free JSP editer. Can any one suggest me from where can i download free JSP editer Thanks in Advance Ashok www.himline.com _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp === 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: newbie question
Jext is a good editor, its free for keeps and has many in-built functions to make coding simpler. Available at http://www.zdnet.com/downloads/ Anupma - Original Message - From: Ashok Sehrawat [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 10:10 AM Subject: newbie question : Hi Everybody : I`m new to this list i need free JSP editer. : Can any one suggest me from where can i download free JSP editer : : Thanks in Advance : : Ashok : www.himline.com : : _ : Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp : : === : 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
Newbie question. Problem with custom tags
Hello all, I am having trouble with custom tags, although I have followed two separate tutorials on the issue, every time I try and run the .jsp page I get the following error message. Could it be something to do with the web.xml file. Thank you in advance. Internal Servlet Error: org.apache.jasper.compiler.CompileException: C:\tomcat\webapps\bexin\FirstTag.jsp(13,0) Unable to open taglibrary /WEB-INF/tlds/DemoTags.tld : C:\tomcat\webapps\bexin\WEB-INF\web.xml (The system cannot find the file specified) at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve ntListener.java:713) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList ener.java:116) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) at org.apache.jasper.compiler.Parser.parse(Parser.java:1077) at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) === 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: Newbie Question - jsp:useBean help needed.
%@ page import='sample.invoice.*' % html head jsp:useBean id='invoice' class='InvoiceBean'/ jsp:setProperty name='invoice' property='status' value='pending'/ jsp:scriptlet invoice = InvoiceRepository.getInstance().getInvoice(1); /jsp:scriptlet !-- Here, I am attemtpting to initialise 'invoice' to A new InvoiceBean object is retreived from the repository -- I'll try to explain this and hopefully somebody corrects me if I get some details wrong. You might need some knowledge about objects and references/pointers to understand this. One could say that the beans and the scriplet variables are in different contexts. When you create a bean you automatically get a scriplet variable with the same name. Lets call them invoice[bean] and invoice[scriptlet] jsp:useBean id='invoice' class='InvoiceBean'/ jsp:setProperty name='invoice' property='status' value='pending'/ After these two tags both the bean and the scriptlet variable references the same object. You could say invoice[bean] = invoice[scriptlet] - an invoice which is pending. % invoice = InvoiceRepository.getInstance().getInvoice(1); % This affects ONLY the SCRIPTLET variable. So, the scriptlet variable now point at a different invoice! invoice[bean] - an invoice which is pending. invoice[scriptlet] - an invoice from the repository. I believe that you can make the bean point at the same new object by using: pageContext.setAttribute(invoice,invoice); // (beanName, object) (Anyone please correct me if I'm wrong). Good luck. Mattias Jiderhamn Expert Systems [EMAIL PROTECTED] === 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: Newbie Question - jsp:useBean help needed.
Thank you very much Mattias, the change you suggested seems to have rectified my problem. As I mentioned in my original message the purpose of this exercise is to learn more about JSPs. Can you suggest a webstie/tutorial/book that would mention things such as this? Or are these the sort of things one learns only by trying something, getting stuck and asking someone more eperienced? For the record I am attempting to implement a variation od the example project discussed by Duane K.Fields in his book 'Web Development with Java Server Pages'. I'd better go through the book again, maybe there's somehting in here that I missed. Thank you once more. Abhijit. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]] On Behalf Of Mattias Jiderhamn Sent: Thursday, July 05, 2001 4:45 PM To: [EMAIL PROTECTED] Subject: Re: Newbie Question - jsp:useBean help needed. %@ page import='sample.invoice.*' % html head jsp:useBean id='invoice' class='InvoiceBean'/ jsp:setProperty name='invoice' property='status' value='pending'/ jsp:scriptlet invoice = InvoiceRepository.getInstance().getInvoice(1); /jsp:scriptlet !-- Here, I am attemtpting to initialise 'invoice' to A new InvoiceBean object is retreived from the repository -- I'll try to explain this and hopefully somebody corrects me if I get some details wrong. You might need some knowledge about objects and references/pointers to understand this. One could say that the beans and the scriplet variables are in different contexts. When you create a bean you automatically get a scriplet variable with the same name. Lets call them invoice[bean] and invoice[scriptlet] jsp:useBean id='invoice' class='InvoiceBean'/ jsp:setProperty name='invoice' property='status' value='pending'/ After these two tags both the bean and the scriptlet variable references the same object. You could say invoice[bean] = invoice[scriptlet] - an invoice which is pending. % invoice = InvoiceRepository.getInstance().getInvoice(1); % This affects ONLY the SCRIPTLET variable. So, the scriptlet variable now point at a different invoice! invoice[bean] - an invoice which is pending. invoice[scriptlet] - an invoice from the repository. I believe that you can make the bean point at the same new object by using: pageContext.setAttribute(invoice,invoice); // (beanName, object) (Anyone please correct me if I'm wrong). Good luck. Mattias Jiderhamn Expert Systems [EMAIL PROTECTED] === 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
Site tips (was RE: Newbie Question - jsp:useBean help needed.)
Thank you very much Mattias, the change you suggested seems to have rectified my problem. As I mentioned in my original message the purpose of this exercise is to learn more about JSPs. Can you suggest a webstie/tutorial/book that would mention things such as this? Or are these the sort of things one learns only by trying something, getting stuck and asking someone more eperienced? I believe I learned that from this list :-) So read on. I could recommend the tutorials at JSP Insider: http://www.jspinsider.com/tutorials/jsp.view Tip site: http://java.oreilly.com/news/jsptips_1100.html (Also the links at the bottom of each post). Mattias Jiderhamn Expert Systems [EMAIL PROTECTED] === 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
Newbie Question - jsp:useBean help needed.
Hi All, I will attempt to make my question as clear as possible, though I am sure it will sound a little vague given the fact that I am completely muddled right now. I am conducting a simple exercise to learn about JSPs. I have a simple database table in MS Access with 1 'Invoice' record which has a unique ID. I have an InvoiceBean class which represents a record with the appropriate get/set methods for each field. I also have an InvoiceRepository class which handles all database access and has a 'getInvoice' method that accepts the ID(an int) as a parameter and returns the correspoding record from my database as an InvoiceBean object. One of the columns in each record is 'status'. The value of status for record in my table with the ID=1 is 'complete' The code for my sample JSP page that interacts with these is as follows: %@ page import='sample.invoice.*' % html head jsp:useBean id='invoice' class='InvoiceBean'/ jsp:setProperty name='invoice' property='status' value='pending'/ jsp:scriptlet invoice = InvoiceRepository.getInstance().getInvoice(1); /jsp:scriptlet !-- Here, I am attemtpting to initialise 'invoice' to A new InvoiceBean object is retreived from the repository -- titleSimple Invoice JSP/title /head body Status for this invoice number using a JSP/XML tag is jsp:getProperty name='invoice' property='status'/ br Status for this invoice number using a generic tag is %= invoice.getStatus() % /body /html This results in the following output: Status for this invoice number using a JSP tag is pending Status for this invoice number using a generic tag is complete The output I expected with this code is: Status for this invoice number using a JSP tag is complete Status for this invoice number using a generic tag is complete It's almost as if I am now dealing with two separate InvoiceBean objects with the same 'name' , one which can be accessed by using jsp:setProperty/jsp:getProperty tags and another that can be accessed by directly calling the appropriate 'get/set' method in a scriptlet. I've tried this in Tomcat 3.2.2 and Resin 2.0.0 with the same result so I'm sure it's something simple(hopefully) that I am doing wrong, especially since I have NEVER used JSPs prior to this. Thank you in advance, Abhijit. === 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: RES: Complementing...another newbie question about HelloWorld ser vlet..
try http://gilson.startcom.org:3080/servlet/HelloWorldServlet2 instead of servletsuse servlet - Original Message - From: Gilson Nascimento D Elrei [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 11:01 PM Subject: RES: Complementing...another newbie question about HelloWorld ser vlet.. I have tried http://gilson.startcom.org:3080/HelloWorldServlet2 and http://gilson.startcom.org:3080/servlets/HelloWorldServlet2 - Mensagem original - De: Gilson Nascimento D Elrei Enviada em: quarta-feira, 23 de maio de 2001 14:36 Para: 'A mailing list about Java Server Pages specification and reference' Assunto: another newbie question about HelloWorld servlet.. I have created my first servlet, it's only a HelloWorld file .class (HelloWorld.class) and i did upload it on servlets directory. I have received this following error message: 404 Not Found /servlets/HelloWorldServlet2 was not found on this server. What's wrong here ?! I need to create a jsp page to call my .class file servlet I think that it's very simple but i'm newbie 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
another newbie question about HelloWorld servlet..
I have created my first servlet, it's only a HelloWorld file .class (HelloWorld.class) and i did upload it on servlets directory. I have received this following error message: 404 Not Found /servlets/HelloWorldServlet2 was not found on this server. What's wrong here ?! I need to create a jsp page to call my .class file servlet I think that it's very simple but i'm newbie 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: Basic Newbie Question
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid co lumn name 'fname'. at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188) at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:2494) at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:314) at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java: 264) at examples.Test.setDatabase(Test.java:92) at java.lang.reflect.Method.invoke(Native Method) According to the error its the SQL that is wrong. Wrong column name according to the error statement (column name fname does not exists). - Original Message - From: "joe smith" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 25, 2001 4:05 PM Subject: Basic Newbie Question I'm trying to test setting a simple string value to my java bean's setter method from the input of a JSP page. Using the JSP set syntax and usebean to get a reference to my bean's setter method, can I use response.encodeURL() to call the same current jsp and then the same jsp calls the setter method on the bean, which then updates the database? I don't know if this is correct or not, but my example is not working. My database should be fine and my java bean syntax/connection to db should be fine. I just don't have the right syntax in my JSP page to submit the input value to my bean - I think. Thank you! Here is my jsp code: !-- A JSP to test -- jsp:useBean id='happy' scope='page' class='examples.Test' type='examples.TestIF' / html head titleTest Bean/title /head FORM method="post" action=% response.encodeURL("happy/setTest.jsp"); % INPUT type="text" name="fname" jsp:setProperty name="happy" property="database" value="fname" / input type="submit" /FORM /html Here is my error stack trace: java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid co lumn name 'fname'. at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188) at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:2494) at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:314) at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java: 264) at examples.Test.setDatabase(Test.java:92) at java.lang.reflect.Method.invoke(Native Method) __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup === 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
Basic Newbie Question
I'm trying to test setting a simple string value to my java bean's setter method from the input of a JSP page. Using the JSP set syntax and usebean to get a reference to my bean's setter method, can I use response.encodeURL() to call the same current jsp and then the same jsp calls the setter method on the bean, which then updates the database? I don't know if this is correct or not, but my example is not working. My database should be fine and my java bean syntax/connection to db should be fine. I just don't have the right syntax in my JSP page to submit the input value to my bean - I think. Thank you! Here is my jsp code: !-- A JSP to test -- jsp:useBean id='happy' scope='page' class='examples.Test' type='examples.TestIF' / html head titleTest Bean/title /head FORM method="post" action=% response.encodeURL("happy/setTest.jsp"); % INPUT type="text" name="fname" jsp:setProperty name="happy" property="database" value="fname" / input type="submit" /FORM /html Here is my error stack trace: java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid co lumn name 'fname'. at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188) at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:2494) at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:314) at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java: 264) at examples.Test.setDatabase(Test.java:92) at java.lang.reflect.Method.invoke(Native Method) __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup === 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
Simple newbie question
Hi, I'm trying to test a parameter to see if it exists: on page 1 i have a form with a text field input type="text" name="thread" on page 2 i want to test if the box was filled in and if it contains a string or a number. I can't even seem to test if thread is empty. I've tried if(request.getParameter("sub")=="") { //stuff } but that doesn't seem to do anything. thanks for any help Tony _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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: Simple newbie question
check to see if it the parameters equals null instead of "". Tony Leake wrote: Hi, I'm trying to test a parameter to see if it exists: on page 1 i have a form with a text field input type="text" name="thread" on page 2 i want to test if the box was filled in and if it contains a string or a number. I can't even seem to test if thread is empty. I've tried if(request.getParameter("sub")=="") { //stuff } but that doesn't seem to do anything. thanks for any help Tony _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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
AW: Simple newbie question
the point is, that request.getParameter("sub") == "" checks if the string Object returned from request.getParameter("sub") is the same string object as "". And because of they are not the same object you get always false. You want to check if the two object contains the same!!! That is a big difference. so you have to use eihter: request.getParameter("sub").equals("") // which check if the stringobject returned from //request.getParameter("sub") contains "" or request.getParameter("sub") == null // which checks if no stringobject // is returned from request.getParameter("sub") both "methods" are not the same -Ursprungliche Nachricht- Von: Tony Leake [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. Marz 2001 14:42 An: [EMAIL PROTECTED] Betreff: Simple newbie question Hi, I'm trying to test a parameter to see if it exists: on page 1 i have a form with a text field input type="text" name="thread" on page 2 i want to test if the box was filled in and if it contains a string or a number. I can't even seem to test if thread is empty. I've tried if(request.getParameter("sub")=="") { //stuff } but that doesn't seem to do anything. thanks for any help Tony _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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
Re: Simple newbie question
Maybe Simple newbie java question would be better subject for the email that you sent to this jsp list. What problem you are facing has nothing to do with jsp but with java on the whole. Please try to understand the difference in behaviour between the == operator when it is applied to String objects. In case of string objects, == operator checks for whether the two object references are equal whereas the overridden equals() method of the String class checks for the equality of the contents. In your case as you would agree you want to check the contents, hence use the equals() method. Please refer to a java book for more details it would be helpful for you as well as other people on this list. Just a small piece of advice :-). Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com - Original Message - From: Tony Leake [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 01, 2001 7:11 PM Subject: Simple newbie question Hi, I'm trying to test a parameter to see if it exists: on page 1 i have a form with a text field input type="text" name="thread" on page 2 i want to test if the box was filled in and if it contains a string or a number. I can't even seem to test if thread is empty. I've tried if(request.getParameter("sub")=="") { file://stuff } but that doesn't seem to do anything. thanks for any help Tony _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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
Re: Simple newbie question
Several replies to this thread have suggested code that may crash (i.e. throw a NullPointerException) if the parameter is not present. Instead of doing this: if (request.getParameter("sub").equals("")) ... which will crash if getParameter() returns null, you should do this: if ("".equals(request.getParameter("sub")) ... which will work even if getParameter() does return null. Hope this helps. -- Martin Cooper Tumbleweed Communications - Original Message - From: "Tony Leake" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 01, 2001 5:41 AM Subject: Simple newbie question Hi, I'm trying to test a parameter to see if it exists: on page 1 i have a form with a text field input type="text" name="thread" on page 2 i want to test if the box was filled in and if it contains a string or a number. I can't even seem to test if thread is empty. I've tried if(request.getParameter("sub")=="") { //stuff } but that doesn't seem to do anything. thanks for any help Tony _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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
Thanks, and another newbie question...
Thanks to those who responded to my character replace question, and I've got another which I expect should be easier, but... Is there an expression that will return the name of the current page? Ken Martin P.S. I did try things like %= (new HttpServletRequest.getRequestURI()) % to no avail - most certainly my own lack of knowledge... :( === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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: Thanks, and another newbie question...
Is there an expression that will return the name of the current page? Yes, use request.getServletPath() Paul Nadler Ken Martin [EMAIL PROTECTED] on 07/12/2000 02:03:43 PM Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Paul NADLER/us/socgen) Subject: Thanks, and another newbie question... Thanks to those who responded to my character replace question, and I've got another which I expect should be easier, but... Is there an expression that will return the name of the current page? Ken Martin P.S. I did try things like %= (new HttpServletRequest.getRequestURI()) % to no avail - most certainly my own lack of knowledge... :( === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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 ** The information contained herein is confidential and is intended solely for the addressee(s). It shall not be construed as a recommendation to buy or sell any security. Any unauthorized access, use, reproduction, disclosure or dissemination is prohibited. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall assume any legal liability or responsibility for any incorrect, misleading or altered information contained herein. ** === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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: Thanks, and another newbie question...
Hi there, You can use HttpUtils.getRequestURL(request); to get complete URL of your current page. getRequestURL is a static method of HttpUtils and it demands a request object as its parameter. regards Y Thanks to those who responded to my character replace question, and I've got another which I expect should be easier, but... Is there an expression that will return the name of the current page? Ken Martin P.S. I did try things like %= (new HttpServletRequest.getRequestURI()) % to no avail - most certainly my own lack of knowledge... :( === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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". 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
Newbie question
Hello: I'm trying to develop a simple login form that validate username and password. I have a jsp page for the login form, what I can't figure out is how to load the jsp page and upon clicking the submit button run the javabean that I set up and verify against the database. I think I have the jsp code in the wrong place within my jsp page. Any help/examples (those really help) would be appreciated. Dina A. Johnson === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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: problem passing Array from Servlet to JSP (newbie question)
Just a brief look at it brings up a question: Shouldn't you declare acctArray as array? AccountBean[] acctArray = (AccountBean[]) request.getAttribute("accounts"); Shane Duan [EMAIL PROTECTED] -Original Message- From: Enriqueta Tuason [mailto:[EMAIL PROTECTED]] Sent: Friday, July 07, 2000 6:08 PM To: [EMAIL PROTECTED] Subject:problem passing Array from Servlet to JSP (newbie question) Hi, I'm trying to pass an Array from a Servlet to JSP. My problem is that all of the values that show up on the JSP are zero, but I get the correct length of the size of the Array. Here's what I have in the Servlet: - AccountBean[] aB = getAccounts(); req.setAttribute("accounts",aB); in the JSP: - jsp:useBean id="acct" class="AccountBean" scope="request"/ % AccountBean acctArray = (AccountBean[]) request.getAttribute("accounts"); % Length-% =acctArray.length% br % for (int i=0; i acctArray.length; i++) { acct = acctArray[i]; % brid- jsp:getProperty name="acct" property="ID"/ brname-jsp:getProperty name="acct" property="name"/ brpercentage- jsp:getProperty name="acct" property="percent"/ % } % Result (displayed in browser)(if I have 2 accounts in the array) - Length-2 0 0.0 0 0.0 I also tried using vectors, but I get the same result. Does anyone have any ideas? I have been stuck on this for a while now, and can't figure it out. Thanks so much, Enriqueta --- End of forwarded message --- _ GoSharks Email - Official Email of the San Jose Sharks Get your free GoSharks email account: http://www.sjsharks.com ifan Sports Fan Email - http://www.ifan.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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". 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
problem passing Array from Servlet to JSP (newbie question)
Hi, I'm trying to pass an Array from a Servlet to JSP. My problem is that all of the values that show up on the JSP are zero, but I get the correct length of the size of the Array. Here's what I have in the Servlet: - AccountBean[] aB = getAccounts(); req.setAttribute("accounts",aB); in the JSP: - jsp:useBean id="acct" class="AccountBean" scope="request"/ % AccountBean acctArray = (AccountBean[]) request.getAttribute("accounts"); % Length-% =acctArray.length% br % for (int i=0; i acctArray.length; i++) { acct = acctArray[i]; % brid- jsp:getProperty name="acct" property="ID"/ brname-jsp:getProperty name="acct" property="name"/ brpercentage- jsp:getProperty name="acct" property="percent"/ % } % Result (displayed in browser)(if I have 2 accounts in the array) - Length-2 0 0.0 0 0.0 I also tried using vectors, but I get the same result. Does anyone have any ideas? I have been stuck on this for a while now, and can't figure it out. Thanks so much, Enriqueta --- End of forwarded message --- _ GoSharks Email - Official Email of the San Jose Sharks Get your free GoSharks email account: http://www.sjsharks.com ifan Sports Fan Email - http://www.ifan.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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: urgent newbie question: literal characters to not display as HTML in output
Or you can replace the with "lt;" and the with "gt;" (without quotes). These are the codes so html will display the and characters instead of trying to interpret what is contained within. You can use PerlTools from ORO to do these types of search and replace easily. http://www.oroinc.com matt Date: Thu, 8 Jun 2000 17:55:52 -0700 From: David Edmister [EMAIL PROTECTED] Subject: urgent newbie question: literal characters to not display as HTML in output To: [EMAIL PROTECTED] i know there is a simple answer to this but i'm not sure how to do this in JSP...i want to suppress html and display the literal characters if the user inputs tag references in my input box...because when i display it, it'll come out as HTML diplayed (e.g., hr will show the HTML line on the display output)what's the JSP tag syntax to show the literal tag or text statement (e.g., i want to display hr if the user enters it) thanks in advance. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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 Matt Houser Senior Java Developer World Wide Software Development Sun Microsystems, Inc. 500 Eldorado Boulevard, UBRM02-264 Broomfield, CO 80021 [EMAIL PROTECTED] (303) 272-9747 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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: urgent newbie question: literal characters to not display as HTML in output
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 9 Jun 2000, Matthew Houser wrote: You can also use the view:escape tag I created expressly for this purpose. See http://cupid.suninternet.com/~joeo/View.html for more details. Or you can replace the with "lt;" and the with "gt;" (without quotes). These are the codes so html will display the and characters instead of trying to interpret what is contained within. You can use PerlTools from ORO to do these types of search and replace easily. http://www.oroinc.com matt Date: Thu, 8 Jun 2000 17:55:52 -0700 From: David Edmister [EMAIL PROTECTED] Subject: urgent newbie question: literal characters to not display as HTML in output To: [EMAIL PROTECTED] i know there is a simple answer to this but i'm not sure how to do this in JSP...i want to suppress html and display the literal characters if the user inputs tag references in my input box...because when i display it, it'll come out as HTML diplayed (e.g., hr will show the HTML line on the display output)what's the JSP tag syntax to show the literal tag or text statement (e.g., i want to display hr if the user enters it) thanks in advance. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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 Matt Houser Senior Java Developer World Wide Software Development Sun Microsystems, Inc. 500 Eldorado Boulevard, UBRM02-264 Broomfield, CO 80021 [EMAIL PROTECTED] (303) 272-9747 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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 - --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer -BEGIN PGP SIGNATURE- Version: PGP 6.5.1i iQA+AwUBOUEa4AhcVZKknQwGEQKxhQCfbov/gFUUo9Bh8kqLeWgGADVGdq4Al1I1 qc/8ccnYsbmzR7QRMOZTMrU= =rNfg -END PGP SIGNATURE- === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
urgent newbie question: literal characters to not display as HTML in output
i know there is a simple answer to this but i'm not sure how to do this in JSP...i want to suppress html and display the literal characters if the user inputs tag references in my input box...because when i display it, it'll come out as HTML diplayed (e.g., hr will show the HTML line on the display output)what's the JSP tag syntax to show the literal tag or text statement (e.g., i want to display hr if the user enters it) thanks in advance. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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: urgent newbie question: literal characters to not display as HTML in output
You could try enclosing the string in pre /pre tags before printing it. ax i know there is a simple answer to this but i'm not sure how to do this in JSP...i want to suppress html and display the literal characters if the user inputs tag references in my input box...because when i display it, it'll come out as HTML diplayed (e.g., hr will show the HTML line on the display output)what's the JSP tag syntax to show the literal tag or text statement (e.g., i want to display hr if the user enters it) === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
newbie question
I am doing the JSP front-end for a web application that requires different graphical layouts (big buttons for people with touch screens, small buttons for those will regular monitors, etc.). I just need to be pointed in the right direction as far as parking and calling the various graphics/layouts from the pages. Help! Many thanks in advance. Cece === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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
newbie question: how to run a new jsp page
Dear All, Newbie question: I just downloaded jswdk-1.0.1 and all the examples worked. I even modified some of the examples and they still work. However, when I tried to create a new jsp page (a duplication of the "num" directory to "test" with all the necessary modification, and compiled with no problem). But, then when I access the new jsp page, it gives me: Unhandled error! You might want to consider having an error page to report such errors more gracefully java.lang.NoClassDefFoundError: test/wo (wrong name: wo) I tried: * re-start the web server (stopserver; startserver) * change the ownership of the files * ... nothing works! Any hints? Thanks in advanced! --Wo === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". 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 NewBie Question
Try the following: Allaire Homesite Beta 4.51 (www.allaire.com) -This is a good HTML editor with JSP tag coloring support Pramati Studio (www.pramati.com) -This is an enterprise Java environment which support JSP creation and debugging. I've used the beta and it is really cool. Unfortunately, this company will likely charge $1000 for the product, pricing it well out of the range of your average independent Java/JSP developer. Bill [EMAIL PROTECTED] "Jaisingh, Amit (US -To: [EMAIL PROTECTED] Sacramento)" cc: ajaisingh@DTTUS.Subject: JSP NewBie Question COM Sent by: A mailing list about Java Server Pages specification and reference JSP-INTEREST@jav a.sun.com 01/31/2000 02:52 AM Please respond to "Jaisingh, Amit (US - Sacramento)" Hi, Can someone please tell me if there is an authoring tool for JSPs. This may sound very trivial but i'm very new to technology Thanks in Advance -Amit === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: JSP NewBie Question
Title: JSP NewBie Question I have downloaded and briefly tested Oracle JDeveloper today. While it looks ok and does seem to have some nice features for JSP development, it seems to lack one very basic and useful feature: syntax highlighting (at least for JSP pages). Is this true or am I simply missing something? -Mirko -Original Message-From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ashwath NarayanSent: Monday, January 31, 2000 5:05 AMTo: [EMAIL PROTECTED]Subject: Re: JSP NewBie Question Amit, Try Oracle JDeveloper or IBM Visual Age for Java. -ashwath Ashwath NarayanWisor TelecomTel: (+91-80) 552 5821/5822/5823Tel/Fax: (+91-80) 553 6538[EMAIL PROTECTED]www.wisor.com - Original Message - From: Jaisingh, Amit (US - Sacramento) To: [EMAIL PROTECTED] Sent: Monday, January 31, 2000 2:22 PM Subject: JSP NewBie Question Hi, Can someone please tell me if there is an authoring tool for JSPs. This may sound very trivial but i'm very new to technology Thanks in Advance -Amit
JSP NewBie Question
Title: JSP NewBie Question Hi, Can someone please tell me if there is an authoring tool for JSPs. This may sound very trivial but i'm very new to technology Thanks in Advance -Amit
Re: JSP NewBie Question
Title: JSP NewBie Question Amit, Try Oracle JDeveloper or IBM Visual Age for Java. -ashwath Ashwath NarayanWisor TelecomTel: (+91-80) 552 5821/5822/5823Tel/Fax: (+91-80) 553 6538[EMAIL PROTECTED]www.wisor.com - Original Message - From: Jaisingh, Amit (US - Sacramento) To: [EMAIL PROTECTED] Sent: Monday, January 31, 2000 2:22 PM Subject: JSP NewBie Question Hi, Can someone please tell me if there is an authoring tool for JSPs. This may sound very trivial but i'm very new to technology Thanks in Advance -Amit
Re: EJB newbie question
Here's a general server based question - it's not directly on topic( JSP), but it is certainly relevant from a JSP application deployment environment standpoint. For an application running on a JSP enabled webserver ( for example, java application server) running in a load balanced environment, how is application administration / configuration functionality for the application typically deployed? Assumption: The administration / configuration piece is web / browser based. Another assumption - this application is accessible from the public internet, and provides services to website visitors. How is the Configuration / administration piece best deployed on a load balanced environment - Having only one machine being responsible AND capable of doing administration and configuration, or having the admin/config being installed and runnable on each of the servers in the load balanced configuration. The tradeoff appears to be leveraging failover support of the application server or other specialized product providing that support versus keeping all the config data synchronized in case there was a failure (resynchronizing the config data on the machine that failed when it reinitialized (it might be stale). It feel like I'm missing a piece of the puzzle, and I thought I'd get some opinions here. Another question - what is the typical security checks put in place in that type of IT environment so that John or Jane Q. Public doesn't have access to running the administration component (running the URL of the admin/config component from the public internet - ie - if the admin component is on each of the load balanced machine, someone "finding" the URL to run the admin/config component - how is this usually secured from the public internet). Thanks for the input / response, Dave begin: vcard fn: David Hecksel n: Hecksel;David org:Axtive Software Corporation adr:3100 Mckinnon;;Suite 800;Dallas;Texas;75201;USA email;internet: [EMAIL PROTECTED] title: Chief Technology Officer tel;work: (214) 880-4820 tel;fax:(214) 880-4810 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version:2.1 end:vcard
Networking, authentication, and security newbie question
Hello there folks I was wondering what would be my best approach to performing secure authentication on an NT network through a jsp? Currently I am mirroring all accounts that exist on the domain controller in order to determine access levels and employee information (in a db). I was wondering if there was a way I could actually perform authentication through the primary domain controller (NT) which would either return a success or failure. I do not currently have direct access to run any applications on this domain controller though that could most likely be arranged if need be. I am basically looking for a secure method to perform authentication without having the overhead of keeping a mirror of all accounts on one of my db servers. Thanks for any ideas :) Jeff === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
EJB newbie question
Can a JSP directly access an EJB, or does it need to access an EJB through a bean that establishes the connection using jndi? Thanks! === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Another newbie question
winNT with JDK1.2.2 Went to the \demo\jfc\SwingSet\ and non of the applets run in the browsers or appletviewer. Is there a FAQ on this somewhere? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Newbie question about JSP loading delay
Hi, I'm working on a test application where the servlet do a "forward" to the JSP page. I've found that it took a long time to load up and display the JSP page on the FIRST run. I do kinda understand why it does that but wondering whether there is a way to "pre-load" the JSP page into the memory. Thank you, Woody Amornkul === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
newbie question
Hi folks, just starting out on JSP and have some initial questions: I already have PWS 4 running on my NT Workstation (complete with the Inetpub/wwwroot directory etc). From what i understand, i'll need a JSP engine (JavaWeb Server?) running on my machine too. Is the JavaWeb Server a web server itself or is it a server extension to an existing server (the name indicates the former but i'm not sure)? Is it possible to integrate it with PWS ie. can it share the same web root directory (Inetpub/wwwroot)? Or should i no longer use PWS and just use the JavaWeb server? But then what about the port numbers (since i will then have 2 web servers running)? .. *sigh* .. i'm a little confused.. Please help. Thanks. Anuj. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: newbie question
Note that if you use JWS as a web server, static content like HTM,GIF,etc are served up by a file servlet. This is fine for most dynamic sites, but if you have a large amount of static content as well, you may want to look at a servlet engine which sits on top of a standard web server to get better performance. Also note that last I heard, Sun had plans of dropping JWS. So you may want to look for an alternative. Work being done by Apache is worth a look as well. Frank -Original Message- From: Mike Engelhart [SMTP:[EMAIL PROTECTED]] Sent: Saturday, October 30, 1999 1:24 PM To: [EMAIL PROTECTED] Subject: Re: newbie question From what i understand, i'll need a JSP engine (JavaWeb Server?) running on my machine too. Is the JavaWeb Server a web server itself or is it a server extension to an existing server (the name indicates the former but i'm not sure)? Is it possible to integrate it with PWS ie. can it share the same web root directory (Inetpub/wwwroot)? Or should i no longer use PWS and just use the JavaWeb server? But then what about the port numbers (since i will then have 2 web servers running)? .. Java Web Server, as it's name implies is a "web server". It also supports JSP and servlets. You can download that and use it as your server and JSP engine. There are plug-in's though for PWS that support servlets/JSP. I believe ServletExec (http://www.newatlanta.com) and JRun (www.allaire.com/products/jrun/ ) support PWS but as I don't use Windows you'll need to contact them to find out specifics. As for running multiple web servers, this is very easy as almost every web server allows you to assign whatever port numbers you'd like. The documentation for your particular server probably clearly explains this. Also, there is an excellent FAQ posted at the bottom of every email to this list as well that will answer most of your initial questions. Mike Engelhart == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html *** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *** === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Newbie question; returning Resultset
You should use JSDK 2.1 instead of JSDK 2.0 Look into API docs for these methods n hi everyone, n I have written a servlet program,which creates a resultset, n and fwd to a jsp page which shall display the records. n The problem is that iam not able to compile the java program. n The source and error message is below .. n is there some other jar files that have to be included in class path... n any help would be greatly appreciated. n iam using jdk1.2. n rds, n naveen n * n import java.io.*; n import java.util.*; n import java.sql.*; n import javax.servlet.*; n import javax.servlet.http.*; n public class Resultsets extends HttpServlet { n Connection PubCon; n ResultSet PubRset=null; n Statement Pubstmt; n public String PubSql=""; n public String redata; n ResultSetMetaData PubRsetMdata; n public String strhtml; n public String surveyName; n public void doPost (HttpServletRequest req, HttpServletResponse res) nthrows ServletException, IOException n { n try n { n DbConnect(); n } n catch(Exception Exc) n { n strhtml += "Not able to connect to DB"; n } n req.setAttribute("rs",PubRset); n RequestDispatcher rd = n getServletContext().getRequestDispatcher("/jsp/myapp/results.jsp"); n rd.forward(req,res); n } n public void DbConnect() n { n try{ n Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); n Connection c = DriverManager.getConnection("jdbc:odbc:naveen","dba","sql"); n Statement st=c.createStatement(); n PubRset=st.executeQuery("Select Name,ID,Place,Dgn from employee"); n } n catch(Exception ex) n { n strhtml="wrong sql execution"; n } n } n } n *** n Error: n C:\JSDK2.0\examples\Resultsets.java:32: Method n setAttribute(java.lang.String, java.sql.ResultSet) not found in interface n javax.servlet.http.HttpServletRequest. n req.setAttribute("rs",PubRset); n C:\JSDK2.0\examples\Resultsets.java:33: Method n getRequestDispatcher(java.lang.String) not found in interface n javax.servlet.ServletContext. n RequestDispatcher rd = n getServletContext().getRequestDispatcher("/jsp/myapp/results.jsp"); n ^ Best regards, Artyom [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Newbie question; returning Resultset
hi everyone, I have written a servlet program,which creates a resultset, and fwd to a jsp page which shall display the records. The problem is that iam not able to compile the java program. The source and error message is below .. is there some other jar files that have to be included in class path... any help would be greatly appreciated. iam using jdk1.2. rds, naveen * import java.io.*; import java.util.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class Resultsets extends HttpServlet { Connection PubCon; ResultSet PubRset=null; Statement Pubstmt; public String PubSql=""; public String redata; ResultSetMetaData PubRsetMdata; public String strhtml; public String surveyName; public void doPost (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { DbConnect(); } catch(Exception Exc) { strhtml += "Not able to connect to DB"; } req.setAttribute("rs",PubRset); RequestDispatcher rd = getServletContext().getRequestDispatcher("/jsp/myapp/results.jsp"); rd.forward(req,res); } public void DbConnect() { try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection c = DriverManager.getConnection("jdbc:odbc:naveen","dba","sql"); Statement st=c.createStatement(); PubRset=st.executeQuery("Select Name,ID,Place,Dgn from employee"); } catch(Exception ex) { strhtml="wrong sql execution"; } } } *** Error: C:\JSDK2.0\examples\Resultsets.java:32: Method setAttribute(java.lang.String, java.sql.ResultSet) not found in interface javax.servlet.http.HttpServletRequest. req.setAttribute("rs",PubRset); C:\JSDK2.0\examples\Resultsets.java:33: Method getRequestDispatcher(java.lang.String) not found in interface javax.servlet.ServletContext. RequestDispatcher rd = getServletContext().getRequestDispatcher("/jsp/myapp/results.jsp"); ^ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Newbie Question
Hi folks, I am learning jsp to assess its usefulness in developing a new version of our product, and I am experiencing difficulties bridging the configuration gap. I'm currently running IIS and JRun. How can I set up the web server to recognize .jsp files and run them through the jsp engine? The browser tries to download the file. I apologize if these types of questions are in a FAQ, but I have had no luck in finding an answer. Any help would be greatly appreciated, Adam S. Vernon [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Newbie Question
Hi Adam, JRun should be able to run JSP by default. Try installing JRun using the webserver as its HTTP listener. It should install JRun as a plug-in to the web server. The JRun docs have a good intro although some of the examples use JSP 0.92 syntax. Hope this helps, Abraham -Original Message- From: adam vernon [SMTP:[EMAIL PROTECTED]] Sent: Friday, September 24, 1999 11:27 AM To: [EMAIL PROTECTED] Subject:Newbie Question Hi folks, I am learning jsp to assess its usefulness in developing a new version of our product, and I am experiencing difficulties bridging the configuration gap. I'm currently running IIS and JRun. How can I set up the web server to recognize .jsp files and run them through the jsp engine? The browser tries to download the file. I apologize if these types of questions are in a FAQ, but I have had no luck in finding an answer. Any help would be greatly appreciated, Adam S. Vernon [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Newbie Question : Reading/Writing from/to text files
Go to http://www.jsp-interest.com/ and see link on right side of page (How2 read a text file) Steve -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Jijith Sent: Saturday, September 04, 1999 2:57 AM To: [EMAIL PROTECTED] Subject: Newbie Question : Reading/Writing from/to text files hi can anybody tell me how to read/ write to a text file and print the content to the browser? - Jijith === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Newbie Question - some slightly more advanced thoughts
At my company we use a lot of our own classes, but so far, we have not found any need for beans. The fact is that using your own, or third party classes is as simple as setting the correct classpath. We read-share our root directory for classes, and all the JSE server as well as all the clients (development stations) include this classpath. This means that classes located in this directory tree ( in our case : /classes/is/ncd/* ) can be used in java programs on all the clients, AS WELL AS on the server. Using a class in a JSP page is as easy as: % is.ncd.MyPersonalClass.myStaticFunction( myVeryOwnArguments, etc ); % or % is.ncd.MyPersonalClass myInstance = new s.ncd.MyPersonalClass( constructorArgument ); myInstance.myNonStaticFunction( etc1, etc2 ); % ( import statements make the code much cleaner of course ) Magnus Torfason NCD - Original Message - From: Michael Fuhrman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 27, 1999 1:29 PM Subject: Re: Newbie Question Luc, Thanks for the example, ... but this is a class that already exists .. I mean, was created as part of Java. What I'm interested in is how it gain access to a class that I've created. Michael J. Fuhrman Reliable Business Computers http://www.creliable.com -Original Message- From: Luc Saint-Elie [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 26, 1999 5:47 PM To: [EMAIL PROTECTED] Subject: Re: Newbie Question Michael, Here is the way I use a class called DBconnection (a JDBC connection poll): %@ page language="java" import="java.sql.*,DBConnectionManager" % %! DBConnectionManager connMgr = DBConnectionManager.getInstance(); % html [...] % Connection con = connMgr.getConnection("idb"); if (con == null) { out.println("Can't get connection"); return; Le 17:25 26/08/99 -0400, Michael Fuhrman a écrit: I have a Java Class and would like to use it in a JSP file. How do I get the two linked? Please provide simple hello world example ++ | Luc Saint-Elie | | 75018 Paris France | | Tel: 1(212)894 3713 ext: 0012 | | email : [EMAIL PROTECTED]| ++ | Java Server Side Open Source technologies | | http://www.interpasnet.com/JSS | ++ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Newbie Question
Thanks for being patient .. Again, the questions being where do I place the HTML.class so that the JSP file can find and use it. I'm using JWS 1.1.3 under NT 4.0. I've loaded Java 1.1.8, MS JVM 3.2 build 3186. You might also wish to insure that I've got the syntax correct for the JSP file, shown below. The ClassPath is set to "C:\winnt\java\classes", and I've placed the HTML.class file In "c:\winnt\java\classes\reliable" However, I get the following error? Error getting compiled page D:\java\JWS1.1.3\bin\..\pagecompile\_tests\_helloworld2_xjsp.java:12: Package reliable not found in import. import reliable.*; ^ 1 error Michael J. Fuhrman Reliable Business Computers http://www.creliable.com java type=import java.util.* java.text.* reliable.* /java html head titleHellow World Date/title meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /head body bgcolor="#FF" java DateFormat df = DateFormat.getDateTimeInstance (); HTML htm = new HTML (); /java Hello World on java out.println (df.format (new Date ())); /java P java htm.Attrib_Bold ("Hello Michael"); /java /body /html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Newbie Question
Michael, Here is the way I use a class called DBconnection (a JDBC connection poll): %@ page language="java" import="java.sql.*,DBConnectionManager" % %! DBConnectionManager connMgr = DBConnectionManager.getInstance(); % html [...] % Connection con = connMgr.getConnection("idb"); if (con == null) { out.println("Can't get connection"); return; Le 17:25 26/08/99 -0400, Michael Fuhrman a écrit: I have a Java Class and would like to use it in a JSP file. How do I get the two linked? Please provide simple hello world example ++ | Luc Saint-Elie | | 75018 Paris France | | Tel: 1(212)894 3713 ext: 0012 | | email : [EMAIL PROTECTED]| ++ | Java Server Side Open Source technologies | | http://www.interpasnet.com/JSS | ++ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Getting starting - newbie question
I am just getting starting and want to know how to proceed. Sorry if this question is a little simple ... How do I get up and running with JSP on a Linux/Apache platform? Is there a module for Apache? 3rd party software? Any pointers would be most appreciated. Thanks in advance, Sisinio === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Newbie Question
Is it possible to get JSP and IIS to use the same port at the same time. I always get port in use errors when I use port 80 which is the port iis uses Regards Wendy === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
newbie question
Sorry to waste everyone's time, but I have a quick question. I've been using ASP (yeah, that microsoft stuff..) for about a year and am very comfortable with the entire model. I need to leard JSP and the whole bean interaction. What are some of the better resources (books/sites) that might be able to help my transition? Thank you VERY much, Josh [EMAIL PROTECTED] ___ Get Free Email and Do More On The Web. Visit http://www.msn.com === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
JSP1.0 newbie question
I've successfully gotten JSP1.0 to work with all of it's samples. Now I'm trying to create a new jsp page. I've created the simplest possible program (think "HelloWorld") and I cannot get it to work! Here is the source for "rtest.jsp": html body bgcolor="white" jsp:useBean id="ricky" scope="request" class="rtest.RicksClass" / font size=4 ul liThe property is: jsp:getProperty name="ricky" property="helloProp"/ /ul /font /body /html Here is the source for RicksClass.java: /* * Ricks Test applet for JSP */ package rtest; import java.util.*; public class RicksClass { String globalString; public RicksClass() { // the constructor globalString = "Hello World"; } public String helloProp() { return globalString; } } Now, the first problem I had was about where to put the java source file. All of the example sources are in install dir\examples\WEB-INF\jsp\beans\xxx, so I created a directory named rtest and put the source file there. When I first tried to run "rtest.jsp", I got an error about not finding the java source file. I tried putting a copy of it in the same directory as the .jsp file to no avail so I *manually* compiled it. Now, when I try to run "rtest.jsp", I get the following error in my browser window: com.sun.jsp.JspException: getProperty(ricky): can't find method to read helloProp at com.sun.jsp.compiler.GetPropertyGenerator.generate(Compiled Code) at com.sun.jsp.compiler.Jsp1_0ParseEventListener.generateAll(Compiled Code) at com.sun.jsp.compiler.Jsp1_0ParseEventListener.endPageProcessing(Jsp1_0ParseE ventListener.java:91) at com.sun.jsp.compiler.Main.compile(Main.java:193) at com.sun.jsp.runtime.JspLoader.loadJSP(Compiled Code) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compiled Code) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(Compiled Code) at com.sun.jsp.runtime.JspServlet.serviceJspFile(Compiled Code) at com.sun.jsp.runtime.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at com.sun.web.core.ServletWrapper.handleRequest(Compiled Code) at com.sun.web.core.Context.handleRequest(Compiled Code) at com.sun.web.server.ConnectionHandler.run(Compiled Code) I must be getting stupid in my old age! Any help at all would be *much* appreciated! Rick Schaeffer ([EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ) === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: JSP1.0 newbie question
On Wed, 12 May 1999, Schaeffer Rick wrote: public class RicksClass { String globalString; public RicksClass() { // the constructor globalString = "Hello World"; } public String helloProp() { This must be named "getHelloProp" to be recognized as a getter method. return globalString; } } com.sun.jsp.JspException: getProperty(ricky): can't find method to read helloProp I must be getting stupid in my old age! Any help at all would be *much* appreciated! John K Peterson -- IT Services Development -- Brigham Young University Internet: [EMAIL PROTECTED] Phone: (801) 378-5007 === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Newbie question (can't load JSP pages)
Hi there, Just getting started, but I can't seem to get JSP 1.0 working. Has anyone seen the following output when trying to load something like 'http://localhost:8080/xxx.jsp'? - Unhandled error! You might want to consider having an error page to report such errors more gracefully java.lang.NoClassDefFoundError: sun/tools/javac/Main at com.sun.jsp.compiler.Main.compile(Main.java:194) at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:114) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet. java:69) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:77) at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:125) at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:140) at com.sun.web.core.Context.handleRequest(Context.java:382) at com.sun.web.server.ConnectionHandler.run(Compiled Code) -- My best guess is that my classpath is wrong, but I've included JDK 1.2.1 and the JSP1.0 directories. Any assistance would be appreciated. Thanks. John Blackmore [EMAIL PROTECTED] === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: Newbie question: Installing JSP with JWS
Christopher Cobb wrote: I have made a little progress installing JSP with JWS, which is pretty amazing given the sparcity of installation instruction. There are no installation instructions for this because it won't work -- you are wasting your time. The JSP 0.92 reference release came with its own servlet runner, and a very early version of the servlet API that became the 2.1 specification. However, you have run into one of the incompatibilities. What was defined as javax.servlet.ResourceDispatcher in the classes included with JSP 0.92 became javax.servlet.RequestDispatcher in the 2.1 API. Neither class exists in the 2.0 servlet API, which is what I thought JWS was still using. If you want JSP capabilities according to the 0.92 specification, your choices are pretty limited: * Use the servlet runner that came with the reference implementation (that's what I am currently doing my JSP experiments with) * Use JRun 2.3, which advertises compatibility with JSP 0.92 * Use one of the free implementations that advertises 0.92 compatibility. There is a lot more support for the JSP 0.91 specification, but there's lots of changes and you might not want to do that. Craig McClanahan === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: Another newbie question
I read that. I tried the appletviewer from 1.2.2. Did not work! Anything that does not use the swingset works fine. "AndySoft" [EMAIL PROTECTED] 11/17/99 05:41PM winNT with JDK1.2.2 Went to the \demo\jfc\SwingSet\ and non of the applets run in the browsers or appletviewer. Is there a FAQ on this somewhere? umm, there is a readme.txt in that dir which says ---cut- RUNNING SWINGSET AS AN APPLET = JDK 1.2 -- In order to run the SwingSet applet supplied with JDK1.2, you will need to use a browser which supports 1.2 (such as the HotJava browser) or use the appletviewer supplied with JDK1.2. To do this use: appletviewer SwingSetApplet.html --cut-- AndySoft === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Another newbie question
For both IE (4 and above) and Netscape ( again 4 and above I believe ) their are "plugins" that you should get and deploy to run the JRE 1.2.2-001 (current Java Runtime Engine) applets that use new JDK 1.2 features, such as Swing pkgs. There is a related set of documentation that describes deploying this plugin along with the applet automagically to your users when they reference your page with both IE and Netscape browsers. IE uses it's ActiveX tech. for plugin, and Netscape uses (I believe) their plugin tech. Two different versions of the Applet object description for each browser, OBJECT for IE, and EMBED for Netscape, but there is a method to wrap both into one tag both browsers can deal with. Some features, such as drag and drop, have open issues in the browser security context, and some issues beyond that. There are workarounds, and you may need to code sign the JAR, but these are separate issues. -Original Message- From: Rick L Sample [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Thursday, November 18, 1999 8:01 AM Subject: Re: Another newbie question I read that. I tried the appletviewer from 1.2.2. Did not work! Anything that does not use the swingset works fine. "AndySoft" [EMAIL PROTECTED] 11/17/99 05:41PM winNT with JDK1.2.2 Went to the \demo\jfc\SwingSet\ and non of the applets run in the browsers or appletviewer. Is there a FAQ on this somewhere? umm, there is a readme.txt in that dir which says ---cut- RUNNING SWINGSET AS AN APPLET = JDK 1.2 -- In order to run the SwingSet applet supplied with JDK1.2, you will need to use a browser which supports 1.2 (such as the HotJava browser) or use the appletviewer supplied with JDK1.2. To do this use: appletviewer SwingSetApplet.html --cut-- AndySoft === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Another newbie question
Javasoft provides a JDK plugin for JDK 1.1 and JDK 1.2. Just search for "java plugin" on the Javasoft site. They also provide a tool that will convert the applet tags in your HTML file to plugin tags that are compatible with either NS, IE, or both. David - Original Message - From: Rick L Sample [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 18, 1999 8:01 AM Subject: Re: Another newbie question Dang it! I tried several of the applets that use Swing in IE5.x and none worked. I then tried the appletviewer on only a few with same results and stopped. (false assumtions made) I came in this a.m. to validate what I did. I _can_ run most of the swings in the appletviewer but not in IE5. I read somewhere about the IE5 VM not compatable with jdk1.2??? Is there a plugin or download that does support 1.2? Thanks! AndySoft [EMAIL PROTECTED] 11/17/99 05:41PM winNT with JDK1.2.2 Went to the \demo\jfc\SwingSet\ and non of the applets run in the browsers or appletviewer. Is there a FAQ on this somewhere? umm, there is a readme.txt in that dir which says ---cut- RUNNING SWINGSET AS AN APPLET = JDK 1.2 -- In order to run the SwingSet applet supplied with JDK1.2, you will need to use a browser which supports 1.2 (such as the HotJava browser) or use the appletviewer supplied with JDK1.2. To do this use: appletviewer SwingSetApplet.html --cut-- AndySoft === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Another newbie question
Got it! Thanks all for the help... David Chisholm [EMAIL PROTECTED] 11/18/99 08:37AM Javasoft provides a JDK plugin for JDK 1.1 and JDK 1.2. Just search for "java plugin" on the Javasoft site. They also provide a tool that will convert the applet tags in your HTML file to plugin tags that are compatible with either NS, IE, or both. David - Original Message - From: Rick L Sample [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 18, 1999 8:01 AM Subject: Re: Another newbie question Dang it! I tried several of the applets that use Swing in IE5.x and none worked. I then tried the appletviewer on only a few with same results and stopped. (false assumtions made) I came in this a.m. to validate what I did. I _can_ run most of the swings in the appletviewer but not in IE5. I read somewhere about the IE5 VM not compatable with jdk1.2??? Is there a plugin or download that does support 1.2? Thanks! AndySoft [EMAIL PROTECTED] 11/17/99 05:41PM winNT with JDK1.2.2 Went to the \demo\jfc\SwingSet\ and non of the applets run in the browsers or appletviewer. Is there a FAQ on this somewhere? umm, there is a readme.txt in that dir which says ---cut- RUNNING SWINGSET AS AN APPLET = JDK 1.2 -- In order to run the SwingSet applet supplied with JDK1.2, you will need to use a browser which supports 1.2 (such as the HotJava browser) or use the appletviewer supplied with JDK1.2. To do this use: appletviewer SwingSetApplet.html --cut-- AndySoft === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Fw: Re: Another newbie question
Hello all. As a Java Expert ;-) I thought I'd throw my thoughts in. Firstly - The demo\jfc\swingset samples : it appears Sun has missed something out in the SwingSetApplet.html file :-o. The line applet code=SwingSetApplet width=695 height=525 should read : applet code=SwingSetApplet width=695 height=525 ARCHIVE=SwingSet.jar If you follow Sun's advice about putting the SwingSet.jar file in the CLASSPATH, you could find youself developing solutions that don't work on your clients' machines. Secondly - Microsoft has no intention of supporting Java2 in IE and Netscape is currently even worse. The only way to use Java2 centric classes in the context of the browser is to use the plug-in. If you've been studying your JSP properly you'll find it has a tag that automatically generates the HTML code required to load the plug-in. The tag is : jsp:plugin Thirdly - You have to be careful which versions of the JDK you develop and test with as the name of the swing package was changed in 1.2. The old package was com.sun.java.swing and the new one is javax.swing. If you write a swing app in 1.1 it won't run in 1.2 without adjustment and the same the other way. ALSO if you have two copies of the JDK on your system, say 1.1.8 and 1.2.2 and the PATH variable points to the OLD appletviewer, trying to run a 1.2 applet with: AppletViewer myAppletPage.html won't work without adjustment. You can run both Swing packages together but the import statement would need to be fixed before deployment. If the intended audience will use the plug-in the import statement should be: import com.sun.java.swing.*; If the audience are going to use Swing1.0.1 the statement should be: import javax.swing.*; The easiest way to deploy the app for any audience is to bundle the swing package you use for development. OK? Any Questions? ;-) Barry Scott IJava UK === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Fw: Re: Another newbie question
Thanks! I got everything working smoothly now. One more question though. In the HTMLConverter "Options" it is pointing to http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0 for the pluging. I thought when we installed the JRE1.2.2 it installed the plugin? Any way to point to my local copy? Where? Thanks! Barry Scott [EMAIL PROTECTED] 11/18/99 10:11AM Hello all. As a Java Expert ;-) I thought I'd throw my thoughts in. Firstly - The demo\jfc\swingset samples : it appears Sun has missed something out in the SwingSetApplet.html file :-o. The line applet code=SwingSetApplet width=695 height=525 should read : applet code=SwingSetApplet width=695 height=525 ARCHIVE=SwingSet.jar If you follow Sun's advice about putting the SwingSet.jar file in the CLASSPATH, you could find youself developing solutions that don't work on your clients' machines. Secondly - Microsoft has no intention of supporting Java2 in IE and Netscape is currently even worse. The only way to use Java2 centric classes in the context of the browser is to use the plug-in. If you've been studying your JSP properly you'll find it has a tag that automatically generates the HTML code required to load the plug-in. The tag is : jsp:plugin Thirdly - You have to be careful which versions of the JDK you develop and test with as the name of the swing package was changed in 1.2. The old package was com.sun.java.swing and the new one is javax.swing. If you write a swing app in 1.1 it won't run in 1.2 without adjustment and the same the other way. ALSO if you have two copies of the JDK on your system, say 1.1.8 and 1.2.2 and the PATH variable points to the OLD appletviewer, trying to run a 1.2 applet with: AppletViewer myAppletPage.html won't work without adjustment. You can run both Swing packages together but the import statement would need to be fixed before deployment. If the intended audience will use the plug-in the import statement should be: import com.sun.java.swing.*; If the audience are going to use Swing1.0.1 the statement should be: import javax.swing.*; The easiest way to deploy the app for any audience is to bundle the swing package you use for development. OK? Any Questions? ;-) Barry Scott IJava UK === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Fw: Re: Another newbie question
:) :) :) :) . I guess the people at SUN do not take kindly to people proclaiming themselves as Java Experts:) Still it was entertaining though..:) Lightens up the afternoon work mood. Cheers, Amar.. "L-Soft list server at Sun Microsystems (1.8d)" [EMAIL PROTECTED] on 11/18/99 12:12:54 PM Please respond to "L-Soft list server at Sun Microsystems (1.8d)" [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Amarnath Nanduri/IT/VANCPOWER) Subject: Re: Fw: Re: Another newbie question -- From: Barry Scott[SMTP:[EMAIL PROTECTED]] Sent: Thursday, November 18, 1999 10:11:02 AM To: [EMAIL PROTECTED] Subject: Fw: Re: Another newbie question Auto forwarded by a Rule Hello all. As a Java Expert ;-) I thought I'd throw my thoughts in. Unknown command - "HELLO". Try HELP. Firstly - Unknown command - "FIRSTLY". Try HELP. The demo\jfc\swingset samples : it appears Sun has missed something out in Unknown command - "THE". Try HELP. the SwingSetApplet.html file :-o. Unknown command - "THE". Try HELP. The line You had 50 tries. From now on your requests will be ignored without any reply. You can restore your access to LISTSERV by having another person send the following command to [EMAIL PROTECTED]: SERVE [EMAIL PROTECTED] Unknown command - "THE". Try HELP. All subsequent commands have been flushed. Your message did not contain any command. Note that lines starting with a "greater than" sign ('') are ignored. Summary of resource utilization --- CPU time:0.000 sec Overhead CPU:0.010 sec CPU model: Ultra-4 (1024M) Job origin: [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Fw: Another newbie question
This reference is purely for users viewing your page from the web. If the plugin isn't available locally on the users machine it is downloaded automatically from this URL. As your plugin is available locally this URL is ignored when the page is loaded. It's not possible to change to URL to your local file for your users to download; Firstly, because you're not ( I think) licensed as a distributor of the plugin, secondly you would have to store it on a web server for web users to have access to it. I hope this helps. Barry Scott IJava UK - Original Message - From: Rick L Sample [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, November 18, 1999 7:32 PM Subject: Fw: Re: Another newbie question Thanks! I got everything working smoothly now. One more question though. In the HTMLConverter "Options" it is pointing to http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0, 0 for the pluging. I thought when we installed the JRE1.2.2 it installed the plugin? Any way to point to my local copy? Where? Thanks! Barry Scott [EMAIL PROTECTED] 11/18/99 10:11AM Hello all. As a Java Expert ;-) I thought I'd throw my thoughts in. Firstly - The demo\jfc\swingset samples : it appears Sun has missed something out in the SwingSetApplet.html file :-o. The line applet code=SwingSetApplet width=695 height=525 should read : applet code=SwingSetApplet width=695 height=525 ARCHIVE=SwingSet.jar If you follow Sun's advice about putting the SwingSet.jar file in the CLASSPATH, you could find youself developing solutions that don't work on your clients' machines. Secondly - Microsoft has no intention of supporting Java2 in IE and Netscape is currently even worse. The only way to use Java2 centric classes in the context of the browser is to use the plug-in. If you've been studying your JSP properly you'll find it has a tag that automatically generates the HTML code required to load the plug-in. The tag is : jsp:plugin Thirdly - You have to be careful which versions of the JDK you develop and test with as the name of the swing package was changed in 1.2. The old package was com.sun.java.swing and the new one is javax.swing. If you write a swing app in 1.1 it won't run in 1.2 without adjustment and the same the other way. ALSO if you have two copies of the JDK on your system, say 1.1.8 and 1.2.2 and the PATH variable points to the OLD appletviewer, trying to run a 1.2 applet with: AppletViewer myAppletPage.html won't work without adjustment. You can run both Swing packages together but the import statement would need to be fixed before deployment. If the intended audience will use the plug-in the import statement should be: import com.sun.java.swing.*; If the audience are going to use Swing1.0.1 the statement should be: import javax.swing.*; The easiest way to deploy the app for any audience is to bundle the swing package you use for development. OK? Any Questions? ;-) Barry Scott IJava UK === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Fw: Re: Another newbie question
-- From: Barry Scott[SMTP:[EMAIL PROTECTED]] Sent: Thursday, November 18, 1999 10:11:02 AM To: [EMAIL PROTECTED] Subject: Fw: Re: Another newbie question Auto forwarded by a Rule Hello all. As a Java Expert ;-) I thought I'd throw my thoughts in. Unknown command - "HELLO". Try HELP. Firstly - Unknown command - "FIRSTLY". Try HELP. The demo\jfc\swingset samples : it appears Sun has missed something out in Unknown command - "THE". Try HELP. the SwingSetApplet.html file :-o. Unknown command - "THE". Try HELP. The line You had 50 tries. From now on your requests will be ignored without any reply. You can restore your access to LISTSERV by having another person send the following command to [EMAIL PROTECTED]: SERVE [EMAIL PROTECTED] Unknown command - "THE". Try HELP. All subsequent commands have been flushed. Your message did not contain any command. Note that lines starting with a "greater than" sign ('') are ignored. Summary of resource utilization --- CPU time:0.000 sec Overhead CPU:0.010 sec CPU model: Ultra-4 (1024M) Job origin: [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
NewBie Question
To all... I understand that you can set the properties of a bean using the following: jsp:setProperty name="BeanName" property="propertyName" value="propertyValue" In every example I've seen in books, propertyValue has always been a string. Is it possible to pass another Java Object, like a Vector, to a bean via the jsp:setProperty tag Thanks in advance... -Mark === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Another newbie question
-- From: David Chisholm[SMTP:[EMAIL PROTECTED]] Sent: Thursday, November 18, 1999 8:37:16 AM To: [EMAIL PROTECTED] Subject: Re: Another newbie question Auto forwarded by a Rule Javasoft provides a JDK plugin for JDK 1.1 and JDK 1.2. Just search for Unknown command - "JAVASOFT". Try HELP. "java plugin" on the Javasoft site. They also provide a tool that will Unknown command - ""JAVA". Try HELP. convert the applet tags in your HTML file to plugin tags that are compatible Unknown command - "CONVERT". Try HELP. with either NS, IE, or both. Unknown command - "WITH". Try HELP. David Unknown command - "DAVID". Try HELP. - Original Message - Unknown command - "-". Try HELP. From: Rick L Sample [EMAIL PROTECTED] Unknown command - "FROM:". Try HELP. To: [EMAIL PROTECTED] Unknown command - "TO:". Try HELP. Sent: Thursday, November 18, 1999 8:01 AM Unknown command - "SENT:". Try HELP. Subject: Re: Another newbie question Unknown command - "SUBJECT:". Try HELP. All subsequent commands have been flushed. Your message did not contain any command. Note that lines starting with a "greater than" sign ('') are ignored. Summary of resource utilization --- CPU time:0.010 sec Overhead CPU:0.000 sec CPU model: Ultra-4 (1024M) Job origin: [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Another newbie question
-- From: Rick L Sample[SMTP:[EMAIL PROTECTED]] Sent: Thursday, November 18, 1999 9:50:36 AM To: [EMAIL PROTECTED] Subject: Re: Another newbie question Auto forwarded by a Rule Wow. This is painful! Unknown command - "WOW.". Try HELP. O.K. Unknown command - "O.K.". Try HELP. I downloaded the plug-in. Unknown command - "I". Try HELP. Installed the JRE 1.2.2 Unknown command - "INSTALLED". Try HELP. Extracted it to a sub-dir of jdk1.2.2 Unknown command - "EXTRACTED". Try HELP. Now, I go to the HTMLConverter folder and run "java HTMLConverter" Unknown command - "NOW,". Try HELP. I get an err: Unknown command - "I". Try HELP. Exception in thread "main" java.lang.NoClassDefFoundError: HTMLConverter Unknown command - "EXCEPTION". Try HELP. I have a path to \jdk1.2.2\bin Unknown command - "I". Try HELP. and no classpath. Unknown command - "AND". Try HELP. All subsequent commands have been flushed. Your message did not contain any command. Note that lines starting with a "greater than" sign ('') are ignored. Summary of resource utilization --- CPU time:0.010 sec Overhead CPU:0.000 sec CPU model: Ultra-4 (1024M) Job origin: [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Another newbie question
-- From: Rick L Sample[SMTP:[EMAIL PROTECTED]] Sent: Thursday, November 18, 1999 10:04:14 AM To: [EMAIL PROTECTED] Subject: Re: Another newbie question Auto forwarded by a Rule Got it! Unknown command - "GOT". Try HELP. Thanks all for the help... You're welcome! Javasoft provides a JDK plugin for JDK 1.1 and JDK 1.2. Just search for Unknown command - "JAVASOFT". Try HELP. "java plugin" on the Javasoft site. They also provide a tool that will Unknown command - ""JAVA". Try HELP. convert the applet tags in your HTML file to plugin tags that are compatible Unknown command - "CONVERT". Try HELP. with either NS, IE, or both. Unknown command - "WITH". Try HELP. David Unknown command - "DAVID". Try HELP. - Original Message - Unknown command - "-". Try HELP. From: Rick L Sample [EMAIL PROTECTED] Unknown command - "FROM:". Try HELP. To: [EMAIL PROTECTED] Unknown command - "TO:". Try HELP. Sent: Thursday, November 18, 1999 8:01 AM Unknown command - "SENT:". Try HELP. All subsequent commands have been flushed. Summary of resource utilization --- CPU time:0.000 sec Overhead CPU:0.000 sec CPU model: Ultra-4 (1024M) Job origin: [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: NewBie Question
Hi Mark, Nice question. You can try something like..when the user has posted data, call the same JSP page with some hidden value (setting a flag). The JSP page when it sees the flag, calls the request.getParameterValues("name"), then set your bean method (passing it this array). You can manipulate this array before calling the bean method. Cheers, Amar.. Mark Juliano [EMAIL PROTECTED] on 11/18/99 03:22:45 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Amarnath Nanduri/IT/VANCPOWER) Subject: NewBie Question To all... I understand that you can set the properties of a bean using the following: jsp:setProperty name="BeanName" property="propertyName" value="propertyValue" In every example I've seen in books, propertyValue has always been a string. Is it possible to pass another Java Object, like a Vector, to a bean via the jsp:setProperty tag Thanks in advance... -Mark === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: NewBie Question
Nice question Perhaps, but a meaningless subject line - again. Dan -- From: Nanduri Amarnath[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: Thursday, November 18, 1999 5:35 PM To: [EMAIL PROTECTED] Subject: Re: NewBie Question Hi Mark, Nice question. You can try something like..when the user has posted data, call the same JSP page with some hidden value (setting a flag). The JSP page when it sees the flag, calls the request.getParameterValues("name"), then set your bean method (passing it this array). You can manipulate this array before calling the bean method. Cheers, Amar.. Mark Juliano [EMAIL PROTECTED] on 11/18/99 03:22:45 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Amarnath Nanduri/IT/VANCPOWER) Subject: NewBie Question To all... I understand that you can set the properties of a bean using the following: jsp:setProperty name="BeanName" property="propertyName" value="propertyValue" In every example I've seen in books, propertyValue has always been a string. Is it possible to pass another Java Object, like a Vector, to a bean via the jsp:setProperty tag Thanks in advance... -Mark == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html