Re: JavaMail with JSP : The Error msg
The problem could be with the SMTP server. It might be either refusing to send out mails on your behalf or it does not send to recipients outside your domain. I had this problem and spent one day to figure out that the problem was with the SMTP server. My network administrator granted some rights and it started working! -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Supreme Being Sent: Saturday, May 12, 2001 12:10 PM To: [EMAIL PROTECTED] Subject: Re: JavaMail with JSP : The Error msg This is the error that i get on running the code : javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses; nested exception is: javax.mail.SendFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1 >How is your smtp server setup? Does it require user name and password to send mail? It looks as if you are not setting these values in your properties object. What smtp server? i'm just using the JavaMail API for sending email through my JSP page. I'm not running any smtp server. I hae the JRun studio 3.0 which i run on my win98 PC to use JSP. I downloaded & installed the red. JavaMail & JAF from Sun's site. SupremeBeing >Supreme Being wrote: > >> i succesfully downloaded the JavaMail and JAF from sun's site in order to use them with my JSP which i'm running on JRun Studio on my win98 PC. i added the CLASSPATH (in autoexec.bat) as told by the docs along with them. Now what? coz nothing is working. I have this HTML page and a JSP page which is supposed to send email...but it's not working... i'm getting a java.SendMailException error. what do i have to do? is there something i missed? >> The codes i'm using are as follows : >> [The HTML Page] : javamail.html >> >> >> >> >> >> To: >> >> >> From: >> >> >> >> >> Subject: >> >> >> >> >> Message: Are you a Hoboe? Hobnob at http://www.hoboe.com Click here -> http://www.hoboe.com Global Mail Access === 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
No Subject
hi, try changing to freeTDS or some other JDBC driver. There are many problems with the jdbc-odbc bridge. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of naidu Sent: Sunday, July 29, 2001 9:37 AM To: [EMAIL PROTECTED] Subject: hi all, please help us to find a solution for the following error coming out when we are trying to execute a sql statement, S1000: [Microsoft][ODBC SQL Server Driver] Connection is busy with results for another hstmt scenario: In a servlet we are using multiple sql statement with single connection, we have tried both the ways of Preparedtatement and direct statement(simple) still the error persists. We are using the MSSQL server as database, the driver used is Sun JDBC-ODBC bridge driver. thanks in advance for the help. Regards Naidu Babu. === 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: SQL Server Memo insert
Hi, If you are using JTurbo try adding sql70=true at the end of the connection string. By default it restricts the number of characters to 255. regards, Nagarajan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Gregory Price Sent: Monday, August 20, 2001 5:26 PM To: [EMAIL PROTECTED] Subject: SQL Server Memo insert Hello, I am running Jrun and have run into a problem submitting a long string. The long string a user submits will likely be in French, which means a lot of single and double quotes. I am now able to submit this field under normal circumstance, but my code is choking on these characters... I bet you guys can nail this one pretty quick... I must need a function when I set that large string as a variable... Your help is very much appreciated. code is below: <%@ taglib uri="jruntags" prefix="jrun" %> <% String news_ID= request.getParameter("news_ID"); %> <% String newsletter_ID= request.getParameter("newsletter_ID"); %> <% String heading= request.getParameter("heading"); %> <% String entry= request.getParameter("entry"); %> <% String enteredby=request.getParameter("enteredby"); %> <% String newslettermonth= request.getParameter("newslettermonth"); %> <% String newsletteryear= request.getParameter("newsletteryear"); String sqlQuery = "INSERT INTO news (newsletter_ID, heading, entry, enteredby) VALUES (" +newsletter_ID + ", '" +heading+ "', '" +entry+"', '" +enteredby+"')"; %> <%--INSERT NEWSITEM--%> <%=sqlQuery%> Thanks Greg Price === 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: Oracle JDBC Driver
The pure java driver will work on any platform. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Troy Campano Sent: Friday, August 31, 2001 2:17 PM To: [EMAIL PROTECTED] Subject: Oracle JDBC Driver Hello, I am trying to use JSP to go against a Oracle database. The web server is Linux using Tomcat. Do you know where I could get a Oracle JDBC driver for Linux? I went to Oracle's site and all I saw were drivers for Solaris and NT :( thank you for your time, Troy Campano === 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: serious problem
Hi, It could be a caching problem. Try adding the following to your jsp page <% // To prevent caching response.setHeader("Cache-Control","no-store"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0); //prevents caching at the proxy server %> Also check emptying the cache and restarting the browser in the client machine. Regards, Nagarajan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Senthil Raja V Sent: Tuesday, September 11, 2001 2:00 PM To: [EMAIL PROTECTED] Subject: serious problem Hi. can any one help me on this. iam using tomcat with apache server on windows. i am not getting the page refreshed even after some changes has been done inside the jsp file. but its working fine in the server machine (localhost). its giving problem when i call the page from different machine. settings inside server.xml is given as reloadable=true. Is this correct. can any one tell me where iam going wrong. Thanks Senthil === 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: Dynamic HTML/Javascript & JSP
hi, I understand that you want to call a java function from javascript. This is possible only in applets and using the live-connect technology. However this is buggy and difficult to debug. To call a function inside a jsp page from a javascript function in the same page is not possible. The jsp part is executed in the server and only the output is sent to the browser. The javascript part works only after the html output has been loaded. To send the user events to the server, one can give something like this link text The servlet can then use request.getParmeter("event") and then forward the request to an appropriate jsp page. Regards, Nagarajan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of David Gee (MAYA Design) Sent: Wednesday, September 19, 2001 5:06 PM To: [EMAIL PROTECTED] Subject: Dynamic HTML/Javascript & JSP I'm looking for some resources on using DHTML/JavaScript with JSP. What I'm trying to do is call a method from a javascript event handler, ie: LINK TEXT where someFunction calls the Java method. here is some example code of what I have right now: <%@ page info="Portal Page" import="com.maya.harness.SomeBean"%> . . . SomeBean somebean = (SomeBean)session.getAttribute("somebean"); somebean.doMethod("parameter"); . . . what I'm trying to do is tie somebean.doMethod into a user event handler. any ideas? david === 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: passing variable success but...
you must use if (action.equals("view")) or to check for both upper case and lower case action.equalsIgnoreCase("view") sometimes if action is null, the above method might throw a null pointer exception so if( action != null && action.equalsIgnoreCase("view")) would be fine Regards, Nagarajan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Isak Rickyanto Sent: Tuesday, September 18, 2001 11:59 AM To: [EMAIL PROTECTED] Subject: passing variable success but... Hello All... I need help I write this code in JSP I had problem with this code below... I want to do something if someone click in VIEW... and it pass action variable action=view... and it will do something.. but I only found that the screen display action=view but "YOU CAN ONLY SEE THIS IF ACTION = VIEW" not appear in the screen? What's wrong with my code ? I have created code to edit profile membership like below : <%@ page language="java" import="java.util.*,java.sql.*" %> My Account Profile <% String action=request.getParameter("action"); %> VIEW OR EDIT <% if (request.getMethod().equals("GET")) { %> THE ACTION <%=action%> <% if (action=="view") { out.println("YOU CAN ONLY SEE THIS IF ACTION=VIEW"); } } %> === 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: regarding session maintenance in jsp
just a guess. maybe the session cookie is being shared between the two windows. In this case using url encoding for session maintenance should result in two sessions. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Radhika R Sent: Friday, September 21, 2001 8:35 AM To: [EMAIL PROTECTED] Subject: regarding session maintanance in jsp hi, When the user logins in internet explorer with two browser windows, ie provides two different sessions. But in netscape, single session is maintained. This problem persists even when session object is maintained in jsp. Can anybody help me out in solving. bye, radhika === 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: How to set the PageSize in JSP ???
Hi, Unfortunately there is no such option in jsp. However using JDBC, you can retrieve only a batch of rows instead of all the rows. The code is like this int fetchSize = 10; // number of rows to take at a time Statement st = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); st.setFetchSize(fetchSize); cat.debug("sql: "+sql); ResultSet rsScroll = st.executeQuery(sql); then to retrieve a particular row int r = 5; //the row to retrieve boolean scrollResult = rsScroll.absolute(r); if(scrollResult){ takeValues(rsScroll, false); return true; }else return false; //search has skipped eof Regards, Nagarajan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Dick Wong Sent: Friday, September 21, 2001 8:33 AM To: [EMAIL PROTECTED] Subject: How to set the PageSize in JSP ??? Dear all, As I know that there is something like "PageSize" in asp to control how many records to be retrieve in each page. How can I implement it on JSP ?? Any PageSize in JSP ?? As I want to do a result page with 10 records per page. Thanks for your help. Regards, Dick Wong === 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: Please help me(ScrollableResultSet)
Hi, I think you are using an old version of java. Just check the following - only jdk1.3 is installed in your machine - path included the java executable in the 1.3 version - classpath includes tools.jar in the 1.3 version lib directory - JAVA_HOME env variable points to the 1.3 directory regards, Nagarajan. -Original Message-From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of srinivas tadikondaSent: Thursday, November 15, 2001 5:10 AMTo: [EMAIL PROTECTED]Subject: Please help me(ScrollableResultSet) Hi, Here I got one problem using ResultSet. If I am using scrollable resultset its working fine in java. I am using oracle database and thin drivers. The same code I want work in jsp. But its not working moreover its giveing the following error.(I am using PreparedStatement) Java.lang.noSuchmethod error: java.sql.Connection:Method Prepared statement(Ljava/lang/String;II)Ljava/sql/PreparedStatement;notfound. I am using javawebserver2.0 and Tomcot3.3. Both webservers gave same errors. I did't get any thing. Why its giveing errors. Please help me. summary: I want to work the following methods in JSP: rs.previous() or rs.afterlast(); both methods are working java. but in the case of JSP its not working. Please help me. I am using jdbc 2.0. Advanced Thanks Regards SRinivas Get your FREE download of MSN Explorer at http://explorer.msn.com=== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://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: Is "onClick" a bad way to navigate using buttons?
Consider the fact that the search engine spiders will not be able to follow form submits or buttons that call javascript functions. As far as possible try to stick to url linking, preferably without using "?". -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Michael Pomeroy Sent: Wednesday, December 05, 2001 7:20 PM To: [EMAIL PROTECTED] Subject: Is "onClick" a bad way to navigate using buttons? I have a Results form which displays result records. Then, when a SUBMIT button is hit, a Detail page is displayed. I added two more buttons within the Results form, one to go back one step in history: AND, a second button to perform a new search: I am receiving a run-time error for the "New Search" button, but the history button is working well. I have two questions: 1)What is wrong with the "New Search" button? 2)Are there browser bugs which make "onClick" a bad technique to use to navigate pages? 3)Are there better techniques to use to navigate with buttons? === 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: There are some problems about my ms-sqlserver2k jdbc driver!
The driver file is not in your classpath. could be some spelling mistake or wrong path.. check each entry by giving dir or ls commands and check that there are no mistakes in it. -Original Message-From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of wangleiSent: Monday, December 10, 2001 3:28 AMTo: [EMAIL PROTECTED]Subject: There are some problems about my ms-sqlserver2k jdbc driver! I have download a ms-sqlserver2k jdbc driver from microsoft.com.And following the instrction,I set the paths of three JAR file into the CLASSPATH.In the JSP file the statements about database connection are here: Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");Connection conn=DriverManager.getConnection("jdbc:microsoft:sqlserver://letter:1433"); When I run the JSP file,there is a error message: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver So why?and what I should do?thanks!
Re: browswer check *some pitfalls*
hi, Don't rely entirely upon the user agent string. It will work only when the client computer connects directly with your server. If it comes through a proxy any of the following can happen - the client machine gets a cached copy in the proxy cache. so it might get the right version intended for it - the proxy might send its own user agent like "mozilla (border manager/3.0) when a IE 5.0 browser might have made the actual request. In this case, the user agent detection logic will tell that the request is coming from a netscape browser! There are different variations of what these proxies can do! Regards, Nagarajan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Rajinder Sandhu Sent: Tuesday, December 18, 2001 8:05 AM To: [EMAIL PROTECTED] Subject: Re: browswer check <%@ import="java.io.*,java.util.*,java.lang.Object,java.text.Format" %> <% // using Java, determine if the browser is Netscape or MSIE boolean isNetscape = false; String userAgent = request.getHeader("User-Agent"); if ( userAgent.toLowerCase().indexOf("msie") ==-1 && userAgent.toLowerCase().indexOf("spoofer")==-1 ) { isNetscape = true; // browser is Netscape } else { isNetscape = false; // browser is NOT Netscape } %> Hope this helps. Cheers!! Raj -Original Message- From: Sami Saul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 12:28 PM To: [EMAIL PROTECTED] Subject: Re: browswer check Try request.getHeader("User-Agent") Regards, Sami Can anybody direct me to some code that will check browser version and type via jsp or tag? I don't particularly want to use javascript. === 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
File upload servlet
Hi, I am using the following servlet for uploading files. http://www.servlets.com/resources/com.oreilly.servlet/index.html The code works fine when the file size is lesser than the max file size. But when the uploaded file size is more, the browser just shows the server could not be found message. Has anyone done something like this before. I want to trap the exception and display an error message instead. Also I found that Hotmail allows the user to upload the file and displays the error only after the file has been uploaded. Thanks Nagarajan. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: how to use setproperty for multiple selection
Hi John, I use the following code in my servlet. public String[] financierIDs; financierIDs = req.getParameterValues("financierID"); //financierID is a multiple select list box String financierID; sql = "insert into OfferFinancier(OfferID, FinancierID ) values ("+offerID+","; String endSql = ")"; if( financierIDs != null && financierIDs.length > 0){ for(int i=0; ihttp://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.. servlet with images
The BLOB type should do. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Hamann Linares Sent: Sunday, November 26, 2000 11:34 PM To: [EMAIL PROTECTED] Subject: Urgent.. servlet with images Hi all I have a several problem... i have to use images... i have Oracle database, but i dont know what kind of type i have to use for storing my image in. Besides, i have to query my Bd and with ResultSet ask a image... Can you help me What kind of type i have to use in my DataBase to My Java program can ask the image and how can i do that. any example please... so... what type i have to use in my BD to store the image and how can obtain this image by Java atte Christian Hamann Linares Area de Desarrollo de Aplicaciones FICS-DATA USMP e-mail: [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
Re: Help with EJB
create a shortcut to the command.exe. Right click the shortcut and just increase the memory options. That will work -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Christophe Gadet Sent: Monday, November 27, 2000 6:06 PM To: [EMAIL PROTECTED] Subject: Re: Help wih EJB put this in the config.sys of your PC. shell=command.com /e:8192 /p >From Sanjay Gomes <[EMAIL PROTECTED]> on 27 November 2000 15:46:16 To : [EMAIL PROTECTED] Copy To : (bcc: Christophe Gadet) Subject : Help wih EJB Hello Guys I installed EJB n then tried running j2ee -verbose but it comes out with error like OUT OF ENVIRONMENT SPACE OUT OF ENVIRONMENT SPACE OUT OF ENVIRONMENT SPACE OUT OF ENVIRONMENT SPACE OUT OF ENVIRONMENT SPACE BAD COMMAND OR FILENAME I set the J2EE_HOME and JAVA_HOME variables also There is lots of memory since I am running it on 128 MB RAM Or is it that it requires Windows NT server P.S. I am using Win98 at the moment TIA Sanjay === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Testing servlets/JSP with automated tool
Hi, I want to know if anyone is doing automated testing against their servlet/jsp project. Instead of typing in the login details and manually filling the forms, it will be faster and more efficient if a tool takes care of these. I had a look at some of the tools namely Microsoft web stress tool Astra Quick Test The astra quick test uses javascript through the browser to simulate a user. so it is useful for checking if the flow through the pages is ok. The MS tool allows us to specify multiple users etc. So when I specify say five users and test the login process I get this exception. I am using IIS with tomcat. java.lang.IllegalArgumentException: Cookie name Path is a reserved token at javax.servlet.http.Cookie.(Cookie.java:185) at org.apache.tomcat.util.RequestUtil.processCookies(RequestUtil.java:187) at org.apache.tomcat.core.RequestImpl.getCookies(RequestImpl.java:379) at org.apache.tomcat.request.SessionInterceptor.requestMap(SessionInterceptor.j ava:101) at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:594 ) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:552) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:156) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Unknown Source) Regards Nagarajan. === 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: Sorting a Table based on any of the columns
why don't you use the "order by" clause. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Salian, Santosh (GXS, TCS) Sent: Wednesday, November 29, 2000 12:25 AM To: [EMAIL PROTECTED] Subject: Sorting a Table based on any of the columns Hi , I have a page to develop in which I need to display a table. The data for which is picked from Oracle database. But the user will be sorting that table based on any of the columns in asc./desc. order. Probably the easiest way to do this is querying the database n no. of times. But thats definitely not efficient. So are u aware of any way to have a (very) efficient code to incorporate this feature Thanks and Regards, Santosh === 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: Testing servlets/JSP with automated tool
I found a good tool at OpenSTA. It is open source and free. Has anyone used this ? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ivan Kougaenko Sent: Wednesday, November 29, 2000 12:18 AM To: [EMAIL PROTECTED] Subject: Re: Testing servlets/JSP with automated tool There are a number these tools out there some of the most popular include... (most of them are too darn expensive for personal use) SilkTest (QAPartner) - by Segue (http://www.segue.com) it has a cool object based language called 4Test.. its pretty powerful, but can be a bit complicated for a novice user. to write testcases you can either write them from scratch using 4Test, or use Record/Playback E-Test Suite (eTester/eLoad, etc...) by RSW Software (http://www.rswsoftware.com/) purely for web-based products. easy to use, good interface. not as customizable as others. primarily uses record/playback to capture/write test scripts. Astra - by Mercury Interactive (www.mercuryinteractive.com) one of the first players in QA automation I haven't really had a lot of experience with Astra, but I liked everything I've seen. and a bunch of others... hope that helped.. _Ivan -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of G.Nagarajan Sent: Tuesday, November 28, 2000 3:03 AM To: [EMAIL PROTECTED] Subject: Testing servlets/JSP with automated tool Hi, I want to know if anyone is doing automated testing against their servlet/jsp project. Instead of typing in the login details and manually filling the forms, it will be faster and more efficient if a tool takes care of these. I had a look at some of the tools namely Microsoft web stress tool Astra Quick Test The astra quick test uses javascript through the browser to simulate a user. so it is useful for checking if the flow through the pages is ok. The MS tool allows us to specify multiple users etc. So when I specify say five users and test the login process I get this exception. I am using IIS with tomcat. java.lang.IllegalArgumentException: Cookie name Path is a reserved token at javax.servlet.http.Cookie.(Cookie.java:185) at org.apache.tomcat.util.RequestUtil.processCookies(RequestUtil.java:187) at org.apache.tomcat.core.RequestImpl.getCookies(RequestImpl.java:379) at org.apache.tomcat.request.SessionInterceptor.requestMap(SessionInterceptor.j ava:101) at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:594 ) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:552) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:156) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Unknown Source) Regards Nagarajan. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: a little off topic
Asking questions related to JSP is ok. something like why the .js file is not loaded from a servlet or printing images from a servlet etc. Comparing technologies like asp with jsp etc is also fine. But it should not go down to the nuts and bolts of the other technology like which operator, which command etc. Regards, Nagaraj. === 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: a doubt on sessions
If the browser window is closed, the browser does not send the session cookie. but the session objects would still be in the server until the session times out. So it is good to invalidate the session. So it is better to redirect the user to a logout servlet or jsp which invalidates the session and displays the logged out message. regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Lorena Carlo Sent: Wednesday, November 29, 2000 4:18 PM To: [EMAIL PROTECTED] Subject: a doubt on sessions Hello all, I have a doubt on session, can any body tell me if it is necesary to invalidate a session when the user presses a button that have a the following javascript code: "javascript:window.top.close()", that closes the browser window?. If I have to invalidate the session, how can i do it with javascript, i can not use the method invalidate of the HttpSession object because I am using html for the menues and not jsp, what can I do in that case. Thanks in advace Lorena === 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: a doubt on sessions
There is always a default session expiry time. This can be overridden by the servlet. There is no way by which the session can be invalidated if the browser is closed. This is not possible using html and servlets alone. If you want to continuously monitor the user, you have to use an applet which "pings" the server at regular intervals or some complex JavaScript and frames. The best solution is the simplest solution (for us programmers!). Put as much resources as possible into the server and don't worry about session expiry etc. or maybe you can implement your own session handling logic using cookies and a database like oracle. In this case, you can dedicate a set of boxes for session management alone and can be isolated from the web server. Is there any third party tool which takes care of these? It would be great and save lots of time and effort. Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ying Sun Sent: Wednesday, November 29, 2000 6:58 PM To: [EMAIL PROTECTED] Subject: Re: a doubt on sessions If the servlet doesn't set the session time,when the user close the browser,the session will automatically expired.But if the servlet set the session time say 30 minutes,and user close the brower only in 15 minutes,how to invalidate the session?which method to invoke when the user close the browser? Thanks in advance, chris === 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: 's and JSP's
hi, you can use request.getParameterName() to get an enumeration of the parameter names, and then use request.getParameter() for each name. Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Firat Ozcan Sent: Friday, December 01, 2000 1:49 AM To: [EMAIL PROTECTED] Subject: 's and JSP's Ok , here is my problem: Given: Client is presented with a Form either pure HTML or embedded in a Jsp page. In that Form there are 20 's and a submit button. Upon submitting this Form, all those 20 's should be processed. Unfortunately upto here I cannot change anything. Because it is a customer requirement. Problem: I cannot think of a solution which will pick up those 20 's and process them. How can I pass those guys to a Jsp (or a Bean). The only way possible is: bla bla bla bla bla bla ... till 20 is it OK to send these guys like that and then the reciever JSP will extract the text from each of the 20 text's by using request.getParameter("text1") , request.getParameter("text2") , bla bla Is there a more elegant way of doing this considering the "given" constraints. Thanks... === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Admin context
I had asked about how to set permissions for the admin context. Is deleting the admin directory the only solution. It is surprising that it is not mentioned in the documentation. It is indeed a serious issue, I came to know about this only from a question asked by someone. Guys, someone can DELETE A CONTEXT through it! I wonder how many users actually know this. If someone has deployed it please check your site. Regards, Nagaraj. === 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
Admin context
sorry to trouble you all! maybe you knew about the weakness in the admin context before. But just have a look at this url http://d0db-dev.fnal.gov:8535/admin/contextAdmin/contextAdmin.html I don't know much about the internals of tomcat. But I want to know if deleting the admin directory would cause any problems. Regards Nagaraj. === 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: compile error
Either you can refer to Enumeration by java.util.Enumeration or import the package in the page declaration. That should solve the problem -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Selochnik, Leonid Sent: Friday, December 01, 2000 11:03 PM To: [EMAIL PROTECTED] Subject: compile error I tried to run a sample application from "core JSP" by D.Hougland & A.Tavistock on Tomcat3.1(all sample apps which came with tomcat work fine). Here the code: Request Information Request MetaData: Request Method: <%= request.getMethod() %> Query string: <%= request.getQueryString() %> Parameter Names and Values: <% Enumeration requestNames = request.getParameterNames(); StringBuffer outPut = new StringBuffer(); while (requestNames.hasMoreElements()) { String Name = (String)requestNames.nextElement(); String[] Values = request.getParameterValues(Name); for(int count = 0; count < Values.length; count++){ outPut.append("") .append("").append(Name).append("") .append(" = ") .append("").append(Values[count]).append("") .append("\n"); Name = " "; } } out.print(outPut.toString()); %> On some reason I keep getting the folowing error: Error: 500 Location: /examples/jsp/parameters.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPC:\Tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fparameters_0002ej spparameters_jsp_1.java:75: Class jsp.Enumeration not found. Enumeration requestNames = request.getParameterNames(); ^ 1 error at org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Unknown Source) Any ideas? Thanks... Leo === 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
printing stack trace as a string
Hi Richard, I use the following code for printing a stack trace in my jsp error page. <% //Should the stack trace be displayed? String strShowStackTrace = Initializer.getInitParameter("ShowStackTrace"); boolean showStackTrace = false; //Assume false to be default if(strShowStackTrace != null) showStackTrace = Boolean.valueOf(strShowStackTrace).booleanValue(); getServletContext().log("Exception Occurred"+exception, (Throwable)exception); if(showStackTrace){ %> The Stack Trace is <% StringWriter writer = new StringWriter(); exception.printStackTrace(new PrintWriter((Writer)writer)); out.println(""+writer); getServletContext().log(""+writer); %> <% } //write to the log file %> Regards, Nagaraj. === 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
Urgent Help: Accepting German characters
Hi everyone, I have a slight problem which some one of would have solved before. I am accepting some text in a html form. The form posts to a servlet that takes the values using request.getParameter("textfieldname"). Now, when the user types characters like ä (umlauts), the character gets changed to symbols like "%" (division sign). This causes some problems when I compare it in a select statement like select * from offer where state = 'value entered by user'; Is it possible to take the values as are entered by the user, store it in the same form without using the ¨ symbols. Thanks Nagaraj. === 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: (bean.getId() works but doesn't!!)
I too had this problem. Check the following in your bean code. Assume that your property name is empno. Check if the get() and set() property functions use the same datatype. ex public int getEmpno(){ //note the uppercase E and public void setEmpno(int arg){ and in jsp you will give, if you have put public void setempno or setEmpno(String arg) it will not work. The jsp page will give an error that it cannot find the property. Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Steven and Susan Hirsch Sent: Sunday, December 03, 2000 3:42 AM To: [EMAIL PROTECTED] Subject: (bean.getId() works but doesn't!!) This is driving me nuts!! I can get a beans attribute in a jsp page by directly calling the accessor method, but cannot get the value via the tag! This works: <%= contacts.getId() %> but this doesn't: Any ideas? The jsp is recognizing the bean, I don't have any compilation errors. Steven Hirsch === 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: How do i display a greek character in JSP? - Urgent ...
I will tell you how I handle the umlauts (special characters in German). While printing print them as String gText = "äbcdö" // ä is the code for printing the a umlaut The browser will print the ä as the a umlaut. Similarly after the user has keyed in the text, using a JavaScript function you can convert the text to the html code before the form is submitted. Note: This will increase the size of the text. For example, if the user has keyed in 2 umlauts, the size will increase by 8. Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Rathna Sent: Monday, December 04, 2000 5:36 AM To: [EMAIL PROTECTED] Subject: How do i display a greek character in JSP? - Urgent ... hi all, I have to display a greek character in the JSP page. i am constructing the string object as follows, <% byte[] str= new byte("Oôïêå Oèâ Çáìäïí"); String greek = new String(str,"ISO-8859-7"); out.println(greek); %> but when the Jrun Interprets the code it gives me javax.servlet.ServletException: Invalid UTF-8 code. (bytes: 0xfff4 0xffef) Error. How do i display the languages which is other than english in the JSP pages? FYI, i don't want to set the html charset as greek code since only few information in the page is greek and rest of it is english. I badly need to rectify this problem and any early reply will help me a lot thanks for your time ... -- with rgds, rathna === 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: How do I display a Greek character in JSP? - Urgent ...
Hi king, The pages are in German. Do you know of an English version? Thanks and Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of sun_king Sent: Monday, December 04, 2000 6:36 AM To: [EMAIL PROTECTED] Subject: Re: How do i display a greek character in JSP? - Urgent ... look into Volker Turau's book and online examples at: http://shannon.informatik.fh-wiesbaden.de/jsp/index.html http://shannon.informatik.fh-wiesbaden.de/buch/index.jsp http://shannon.informatik.fh-wiesbaden.de/jsp/download.html especially the internationalization examples here: http://shannon.informatik.fh-wiesbaden.de/buch/i18n.jsp all are handled through localization files and the examples are very clear good luck!! Rathna wrote: > hi all, > > I have to display a greek character in the JSP page. > i am constructing the string object as follows, > > <% byte[] str= new byte("Oôïêå Oèâ Çáìäïí"); > String greek = new String(str,"ISO-8859-7"); > out.println(greek); %> > > but when the Jrun Interprets the code it gives me > javax.servlet.ServletException: Invalid UTF-8 code. (bytes: 0xfff4 > 0xffef) Error. > > How do i display the languages which is other than english in the JSP > pages? > > FYI, i don't want to set the html charset as greek code since only few > information in the page is greek and rest of it is english. > > I badly need to rectify this problem and any early reply will help me a > lot > > thanks for your time ... > > -- > with rgds, > rathna > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Which is the Best Method to do??
Hi Kumaran, Here are what I understood> Both the methods do the same thing, that is they create an instance of the Java Bean Class which can be accessed else where in your JSP page. But, the advantages of using the useBean tag are 1, You can use getProperty and putProperty methods 2, It results in lesser java code in the page. The second point is useful if you have to handover your jsp page to a html designer. They can learn the getProperty() and setProperty() tags quickly rather than putting <%= %> tags. And of course you need not worry about not closing the <% tag, which is quite a big headache when you debug a page. And as for converting the bean to a EJB, try to isolate the code into that which does business login(inserting into database, computing values, validation etc) and the code that does presentation logic(ex, printing html). And there are some restrictions on using threads, db connections in Ejb which you have keep in mind. Right now, what I do is to have a helper class that handles all connecting and disconnecting. So I just have to change one class. Hope this helps, Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Narayanaswamy, Kumaran (CTS) Sent: Monday, December 04, 2000 9:54 AM To: [EMAIL PROTECTED] Subject: Which is the Best Method to do?? Hi All I need some Clarification regarding which method is efficient? I have a Javabean.I need to use it in JSP . Can i go for usebean TaG OR instatiating the bean and access its methods inside <% %> tag.Please also note that if the Java bean need to be Converted to Enterprise Java Bean there should be only minimum Code Change. with regards, Kumaran 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 === 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: bean.getId() works but doesn't!!
Hi, Check these in your bean code 1. get() and set() use the same datatype ex public int getEmpID(){ } and public void setEmpID(int arg){ //note "int arg" ... } 2. The methods are public. Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Alex A. Almero Sent: Monday, December 04, 2000 6:20 PM To: [EMAIL PROTECTED] Subject: Re: bean.getId() works but doesn't!! try this - Original Message - From: "Steven and Susan Hirsch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 03, 2000 11:01 AM Subject: bean.getId() works but doesn't!! > This is driving me nuts!! I can get a beans attribute in a jsp page by > > directly calling the accessor method, but cannot get the value via the > > tag! > > > > This works: > > > > <%= contacts.getId() %> > > > > but this doesn't: > > > > > > Any ideas? The jsp is recognizing the bean, I don't have any compilation > > errors. > > > > Steven Hirsch > > === > 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 ÿðèbj (ÿôÚKhÊ«~¸Û(X§{ ¡¢ÌzË «þ m§ÿÿ oòj (ýÊ& === 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: Servlets in a package
hi, Are you trying to forward the request or are you redirecting the request? Are you able to invoke the servlet directly from the browser? Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Sunil Roy Sent: Tuesday, October 03, 2000 9:00 PM To: [EMAIL PROTECTED] Subject: Servlets in a package The following is my problem: >From a JSP , I am trying to call a servlet which is inside a package.I have kept this package in classes dir. But when I try to call this servlet from the JSP. it gives an error " page not found ". Pl. help. Sunny === 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: Book
Professional JSP -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Rahman, Zahid Sent: Wednesday, December 06, 2000 11:56 AM To: [EMAIL PROTECTED] Subject: Book New to JSP - Can any one Please recommend a good book on writing applications using JSP ? Regards, Zahid === 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: Problem with JSP in Visual Age AND TOMCAT
One quick solution would be to put \tomcat\webapps\your_app_dir\web-inf\classes in the classpath. If it works then it means that the above path is not being added to the classpath used by tomcat. Regards Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Klimmer Maria Sent: Wednesday, December 06, 2000 1:15 PM To: [EMAIL PROTECTED] Subject: AW: Problem with JSP in Visual Age AND TOMCAT Hallo again! I can't imagine why I get the error. I hope somebody could help me. Thank you very much. JSP-File: test.jsp -- <%@page import="test.Test" %> Bean: Test.java - package test; public class Test { public Test() { super(); } } Tomcat-Context "bibliothek": test.jsp WEB-INF classes test Test.java Test.class - WHY do I get the following ERROR: - Error: 500 Location: /bibliothek/test.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSP/export/www/P7-Apache-1.3.12/jakarta-tomcat/work/localhost_8080/_0002fbib liothek_0002ftest_0002ejsptest_jsp_12.java:15: Class test.Test not found in import. import test.Test; ^ 1 error at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(Compiled Code) at org.apache.jasper.JasperException.(Compiled Code) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compi led Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled Code) at org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled Code) at org.apache.jasper.runtime.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi led Code) at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code) at java.lang.Thread.run(Compiled Code) = = > -Ursprüngliche Nachricht- > Von: Klimmer Maria [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 6. Dezember 2000 10:12 > An: [EMAIL PROTECTED] > Betreff: AW: Problem with JSP in Visual Age > > > Hallo! > > I've got the same problem. This error only occurs if the package name > contains points and the syntax check of JSP Execution Monitor is on. > > I don't know where's the root-cause of this problem. > > Regards, > Maria > > > > > > -Ursprüngliche Nachricht- > > Von: S P [mailto:[EMAIL PROTECTED]] > > Gesendet: Mittwoch, 6. Dezember 2000 01:52 > > An: [EMAIL PROTECTED] > > Betreff: Problem with JSP in Visual Age > > > > > > Hi, > > I am using Visual Age 3 JSP Execution monitor for JSP. I am > > running the JSP > > in Websphere Test Environment Server which is inbuilt in > > Visual Age. It runs > > simple JSP, but gives problem when I try to import a class or > > use bean. I am > > storing classes in default package for Webshpere Test Environment. > > > > > > > > May I get some help on this. > > > > Regards, > > Shishir > > __ > > ___ > > Get more from the Web. FREE MSN Explorer download : > http://explorer.msn.com > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: > "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set > JSP-INTEREST DIGEST". > Some relevant FAQs on
No Subject
Hi, Try the FreeTDS driver. JTurbo, Aveconnect give trial versions for 30 days. Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Suresh kumar K Badiga Sent: Wednesday, December 06, 2000 1:01 PM To: [EMAIL PROTECTED] Subject: Hi all Where can i get free Type 4 JDBC Driver For MS SQL Server 6.5. Right now i am using JDBC-ODBC bridge is it OK or i should go for Type 4 JDBC Driver. In my application lot of data will go to the database as input.So please tell me how to go further in my application. Thanks in advance -Suresh === 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: Calling EJBs in a JSP
Hi, I think you have to copy the interface classes to the server. I think they are the stub classes. Hope it helps, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Yogeeta_Raghunathan Sent: Thursday, December 07, 2000 11:47 AM To: [EMAIL PROTECTED] Subject: Calling EJBs in a JSP Hi, I am running my JSPs in a tomcat server. The weblogic server resides on another machine which has the ejbs i want to access. I am unable to access it, as I get compile time errors that the EJB class is not found. Am I supposed to copy the class files of the EJB into the machine running JSPs?? TIA T R Yogeeta === 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: "hello world" jsp
just rename a html file to .jsp, that will be your first jsp program. later you can add some scriptlets to do some calculations. Then you can move the java code into a bean and use it from your jsp page. Later you can use JDBC from your bean. Nothing difficult. It is all the same concepts which you know already in java. Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of FOLCH-WINTER,FRANCISCO (A-Germany,ex1) Sent: Thursday, December 07, 2000 1:53 PM To: [EMAIL PROTECTED] Subject: "hello world" jsp Any body could send me the code for a "hello world" jsp program... something dead simple where I can see how the whole thing is put together? Thanks!! Best regards, Xisco. - Agilent Technologies GmbH Tel: +49-(0)7031-464-7854 IT - Information Technology TN: 778 7854 - === 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: using JSP in MS products
EJB is not for accessing database. JDBC can be used without using EJBs. For accessing SQL Server from java, it is better you don't use the JDBC-ODBC bridge. And if you still want to use ODBC I think you are better off using ADO from asp. Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Taku Sugimoto Sent: Thursday, December 07, 2000 3:27 PM To: [EMAIL PROTECTED] Subject: using JSP in MS products Hi, i'm using NT(sp6), IIS4.0 and MS SQLServer7.0. i want to use JSP, Servlet and JavaBeans (not EJB) to access the database. But unfortunately i can't use JDBC driver, therefore to connect the database, i have to use ASP. Is it possible to pass data (XML format, maybe) or parameters (using JavaScript) between JSP and ASP? Or, in this case, is it better to use not JSP/Servlet but ASP? If possble, how can i do this? thanks in advance. taku === 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: help me out - problem in JSP/Beans using Apache web server and New Atlanta ServletExec
I dont know about this servlet engine. But I guess if you put the directory of the bean in the class path, your engine should pick it up. Or just check if there is any directory called web-inf or classes in your servlet engine directory and put the bean it it. hope this helps, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Srinivasan Kannan Sent: Thursday, December 07, 2000 3:21 PM To: [EMAIL PROTECTED] Subject: help me out - problem in JSP/Beans using Apache web server and New Atlanta ServletExec hi friends, I have a problem in jsp. The problem is i call a bean from my jsp page but when i run it, it's giving me an error as that bean not found. i'm new to jsp and bean, i don't have any problem in compiling the bean.But i don't know the exact place as to where i should put my jsp page and bean class. I have put my jsp page in htdocs folder which is the default folder for htm's and jsp's. i think it's correct to put those stuff in that folder but with regard to bean i don't know where i should put that. In New Atlanta Servletexec app server i have one folder to put my servlets which works fine for servlets but where should i put my bean class. i tried it in putting in the servlet folder and other folders and i have also set the classpath for the folder which contains the class file. please help me out ** i will give the code here my jsp code : = jsp page which uses a bean my bean code is === public class TestingBean { String name; public void setName(String sName) { name = sName; } public String getName() { return name; } } Thanks in advance Hoping to get a solution for this friends bye Srinivasan.K __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: jsp error help
Hi, I use the following methods. put System.out.println("check1 var1"+var1) in different parts of your jsp and watch the tomcat window. this will help to isolate the part where the error occurs. hope this helps, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of alex Sent: Friday, December 08, 2000 11:03 AM To: [EMAIL PROTECTED] Subject: jsp error help hi does anyone have ideas to debug jsp error. i am confused. i got error message like following. and donot know where the error occurred in my jsp file? thanks alot Error: 500 Location: /usertable/userlist.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:476) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NullPointerException at org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerat or.java:196) at org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatements (TagBeginGenerator.java:291) at org.apache.jasper.compiler.TagBeginGenerator.generate(TagBeginGenerator.java :360) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J spParseEventListener.java:773) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi stener.java:220) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE ventListener.java:175) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:183) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) 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 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INT
Re: Load Test
try the following opensta.org, rsw software, microsoft web stress tool etc. Just check the archives, The same question was discussed some weeks ago. Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of yogesh kumar bajaj Sent: Friday, December 08, 2000 1:20 PM To: [EMAIL PROTECTED] Subject: Load Test Hi Does any body can suggest a load test tool for 3-tier web based application.Load test is to be performed for 1000 users. Any links/ref is highly appreciable. Regards Bajaj === 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
valueUnbound(HttpSessionBindingEvent event) !
Hi everyone, This is regarding tracking of login and logout actions of users. I am recording the session creation time and end time using the HttpSessionBindingListener class. The two methods valueBound() and valueUnbound() are invoked. But the getAtrribute() method in the session object returned by event.getSession() always give null. I am storing the userid and a string in the session to indicate if the user has logged out. By checking this string's value I can find out if the user has logged out or the session has timed out. Has anyone implemented anything similar to this. Thanks, Nagaraj. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: How to submit a form without user interaction
Hi, This is something which has to be done in javascript. The role of jsp is over once the page is sent to the browser. You can only control what is printed in the page, for example you can print some javascript based on the user's request. In javascript you can give something like "document.form[0].submit" to submit the first form. regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Paolo Sommaruga Sent: Thursday, December 21, 2000 11:43 AM To: [EMAIL PROTECTED] Subject: How to submit a form without user interaction Hi, I have a problem, perhaps a trivial problem. I have a jsp page with a form wich only contains hidden fields. I need to submit such form automatically, without any user interaction. There is some special value in the tag to do this action ? There is a way with jsp ? Thanks for your suggestions Paolo Sommaruga Garda Access Garda (Vr), Italy http://www.garda-acess.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: Java Date Class problem
Hi, Use the java.util.Calendar class instead of the Date class. It has methods for incrementing by date, month or year. For example you can give Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, 5); Hope it helps, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Senaka Suriyaarachchi Sent: Friday, December 22, 2000 9:16 AM To: [EMAIL PROTECTED] Subject: Java Date Class problem Hi All I tried to show drop down list with next 30 dates. but it doesn't work. It correctly add up to 25 days after that it show previous days. Please advice me. BR Senaka <%@ page language="java" import="java.sql.*, java.util.Date"%> Untitled <% Date nd = new Date(); long lnd = nd.getTime(); Date todate = new Date(lnd); String today = todate.toString(); java.sql.Date dbday = new java.sql.Date(lnd); long lndnew = lnd; %> Reservation Date <% for(int i=1; i<27; i++){%> <%= (new java.sql.Date(lndnew + i*24*60*60*1000))%> <% }%> === 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
Using Tomcat webapps with JRun
Hi, I have not tried JRun before. I have used tomcat 3.1 with IIS. It works fine but now and then the browser shows "file not found jakarta/isapi_redirect.dll". The problem is either with IIS, isapi_redirect.dll or tomcat. I just want to know if anyone has solved the above problem. I also want to know if using JRun would solve this redirection problem. Another question (sorry for asking so many!), can I transfer my webapp (proj.war) to JRun and make it work without modifications? Thanks and Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of PIYUSH NIGAM Sent: Friday, December 22, 2000 8:28 AM To: [EMAIL PROTECTED] Subject: Re: JSP Server with IIS Try www.allaire.com Piyush Nigam [EMAIL PROTECTED] -Original Message- From: suying [mailto:[EMAIL PROTECTED]] Sent: Friday, December 22, 2000 12:05 PM To: [EMAIL PROTECTED] Subject: Re: JSP Server with IIS Hello,Can you tell me where to get jrun3.0 and configure it with IIS? suying === 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
Anyone using Apache + Jserv on NT?
Hi Everyone, Does anyone know a site which uses Apache + Tomcat on NT. I would like to do so but Apache warns that the windows release is "pre-beta, many security, performance bugs...". Any suggestions? Thanks, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Straight, Christian Sent: Saturday, December 23, 2000 2:22 AM To: [EMAIL PROTECTED] Subject: Re: help needed with Apache-Jserv installer Sushma, I've been able to successfully install and run Apache/Tomcat on a local NT box as follows: 1. download and install Apache 2. download Tomcat from http://jakarta.apache.org using the Release Build for Windows: jakarta-tomcat.zip 3. download the WIN32 connector DLL from the jakarta-tomcat/release/v3.2.1/bin/win32/i386 folder called "ApacheModuleJServ.dll" 4. unzip Tomcat into a directory of choice - I stuck mine in the Apache Group directory 5. start Apache 6. in Command Prompt, navigate to the Tomcat directory and into bin execute "startup" at the command prompt and if everything's talking to each other correctly that should be it. Tomcat listens to port 8080...so test it by http://localhost(or_servername):8080/ good luck Christian Straight === 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: Whats up with all these out of office replies??
>I sent out email to 8 of the emails I got back..directly to their box Did it work? You would have got 8 auto-replies :-) I don't know how many I will get for this mail. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Duffey Sent: Tuesday, January 02, 2001 10:14 AM To: [EMAIL PROTECTED] Subject: Re: Whats up with all these out of office replies?? Well, I sent out email to 8 of the emails I got back..directly to their box. It wasn't very nice of me..but too damn bad! ;) It's amazing how some people know how to set up auto-email, but can't figure out how to avoid pissing people off on a list (or lists) they may require help from. === 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
No Subject
When is a jsp page good? some rules could be Easy_html_rule A html designer can easily understand and modify the page Easy_debug_rule Easy to debug when an error happens Easy_change_rule Easy to change code without affecting other areas Easy_to_reuse_code Isolate repeated code and use it other pages. so, when we apply the above rules it becomes clear that solution 3 is the best. To make it even easier for the html designer, the remaining java code can be hidden using jsp tags. Regards, Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Hariharan N Sent: Thursday, January 04, 2001 11:48 AM To: [EMAIL PROTECTED] Subject: Re: Hi! This is re-post for more replies and suggestions! I want to display a set of employee details from database in a JSP Page. Which method is best suited and "WHY"? 2. Divide into Emp.jsp Database Bean form jsp create database bean which would fetch records form database. Return directly theresultset to the JSP and display the records 3.Divide into Emp.jsp Database Bean Employee object form jsp create database bean which would fetch records form database. from the no of records fetched create as many employee objects and fill the details and send them as a vector to jsp which it would be type casted to employee object not bean and then values are displayed from getmethods!!! Please explain why and which method is good... WHY.. Thanks! === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
No Subject
Manne, >re-use is much easier if the code is encapsulated in a good bean. I agree, just transferring code from a jsp page into a bean does not make it re-usable. But, in the case of database handling, there is some code which is common like opening the connection, etc. What I do is to have a separate class which hides the details of connecting to the database etc. It also provides methods for adapting to different JDBC drivers (when using transactions, joins etc) and for adapting data values to the selected database. >But solution 3. still seems the best, although a simpler architecture could >be ok if the app is very simple and the logic is not likely to be re-used in >later projects. if one is learning jsp then it is ok. regards, Nagaraj. === 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: problem in forward tag
This is the tenth message! -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Matt Hankes Sent: Friday, January 05, 2001 4:16 PM To: [EMAIL PROTECTED] Subject: Re: problem in forward tag please remove me from this list. Thanks, Matt Matthew L. Hankes Senior Technical Recruiter Jivaro Professional Headhunters [EMAIL PROTECTED] 408-733-5082 Voice 408-733-5066 Fax www.jivaroinc.com * Ask about our Referral Program! * > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones > Sent: Friday, January 05, 2001 1:39 AM > To: [EMAIL PROTECTED] > Subject: Re: problem in forward tag > > > But this is the same as using a > Check out the generated code to see this, > > Kevin Jones > DevelopMentor > www.develop.com > > > -Original Message- > > From: A mailing list about Java Server Pages specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of Deepak Kumar > > Sent: 05 January 2001 07:14 > > To: [EMAIL PROTECTED] > > Subject: Re: problem in forward tag > > > > > > Hi dear, > > > > the following code > > > > > > <%@ page language = "java" %> > > <% > > getServletContext().getRequestDispatcher("/servlet/dbservlet").for > > ward(request, > > response); %> > > > > > > and this will solve your prob. > > > > Regards Deepak > > > > > > > > --- Kevin Jones <[EMAIL PROTECTED]> wrote: > > > Paths in forward and include are relative to the > > > current application and > > > start with a '/' so the syntax is fine. > > > > > > Have you tried this with another web server (Tomcat > > > for example) I'm not > > > sure how well jwsdk1.0.1 copes with this, > > > > > > Kevin Jones > > > DevelopMentor > > > www.develop.com > > > > > > > -Original Message- > > > > From: A mailing list about Java Server Pages > > > specification and reference > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of > > > Manish Vohra > > > > Sent: 04 January 2001 06:14 > > > > To: [EMAIL PROTECTED] > > > > Subject: Re: problem in forward tag > > > > > > > > > > > > hi > > > > u can't specify the relative path as u have done > > > here... > > > > specify the full url > > > > manish > > > > > > > > -Original Message- > > > > From: A mailing list about Java Server Pages > > > specification and reference > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of > > > prasanjeet > > > > Sent: Thursday, January 04, 2001 11:15 AM > > > > To: [EMAIL PROTECTED] > > > > Subject: problem in forward tag > > > > > > > > > > > > Hello everybody, > > > > I have a strange problem the forward tag > > > command of JSP is not > > > > working . > > > > > > > > ex. > > > > > > > > > > > > hello > > > > > > > > > > > > > > > > > > > > > > > > > > > > this is showing the 404 error , i have tried all > > > the possible > > > > combination of > > > > it URI though. I am using Jswdk 1.0.1. > > > > > > > > Thanks is advance > > > > regarsd > > > > Prasanjeet > > > > > > > > > > > > > == > > > > = > > > > To unsubscribe: mailto [EMAIL PROTECTED] with > > > body: "signoff > > > > JSP-INTEREST". > > > > For digest: mailto [EMAIL PROTECTED] with > > > body: "set JSP-INTEREST > > > > DIGEST". > > > > Some relevant FAQs on JSP/Servlets can be found > > > at: > > > > > > > > http://java.sun.com/products/jsp/faq.html > > > > http://www.esperanto.org.nz/jsp/jspfaq.html > > > > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > > > > > > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > > > > > > > > > > > > == > > > > = > > > > To unsubscribe: mailto [EMAIL PROTECTED] with > > > body: "signoff > > > > JSP-INTEREST". > > > > For digest: mailto [EMAIL PROTECTED] with > > > body: "set > > > > JSP-INTEREST DIGEST". > > > > Some relevant FAQs on JSP/Servlets can be found > > > at: > > > > > > > > http://java.sun.com/products/jsp/faq.html > > > > http://www.esperanto.org.nz/jsp/jspfaq.html > > > > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > > > > > > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > > > > > > > == > > = > > > To unsubscribe: mailto [EMAIL PROTECTED] with > > > body: "signoff JSP-INTEREST". > > > For digest: mailto [EMAIL PROTECTED] with body: > > > "set JSP-INTEREST DIGEST". > > > Some relevant FAQs on JSP/Servlets can be found at: > > > > > > http://java.sun.com/products/jsp/faq.html > > > http://www.esperanto.org.nz/jsp/jspfaq.html > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > > > > > __ > > Do You Yahoo!? > > Yahoo! Photos - Share your holiday
Re: Inserting special characters
Hi, you can use prepared statements or you can escape the characters by giving something like \'. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Venkata Ratnam Vadlamannati Sent: Sunday, January 07, 2001 4:50 AM To: [EMAIL PROTECTED] Subject: Inserting special characters Hi all Can anybody suggest me how to insert into a text column with text such as "abc's question", "he said "I am not a culprit", it's your fault" etc., I'm using jdbc-odbc drivers for sql7.0. and HTML forms with JSP to process backend. As the string is with characters such as ", ', normal insert statement fails please suggest me a workaround to do the above thanks in advance Venkat PS:Plese email your suggestions directly to [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Log out
Hi, you have to make the previous screen as non-cacheable. This means that all the pages that have a link to the logout page have to be marked. The ways of doing this have been discussed many times in this list. To save time and bandwidth you can just search in the archives for keywords like "cache", "back button". The best is to ask the use to close the browser if the information is very sensitive. This is the approach taken by hotmail, yahoo etc. There are still many ppl who think by clicking logout, no one can go back and see the previous screens in yahoo and other email providers. Thanks Nagaraj. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Yogeeta_Raghunathan Sent: Tuesday, January 09, 2001 10:47 AM To: [EMAIL PROTECTED] Subject: Log out Hi, When a user logs out, I need to prevent him/her from viewing the previous screen when the back button is clicked. Does anyone know how it is done? Thank You T R Yogeeta === 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: Hashtable error when I don't use it
The session handler uses a hashtable to store the session attributes. The attributes are stored as name-value pairs. so in your jsp page (jspindex_jsp_1.java), you are either putting a null value for the attribute name or the attribute value! -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Robuschi (Delfi) Sent: Thursday, January 18, 2001 9:36 AM To: [EMAIL PROTECTED] Subject: Hashtable error when I don't use it Hello everybody!! I have a strange error: in the first page of my application, I make few JSP instructions: I use a bean that reads from a text file and I put some session variables. I'm sure that I don't use Hash tables in that code. When I run it (on Tomcat) the strange error is: Error: 500 Location: /wds/index.jsp Internal Servlet Error: javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:459) at _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1. java:118) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:380) at org.apache.tomcat.session.StandardSession.setAttribute(StandardSession.java: 723) at org.apache.tomcat.session.StandardSession.putValue(StandardSession.java:629) at org.apache.tomcat.facade.HttpSessionFacade.putValue(HttpSessionFacade.java:1 47) at _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1. java:89) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Why I have a NullPointerException on HashTable when I don't use Hash Tables?? Does anybody has experienced this error?? What is it Many thanks in advance to everybody Robuschi Roberto Delfi srl P.za Ravenet 1/b - 43100 PARMA Tel. 0521/932474 Fax 0521/989045 [EMAIL PROTECTED] --- http://www.delfi.it === 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/faqpag
Re: new to jsp debugging
I use <% System.out.println("check pointx");%> and <% System.out.println("value of var:" +var) %> and some intuition and guesses. :-) -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Tom Simpson Sent: Friday, January 19, 2001 1:09 PM To: [EMAIL PROTECTED] Subject: new to jsp debugging Hi I'm new to JSP and would like to know how you debug I tried using but the jsp page doesn't have the comments. Can some one tell me how they debug is jsp this will help me know if it is the jsp or the bean i'm using (i mean trying to use) any response would help my backgroud is c++ HTML Thanks tcssls = Thomas Simpson [EMAIL PROTECTED] __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: a jsp -javascript problem
hi, Have a hidden field and put the contents of the text field into it. You can store the information in this format name@abcd~~dept@prdn etc. Then use string tokenizer in the servlet to split the hidden fields. Another option would be to put the variables in xml like "abcddsfsd" etc, but this would take more space. regards, Nagarajan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ashutosh Bhardwaj Sent: Friday, March 02, 2001 12:34 PM To: [EMAIL PROTECTED] Subject: a jsp -javascript problem hi, i have a jsp with one text field and two buttons one "submit" and one "more". after entering the value when i press more button the field gets cleared and the value in the field should be stored somewhere say a java or javascript using javascript. on pressing submit i have to pass the contents of array in request .how can i do that? for simplicity i am asking for one field but actually i have one full record consisting of many fields,so the solution must be given keeping that in mind. thanks in advance, ashutosh __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: How to restrict the multiple login's ?
Hi, By implementing the HttpSessionBindingListener interface you can keep track of session expiry. Another method would be to store the last access time, login time and the userid in a table. Then you can have a thread that checks periodically the difference between the current time and the last access time. If the difference is more than say, 10 minutes, you can delete that record. regards, Nagarajan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Rathna Sent: Friday, March 02, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: How to restrict the multiple login's ? Hi all, In my application i want to restrict the user from login when there is already a login with the same id. How to achive this? I have the implementation something as follows; When ever the user logs into the system,the user id will be put into to the hastable which is the singleton object.The same will be removed when he logs out. When other user tries to login with the already logged in id , then i am throwing the error to the user. The problem here is ,when the user logs in and just went off with out doing the logout of the system,there is no way of removing the entry from the hastable. Is it possible to do some activity when the session times out(using Listener!)? if so please give me a direction on how to achive it. with regards, rathna. === 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: Urgent !!!!
try "start iexplorer.exe c:\\help.htm" -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of sharma Sumeet Sent: Thursday, April 26, 2001 2:13 PM To: [EMAIL PROTECTED] Subject: Urgent hi All i wna open IE from java Application it works on My machine NT SERVER 4.0 IE Version 4.0 This code goes on to open IE for me ..on my machine but ir does not work on NT WS and with Version 5.0 try{ Runtime.getRuntime().exec("explorer.exe C:\\Program Files\\iNetBilling\\sisl\\inetbill\\Help\\Help1.htm"); }catch(java.io.IOException io){ io.printStackTrace(); } This code nither works on my machine NT Server nor on NT WS try{ Runtime.getRuntime().exec("iexplore.exe C:\\Program Files\\iNetBilling\\sisl\\inetbill\\Help\\Help1.htm"); }catch(java.io.IOException io){ io.printStackTrace(); } gives me IOException regards sumeet === 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: Increase Server Timeout Period.
hi, perhaps you can turn off page buffering and send some text to the browser before starting to do the large processing. regards, Nagarajan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Debopam Ghoshal Sent: Sunday, February 24, 2002 6:36 PM To: [EMAIL PROTECTED] Subject: Increase Server Timeout Period. Dear All, I am using Jakarta Tomcat 4.0, and I would like to know whether there is any means by which I can increase the time out period of the server. Currently I have a couple of beans which are performing some complex database queries/updates and also come I/O opertaions. These needs more time than it is alloted for the page, so even when the beans are running in the background, the browser(IE 6.0) pops up with a message that server has timed out. How can I prevent this from happening. Thanx in advance, Regards, Debopam. === 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: sql Date
hi, for inserting a date into the database, i use the following code. Calendar cal; // The date to be inserted String colValue = ""; colValue = "'"+(cal.get(Calendar.MONTH)+1)+"/"+cal.get(Calendar.DAY_OF_MONTH)+"/"+cal.g et(Calendar.YEAR) +" "+cal.get(Calendar.HOUR_OF_DAY) + ":"+cal.get(Calendar.MINUTE)+"'"; then.. String sql = "Insert into table(...) values ('aa'," + colValue + ")" then use sql for inserting the record. hth, Nagarajan. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Bhushan_Bhangale > Sent: Tuesday, May 07, 2002 11:14 AM > To: [EMAIL PROTECTED] > Subject: Re: sql Date > > > You cannot cast a java.util.Date to a java.sql.Date since the util.Date is > the parent class of sql Date. > > -Original Message- > From: Emmanuel Eze [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 07, 2002 1:46 PM > To: [EMAIL PROTECTED] > Subject: Re: sql Date > > > Even if I do that, how do I then convert the java.util.Date to > java.sql.Date? > > > -Original Message- > From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 07, 2002 11:05 AM > To: [EMAIL PROTECTED] > Subject: Re: sql Date > > > First of all:- > > java.util.sql birthday = null; should be java.util.Date > birthday = null; > > as the Calendar.getTime() method returns a util date object. > > -Original Message- > From: Emmanuel Eze [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 07, 2002 1:34 PM > To: [EMAIL PROTECTED] > Subject: sql Date > > > Hi all, > > Can somebody pls tell me how I can insert a Date type into a > database table > with a Date datatype? > > I have the year, month, and day as integer values. I need to > convert these > values into an sql Date object so I can now insert the Date > object into the > table, right? > > I have the following code: > Calendar cbirthday = null; > java.util.sql birthday = null; > . > . > . > cbirthday = Calendar.getInstance(); > cbirthday.set(Integer.parseInt(year), Integer.parseInt(month), > Integer.parseInt(day)); > birthday = cbirthday.getTime(); > > This last statement throws a cast exception! Even when I change it to: > birthday = (java.sql.Date) cbirthday.getTime(); > > Pls tell me what I'm doing wrongly. > > Emma > > == > = > 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 > > 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: comparing JSP/PHP
hi, Here are some advantages of using jsp over PHP. I have not worked with PHP but it is like asp, so some features listed below might be available. 1. JSP pages are compiled into a java class (servlet) during the first invocation. The subsequent requests are then served by the compiled class. In the case of PHP, the code is interpreted and executed for each request. 2. JSP uses java code while PHP uses its own syntax. 3. We can easily use OOPs techniques in jsp. Complex code can be put into java classes and they can be invoked from the jsp page. We can invoke the java interpreter from PHP but that would not be an elegant solution. 4. JSP provides tag libraries which can be used to hide the java code even further. Basically, in my opinion, if the client's applications needs only some simple scripting then PHP will be a good option. If there are lots of complex logic, with database access etc then jsp with servlets would be a better option. Writing lots of loops, ifs and exceptions in a page mixed with html and javascript will a nightmare. Then you also will have to worry about the html design etc. regards, Nagarajan. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lynn > Sent: Monday, May 13, 2002 6:28 AM > To: [EMAIL PROTECTED] > Subject: comparing JSP/PHP > > > OK, so I got a bit of an odd question here. I've been programming internet > applications for a few years now and I started with JSP because > of a previous > background with Java applications. However, I've found that in my > area, getting > shared hosting with Java support is the next closest thing to > impossible and is > usually very expensive. For this reason I've had to switch to > mostly using PHP. > > I would be very interested in knowing what the comparitive > strengths and weaknesses > are between the two languages if anyone out the is knowledgable > in both. Though > monetary limitations usually force me into PHP, I would like to > be able to make an > educated decision on wether it's worth pushing a client towards JSP. > > Thanks much, > > Daniel Lynn > Mystic Productions > > == > = > 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: Logging using Log4j with JSPs
I use, Category cat = Category.getInstance( "jsp_page_name" ); then cat.debug(..) This works fine for me. Nagarjan. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Patrick Fong > Sent: Monday, June 24, 2002 8:13 AM > To: [EMAIL PROTECTED] > Subject: Logging using Log4j with JSPs > > > Hi I need help logging my JSPs using Log4j. I can make it work > for servlets > and my java beans. However when I try to do the same thing for JSPs it > throws errors like 'Statement required' for variables declared > and 'Missing > }' errors for variables which do not really need them. > > Here is a list of things that I have done... > 1) Import the org.apache.log4j.* package in the 'page' tag. > 2) Declare 'static Logger cat = Logger.getLogger(this)' as one of the > variables. > 3) And try to call on the class whenever I want to log something... > 'cat.warn("Blah!")'. > > It does not quiet work the same way as servlets and Java beans. > > Pls Help > Patrick > > == > = > 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: Relaying Denied (Java Mail)
hi, you have to enable relaying in sendmail. your network administrator should know how to do it. regards, Nagarajan. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel > Sent: Monday, July 08, 2002 9:52 AM > To: [EMAIL PROTECTED] > Subject: Relaying Denied (Java Mail) > > > Hi > > I have ported my entire application in Linux and tried to use the > JavaMail application from different client and it throws me this > exception > When I tried sending an external email address. > > nested exception is: > javax.mail.SendFailedException: 550 5.7.1 <[EMAIL PROTECTED]>... > Relaying denied. IP name lookup failed [203.148.249.22] > > at javax.mail.Transport.send0(Transport.java:219) > > This works very well in Windows based client and server and in Linux can > send email to only internal email addresses. > > Is this a configuration problem in /etc/sendmail.cf file if it is what > should I do ? > > Or Is it tomcat configuration prolem ? > > Thanks in advance > Daniel Jayapaul.E > > == > = > 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: List of users logged in
hi, you have to use the functions for "Session listeners". using some interfaces, you can tell the server to do some stuff when the session is closed. so you have two possibilities 1. User logs out 2. Session is timedout by the server both these events will invoke the session closed methods. So what you can do is to have a flag which tells if the session is closed because the user loggged out. which means that if the flag is not set, the server had timed out the session. hth Nagarajan. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of subbu > Sent: Friday, January 19, 2001 10:25 AM > To: [EMAIL PROTECTED] > Subject: Re: List of users logged in > > > But...if the user closes the browser ...using browser's close button... > how to handle... > > - Original Message - > From: "Adrian Janssen" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, July 19, 2002 2:09 PM > Subject: Re: List of users logged in > > > > maintian the list in a bean with application scope > > > > > > > -Original Message- > > > From: subbu [SMTP:[EMAIL PROTECTED]] > > > Sent: 19 January 2001 10:19 > > > To: [EMAIL PROTECTED] > > > Subject: List of users logged in > > > > > > Hi, > > > i want to list the users logged in our application > > > > > > ie: > > > 1.List of users logged in > > > 2.login time. > > > > > > can u suggest best ways to do this. > > > > > > thanks in advance... > > > > > > regards > > > subbu > > > > > > > == > > > 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 > > -- > > > > It is the strict policy of Truworths that its e-mail facility and all > > e-mail communications emanating therefrom, should be utilised for > > business purposes only and should conform to high professional and > > business standards. Truworths has stipulated certain regulations in > > terms whereof strict guidelines relating to the use and content of > > e-mail communications are laid down. The use of the Truworths e-mail > > facility is not permitted for the distribution of chain letters or > > offensive mail of any nature whatsoever. Truworths hereby distances > > itself from and accepts no liability in respect of the unauthorised > > use of its e-mail facility or the sending of e-mail communications > > for other than strictly business purposes. Truworths furthermore > > disclaims liability for any unauthorised instruction for which > > permission was not granted.Truworths Limited accepts no liability > > for any consequences arising from or as a result of reliance on this > > message unless it is in respect of bona fide Truworths business for > > which proper authorisation has been granted. > > > > Any recipient of an unacceptable communication, a chain letter or > > offensive material of any nature is requested to notify the Truworths > > e-mail administrator ([EMAIL PROTECTED]) immediately in order that > > appropriate action can be taken against the individual concerned. > > > > > == > = > > 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/f
Re: "+" sign in query not working
hi, This is a serious security bug, any person can modify the string and send his own sql statement. you might want to write all the sql statements in jsp and take only valid values from the form. cheers, Nagarajan. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Vaishali S. Pandya > Sent: Tuesday, August 13, 2002 7:48 AM > To: [EMAIL PROTECTED] > Subject: Re: "+" sign in query not working > > > THANK YOU VERY MUCH > IT'S WORKING NOW > > THIS IS IN REPORT.JSP > - > function myreport(){ > qry='select emp_employee_no,emp_blood_group from hrm_employee_mas > where emp_blood_group in("O+")'; > document.frm1.finalqry.value=qry; > document.frm1.target="_new"; > document.frm1.method="post"; > document.frm1.submit(); > } > > > <% > String fqry=request.getParameter("finalqry"); > if (fqry==null || fqry.length()==0){ > fqry=""; > } > else > { > response.sendRedirect("crrep.jsp"); > } > %> > > THIS IS IN CRREP.JSP > - > String qry = request.getParameter("finalqry"); > out.println(qry); > > IT SHOWS ME "O+" HERE WHICH WAS "O " BEFORE > > THANK YOU > > > > > "Kesavanarayanan, > Ramesh To: > "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > (Cognizant)" cc: > <[EMAIL PROTECTED]Subject: RE: "+" > sign in query not working > izant.com> > > 08/13/02 10:34 AM > > > > > > > got it. + symbol in url means that it is a way of appending the query > parameter. so in your case what ever comes after the + symbol will be > treated as a parameter name. > try to pass this as a hidden variable and then check if it works > and let me > know after that > > > Regards > > Ramesh Kesavanarayanan > *[EMAIL PROTECTED] > > > > > > -Original Message- > > From: Vaishali S. Pandya [SMTP:[EMAIL PROTECTED]] > > Sent: Tuesday, August 13, 2002 10:38 AM > > To: [EMAIL PROTECTED] > > Subject: Re: "+" sign in query not working > > > > from report.jsp I sendRedirect("crrep.jsp") > > in crrep,jsp I try to getParameter("finalqry") > > finalqry is a hidden field in report.jsp > > here the problem is full finalqry it shows in URL [crrep.jsp?(HERE)] > > I DON'T KNOW WHY THIS HAPPENING > > I don't pass it with crrep.jsp?.. > > and the problem I think is + sign has it's special meaning in URL > > so "O+" in finalqry becomes "O " > > am i right here? > > what to do ? > > pls correct me if i am wrong somewhere. > > > > > > > > > > "Kesavanarayanan, > > Ramesh To: > > "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > > (Cognizant)" cc: > > <[EMAIL PROTECTED]Subject: RE: "+" sign in > > query not working > > izant.com> > > > > 08/12/02 05:33 PM > > > > > > > > > > > > > > are you working in oracle? > > > > > > Regards > > > > Ramesh Kesavanarayanan > > *[EMAIL PROTECTED] > > > > > > > > > > > -Original Message- > > > From: sreenath.v [SMTP:[EMAIL PROTECTED]] > > > Sent: Monday, August 12, 2002 5:50 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: "+" sign in query not working > > > > > > hoy madam where were u for long time ! > > > i had asked u to send me th treatment for back pain ! > > > can u send it to me ! > > > > > > > > > - Original Message - > > > From: "Vaishali S. Pandya" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Monday, August 12, 2002 5:06 PM > > > Subject: "+" sign in query not working > > > > > > > > > > hi friends > > > > i have a trouble in my query > > > > > > > > Select * from EM > > > > Where blood_grp = "O-" > > > > > > > > it gives me proper output all rows having blood group "O-" > > > > > > > > but blood_grp="O+" > > > > is not working. > > > > same for "A-", "B-" and "AB-" is working fine > > > > and "A+", "B+" and "AB+" is not working at all and returns zero > number > > > of > > > > rows > > > > why it is there? > > > > + sign have any meaning in qry? > > > > here this query is working fine backend side if i fier it > directly on > > > > database. > > > > > > > > Thanks in advance > > > > Vaishali > > > > > > == > = > 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.js
Re: Java Platform
hi, try http://www.volano.com/benchmarks.html > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Andrew E. Young > Sent: Friday, August 30, 2002 3:20 PM > To: [EMAIL PROTECTED] > Subject: Re: Java Platform > > > I cannot agree with you more howver, there are far too many people in the > World saying this with absolutely no basis. Does anyone know > where there is > a full, respected, detailed and un-biased discussion of the > merits of LINUX > over Windows for Java support specifically? > > > > > > The world does not contain enough paper to detail why Linux is > a better os > > than windows. > > - Original Message - > > From: "Andrew E. Young" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, August 30, 2002 3:38 AM > > Subject: Java Platform > > > > > > > Hey! > > > > > > Can anybody direct me to a resource giving details of why LINUX is the > > preferred platform for Java (as opposed to Windows)? > > > > > > Ed > > > > > > > > > == > = > > > 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 === 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: Automate Form submission
hi, if you are looking for a tool for simulating user actions then you can have a look at 1. Httpunit 2. opensta (www.opensta.org) 3. Apache JMeter OpenSTA runs only in windows but is easy to learn and setup. It provides a useful script recorder using which you can record the actions done in a browser and then later you can replay it with the expected number of users. Regards, Nagarajan. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of jyoti chereddy > Sent: Tuesday, September 17, 2002 8:10 PM > To: [EMAIL PROTECTED] > Subject: Automate Form submission > > > Can someone help me here. I want to automate Logging into a site , > submitting a form and then reading the results page. I would greatly > appreciate it if someone can give me a lead in this. > thanks, > Jyoti > > _ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > == > = > 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: TOO MANY OPEN FILES ERROR
hi, In linux you can increase this limit by giving echo "65535" > /proc/sys/fs/file-max. The default is 1024 which is easily taken up in a medium scale application. The possible reasons could be - many database connections - too many threads - too many files are kept open - heavy use of recursion/reflection In unix, almost everything including sockets etc are treated as files. This means that you have to check your code whether you have closed the database connections, sockets, files etc. One useful tool is lsof. This displays the list of open files at any time. /proc/sys/fs/file-nr shows the information about the total file handles allocated, free and used. hth, Nagarajan > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Aurelio Oliveira > Rodrigues > Sent: Monday, November 25, 2002 1:54 PM > To: [EMAIL PROTECTED] > Subject: TOO MANY OPEN FILES ERROR > > > Hi, > I'm working with JBOSS 3.0.1 integrated with TOMCAT 4.0.4 and > sometimes I'm getting the "TOO MANY OPEN FILES ERROR". > Does anybody can help me to discribe what is up? > Regards, > Aurelio > > 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: TOO MANY OPEN FILES ERROR
i did a google for "lsof hp" and got this among other results. Perhaps you can try compiling it for your platform if you dont get a binary. http://searchhp.techtarget.com/tip/1,289483,sid6_gci493522,00.html?FromTaxon omy=%2Fpr%2F6f9 Thanks, Nagarajan. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Shahata, Ash > Sent: Wednesday, November 27, 2002 11:13 AM > To: [EMAIL PROTECTED] > Subject: Re: TOO MANY OPEN FILES ERROR > > > Im having a similar problem but on HP unix, do you have any idea > what is the > equivalant of the lsof tool on HP Unix? > I searched the sys for this command but I couldnt find a match! > > Thanks > > -Original Message- > From: G.Nagarajan [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 26, 2002 1:08 PM > To: [EMAIL PROTECTED] > Subject: Re: TOO MANY OPEN FILES ERROR > > > hi, > In linux you can increase this limit by giving > echo "65535" > /proc/sys/fs/file-max. The default is 1024 which is > easily taken up in a medium scale application. > > The possible reasons could be > - many database connections > - too many threads > - too many files are kept open > - heavy use of recursion/reflection > > In unix, almost everything including sockets etc are treated > as files. This means that you have to check your code whether > you have closed the database connections, sockets, files etc. > One useful tool is lsof. This displays the list of open files > at any time. /proc/sys/fs/file-nr shows the information about > the total file handles allocated, free and used. > > hth, > Nagarajan > > > -Original Message- > > From: A mailing list about Java Server Pages specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of Aurelio Oliveira > > Rodrigues > > Sent: Monday, November 25, 2002 1:54 PM > > To: [EMAIL PROTECTED] > > Subject: TOO MANY OPEN FILES ERROR > > > > > > Hi, > > I'm working with JBOSS 3.0.1 integrated with TOMCAT 4.0.4 and > > sometimes I'm getting the "TOO MANY OPEN FILES ERROR". > > Does anybody can help me to discribe what is up? > > Regards, > > Aurelio > > > > 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 === 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