Re: getProperty
I am having the same problem. The getProperty tag is not working for some pages. However, pages within another project can use the getProperty tag perfectly. I think it has something to do with the configuration of the Web Application. I am running under Tomcat 3.1 -Greg Ball -Original Message- From: Kowaleski, Michael [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 15, 2000 4:58 PM To: [EMAIL PROTECTED] Subject: jsp:getProperty the jsp:getProperty tags are not returning the bean property values. here is a synopsis of my code: - my servlet creates an array of beans - using request.setAttribute(), it passes the bean array to my .jsp page - .jsp page contains the following code <% Bean[] contents = ( Bean[] )request.getAttribute( "attribute" ); for ( int count = 0; count < contents.length; count++ ) { content = contents[count]; %> <% } <% } %> ... for results, i see the table that's built, and the cells, but no values. if i replace the getProperty tags w/ the explicit methods, i.e. content.getSubject(), it works. in addition, if i use the getProperty tag and return a static string in my bean, the static string displays, but not the bean property. for example, public String getSubject( ) { return this.subject + "hello there"; } using the getProperty tag, this would return hello there. this design follows the examples found in the web development with javaserver pages book by fields & kolb. any help would be appreciated... === 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
Re: How to limit charecters
hi using java in your jsp page means use substring, or other wise try string Tokenizer. subu Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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: JDBC - recordcount
use count * method of sql Neal Cabage wrote: > Does anyone know how to return a recordCount when using JDBC? For instnace, > in ADO (Microsoft world) recordCount is simply a property of the recordSet > object. Is there something that provides a similar functionality? I need > that value *prior* to moving through the records so simply incrementing a > value is not an option. > > Also, can anyone recommend a driver (and/or method) for accessing a > Microsoft DB such as SQL server, that does not require the JDBC:ODBC bridge? > > Thanks. > Neal > > === > 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
How to limit charecters
Hi all I am using JSP Pages in that some textfields i want to limit the characters this how to do should i use for this JavaScript. if possible give me some example. Thanks in advance. -Suresh === 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
servlet mapping to a *.jsp file in Tomcat 3.1
servlet mapping to a *.jsp file doesn't seem to work, if the url-pattern if the web.xml is in the form /anypath/* (tomcat runs into a 404 Error) The problem seems to be fixed in Tomcat 3.2 beta, but I can't use 3.2 beta due to other bugs in it. Has anyone an Idea for a workarround / fix in 3.1, e.g. which classes to pick from the 3.2 beta and to replace them in .31 Thanks === 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
calling J2EE Reference Implementation from Tomcat
I have Tomcat 3.1 and the J2EE Reference Implementation installed. With Tomcat 3.1 I have no problems calling EJBs in the J2EE Reference Implementation. When I do the same with Tomcat 3.2 Beta, I run into a Narrowing Error (Class Cast Exception) For both, 3.1. and 3.2 Beta I placed the client jar-file into the WEB-INF/lib Directory of my context. So I think tomcat should be able to locate the rmi client stubs. any Ideas ? === 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: Tomcat Errors
you can handle errors in tomcat by this way defining them in your web.xml. 404 /your_servlet_here Murali. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of ralhan Sent: Wednesday, August 16, 2000 9:48 AM To: [EMAIL PROTECTED] Subject: Tomcat Errors hi, i can handle the errors in jsp page with isErrorPage. but not for jsp which are include by include tag. if error occur in that.that error is not handled in this jsp. what are the ways for handling this. also can in tomcat i can handle servlet/jsp errors like ( 500 , 404 & others ) using some directive like ErrorDocument in apache. i am using apache with tomcat on linux 6.2 Regards ralhan === 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
Re: Uploading Image using JSP
Hi Yogesh Chawla Check the MultipartRequest at http://www.servlets.com/resources/com.oreilly.servlet/index.html That's some classes from O'Reilly. Regards Lynch Wu === 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
hi
Hi Guys I am new to this JSP-Interest !!! I just joined office after one day leave to find that my mail box was pregnant with some 200 mails...Is there any way to reduce the number of incoming mails .At the same time I dont want to loose the info about JSP !!! Regds Gokul !!! > -Original Message- > From: workme [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, August 15, 2000 12:37 AM > To: [EMAIL PROTECTED] > Subject: Re: JSP with Visual Age for Java > > your version of VAJ is running pre-1.0 jsp; either .91 or .92. don't > remember which is which with regard to VAJ. any jsp book or > jason hunter's servlet book shows pre-1.0 syntax. don't bank on > it; jsp containers, that i've seen, don't support more than version. > tomcat is 1.0 compliant. > > robert young > > - Original Message - > From: Maciej Tylczyński <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, August 14, 2000 11:07 AM > Subject: JSP with Visual Age for Java > > > > Hi all > > > > I just started to use VAJ with jsp and it looks like VAJ uses different > kind > > of jsp syntax. For example instead of . > > Where can I find some syntax explanation ? > > > > Thanks > > > > > == > = > > 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 > This electronic communication and any accompanying document is being transmitted over the Indian Oil Network and contains confidential information that is for the exclusive use of the individual or entity to which it is addressed and is protected against unauthorised disclosure. If the reader of this message is not the intended receipient or the employee or agent responsible to deliver to the intended receipient, or is not intended to act on it, be aware that any disclosure, dissemination, distribution or copying of this communication, or the use of its contents is prohibited and is likely to be attended by legal consequences. If you have received this communication in error and/or are not the intended receipient, please immediately notify the undersigned or Indian Oil Corporation Ltd. at the telephone or the fax number or email address given above and permanently delete the original message from your email system. === 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
JDBC - recordcount
Does anyone know how to return a recordCount when using JDBC? For instnace, in ADO (Microsoft world) recordCount is simply a property of the recordSet object. Is there something that provides a similar functionality? I need that value *prior* to moving through the records so simply incrementing a value is not an option. Also, can anyone recommend a driver (and/or method) for accessing a Microsoft DB such as SQL server, that does not require the JDBC:ODBC bridge? Thanks. Neal === 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
Tomcat Errors
hi, i can handle the errors in jsp page with isErrorPage. but not for jsp which are include by include tag. if error occur in that.that error is not handled in this jsp. what are the ways for handling this. also can in tomcat i can handle servlet/jsp errors like ( 500 , 404 & others ) using some directive like ErrorDocument in apache. i am using apache with tomcat on linux 6.2 Regards ralhan === 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
setting the file name for HTML downloads
I have a file that I'd like to return from my web server, but the name of the file on the web server is not the same name I'd like it to "download" as (like the default name that appears in the Save As when the file download dialog displays). For example, the real file name may be something like /usr/local/apache/uploaded/u100 which was originally called something like foo.doc when it was uploaded. The file was renamed in order to allow multiple foo.doc files to be uploaded by many people without there being any conflict in file names (or even multiple uploads from the same person, but each one is unique). I have a Java servlet that can set the content-type and then writes the u100 file to the output stream, but the file is called "u100" by default. I'd like the user to see by default the original name (foo.doc). I have this info in my database, but I'm not sure how to set the "file name" of the downloaded file. Is there something in the HTTP headers or the like that I can set like the content-type attribute is used to say whether it's text/html, text/plain, application/msword, etc.? Thanks, David === 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
Uploading Image using JSP
Hi All, Could you pls. provide me with a solution to Upload an Image using JSP? Thanks in advance. Regards, Yogesh Chawla === 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
Tomcat 3.2 beta release - built-in authentication won't work with Apache serving
Has anyone installed this release and tested the new built-in security features ? Everything works fine on port 8080 with Jakarta serving the pages and servlets; however, with Apache, it's a no-go.. === 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-Beans-Servlets
Use request.setAttribute("name",newattributevalue); In the back end servlet use request.getAttribute("name") krishnan -Original Message- From: Manju [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, August 15, 2000 7:30 PM To: [EMAIL PROTECTED] Subject:JSP-Beans-Servlets Hi I am fairly new to JSP and servlets and am facing the following problem My JSP page uses a Bean. The form elements in the html page reflect the bean attributes. On submitting the form, the bean attributes hold the values as entered by the user in the form. Now i populate values for the other attributes. Now this information should be sent to the backend servlet. How can i send this information to the servlet? Thanx === 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
Re: JSP 1.0 and 1.1
go to www.javasoft.com, click on Products & APIs, and select Java Server Pages. There you will find info on JSP and the various differences. Specifically get the PDF (or PostScript) downloads of the JSP 1.1 spec and I think it lists the differences. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Patrick Buchanan > Sent: Tuesday, August 15, 2000 12:00 PM > To: [EMAIL PROTECTED] > Subject: JSP 1.0 and 1.1 > > > What are the big differences between these two specs? Can anyone > point me to > the right direction to find out? Do you know of some > differences? Any help > would be appreciated. > > Thanks, > > pat > > > > > > > > > > "This may contain information that is confidential or privileged. > If you are not > the addressee indicated in this message (or responsible for > delivery of this > message to such person), you should not copy or deliver this message to > anyone or make any other use of the information set forth herein. In such > case, you should destroy this message and notify the sender by telephone > or e-mail." > > == > = > 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
Re: what happened to allaire?
I don't know, how bout http://www.allaire.com/ ? >From: Calixto Melean <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: what happened to allaire? >Date: Tue, 15 Aug 2000 16:30:04 -0400 > >did it go out of business or what? website is gone > >=== >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 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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: bit off topic - HELP on books
I've been reading Professional JSP (May 2000), covering Servlets 2.2, JSP 1.1, Beans, Tag Extensions, XML, etc. It started off rather lightly, but got going very nicely by chapter 5. The treatment of JDBC and connection pooling was insightful, and the tag library information seems excellent. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Daryani Santosh Sent: Monday, August 14, 2000 12:47 PM To: [EMAIL PROTECTED] Subject: Re: bit off topic - HELP on books Servlets - Java Servlet Programming by jason Hunter O'Reilley publication Servlets - Professional java Server Programming Wrox Publication Servlets and JSPs - Core Servlets and Java Server Pages - check fatbrain.com they have a very special offer for this book JSP - Professional JSP by Wrox Publication JSP - Java Server Pages - by Fields and Kolb - recommended by a lot of developers EJB - Mastering EJB by Wiley Publication - does not have lot of code examples but good overview of the concept. Don't know any for Weblogic and Websphere Santosh Abudhahir A <[EMAIL PROTECTED]> on 08/14/2000 03:05:51 PM Please respond to A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc:(bcc: Santosh Daryani/IT/Aon Consulting) Subject: bit off topic - HELP on books hi guys there I want to equip as you guys are can any body suggest good book on 1. Web Sphere 2. Web Logic 3. EJB 4. Servlets & JSP Thanks for your time and guidance abudhahir === 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 === 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: JDBC-ODBC and NULL
using NT, SQL Server 7, and JDK1.3, getString on a null valued varchar field evaluated successfully. import java.sql.*; public class SqlThis { public static void main(String args[]) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:test"); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT test2, test3 FROM test"); while (rs.next()) { String value = rs.getString("test3"); System.out.println(rs.getRow()+": "+value); } } catch (Exception e) {e.printStackTrace();} } } -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus Walter Sent: Monday, August 14, 2000 7:30 AM To: [EMAIL PROTECTED] Subject: SV: JDBC-ODBC and NULL Change the SQL statement, configure the table to use default values, use some JavaScript to check the form values before submitting (app design problem) will all FIX the problem BUT ! Can I check/handle NULL values in a recordset using JAVA (JDBC-ODBC) ? Example: I have a .jsp page for list all messages from table: tbl_msg (name varchar(50),title varchar(100),msg text). Column msg may include null values. If I found a null value in the msg column I will show nothing or do some spec. action like include another .jsp page ... Enviroment: Wint NT, MS SQL Server 7.0, Tomcat 3.1 ... So is it possible to check for null values in java, or handle null values before the error ? I'm very gratefull for all help ! /Mange > -Ursprungligt meddelande- > Från: Selvamani Jayakumar [SMTP:[EMAIL PROTECTED]] > Skickat: den 14 augusti 2000 20:52 > Till: [EMAIL PROTECTED] > Ämne: Re: JDBC-ODBC and NULL > > hi > > you can change the SQL statement to avoid null. Check the fields > which will be null and replace with space. You can use > the NVL funct in Oracle and ISNULL funct in SQL Serv. > By this way you can avoid null values before getString. > It doesnt chnge your database values too. > > > > > > >From: Magnus Walter <[EMAIL PROTECTED]> > >Reply-To: A mailing list about Java Server Pages specification and > > reference <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: JDBC-ODBC and NULL > >Date: Mon, 14 Aug 2000 13:58:51 +0200 > > > >Hi, > >need help with JDBC-ODBC and NULL values ? > > > >When I use getString and the value is null I got a ugly ERROR ! Is it > >possible to check for NULL values before i use getString ? > >(getString will give me the error so the method wasNull() dont help) > > > >Please help ! > >( I dont want to change the database and its null values) > > > >/Mange > > > >= > == > >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 > > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 === 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
url rewriting for sessions
Questions about URL Rewriting: what exactly is this and how is it done? what does the server do, and what is programmed? i've read that sessions tied to cookies can fail due to client side settings. url-rewriting was indicated as the workaround. do you build an adapted url or is it automated by some setting? does the client app pass its session id with every request, via some header? finally, what are the limitations of url-rewriting... that is, what are the failure modes (e.g. user clicks back button?) === 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: what happened to allaire?
Where did you get the information that allaire website is gone ? It's there , as of 8/15/2000 4:45:32 PM EST , I verified before sending this mail, you must have hit an older hyperlink that points to some incorrect path , maybe ? Santosh. Calixto Melean <[EMAIL PROTECTED]> on 08/15/2000 04:30:04 PM Please respond to A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc:(bcc: Santosh Daryani/IT/Aon Consulting) Subject: what happened to allaire? did it go out of business or what? website is gone === 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
what happened to allaire?
did it go out of business or what? website is gone === 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: JDBC - access order of fields
The Java 2 SE v.1.3 says this of the ResultSet interface: "For maximum portability, result set columns within each row should be read in left-to-right order, and each column should be read only once." This would indicate some drivers (in this case, JDBC-ODBC) do not support bi-directional column navigation. What would be the workaround for this? I saw copying result values into an array for further processing, but this is an unhappy extra step. Would a third party driver for SQL Server impose the same restrictions? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Flemming Seerup Sent: Tuesday, August 15, 2000 1:50 AM To: [EMAIL PROTECTED] Subject: Re: JDBC - access order of fields hi Neal The "feature" you experience is in fact a well known bug in Suns JDBC-ODBC bridge. You HAVE to access fields in the order you specify them in your select statement! If possible I would recommand that you switch to a native JDBC driver for your specific database. (This way you will also gain the features in a JDCB 2.0 driver) /Flemming - Original Message - From: "Neal Cabage" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 15, 2000 7:24 AM Subject: JDBC - access order of fields > When acessing information from my SQLserver DB using JDBC, I noticed that I > must access the fields sequentially as they're defined in the DB. This is > very odd to me. > > For instance, if the fields are sequentially defined as ID, NAME, and DATE > when defining the DB, then later when I attempt to access the dB I must > access that data in that order. If I first access Date and *then* attempt to > access NAME for instance, I will get an error. > > Provided the code below - can anyone tell me what I need to do to allow > dynamic column surfing? This reminds me of a behavior that one would affect > when setting a cursor type in dealing with rows ... surely there must be a > similar something for columns (?). > > Thanks. > Neal > > > > Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); file://DB DRIVER > > String pUri= "jdbc:odbc:ICXX_LA"; file://DSN DEFINITION > String pUid= "XX"; file://UID > String pPwd= "XX"; file://PWD > String pSql= "select * from tbl_qa_errors"; file://SQL > > Connection cn = DriverManager.getConnection(pUri,pUid,pPwd); > file://Connection obj > Statement st = cn.createStatement(); file://Statement Obj > ResultSet rs = st.executeQuery(pSql); file://RecordSet Obj > > === > 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 _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.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
Re: JSP 1.0 and 1.1
Patrick, the main difference is the presence of taglibs in 1.1. You can find more info about taglib at these URLs: * Tutorials: http://www.findtutorials.com/list.asp?category=802 * Jakarta taglib: http://jakarta.apache.org/taglibs/index.html * JRun taglib: http://www.allaire.com/handlers/index.cfm?ID=15990&Method=Full * Tag-Site: http://jsptags.com/tags/ * JCP for a Standard Tag Library: http://java.sun.com/aboutJava/communityprocess/jsr/jsr_052_jsptaglib.html * Sun: http://www.javasoft.com/products/jsp/taglibraries.html -hendrik - - - - - - - - - - - - - - - - - - - - - - - - - - - tagtraum industries http://www.tagtraum.com/ jo! small&smart 2.2 servletengine Java Server & Servlets The web-application book The WebApp Frameworkhttp://www.webapp.de/ Patrick Buchanan wrote: > What are the big differences between these two specs? Can anyone point me to > the right direction to find out? Do you know of some differences? Any help > would be appreciated. > > Thanks, > > pat > > "This may contain information that is confidential or privileged. If you are not > the addressee indicated in this message (or responsible for delivery of this > message to such person), you should not copy or deliver this message to > anyone or make any other use of the information set forth herein. In such > case, you should destroy this message and notify the sender by telephone > or e-mail." > > === > 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
Re: JRun 3.0 and utilizing J2EE jrun custom tags
No, there is nothing like that in the Servlet Spec 2.2. -hendrik - - - - - - - - - - - - - - - - - - - - - - - - - - - tagtraum industries http://www.tagtraum.com/ jo! small&smart 2.2 servletengine Java Server & Servlets The web-application book The WebApp Frameworkhttp://www.webapp.de/ Robert Nicholson wrote: > Don't all 2.2 compliant servlet engines have to offer JavaMail? > > > -Original Message- > > From: A mailing list about Java Server Pages specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of Gabriel J Zimmerman > > Sent: Tuesday, August 15, 2000 10:12 AM > > To: [EMAIL PROTECTED] > > Subject: JRun 3.0 and utilizing J2EE jrun custom tags > > > > > > I am currently running JRun 3.0 Professional Edition (as opposed to the > > Enterprise Edition which is an EJB Server as well) > > > > The JRun custom tag "SendMail" uses the JavaMail API. > > > > My question is would I need to upgrade to the Enterprise Edition to get > > this SendMail tag to work or would it simply work by installing J2EE on > > my server? > > > > It seemingly won't work with just the regular JDK > > > > (posted on allaire newsgroup with no response yet) > > > > Thanks for all the help you can give. > > > > Gabe > > > > == > > = > > 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 === 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
JSP 1.0 and 1.1
What are the big differences between these two specs? Can anyone point me to the right direction to find out? Do you know of some differences? Any help would be appreciated. Thanks, pat "This may contain information that is confidential or privileged. If you are not the addressee indicated in this message (or responsible for delivery of this message to such person), you should not copy or deliver this message to anyone or make any other use of the information set forth herein. In such case, you should destroy this message and notify the sender by telephone or e-mail." === 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: Need and urgent help if possible
Hamid, You can do this but it a little painful. Use textArea.getGraphics() to get the Graphics and instead of doing a setText() use g.drawString(). With the Graphics object at your disposal you can change font properties. hope this helps. R -Original Message- From: Gary Fidler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 15, 2000 7:30 AM To: [EMAIL PROTECTED] Subject: Re: Need and urgent help if possible Hamid, I'm afraid you're out of luck. What you ask is difficult in Swing and impossible using AWT components. Gary -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of hamid Sent: Tuesday, August 15, 2000 1:23 AM To: [EMAIL PROTECTED] Subject: Re: Need and urgent help if possible Hi fellows, I am developing a client Server Application(Chat client). The problem is : i am using Text Area in Applet for displaying chating. Now i want to display different lines of text with different colors and fonts. i am using only AWT classes. Can anyone help me in displaying different lines of text with different colors in TEXT AREA using AWT. Anyones help will be highly appreciated. Thanx in advance. Hamid Hassan === 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 === 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: Text Files
I'm doing something like that with a file I have open now. You could do this in the actual jsp page where the form is submitted to or you could have this in a java bean. In this case I have a vector that stores PhoneInfo objects and i read the data from there. I posted what I think you want after the top example. try { File f = new File("some full path to your file.txt"); BufferedWriter bw = new BufferedWriter(new FileWriter( f.getPath(), false )); Iterator iter = information.iterator(); while( iter.hasNext() ) { pi = (PhoneInfo)iter.next(); bw.write(pi.getFirstName()+"\t"+pi.getLastName()+"\t"+pi.getNumberOne( )+"\t"+pi.getOther()+"\t"+pi.getEmail()+"\n"); } bw.close(); } catch(IOException e) { System.out.print("Error writing file "+e ); } Yours might look something like this... try { File f = new File("some full path to your file.txt"); BufferedWriter bw = new BufferedWriter(new FileWriter( f.getPath(), false )); bw.write( request.getParameter("firstName")+"\t"+request.getParameter("lastName" ) +"\t"+ etc etc); bw.close(); } catch(IOException e) { System.out.print("Error writing file "+e ); } On 15 Aug 2000, at 13:48, Philip Moschovas wrote: > I have been working with ASP and I am new to JSP. I've used the > filesystemobject in VBscript to create files, write to files etc. I > was wondering if there is a way with JSP to use the contents of a > submitted form and write them to a text file. > > Thanks in Advance, > Philip > > == > = 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
Re: JRun 3.0 and utilizing J2EE jrun custom tags
Don't all 2.2 compliant servlet engines have to offer JavaMail? > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Gabriel J Zimmerman > Sent: Tuesday, August 15, 2000 10:12 AM > To: [EMAIL PROTECTED] > Subject: JRun 3.0 and utilizing J2EE jrun custom tags > > > I am currently running JRun 3.0 Professional Edition (as opposed to the > Enterprise Edition which is an EJB Server as well) > > The JRun custom tag "SendMail" uses the JavaMail API. > > My question is would I need to upgrade to the Enterprise Edition to get > this SendMail tag to work or would it simply work by installing J2EE on > my server? > > It seemingly won't work with just the regular JDK > > (posted on allaire newsgroup with no response yet) > > Thanks for all the help you can give. > > Gabe > > == > = > 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
should beans store a reference to their context?
I've got an idea for storing various data and objects required by an application, not in the ServletContext or HttpSession itself (via setAttribute and getAttribute), but in a bean that can manage them. This will simplify the jsp code and also prevent runtime exceptions when retrieving objects from the context. One question I have, though, is: should these objects be allowed to store a reference to their context? For example, I can see where a session-scoped bean would like to have a reference to the HttpSession, so that it can refer to other session-scoped objects and data, or even application-scoped objects and data. If it implements HttpSessionBindingListener and uses the valueUnbound() method to release its reference to the HttpSession that created it, is there any danger in this? -- Jeff Sahol [EMAIL PROTECTED] === 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
Text Files
I have been working with ASP and I am new to JSP. I've used the filesystemobject in VBscript to create files, write to files etc. I was wondering if there is a way with JSP to use the contents of a submitted form and write them to a text file. Thanks in Advance, Philip === 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
JSP 1.1/Servlet 2.2 spec comments
Hi all, I sent this to Sun, thought it might be of interest to the community... I am using Tomcat 3.1 for a server side project. I have a problem in that I want to set headers, cookies specifically, from within an included servlet, using the mechanism. I see from the JSP 1.1 and Servlet 2.2 specs that this practice is prohibited, and attempts to use it are ignored. Thus Tomcat is adhering to the specs in this case. My question is "why is header manipulation within included servlets/JSP forbidden. Neither spec gives any insight to the reasons for this behaviour. Stuart Maclean -- Stuart Maclean, Research Associate University of Washington ITS Research Program, College of Engineering Box 352500 Seattle, WA 98195-2500 Tel: (206) 543-0637 http://www.its.washington.edu === 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: JRun 3.0 and utilizing J2EE jrun custom tags
Just an idea - install the javamail package from Sun and try again. -hendrik Gabriel J Zimmerman wrote: > I am currently running JRun 3.0 Professional Edition (as opposed to the > Enterprise Edition which is an EJB Server as well) > > The JRun custom tag "SendMail" uses the JavaMail API. > > My question is would I need to upgrade to the Enterprise Edition to get > this SendMail tag to work or would it simply work by installing J2EE on > my server? > > It seemingly won't work with just the regular JDK > > (posted on allaire newsgroup with no response yet) > > Thanks for all the help you can give. > > Gabe > > === > 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 -- - - - - - - - - - - - - - - - - - - - - - - - - - - - tagtraum industries http://www.tagtraum.com/ jo! small&smart 2.2 servletengine Java Server & Servlets The web-application book The WebApp Frameworkhttp://www.webapp.de/ === 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
JRun 3.0 and utilizing J2EE jrun custom tags
I am currently running JRun 3.0 Professional Edition (as opposed to the Enterprise Edition which is an EJB Server as well) The JRun custom tag "SendMail" uses the JavaMail API. My question is would I need to upgrade to the Enterprise Edition to get this SendMail tag to work or would it simply work by installing J2EE on my server? It seemingly won't work with just the regular JDK (posted on allaire newsgroup with no response yet) Thanks for all the help you can give. Gabe === 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
OffTopic.....StarOffcie..
Hi , I want to know is anyone is using StarOffice API to create a word/excel from a java program. I am trying to execute SWriter.java sample program that are downloaded as part of staroffcie_sdk. I am getting the following error while trying to open a socket connection to the startOffice. getting MultiServiceFactory Couldn't get MSFcom.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refused: no further information Opening an empty Writer document Exception java.lang.NullPointerException: In the program it is trying to open a socket connection at port 8100. I am suspecting some thing is not set properly. // create connection(s) and get multiservicefactory //the connection string to connect the office connectStr = "socket, host=localhost,port=8100"; // create connection(s) and get multiservicefactory System.out.println( "getting MultiServiceFactory" ); try { xMSF = connect( connectStr ); } catch( Exception Ex ) { System.out.println( "Couldn't get MSF"+ Ex ); } If anyone has experience with StarOffice API , could you please tell me what do I need to do to fix this problem and where do I get good reference documentation on this? Any help would be appreciated.. Tx Goli. === 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-Beans-Servlets
Thanx The backenbd servlet is on a different web server..I need to invoke the servlet from the existing JSP/Javabeans code Help Please~ > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Naresh Thawani > Sent: Tuesday, August 15, 2000 9:39 AM > To: [EMAIL PROTECTED] > Subject: Re: JSP-Beans-Servlets > > > Use set and get to restore session values and resubmit > > -Original Message- > From: Manju [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 15, 2000 9:00 AM > To: [EMAIL PROTECTED] > Subject: JSP-Beans-Servlets > Importance: High > > > Hi > I am fairly new to JSP and servlets and am facing the following problem > My JSP page uses a Bean. The form elements in the html page > reflect the bean > attributes. On submitting the form, the bean attributes hold the values as > entered by the user in the form. > Now i populate values for the other attributes. Now this > information should > be sent to the backend servlet. > How can i send this information to the servlet? > Thanx > > == > = > 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 > === 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: session/request question?
Hendrik, I'm not sure exactly where you mean. The flow of the pages goes like this... Display page ( text bean has scope 'session') | if on display page user clicks "add"..goes to this "Add Form" ( scope sill session) | process info ( here i currently have scope session and is what my question was about. I wanted to use request, but then the session is not updated when I leave this page and go back to the original display page). | back to original display page with new info added ( bean scope session ) So in regards to your comments, I'm not sure where you mean I also need to add "request" to the scope since the other pages all have session scope. Sorry if I'm not too clear with this:) Feel free to ask me more questions. Thanks, Rick On 15 Aug 2000, at 15:37, Hendrik Schreiber wrote: > Hi! > > Have you tried using include instead of forward()? > Do you have this: > > > > > in the included/forwarded page, too? That of course should be the > case. > > -hendrik > > Rick Reumann wrote: > > > I was wondering if it is possible to give a bean scope both > > "session" and "request"? I have a page called process.jsp which is > > called after the submission of a form. In this page I would like to > > be able to use the jsp shortcuts of getting the parameters by (this > > example:).. > > > > text.addLine( text.getText(), text.getFirstName(), > > text.getLastName(), text.getNumberOne(), text.getOther(), > > text.getEmail() ); > > > > This works fine but the problem is when the method addLine in the > > bean is called (which updates a vector stored in the bean) the bean > > no longer holds the value of the updated vector when I go to the > > forwarded page. If I switch the bean scope on this process.jsp page > > to "session" it will hold the updated vector, but it then can't > > process the request parameters correctly with the shortcut i'm > > using. (I know I could change the above method to use > > request.getParameter("firstName") etc. and it would work but I'd > > like to see if there is a way to do it without doing this). I'm sure > > there is something basic I'm missing here, and would love any help. > > Thanks. The following is the complete process.jsp page (not very > > long). > > > > <%@ page language="java" > > import="java.util.*,java.io.*,TextReader,TextReader.PhoneInfo" %> > > > > > > > > <% > > text.addLine( text.getText(), text.getFirstName(), > > text.getLastName(), text.getNumberOne(), text.getOther(), > > text.getEmail() ); > > %> > > > > . > > > > "If you go to a party, and you want to be the popular one at the > > party, do this: Wait until no one is looking, then kick a burning > > log out of the fireplace onto the carpet. Then jump on top of it > > with your body and yell, "Log o' fire! Log o' fire!" I've never done > > this, but I think it'd work." > > > > > > === 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 > > -- > - - - - - - - - - - - - - - - - - - - - - - - - - - - > tagtraum industries http://www.tagtraum.com/ > jo! small&smart 2.2 servletengine > Java Server & Servlets The web-application book > The WebApp Frameworkhttp://www.webapp.de/ > > == > = 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
Re: JSP-Beans-Servlets
Use set and get to restore session values and resubmit -Original Message- From: Manju [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 15, 2000 9:00 AM To: [EMAIL PROTECTED] Subject: JSP-Beans-Servlets Importance: High Hi I am fairly new to JSP and servlets and am facing the following problem My JSP page uses a Bean. The form elements in the html page reflect the bean attributes. On submitting the form, the bean attributes hold the values as entered by the user in the form. Now i populate values for the other attributes. Now this information should be sent to the backend servlet. How can i send this information to the servlet? Thanx === 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
JSP Servlet communication
Hey, How can I pass information stored in the Java Bean (being accessed by a JSP page) to a servlet( on a different m/c)? -Manju === 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: Need and urgent help if possible
Hamid, I'm afraid you're out of luck. What you ask is difficult in Swing and impossible using AWT components. Gary -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of hamid Sent: Tuesday, August 15, 2000 1:23 AM To: [EMAIL PROTECTED] Subject: Re: Need and urgent help if possible Hi fellows, I am developing a client Server Application(Chat client). The problem is : i am using Text Area in Applet for displaying chating. Now i want to display different lines of text with different colors and fonts. i am using only AWT classes. Can anyone help me in displaying different lines of text with different colors in TEXT AREA using AWT. Anyones help will be highly appreciated. Thanx in advance. Hamid Hassan === 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
Tomcat JSP problem
hello all, I have installed Apache and TOmcat on a Win98 machine. so far I can get the servlets examples to run, but when I try to get the JSP examples to run I get the following error in my browser "The page cannot be displayed". Has anyone seen this and how did you fix it? Thanks everyone. Mark === 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
jsp:getProperty
the jsp:getProperty tags are not returning the bean property values. here is a synopsis of my code: - my servlet creates an array of beans - using request.setAttribute(), it passes the bean array to my .jsp page - .jsp page contains the following code <% Bean[] contents = ( Bean[] )request.getAttribute( "attribute" ); for ( int count = 0; count < contents.length; count++ ) { content = contents[count]; %> <% } <% } %> ... for results, i see the table that's built, and the cells, but no values. if i replace the getProperty tags w/ the explicit methods, i.e. content.getSubject(), it works. in addition, if i use the getProperty tag and return a static string in my bean, the static string displays, but not the bean property. for example, public String getSubject( ) { return this.subject + "hello there"; } using the getProperty tag, this would return hello there. this design follows the examples found in the web development with javaserver pages book by fields & kolb. any help would be appreciated... === 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
Executing JSP after Basic Authentication
Hello out there, I have a problem when using Default Tomcat Basic Authentication. The authentication procedure itself works fine. I can view static files from within the protected virtual path. But whenever I request a jsp file the server sends me back the jsp resource (jsp source code) instead of the output of the jsp. That means the jsp isn't executed. I get the same strange behaviour when I'm accessing the jsp files underv the protected directory which is part of the tomcat examples. Does somebody know what's going on ? Cheers, Jochen === 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
sending a session id to a JSP via url rewriting
Hi all, I'm making a HTTP call to a JSP from within a servlet (not a redirect). The servlet is called from the user's browser, so it has the user's session, however when I try to pass the session id to the JSP, or even another servlet, it doesn't work. i've tried: http://localhost/servlet/TestServlet$sessionid$[sessionid] from within a servlet, as this is the format given when you rewrite a servlet using encodeURL(). I have switched on url rewriting from within websphere. any ideas? shah. === 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
JSP-Beans-Servlets
Hi I am fairly new to JSP and servlets and am facing the following problem My JSP page uses a Bean. The form elements in the html page reflect the bean attributes. On submitting the form, the bean attributes hold the values as entered by the user in the form. Now i populate values for the other attributes. Now this information should be sent to the backend servlet. How can i send this information to the servlet? Thanx === 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: session/request question?
Hi! Have you tried using include instead of forward()? Do you have this: in the included/forwarded page, too? That of course should be the case. -hendrik Rick Reumann wrote: > I was wondering if it is possible to give a bean scope both "session" > and "request"? I have a page called process.jsp which is called after > the submission of a form. In this page I would like to be able to use > the jsp shortcuts of getting the parameters by (this example:).. > > text.addLine( text.getText(), text.getFirstName(), > text.getLastName(), text.getNumberOne(), text.getOther(), > text.getEmail() ); > > This works fine but the problem is when the method addLine in the bean > is called (which updates a vector stored in the bean) the bean no > longer holds the value of the updated vector when I go to the > forwarded page. If I switch the bean scope on this process.jsp page to > "session" it will hold the updated vector, but it then can't process > the request parameters correctly with the shortcut i'm using. (I know > I could change the above method to use > request.getParameter("firstName") etc. and it would work but I'd like > to see if there is a way to do it without doing this). I'm sure there > is something basic I'm missing here, and would love any help. Thanks. > The following is the complete process.jsp page (not very long). > > <%@ page language="java" > import="java.util.*,java.io.*,TextReader,TextReader.PhoneInfo" %> > > > > <% > text.addLine( text.getText(), text.getFirstName(), > text.getLastName(), text.getNumberOne(), text.getOther(), > text.getEmail() ); > %> > > . > > "If you go to a party, and you want to be the popular one at the party, do this: > Wait until no one is looking, then kick a burning log out of the fireplace onto the >carpet. > Then jump on top of it with your body and yell, > "Log o' fire! Log o' fire!" I've never done this, but I think it'd work." > > === > 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 -- - - - - - - - - - - - - - - - - - - - - - - - - - - - tagtraum industries http://www.tagtraum.com/ jo! small&smart 2.2 servletengine Java Server & Servlets The web-application book The WebApp Frameworkhttp://www.webapp.de/ === 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
session/request question?
I was wondering if it is possible to give a bean scope both "session" and "request"? I have a page called process.jsp which is called after the submission of a form. In this page I would like to be able to use the jsp shortcuts of getting the parameters by (this example:).. text.addLine( text.getText(), text.getFirstName(), text.getLastName(), text.getNumberOne(), text.getOther(), text.getEmail() ); This works fine but the problem is when the method addLine in the bean is called (which updates a vector stored in the bean) the bean no longer holds the value of the updated vector when I go to the forwarded page. If I switch the bean scope on this process.jsp page to "session" it will hold the updated vector, but it then can't process the request parameters correctly with the shortcut i'm using. (I know I could change the above method to use request.getParameter("firstName") etc. and it would work but I'd like to see if there is a way to do it without doing this). I'm sure there is something basic I'm missing here, and would love any help. Thanks. The following is the complete process.jsp page (not very long). <%@ page language="java" import="java.util.*,java.io.*,TextReader,TextReader.PhoneInfo" %> <% text.addLine( text.getText(), text.getFirstName(), text.getLastName(), text.getNumberOne(), text.getOther(), text.getEmail() ); %> . "If you go to a party, and you want to be the popular one at the party, do this: Wait until no one is looking, then kick a burning log out of the fireplace onto the carpet. Then jump on top of it with your body and yell, "Log o' fire! Log o' fire!" I've never done this, but I think it'd work." === 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 in advance
Hello All, Glad to be back I had the same problem.Well, Alternatively you can try the other way which is to go the site at www.archives.java.sun.com where all the groups at java.sun.com r listed and modify ur subscription from there It'll be easier that way. Regards Sanjay Gomes -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Elamurugu Rajagopal Sent: 14 August 2000 21:08 To: [EMAIL PROTECTED] Subject: Re: Thanks in advance To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Thanks E. wayne allison wrote: > Hello all, > > I am unable to handle the volume of email generated > with this group on top of others. > > I have tried three different methods to remove > myself, all to no avail. > > Can some help get me off of this email list? > > Thanks, > > Wayne Allison > > __ > Do You Yahoo!? > Yahoo! Mail Free email you can access from anywhere! > http://mail.yahoo.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 === 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
quote string with slashes
Hi, Does anybody know how can quote string with slashes. Something like addslashes function in php. Thanks in advance. Risto === 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: ConcurrentModificationException
Hi! It seems that your servlet-engine has a bug here. Try to catch that exception, print it's stacktrace and send a bugreport containing the stacktrace to the vendor of your engine. Which one are you using? -hendrik - - - - - - - - - - - - - - - - - - - - - - - - - - - tagtraum industries http://www.tagtraum.com/ jo! small&smart 2.2 servletengine Java Server & Servlets The web-application book The WebApp Frameworkhttp://www.webapp.de/ Sneha Sharma wrote: > Sneha Sharma@CONTEXT > 08/14/2000 02:42 PM > > Hi ! > We are using JSPs and in some occasions, when we say jsp:include , we get > the exception >ConcurrentModificationException > It is meant to be for Collections. We are not using collections. > So what is it? > > Regards, > Sneha > > === > 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
Re: SV: what's wrong with this JSP file ? Urgent Please
Hi, isn't the following what you want? int n = rs.getInt( 1 ); boolean b = rs.wasNull(); ron --- Magnus Walter <[EMAIL PROTECTED]> wrote: > Change the SQL statement, configure the table to use > default values, use > some JavaScript to check the form values before > submitting will all FIX the > problem BUT ! > > Can I check/handle NULL values in a recordset using > JAVA (JDBC-ODBC) ? > > Example: > I have a .jsp page for list all messages from table: > tbl_msg (name > varchar(50),title varchar(100),msg text). Column msg > may include null > values. If it find a null value in the msg column it > will show nothing or do > some spec. action like include another .jsp page > ... > > Enviroment: > Wint NT, MS SQL Server 7.0, Tomcat 3.1 ... > > So is it possible to check for null values in > java, or handle null > values before the error ? > > I'm very gratefull for all help ! > > /Mange > > -Ursprungligt meddelande- > Från: Selvamani Jayakumar > [SMTP:[EMAIL PROTECTED]] > Skickat:den 14 augusti 2000 20:52 > Till: [EMAIL PROTECTED] > Ämne: Re: JDBC-ODBC and NULL > > hi > > you can change the SQL statement to avoid > null. Check the fields > which will be null and replace with space. > You can use > the NVL funct in Oracle and ISNULL funct in > SQL Serv. > By this way you can avoid null values before > getString. > It doesnt chnge your database values too. > > > > > > >From: Magnus Walter > <[EMAIL PROTECTED]> > >Reply-To: A mailing list about Java Server > Pages specification and > > reference <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: JDBC-ODBC and NULL > >Date: Mon, 14 Aug 2000 13:58:51 +0200 > > > >Hi, > >need help with JDBC-ODBC and NULL values ? > > > >When I use getString and the value is null > I got a ugly ERROR ! Is > it > >possible to check for NULL values before i > use getString ? > >(getString will give me the error so the > method wasNull() dont > help) > > > >Please help ! > >( I dont want to change the database and > its null values) > > > >/Mange > > > > >=== > >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 > > > > Get Your Private, Free E-mail from MSN > Hotmail at > http://www.hotmail.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 __ Do You Yahoo!? Yahoo! Mail Free email you can access from anywhere! http://mail.yahoo.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: How to signoff from this mailing list??
At 14:15 15/08/00 -0500, you wrote: > Hi All, > >How to signoff from this mailing list?? It's VERY difficult.. just read one of the message and you'll find at each bottom === > > 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 ++ | Luc Saint-Elie | | email : [EMAIL PROTECTED]| ++ | Java Server Side Open Source technologies| | http://www.interpasnet.com/JSS | ++ === 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: bit off topic - HELP on books
you'll find a complete listing at http://www.interpasnet.com/JSS (select books in the right popup menus) At 00:35 15/08/00 +0530, you wrote: >hi guys there >I want to equip as you guys are can any body suggest good book on >1. Web Sphere >2. Web Logic >3. EJB >4. Servlets & JSP ++ | Luc Saint-Elie | | email : [EMAIL PROTECTED]| ++ | Java Server Side Open Source technologies| | http://www.interpasnet.com/JSS | ++ === 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: JDBC - access order of fields
Hi Neal What about not using "select * from ..." in your SQL statement? Instead use "select column_A, column_X ... from ..."? Besides, columns should not be ordered within a table. That's why a table looks like a hash table rather than an array. Regards Lynch === 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: JDBC - access order of fields
hi Neal The "feature" you experience is in fact a well known bug in Suns JDBC-ODBC bridge. You HAVE to access fields in the order you specify them in your select statement! If possible I would recommand that you switch to a native JDBC driver for your specific database. (This way you will also gain the features in a JDCB 2.0 driver) /Flemming - Original Message - From: "Neal Cabage" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 15, 2000 7:24 AM Subject: JDBC - access order of fields > When acessing information from my SQLserver DB using JDBC, I noticed that I > must access the fields sequentially as they're defined in the DB. This is > very odd to me. > > For instance, if the fields are sequentially defined as ID, NAME, and DATE > when defining the DB, then later when I attempt to access the dB I must > access that data in that order. If I first access Date and *then* attempt to > access NAME for instance, I will get an error. > > Provided the code below - can anyone tell me what I need to do to allow > dynamic column surfing? This reminds me of a behavior that one would affect > when setting a cursor type in dealing with rows ... surely there must be a > similar something for columns (?). > > Thanks. > Neal > > > > Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); file://DB DRIVER > > String pUri= "jdbc:odbc:ICXX_LA"; file://DSN DEFINITION > String pUid= "XX"; file://UID > String pPwd= "XX"; file://PWD > String pSql= "select * from tbl_qa_errors"; file://SQL > > Connection cn = DriverManager.getConnection(pUri,pUid,pPwd); > file://Connection obj > Statement st = cn.createStatement(); file://Statement Obj > ResultSet rs = st.executeQuery(pSql); file://RecordSet Obj > > === > 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 _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.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
How to signoff from this mailing list??
Hi All, How to signoff from this mailing list?? Thnaks in advance Narayana. - Original Message - From: Lesley Eadie <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 15, 2000 2:54 AM Subject: Re: JSP with Visual Age for Java You can change the version of JSP you use in VAJ 3.0 - 3.02. Go to the folder default_host/default_app/servlets/ in your VAJ director (using somwehere under IBMJava) and open the XML file default_app.webapp. In here change the reference to the page compile servlet under JSP Support Description to com.ibm.ivj.jsp.runtime.JspDebugServlet This should allow you to use JSP 1.0 in VAJ. Hope this helps! :-) - Original Message - From: "Maciej Tylczyński" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 14, 2000 4:07 PM Subject: JSP with Visual Age for Java > Hi all > > I just started to use VAJ with jsp and it looks like VAJ uses different kind > of jsp syntax. For example instead of . > Where can I find some syntax explanation ? > > Thanks > > === > 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 === 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: Upload files using jsp
Hi Tonny Check the MultipartRequest at http://www.servlets.com/resources/com.oreilly.servlet/index.html That's some classes from O'Reilly. Regards Lynch Wu === 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
JDBC - access order of fields
When acessing information from my SQLserver DB using JDBC, I noticed that I must access the fields sequentially as they're defined in the DB. This is very odd to me. For instance, if the fields are sequentially defined as ID, NAME, and DATE when defining the DB, then later when I attempt to access the dB I must access that data in that order. If I first access Date and *then* attempt to access NAME for instance, I will get an error. Provided the code below - can anyone tell me what I need to do to allow dynamic column surfing? This reminds me of a behavior that one would affect when setting a cursor type in dealing with rows ... surely there must be a similar something for columns (?). Thanks. Neal Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //DB DRIVER String pUri= "jdbc:odbc:ICXX_LA"; //DSN DEFINITION String pUid= "XX"; //UID String pPwd= "XX"; //PWD String pSql= "select * from tbl_qa_errors"; //SQL Connection cn = DriverManager.getConnection(pUri,pUid,pPwd); //Connection obj Statement st = cn.createStatement(); //Statement Obj ResultSet rs = st.executeQuery(pSql); //RecordSet Obj === 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: Upload files using jsp
use MultipartRequest Class for this.jspSmartUpload is also available. > -- > From: tonny[SMTP:[EMAIL PROTECTED]] > Reply To: A mailing list about Java Server Pages specification and > reference > Sent: Tuesday, August 15, 2000 1:21 PM > To: [EMAIL PROTECTED] > Subject: Upload files using jsp > > Dear all: >Although there are some similar questions before, but I have to > present it here again, for I can't find any solution to it. Can anyone > kindly tell me how to upload files using JSP or Servlet, Source codes or > useful links are welcome. > > Thanks in advance. > > Tony. > > == > = > 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
Upload files using jsp
Dear all: Although there are some similar questions before, but I have to present it here again, for I can't find any solution to it. Can anyone kindly tell me how to upload files using JSP or Servlet, Source codes or useful links are welcome. Thanks in advance. Tony. === 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 with Visual Age for Java
You can change the version of JSP you use in VAJ 3.0 - 3.02. Go to the folder default_host/default_app/servlets/ in your VAJ director (using somwehere under IBMJava) and open the XML file default_app.webapp. In here change the reference to the page compile servlet under JSP Support Description to com.ibm.ivj.jsp.runtime.JspDebugServlet This should allow you to use JSP 1.0 in VAJ. Hope this helps! :-) - Original Message - From: "Maciej Tylczyński" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 14, 2000 4:07 PM Subject: JSP with Visual Age for Java > Hi all > > I just started to use VAJ with jsp and it looks like VAJ uses different kind > of jsp syntax. For example instead of . > Where can I find some syntax explanation ? > > Thanks > > === > 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
Re: Need and urgent help if possible
Hi fellows, I am developing a client Server Application(Chat client). The problem is : i am using Text Area in Applet for displaying chating. Now i want to display different lines of text with different colors and fonts. i am using only AWT classes. Can anyone help me in displaying different lines of text with different colors in TEXT AREA using AWT. Anyones help will be highly appreciated. Thanx in advance. Hamid Hassan === 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