Error during native write operation
Hi! Did anyone migrate jsp code from Tomcat 3.2 to Websphere 3.5.2 with fixpack 2? I use some nested and repeated %@ include file="file.jsp"% and I'm getting an error java.io.IOException: Error during native write operation! Status Code: -1 I know there is a bug in ver 3.5.2 concerning forward but I don't use any forwards. Thanx for any ideas. Michal === 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
Session Maangement.
Hi All, I want to perform some operations when the user ends. How is this possible. Thanks in Advance, Prakasan === 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: Session Maangement.
Hi, I did this using a HttpSessionBindingListener with the valueUnbound() method. This way you are notified whenever an object is removed from the session (even when the session is destroyed) Hope this helps Koen -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of OK Prakasan Sent: dinsdag 27 februari 2001 10:49 To: [EMAIL PROTECTED] Subject: Session Maangement. Hi All, I want to perform some operations when the user ends. How is this possible. Thanks in Advance, Prakasan === 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
Code Generator
Hi, Requirement: We wish to create a Code Generator, which will dynamically generate the Code files for the screen layout and database handling. These screens might extend across more than 1 tables. This will be used for an application which can be accessed over the Internet by a number of users. There are no distributed requirements for this application. The screen layout will be in JSP, and we need to use Java Beans/EJB along with it. Doubts: The following doubts exist: 1. Is it advisable to use EJB's or will a simple bean model using MVC suffice. 2. In case we use EJB, which is better CMP or BMP. Remember that we span multiple tables. 3. In case we use BMP, then is it practical to write a code generator for BMP's - I mean is it repetitive code, and is it possible to write it by a utility. Thanks, Deepika === 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: Session Maangement.
Thanks Koen. I tried that and it works when I call the session.invalidate() method expicitly, say when the user clicks the log out button,. But when I close the browser window without logging out valueUnbound() is not fired.Any idea? thanks Koen Weyn [EMAIL PROTECTED]@java.sun.com on 02/27/2001 03:46:19 PM Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] Sent by: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: Session Maangement. Hi, I did this using a HttpSessionBindingListener with the valueUnbound() method. This way you are notified whenever an object is removed from the session (even when the session is destroyed) Hope this helps Koen -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of OK Prakasan Sent: dinsdag 27 februari 2001 10:49 To: [EMAIL PROTECTED] Subject: Session Maangement. Hi All, I want to perform some operations when the user ends. How is this possible. Thanks in Advance, Prakasan === 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: Session Maangement.
well, yes it is fired, but only after the session times out. Which is after 15 or 30 minutes (configurable in the jsp engine setup). There is no real good solution to invalidate a session when the user closes the browser. Geert Van Damme -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of OK Prakasan Sent: dinsdag 27 februari 2001 12:04 To: [EMAIL PROTECTED] Subject: Re: Session Maangement. Thanks Koen. I tried that and it works when I call the session.invalidate() method expicitly, say when the user clicks the log out button,. But when I close the browser window without logging out valueUnbound() is not fired.Any idea? thanks Koen Weyn [EMAIL PROTECTED]@java.sun.com on 02/27/2001 03:46:19 PM Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] Sent by: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: Session Maangement. Hi, I did this using a HttpSessionBindingListener with the valueUnbound() method. This way you are notified whenever an object is removed from the session (even when the session is destroyed) Hope this helps Koen -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of OK Prakasan Sent: dinsdag 27 februari 2001 10:49 To: [EMAIL PROTECTED] Subject: Session Maangement. Hi All, I want to perform some operations when the user ends. How is this possible. Thanks in Advance, Prakasan == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: strange error
hi no ans for my question. nobody know the solution... please if you know something mail... shailendra - Original Message - From: Shailendra [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 26, 2001 10:48 AM Subject: strange error hi i am using javawebserver2.0 with patch3 i have written some jsp pages all are working fine except one. In that one the servlet ingine create the java file but not able to crete a class file for that and it doesnt give any error on java webserver console in browser it shows internal server error code 500. So i manually go to the directory C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_examples\_jsp\_samples\_ myfolder and givinen javac _myfile.java (_myfile.java is created by JSP ingine) this will lead to successful compilation of java file, after that when i invoke the jsp file it works fine so please can any body help me to overcome the problem that file is working perfectlly in JSWDK1-2-1 and even in javawebserver except not able to create class file when i made changes in jsp file(even for first time). i tried this without patch also but fails to overcome. shailendra === 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-DB error
Hi.. I wonder whether you did use import java.sql.* or not. If you don't use, then it might look for the statement , resultset classes of com.caucho.jdbc.mysql package. If you use import java.sql.*, your problem can be resolved. with rgds, M.V.Rao Wipro Technologies Survey No 64, Madhapur Hyderabad - 500 033 , India. Tel(w): +91-40-656 5334(direct), Board +91-40-656 5000 Tel(h): +91-40-657 7762 E-mail:[EMAIL PROTECTED] Corporate Web Site : www.wipro.com The World's First SEI CMM Level 5 Software Services Company - Original Message - From: Jody F. Kerr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 7:54 AM Subject: JSP-DB error Hello Folks, I'm trying to connect from a jsp page to a MySQL database, both resdiding on a Win2K box running Apache and Resin. I went through everything, and am pretty certain I have all the configs correct. I get the following error when I load the jsp page: 500 Servlet Exception java.lang.VerifyError: (class: com/caucho/jdbc/mysql/ResultSet, method: findColumn signature: (Ljava/lang/String;)I) Incompatible object argument for function call at com.caucho.jdbc.mysql.Statement.init(Statement.java:65) at com.caucho.jdbc.mysql.Connection.createStatement(Connection.java:153) at _jsp._www__studebakercars__com_0._dbquery__jsp._jspService(_dbquery__jsp.jav a, Compiled Code) at com.caucho.jsp.JavaPage.service(JavaPage.java:89) at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83) at com.caucho.jsp.Page.service(Page.java:280) at com.caucho.jsp.QServlet.service(QServlet.java:161) at com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:452) at com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:395) at com.caucho.server.http.PageCache$Entry.service(PageCache.java:256) at com.caucho.server.http.PageCache.service(PageCache.java:105) at com.caucho.server.http.VirtualHost.service(VirtualHost.java:406) at com.caucho.server.http.Request.dispatch(Request.java:211) at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:307) at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java, Compiled Code) at com.caucho.server.TcpConnection.run(TcpConnection.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) I checked my classpaths and everything looks ok. The code itself is right out of the Wrox Professional JSP book. Here's the relevant code snippet: % Class.forName("com.caucho.jdbc.mysql.Driver"); Connection myConn = DriverManager.getConnection("jdbc:mysql-caucho://localhost:3306/wroxjsp"); Statement stmt = myConn.createStatement(); ResultSet myResultSet = stmt.executeQuery("select * from employee"); if (myResultSet != null){ while (myResultSet.next()){ String eid = myResultSet.getString("empid"); String last = myResultSet.getString("lastname"); String first = myResultSet.getString("firstname"); String ext = myResultSet.getString("extension");% Many thanks Jody === 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: strange error
It would really help if u could get the Exception stackTrace. Check ur Log files Mayuresh -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Shailendra Sent: Wednesday, January 01, 1997 8:14 AM To: [EMAIL PROTECTED] Subject: Re: strange error hi no ans for my question. nobody know the solution... please if you know something mail... shailendra - Original Message - From: Shailendra [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 26, 2001 10:48 AM Subject: strange error hi i am using javawebserver2.0 with patch3 i have written some jsp pages all are working fine except one. In that one the servlet ingine create the java file but not able to crete a class file for that and it doesnt give any error on java webserver console in browser it shows internal server error code 500. So i manually go to the directory C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_examples\_jsp\_samples\_ myfolder and givinen javac _myfile.java (_myfile.java is created by JSP ingine) this will lead to successful compilation of java file, after that when i invoke the jsp file it works fine so please can any body help me to overcome the problem that file is working perfectlly in JSWDK1-2-1 and even in javawebserver except not able to create class file when i made changes in jsp file(even for first time). i tried this without patch also but fails to overcome. shailendra === 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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.231 / Virus Database: 112 - Release Date: 02/12/2001 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.231 / Virus Database: 112 - Release Date: 02/12/2001 === 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: Session
Try to reload Tomcat when you re-compile your servlet.. iZone Infotech wrote: Nope!! This does not help. I checked all possible combinations. The problem is at the servlet side. In JSP-JSP, I get the session value. But in both JSP-Servlet and Servlet-JSP the session values are lost. It looks as if the scope of the session ends at the end of Servlet. Funny part, after evoking my servlet, which puts some value to the session, I went and checked the session example of TomCat. The session values added by me was shown there. That means the values are in the session. It gets lost somewhere when I use sendRedirect(). Does anybody know whether I have to do some settings in TomCat? I am new to TomCat. Regards, Dantus - Original Message - From: Nishit Trivedi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 22, 2001 8:28 PM Subject: Re: Session after response.sendRedirect put return statement.. e.g response.sendRedirect("some page"); return; also try priting values before putting into and getting from the session... Nishit -Original Message- From: iZone Infotech [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 7:17 AM To: [EMAIL PROTECTED] Subject: Session Hi, I am surprised to see that nobody is responding to my email. What is the reason? Nobody uses Netscape any more!! I have another problem, again with sessions. I am putting a value to the session in a servlet and calling a JSP file using sendRedirect. My session is empty in the JSP. The code I am using in servlet is: (request.getSession(true)).putValue("name","some name"); response.sendRedirect(response.encodeRedirectUrl("http://../second.jsp") ); The code in JSP: (This is supposed to get all the elements in the session, print the total number and the value I have put from the servlet. This does not print anything?). String[] sessionNames = session.getValueNames(); out.println("No of elements :"+sessionNames.length); out.println(session.getValue("name")); Can somebody let me know what is happening. It could a simple stupid error from my side. My Netscape problem remains as given below. Hi friends, It seems that 'session' has some problem with Netscape. I have Tomcat installed on my machine. There is an example of Shopping Cart using Sessions in Tomcat. It works fine in IE, but in Netscape, it replaces the earlier entry (there us only 1 item in the cart). I had faced some other problem in sessions with Netscape (same thing worked with IE), so I went hunting for a solution and found out that even the TomCat example is giving problem with Netscape. Did anybody else face similar problems? If yes what was the solution. My Webserver supports jsk1.2.1 and jsdk2.0 only. Regards, Dantus === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Expression evaluation for an expression ??????
Hi. I hava a string which contains an expression. I want it to be evaluated on the same page. Here is the code. %String str="";% %str="lt;%out.println(\"Hello World\");%gt;";% %=str=str.valueOf(str)% I want the output as; Hello World but the output is; %out.println("Hello World");% We have evaluate fuction in ASP. Please can anybody tell me how to evaluate this expression.to get HelloWorld as output. Thank you in anticipation. === 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
Remote JDBC connection
Hi, How to connect to database on another system using pure JDBC? (jdbc:computer.domain.com:db2:alias) I have allready seen RMI-JDBC, but it uses client/server architecture. Is there any way to connect only using JDBC (+JDBC 2.0 Optional Package)? Does it depend on type of database/jdbc driver? Thanks for any help. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Expression evaluation for an expression ??????
Hi. I hava a string which contains an expression. I want it to be evaluated on the same page. Here is the code. %String str="";% %str="lt;%out.println(\"Hello World\");%gt;";% %=str% I want the output as; Hello World but the output is; %out.println("Hello World");% We have evaluate fuction in ASP. Please can anybody tell me how to evaluate this expression.to get HelloWorld as output. Thank you in anticipation. From: Shuwaz Abbasi. === 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: Code Generator
I wrote a code generator for Entity Beans. THis is fairly easy because the DB meta data can tell you about the tables and there relationships. This code is core to much of the system that I work on and now I can add code gen for other repetitive tasks that access the entity layer. When writing code gens you need to understand the task (it's repetitive nature) very well. After you write parts by hand a couple of times, you will identify how the task should be done with a code generator. From: Sachdeva Deepika [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Code Generator Date: Tue, 27 Feb 2001 16:09:56 +0530 Hi, Requirement: We wish to create a Code Generator, which will dynamically generate the Code files for the screen layout and database handling. These screens might extend across more than 1 tables. This will be used for an application which can be accessed over the Internet by a number of users. There are no distributed requirements for this application. The screen layout will be in JSP, and we need to use Java Beans/EJB along with it. Doubts: The following doubts exist: 1. Is it advisable to use EJB's or will a simple bean model using MVC suffice. 2. In case we use EJB, which is better CMP or BMP. Remember that we span multiple tables. 3. In case we use BMP, then is it practical to write a code generator for BMP's - I mean is it repetitive code, and is it possible to write it by a utility. Thanks, Deepika === 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 _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Expression evaluation for an expression ??????
try this instead %String str="";%/ %str="Hello World"% %=str% -Jay --- Shuja Nawaz [EMAIL PROTECTED] wrote: Hi. I hava a string which contains an expression. I want it to be evaluated on the same page. Here is the code. %String str="";% %str="lt;%out.println(\"Hello World\");%gt;";% I want the output as; Hello World but the output is; %out.println("Hello World");% We have evaluate fuction in ASP. Please can anybody tell me how to evaluate this expression.to get HelloWorld as output. Thank you in anticipation. From: Shuwaz Abbasi. === 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!? 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
Jrun3.0
Hi all, I use Jrun 3.0 to do the jsp page. I would make a access to oracle db. I have download the classess111.zip I wrote this code try { Class.forName("oracle.jdbc.driver.OracleDriver"); out.println("H1OK /H1"); } catch ( Exception E) { out.println(E.getMessage()); out.println("NO DRIVER"); } try { Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcl","xx","xxx"); Statement stmt = conn.createStatement(); ResultSet rset = stmt.executeQuery("select count(*) from account"); .. .. .. out.println("OK DB"); } catch (Exception e) { out.println("H1ERRORE/H1"); out.println(e.getMessage()); } but the first proble is that the program can't found the oracle-driver. Where must i copy the file classess111.zip in the JRun 3.0 .. i have copy the file somewhere .. but the i receive always the same error Thanks for the help Peter === 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: Expression evaluation for an expression ??????
please write properly... It should be %String str="";% %str="Hello World";% %=str% Otherwise you can write like this, % String str ="Hello World" ; % %=str% Rgds Muthu - Original Message - From: "Jay P" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 8:02 PM Subject: Re: Expression evaluation for an expression ?? try this instead %String str="";%/ %str="Hello World"% %=str% -Jay --- Shuja Nawaz [EMAIL PROTECTED] wrote: Hi. I hava a string which contains an expression. I want it to be evaluated on the same page. Here is the code. %String str="";% %str="lt;%out.println(\"Hello World\");%gt;";% I want the output as; Hello World but the output is; %out.println("Hello World");% We have evaluate fuction in ASP. Please can anybody tell me how to evaluate this expression.to get HelloWorld as output. Thank you in anticipation. From: Shuwaz Abbasi. === 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!? 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: JSP-DB error
Ricky, The empid field was actually an int. I switched the code to int eid = myResultSet.getInt("empid") But that's not resolving the error. I'm still learning/figuring out how to read the error messages, so I'm still not certain what I'm looking at. The remaining fields are all text fields in the db. Thanks Jody you may be accessing a non-String value with the getString() method. Is the empid field of String datatype? :^) Ricky Y. Artigas Analyst/Programmer Information Technology Division Easycall Communications Phils., Inc. - Easycall Internet - 418 Arayat St., Mandaluyong City 1550, Philippines Personal WAP Site: http://www.buzzed.co.uk/mobile/?rya Company Website: http://www.easycall.com.ph Tel.no: (+632) 5338001 ext.6574 Mobile:(+63) 0917-8951783 Pager: 141-002955 Email: [EMAIL PROTECTED] --- IMPORTANT NOTICE: This message (and any attachment hereto) may contain privileged and/or confidential information specific to EasyCall. If you are not the intended addressee indicated in this message, you may not copy or disseminate this message (or any attachment hereto) to anyone. Instead, please destroy this message (and any attachment hereto), and kindly notify the sender by reply email. Any information in this message (and any attachment thereto) that do not relate to the official business of EasyCall shall be understood as neither given nor endorsed by the company. -Original Message- From: Jody F. Kerr [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 10:24 AM To: [EMAIL PROTECTED] Subject: JSP-DB error Hello Folks, I'm trying to connect from a jsp page to a MySQL database, both resdiding on a Win2K box running Apache and Resin. I went through everything, and am pretty certain I have all the configs correct. I get the following error when I load the jsp page: 500 Servlet Exception java.lang.VerifyError: (class: com/caucho/jdbc/mysql/ResultSet, method: findColumn signature: (Ljava/lang/String;)I) Incompatible object argument for function call at com.caucho.jdbc.mysql.Statement.init(Statement.java:65) at com.caucho.jdbc.mysql.Connection.createStatement(Connection.java:153) at _jsp._www__studebakercars__com_0._dbquery__jsp._jspService(_dbquery__jsp.j av a, Compiled Code) at com.caucho.jsp.JavaPage.service(JavaPage.java:89) at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83) at com.caucho.jsp.Page.service(Page.java:280) at com.caucho.jsp.QServlet.service(QServlet.java:161) at com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:452) at com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:395) at com.caucho.server.http.PageCache$Entry.service(PageCache.java:256) at com.caucho.server.http.PageCache.service(PageCache.java:105) at com.caucho.server.http.VirtualHost.service(VirtualHost.java:406) at com.caucho.server.http.Request.dispatch(Request.java:211) at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:307) at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java, Compiled Code) at com.caucho.server.TcpConnection.run(TcpConnection.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) I checked my classpaths and everything looks ok. The code itself is right out of the Wrox Professional JSP book. Here's the relevant code snippet: % Class.forName("com.caucho.jdbc.mysql.Driver"); Connection myConn = DriverManager.getConnection("jdbc:mysql-caucho://localhost:3306/wroxjsp"); Statement stmt = myConn.createStatement(); ResultSet myResultSet = stmt.executeQuery("select * from employee"); if (myResultSet != null){ while (myResultSet.next()){ String eid = myResultSet.getString("empid"); String last = myResultSet.getString("lastname"); String first = myResultSet.getString("firstname"); String ext = myResultSet.getString("extension");% Many thanks Jody == = 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
Re: JSP-DB error
Yep, I did have the import statement at the beginning of the file. JOdy - Original Message - From: "m venkateswara rao" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 5:21 AM Subject: Re: JSP-DB error Hi.. I wonder whether you did use import java.sql.* or not. If you don't use, then it might look for the statement , resultset classes of com.caucho.jdbc.mysql package. If you use import java.sql.*, your problem can be resolved. with rgds, M.V.Rao Wipro Technologies Survey No 64, Madhapur Hyderabad - 500 033 , India. Tel(w): +91-40-656 5334(direct), Board +91-40-656 5000 Tel(h): +91-40-657 7762 E-mail:[EMAIL PROTECTED] Corporate Web Site : www.wipro.com The World's First SEI CMM Level 5 Software Services Company - Original Message - From: Jody F. Kerr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 7:54 AM Subject: JSP-DB error Hello Folks, I'm trying to connect from a jsp page to a MySQL database, both resdiding on a Win2K box running Apache and Resin. I went through everything, and am pretty certain I have all the configs correct. I get the following error when I load the jsp page: 500 Servlet Exception java.lang.VerifyError: (class: com/caucho/jdbc/mysql/ResultSet, method: findColumn signature: (Ljava/lang/String;)I) Incompatible object argument for function call at com.caucho.jdbc.mysql.Statement.init(Statement.java:65) at com.caucho.jdbc.mysql.Connection.createStatement(Connection.java:153) at _jsp._www__studebakercars__com_0._dbquery__jsp._jspService(_dbquery__jsp.jav a, Compiled Code) at com.caucho.jsp.JavaPage.service(JavaPage.java:89) at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83) at com.caucho.jsp.Page.service(Page.java:280) at com.caucho.jsp.QServlet.service(QServlet.java:161) at com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:452) at com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:395) at com.caucho.server.http.PageCache$Entry.service(PageCache.java:256) at com.caucho.server.http.PageCache.service(PageCache.java:105) at com.caucho.server.http.VirtualHost.service(VirtualHost.java:406) at com.caucho.server.http.Request.dispatch(Request.java:211) at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:307) at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java, Compiled Code) at com.caucho.server.TcpConnection.run(TcpConnection.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) I checked my classpaths and everything looks ok. The code itself is right out of the Wrox Professional JSP book. Here's the relevant code snippet: % Class.forName("com.caucho.jdbc.mysql.Driver"); Connection myConn = DriverManager.getConnection("jdbc:mysql-caucho://localhost:3306/wroxjsp"); Statement stmt = myConn.createStatement(); ResultSet myResultSet = stmt.executeQuery("select * from employee"); if (myResultSet != null){ while (myResultSet.next()){ String eid = myResultSet.getString("empid"); String last = myResultSet.getString("lastname"); String first = myResultSet.getString("firstname"); String ext = myResultSet.getString("extension");% Many thanks Jody === 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: Jrun3.0
put your classes111.zip in jrun's classpath.. or add the directory in which your classes111.zip resides to your classpath varible... Nishit -Original Message- From: Peter Palombi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 9:45 AM To: [EMAIL PROTECTED] Subject: Jrun3.0 Hi all, I use Jrun 3.0 to do the jsp page. I would make a access to oracle db. I have download the classess111.zip I wrote this code try { Class.forName("oracle.jdbc.driver.OracleDriver"); out.println("H1OK /H1"); } catch ( Exception E) { out.println(E.getMessage()); out.println("NO DRIVER"); } try { Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcl","xx","xx x"); Statement stmt = conn.createStatement(); ResultSet rset = stmt.executeQuery("select count(*) from account"); .. .. .. out.println("OK DB"); } catch (Exception e) { out.println("H1ERRORE/H1"); out.println(e.getMessage()); } but the first proble is that the program can't found the oracle-driver. Where must i copy the file classess111.zip in the JRun 3.0 .. i have copy the file somewhere .. but the i receive always the same error Thanks for the help Peter === 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
Off topic (MS Access query question) ?
I am using MS Access database. I have an sql quesion please: what's wrong with this query : String login = "SELECT * FROM USERS WHERE UserName = '" + ? + "' AND Password = '" + ? + "'"; When I complile the bean I got this error : C:\tomcat4\webapps\ultra2\WEB-INF\classesjavac Employee.java Employee.java:30: illegal start of expression String login = "SELECT * FROM USERS WHERE UserName = '" + ? + "' AND Password = '" + ? + "'"; ^ 1 error Thanks Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Off topic (MS Access query question) ?
I believe u are using prepared statement... so just say... --- String userName="abc"; String password="def"; String login = "SELECT * FROM USERS WHERE UserName=? AND Password=?"; PreparedStatement pstmt = conn.prepareStatement(login); pstmt.setString(1,userName); pstmt.setString(2,password); ResuletSet rs = pstmt.executeQuery(); --- PreparedStatement will take care of each and every special character like " , ' etc... Nishit -Original Message- From: sufi malak [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 11:05 AM To: [EMAIL PROTECTED] Subject: Off topic (MS Access query question) ? I am using MS Access database. I have an sql quesion please: what's wrong with this query : String login = "SELECT * FROM USERS WHERE UserName = '" + ? + "' AND Password = '" + ? + "'"; When I complile the bean I got this error : C:\tomcat4\webapps\ultra2\WEB-INF\classesjavac Employee.java Employee.java:30: illegal start of expression String login = "SELECT * FROM USERS WHERE UserName = '" + ? + "' AND Password = '" + ? + "'"; ^ 1 error Thanks Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
usebean tag : where to store the class files on tomcat
Hi, I am working on a JSP application. I NEED TO KNOW AS TO WHERE TO STORE THE BEAN CLASS FILE ON on Tomcat engine. Anybody working on tomcat out there?? Please help!! Thanks in advance, Veena _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: usebean tag : where to store the class files on tomcat
path where u installed tomcat\webapps\examples\WEB-INF\classes\ Nishit -Original Message- From: veena mallya [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 11:15 AM To: [EMAIL PROTECTED] Subject: usebean tag : where to store the class files on tomcat Hi, I am working on a JSP application. I NEED TO KNOW AS TO WHERE TO STORE THE BEAN CLASS FILE ON on Tomcat engine. Anybody working on tomcat out there?? Please help!! Thanks in advance, Veena _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Dynamic Screen
hiii deepika well, to tell u i am also workingon the same kind of problem in my company..incidentally i saw ur question in my mailbox and thought i could help u little bit with my thoughts i am right now using XML for doing such stuff. which gives lot of flexibility in doing such database displays over the web hope u got the answer if not reply back to [EMAIL PROTECTED] thanks regards sudhakar s/w enggr WIPRO INFOTECH From: Sachdeva Deepika [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Dynamic Screen Date: Mon, 19 Feb 2001 16:49:16 +0530 Hi, I want to create a Web-based utility in which the screens are defined by the user at Run-Time. The user can define the position, colour of fields, specify whether a field will be displayed or no and also add new fields to this screen. The screen can be implemented by storing all the screen parameters (like field position, display or no etc.) in a table and then painting the screen by retrieving them from the database. However this makes the entire system very slow. Does anybody have better ideas as to how such a system can be implemented. Thanks, Deepika === 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 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
sendRedirect ??
I got this error : A Servlet Exception Has Occurred org.apache.jasper.JasperException: Unable to compile class for JSP..\work\localhost\ultra2\_0002flogin_00032_0002ejsplogin2_jsp_1.java:89: Undefined variable or class name: Insert response.sendRedirect(Insert.jsp); ^ ..\work\localhost\ultra2\_0002flogin_00032_0002ejsplogin2_jsp_1.java:92: Undefined variable or class name: login2 response.sendRedirect(login2.jsp); ^ 2 errors This is my code for login2.jsp : %@ page import="Employee"% jsp:useBean id="employee" class="Employee" scope="request"/ % String user = (String)request.getParameter("username"); String pass = (String)request.getParameter("password"); // check the session first, if the user is in the session sendRedirect(Insert.jsp) directly if (user != null pass != null) { if (employee.login(user, pass)){ System.out.println("user exists"); response.sendRedirect(Insert.jsp); } else { System.out.println("User does not exist"); response.sendRedirect(login2.jsp); } } % Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Dynamic Screen
have a look at http://www.hyperqbs.org - the hyperqbs framework lets you to define presentation logic tier for your server-side application. It handles a 'dynamic face' mechanism which could simplifie your task (???) -peter suhdkaar asdas wrote: hiii deepika well, to tell u i am also workingon the same kind of problem in my company..incidentally i saw ur question in my mailbox and thought i could help u little bit with my thoughts i am right now using XML for doing such stuff. which gives lot of flexibility in doing such database displays over the web hope u got the answer if not reply back to [EMAIL PROTECTED] thanks regards sudhakar s/w enggr WIPRO INFOTECH From: Sachdeva Deepika [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Dynamic Screen Date: Mon, 19 Feb 2001 16:49:16 +0530 Hi, I want to create a Web-based utility in which the screens are defined by the user at Run-Time. The user can define the position, colour of fields, specify whether a field will be displayed or no and also add new fields to this screen. The screen can be implemented by storing all the screen parameters (like field position, display or no etc.) in a table and then painting the screen by retrieving them from the database. However this makes the entire system very slow. Does anybody have better ideas as to how such a system can be implemented. Thanks, Deepika === 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 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets -- Peter K. Ulrich Qbizm Technologies, Inc. CEO ... the art of internet. Kralovopolska 139 tel: +420 5 4124 2414 601 12 Brno, CZ http://www.qbizm.com fax: +420 5 4121 2696 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Off topic (MS Access query question) ?
its a syntax error Joseph Karau Kingland Systems [EMAIL PROTECTED] 507-536-3629 AIM: jkara3629 -Original Message- From: sufi malak [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 10:05 AM To: [EMAIL PROTECTED] Subject: Off topic (MS Access query question) ? I am using MS Access database. I have an sql quesion please: what's wrong with this query : String login = "SELECT * FROM USERS WHERE UserName = '" + ? + "' AND Password = '" + ? + "'"; When I complile the bean I got this error : C:\tomcat4\webapps\ultra2\WEB-INF\classesjavac Employee.java Employee.java:30: illegal start of expression String login = "SELECT * FROM USERS WHERE UserName = '" + ? + "' AND Password = '" + ? + "'"; ^ 1 error Thanks Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
put the value to textarea field in jsp
All: I can see the loverview variable, but it just can not show from the textarea field. anybody knows what's going on? Thanks, Carol here is the code: % String loverview = (String) V.elementAt(i+13); out.println ("the overview is: " + loverview); % tr bgcolor=#cctd colspan=2font face="Arial, Helvetica, sans-serif"font size=-1BOverview:/B/font /td /tr trtd colspan=2 textarea name="overview" wrap=virtual rows=3 cols=60 value="%= loverview %"/textarea /td /tr === 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: sendRedirect ??
I got the solution sendRedirect take a string. From: sufi malak [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: sendRedirect ?? Date: Tue, 27 Feb 2001 16:48:30 - I got this error : A Servlet Exception Has Occurred org.apache.jasper.JasperException: Unable to compile class for JSP..\work\localhost\ultra2\_0002flogin_00032_0002ejsplogin2_jsp_1.java:89: Undefined variable or class name: Insert response.sendRedirect(Insert.jsp); ^ ..\work\localhost\ultra2\_0002flogin_00032_0002ejsplogin2_jsp_1.java:92: Undefined variable or class name: login2 response.sendRedirect(login2.jsp); ^ 2 errors This is my code for login2.jsp : %@ page import="Employee"% jsp:useBean id="employee" class="Employee" scope="request"/ % String user = (String)request.getParameter("username"); String pass = (String)request.getParameter("password"); // check the session first, if the user is in the session sendRedirect(Insert.jsp) directly if (user != null pass != null) { if (employee.login(user, pass)){ System.out.println("user exists"); response.sendRedirect(Insert.jsp); } else { System.out.println("User does not exist"); response.sendRedirect(login2.jsp); } } % Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: sendRedirect ??
response.sendRedirect(Insert.jsp); what about: response.sendRedirect("Insert.jsp"); === 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: put the value to textarea field in jsp
there is no value attribute to the textarea tag. here's how it should work. textarea name="overview" wrap=virtual rows=3 cols=60%= loverview %/textarea --- Carol Geng [EMAIL PROTECTED] wrote: All: I can see the loverview variable, but it just can not show from the textarea field. anybody knows what's going on? Thanks, Carol here is the code: % String loverview = (String) V.elementAt(i+13); out.println ("the overview is: " + loverview); % tr bgcolor=#cctd colspan=2font face="Arial, Helvetica, sans-serif"font size=-1BOverview:/B/font /td /tr trtd colspan=2 textarea name="overview" wrap=virtual rows=3 cols=60 value="%= loverview %"/textarea /td /tr === 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!? 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
Re: put the value to textarea field in jsp
Per the HTML spec (http://www.w3.org/TR/html4/interact/forms.html#h-17.7), the textarea form element does not have an attribute called 'value'. To initialize the form text area element, simply do this: textarea name="overview" wrap=virtual rows=3 cols=60%=loverview %/textarea -Original Message- From: Carol Geng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 8:47 AM To: [EMAIL PROTECTED] Subject: put the value to textarea field in jsp All: I can see the loverview variable, but it just can not show from the textarea field. anybody knows what's going on? Thanks, Carol here is the code: % String loverview = (String) V.elementAt(i+13); out.println ("the overview is: " + loverview); % tr bgcolor=#cctd colspan=2font face="Arial, Helvetica, sans-serif"font size=-1BOverview:/B/font /td /tr trtd colspan=2 textarea name="overview" wrap=virtual rows=3 cols=60 value="%= loverview %"/textarea /td /tr === 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: sendRedirect ??
because response.sendRedirect takes a string, look, copied straight from the documentatation: sendRedirect public void sendRedirect(java.lang.String location) throws java.io.IOException Sends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container will convert the relative URL to an absolute URL before sending the response to the client. If the response has already been committed, this method throws an IllegalStateException. After using this method, the response should be considered to be committed and should not be written to. Parameters: location - the redirect location URL Throws: java.io.IOException - If an input or output exception occurs java.lang.IllegalStateException - If the response was committed ... looks like you need to put quotes around your strings Joseph Karau Kingland Systems [EMAIL PROTECTED] 507-536-3629 AIM: jkara3629 -Original Message- From: sufi malak [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 10:49 AM To: [EMAIL PROTECTED] Subject: sendRedirect ?? I got this error : A Servlet Exception Has Occurred org.apache.jasper.JasperException: Unable to compile class for JSP..\work\localhost\ultra2\_0002flogin_00032_0002ejsplogin2_jsp_1.java:89: Undefined variable or class name: Insert response.sendRedirect(Insert.jsp); ^ ..\work\localhost\ultra2\_0002flogin_00032_0002ejsplogin2_jsp_1.java:92: Undefined variable or class name: login2 response.sendRedirect(login2.jsp); ^ 2 errors This is my code for login2.jsp : %@ page import="Employee"% jsp:useBean id="employee" class="Employee" scope="request"/ % String user = (String)request.getParameter("username"); String pass = (String)request.getParameter("password"); // check the session first, if the user is in the session sendRedirect(Insert.jsp) directly if (user != null pass != null) { if (employee.login(user, pass)){ System.out.println("user exists"); response.sendRedirect(Insert.jsp); } else { System.out.println("User does not exist"); response.sendRedirect(login2.jsp); } } % Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: put the value to textarea field in jsp
Thanks, it is working now. Carol At 09:14 AM 2/27/2001 -0800, you wrote: textarea name="overview" wrap=virtual rows=3 cols=60%=loverview %/textarea === 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
off toppic (sql query how to) thanks
Hi, I want to have links called A B C D Z, and whenever the user click in one of them, all the rows that has employee last name start with this alphapet or greater get selected. Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
convert string date to java.sql.Date format
All: Here is the code to convert String date to java.sql.Date in jsp, anybody would help to find what's wrong here. the first output is: 2001-04-02, the second converted putput is null. I need the second converted date to be avaible in my preparedstatement.setDate field. Thanks, Carol = mybcdate = request.getParameter("bcdate"); out.println("the string date is: " + mybcdate); SimpleDateFormat dateFormatter = new SimpleDateFormat("dd MM "); try { lbcdate = new java.sql.Date( dateFormatter.parse(mybcdate).getTime() ); }catch (java.text.ParseException e) {} out.println ("the date is: " + lbcdate); === 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: convert string date to java.sql.Date format
Hi, Looks like... ur input is in -mm-dd ( note '-' ) When u r parsing using SimpleDateFormat, ur giving the pattern as 'dd mm ', which is not the same. Try changing it it '-mm-dd'. HTH Sudhi All: Here is the code to convert String date to java.sql.Date in jsp, anybody would help to find what's wrong here. the first output is: 2001-04-02, the second converted putput is null. I need the second converted date to be avaible in my preparedstatement.setDate field. Thanks, Carol = mybcdate = request.getParameter("bcdate"); out.println("the string date is: " + mybcdate); SimpleDateFormat dateFormatter = new SimpleDateFormat("dd MM "); try { lbcdate = new java.sql.Date( dateFormatter.parse(mybcdate).getTime() ); }catch (java.text.ParseException e) {} out.println ("the date is: " + lbcdate); === 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: convert string date to java.sql.Date format
I am sorry.. it should be -MM-dd not -mm-dd -Original Message- From: Sudheendra Hebbagilu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 12:50 PM To: [EMAIL PROTECTED] Subject: Re: convert string date to java.sql.Date format Hi, Looks like... ur input is in -mm-dd ( note '-' ) When u r parsing using SimpleDateFormat, ur giving the pattern as 'dd mm ', which is not the same. Try changing it it '-mm-dd'. HTH Sudhi All: Here is the code to convert String date to java.sql.Date in jsp, anybody would help to find what's wrong here. the first output is: 2001-04-02, the second converted putput is null. I need the second converted date to be avaible in my preparedstatement.setDate field. Thanks, Carol = mybcdate = request.getParameter("bcdate"); out.println("the string date is: " + mybcdate); SimpleDateFormat dateFormatter = new SimpleDateFormat("dd MM "); try { lbcdate = new java.sql.Date( dateFormatter.parse(mybcdate).getTime() ); }catch (java.text.ParseException e) {} out.println ("the date is: " + lbcdate); == = 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: off toppic (sql query how to) thanks
Your Query should be like this: String strCrit = // The Value you as A B C D Z based on the alphabet pressed '%' Select * from Employee where LastName Like strCrit; This will fetch all rows starting with the Alphabet 'A..' say if strCrit is 'A%' Regds Murugan K Patham 480 - 990 4200 Ext 2712 [EMAIL PROTECTED] 02/27 10:31 AM Hi, I want to have links called A B C D Z, and whenever the user click in one of them, all the rows that has employee last name start with this alphapet or greater get selected. Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: a very basic problem
It might be there is some problem with your if statement ? by the way how u r checking the strings with '==' of Object.equeals() method ? Sagar. --- anurag dewan [EMAIL PROTECTED] wrote: hi, In my main.jsp page i am getting the username and password form the user,checking it from the database and if correct then redirecting the user to the login.jsp. This procedure is going on fine... but when trying to redirect the user to an error.jsp page when the username or password is not correct, there is a problem. the code is like.. if(...) { % jsp:forward page="login.jsp" / % } else { % jsp:forward page="error.jsp" / % } % /form On executing the page...it directly goes to error.jsp. I think initially when the textboxes are blank..it takes it for wrong username or password and goes to error.jsp. Any suggestions on how to tackle it -anurag Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ 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
Re: Session Maangement.
I think u can use Java Script events like onUnLoad() Pl. check any Java Script resource. Sagar. --- OK Prakasan [EMAIL PROTECTED] wrote: Thanks Koen. I tried that and it works when I call the session.invalidate() method expicitly, say when the user clicks the log out button,. But when I close the browser window without logging out valueUnbound() is not fired.Any idea? thanks Koen Weyn [EMAIL PROTECTED]@java.sun.com on 02/27/2001 03:46:19 PM Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] Sent by: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: Session Maangement. Hi, I did this using a HttpSessionBindingListener with the valueUnbound() method. This way you are notified whenever an object is removed from the session (even when the session is destroyed) Hope this helps Koen -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of OK Prakasan Sent: dinsdag 27 februari 2001 10:49 To: [EMAIL PROTECTED] Subject: Session Maangement. Hi All, I want to perform some operations when the user ends. How is this possible. Thanks in Advance, Prakasan === 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!? 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
test page doesn't function as it should
I have a very simple 'Hello World" page. It works in JRun server in Windows env. But when it's run on New Atlanta's Exec Server it does not function properly. I have to make the applications work on both these environments, so I wanted to know whether this was just a setup issue or is there a compatibility issue between these two. In New Atlanta's Exec Server (running on Unix),instead of displaying Hello World in increasing/decreasing fonts, it simply diaplys two lines of "Hello World" in the same font. Any suggestions why it's not working?? HTML HEADTITLECreating Hello World with Incremental Text Size Increase/TITLE/HEAD BODY % for(int i = 1; i 8; i++) { % FONT SIZE=%=i%Hello World/FONTBR % } % % for(int i = 7; i 0; i--) { % FONT SIZE=%=i%Hello World/FONTBR % } % /BODY /HTML Thanks, SP === 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
JBDC/OBDC driver loading problem.
Hi, I am currently using Tomcat4.0 and jdk1.3 and my system is Windows 2000. I setup everything and it works fine. However, when I try to run one of my servlets (a servlet that will connect to odbc database). Pls take a look at my CLASSPATH and servelt, let me know if I am missing something. Thanks much. I got the error complaining about the driver which is "SQLException caught: No suitable driver" Here is my CLASSPATH: CLASSPATH= C:\tomcat4.0\jakarta-tomcat-4.0\bin\servlet.jar; C:\jdk1.3\jre\lib\rt.jar And here is my java code: /* VideoSelectServlet */ import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; /** * This is a simple example of an HTTP Servlet. It responds to the GET * method of the HTTP protocol. **/ public class VideoSelectServlet extends HttpServlet { public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Connection con = null; Statement stmt = null; ResultSet rs = null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc.odbc.Movie Catalog"; con = DriverManager.getConnection (url, "", ""); System.out.println("Testpoint"); } catch (ClassNotFoundException e) { System.out.println("SQLException caught: " + e.getMessage()); } catch (SQLException e) { System.out.println("SQLException caught: " + e.getMessage()); } finally { try { if (con != null) con.close(); } catch (SQLException ignored) {} } } public String getServletInfo() { return "The BookDetail servlet returns information about" + "any book that is available from the bookstore."; } } === 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: JBDC/OBDC driver loading problem.
Hi Man, Where is your connection Interface and result set Interface? If you add those two, probably your problem will be solved. If you don't provide any database access statements, it gives the error of SQLException. I think it will help. Hari From: Thang Nguyen <[EMAIL PROTECTED]> Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: JBDC/OBDC driver loading problem. Date: Tue, 27 Feb 2001 11:25:45 -0800 Hi, I am currently using Tomcat4.0 and jdk1.3 and my system is Windows 2000. I setup everything and it works fine. However, when I try to run one of my servlets (a servlet that will connect to odbc database). Pls take a look at my CLASSPATH and servelt, let me know if I am missing something. Thanks much. I got the error complaining about the driver which is "SQLException caught: No suitable driver" Here is my CLASSPATH: CLASSPATH= C:\tomcat4.0\jakarta-tomcat-4.0\bin\servlet.jar; C:\jdk1.3\jre\lib\rt.jar And here is my java code: /* VideoSelectServlet */ import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; /** * This is a simple example of an HTTP Servlet. It responds to the GET * method of the HTTP protocol. **/ public class VideoSelectServlet extends HttpServlet { public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Connection con = null; Statement stmt = null; ResultSet rs = null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc.odbc.Movie Catalog"; con = DriverManager.getConnection (url, "", ""); System.out.println("Testpoint"); } catch (ClassNotFoundException e) { System.out.println("SQLException caught: " + e.getMessage()); } catch (SQLException e) { System.out.println("SQLException caught: " + e.getMessage()); } finally { try { if (con != null) con.close(); } catch (SQLException ignored) {} } } public String getServletInfo() { return "The BookDetail servlet returns information about" + "any book that is available from the bookstore."; } } === 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 Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Compiling question ? Thanks
Copy the MultipartRequest.java in the c:\com\oreilly\servlet\ directory. Copy your UploadTest.java in one of the directories which is included in the ClassPath. now compile using javac UploadTest.java Copy the UploadTest.class to your WEB-INF\classes\ directory, it should work Regds Murugan K Patham 480 - 990 4200 Ext 2712 [EMAIL PROTECTED] 02/22 12:15 PM How can I compile UploadTest.java ? tomcat\webapps\myapplication\WEB-INF\classes\UploadTest.java tomcat\webapps\myapplication\WEB-INF\classes\com The servlet UploadTest.java (from Java Servlet Programming, Jason Hunter) start like this : import com.oreilly.servlet.MultipartRequest; public class UploadTest extends HttpServlet { _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
HELP with jsp:useBean
The code below produces the following output: --- before == -- after == I would expect, however, to see --- before == -- after == boo Does anyone know what I am doing wrong? JSP code ** %@ language="java" % %@ import="beantest.*" % html head titleThis is another test/title /head body jsp:useBean id="bean1" scope="page" type="TestBean" class="TestBean" / hrbefore == jsp:getProperty name="bean1" property="UserId" / jsp:setProperty name="bean1" property="UserId" value="boo" / hrafter == jsp:getProperty name="bean1" property="UserId" / /body /html * TestBean bean code * public class TestBean { private String fieldUserId = new String(); public TestBean() { super(); } public String getUserId() { return fieldUserId; } public void setUserId(String userId) { fieldUserId = userId; } } === 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 jsp:useBean
Hi, I think ur set property should look like this .. hrbefore == jsp:getProperty name="bean1" property="userId" / jsp:setProperty name="bean1" property="userId" value="boo" / hrafter == jsp:getProperty name="bean1" property="userId" / .. The property should be userId not UserId (note the case of u) HTH Sudhi -Original Message- From: Siegel, Craig [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 3:49 PM To: [EMAIL PROTECTED] Subject: HELP with jsp:useBean The code below produces the following output: --- before == -- after == I would expect, however, to see --- before == -- after == boo Does anyone know what I am doing wrong? JSP code ** %@ language="java" % %@ import="beantest.*" % html head titleThis is another test/title /head body jsp:useBean id="bean1" scope="page" type="TestBean" class="TestBean" / hrbefore == jsp:getProperty name="bean1" property="UserId" / jsp:setProperty name="bean1" property="UserId" value="boo" / hrafter == jsp:getProperty name="bean1" property="UserId" / /body /html * TestBean bean code * public class TestBean { private String fieldUserId = new String(); public TestBean() { super(); } public String getUserId() { return fieldUserId; } public void setUserId(String userId) { fieldUserId = userId; } } == = 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 jsp:useBean
It still does not work. I cannot fathom what is wrong with this code. Hi, I think ur set property should look like this .. hrbefore == jsp:getProperty name="bean1" property="userId" / jsp:setProperty name="bean1" property="userId" value="boo" / hrafter == jsp:getProperty name="bean1" property="userId" / .. The property should be userId not UserId (note the case of u) === 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
get init parameters
in the web.xml i have some init parameters: param namename/param-name param-valuevalue/param-value in the jsp page with the %=request.getInitParameter("name")% i print the value. But how can i this value put in a string? (String name2 = ... )?? or how can i put the value into this:? %=w.myservlet(XX)% the XX must to be the value of the init parameter. Is this posibnle? can anybody help me? thanks Carlos === 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 jsp:useBean
Craig, Try using the alternate JSP expression %= bean1.getUserId() % instead of the jsp:getProperty tag. This may help debug it further. Stylistically, you should have a field called userID instead of fieldUserID in your bean. The bean should also be in a package. Sudheendra was also correct in that the property should be "userId". Regards, Richard -Original Message- From: Siegel, Craig [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 1:12 PM To: [EMAIL PROTECTED] Subject: Re: HELP with jsp:useBean It still does not work. I cannot fathom what is wrong with this code. Hi, I think ur set property should look like this .. hrbefore == jsp:getProperty name="bean1" property="userId" / jsp:setProperty name="bean1" property="userId" value="boo" / hrafter == jsp:getProperty name="bean1" property="userId" / .. The property should be userId not UserId (note the case of u) === 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
(OT) HTML validation best practices
I know this is off topic so please - no flames. I also know that everyone reading this works the web so...I figure you all are a great source of web related info. I am looking for some idea of what the "best practices" are for HTML validation. I know there are numerous sites out there that will validate your code for you (my search software came up with 71 sites on the first pass). But...what do people really use? I dimly remember reading articles that cautioned about validators and the sometimes goofy results you get. Any input would be appreciated. Thanks in advance, Janet Martin === 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: get init parameters
i have similar kind of confusion... i want to get init parameter directly into jsp page (not in servlet)... so in web.xml, what do i specify as servlet-name and servlet-class any idea??is it possible or not?? thanx in advance... Nishit -Original Message- From: Carlos de la Flor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 4:19 PM To: [EMAIL PROTECTED] Subject: get init parameters in the web.xml i have some init parameters: param namename/param-name param-valuevalue/param-value in the jsp page with the %=request.getInitParameter("name")% i print the value. But how can i this value put in a string? (String name2 = ... )?? or how can i put the value into this:? %=w.myservlet(XX)% the XX must to be the value of the init parameter. Is this posibnle? can anybody help me? thanks Carlos === 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
iPlanet and Jsp error using RMI-JDBC. - Help. New to planet.
Hi, I get this error when running a JSP on iPlanet connecting to Cloudscape via RMI-JDBC. The JSP works fine on Enhydra connecting to Cloudscape DB via RMI-JDBC. [27/Feb/2001:13:59:52] failure ( 652): Internal error: exception thrown from the servlet service function (uri=/INN/portal/page.jsp): javax.servlet.ServletException: COM.cloudscape.core.RmiJdbcDriver, Stack: javax.servlet.ServletException: COM.cloudscape.core.RmiJdbcDriver 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.(ServletException.java:122) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:384) at _jsps._INN._portal._page_jsp._jspService(Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:826) at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.jav a:502) I am wondering if it is a problem with the JRE configuration on iPlanet. Help. New to planet. Is there an application I can run to validate RMI-JDBC configs on iPlanet anywhere? Thanks, Dylan del Rosario === 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 jsp:useBean
Thanks for the replies. The problem was my VA configuration. I had IBM VA set to JSP 0.91 spec. With it correctly set to JSP 1.0, everything works fine. -craig === 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: (OT) HTML validation best practices
Check into www.webstandards.org and www.alistapart.com - you can get some pointers there regarding writing valid HTML to current standards. .michael. At 04:40 PM 2/27/01 -0500, you wrote: I know this is off topic so please - no flames. I also know that everyone reading this works the web so...I figure you all are a great source of web related info. I am looking for some idea of what the "best practices" are for HTML validation. I know there are numerous sites out there that will validate your code for you (my search software came up with 71 sites on the first pass). But...what do people really use? I dimly remember reading articles that cautioned about validators and the sometimes goofy results you get. Any input would be appreciated. Thanks in advance, Janet Martin === 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
Form submission clears request attributes
Hi correct me if I am wrong. This is what I concluded from experience... If I have a form.jsp file that has action calling a servlet (handleform.srv). whatever request.setAttribute I've done in the form.jsp will not get passed to handleform.srv. For example: Form.jsp: % request.setAttribute("name", "test"); % form method="post" action="/handleform.srv" .. Handleform.srv: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String name = (String) request.getAttribute("name"); ... } In Handleform.srv, name will be null. === 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-DB error
Hi, Jody. Another possible case would be that you are trying to access a field after retrieving empid field which is before empid. Try accessing fields according to their field position. (e.g. if table fields are lastname, firstname, empid, access lastname first and then firstname and lastly empid).. why not use the mysql driver found in http://mmmysql.sourceforge.net/ :^) Ricky Y. Artigas Analyst/Programmer Information Technology Division Easycall Communications Phils., Inc. - Easycall Internet - 418 Arayat St., Mandaluyong City 1550, Philippines Personal WAP Site: http://www.buzzed.co.uk/mobile/?rya Company Website: http://www.easycall.com.ph Tel.no: (+632) 5338001 ext.6574 Mobile:(+63) 0917-8951783 Pager: 141-002955 Email: [EMAIL PROTECTED] --- IMPORTANT NOTICE: This message (and any attachment hereto) may contain privileged and/or confidential information specific to EasyCall. If you are not the intended addressee indicated in this message, you may not copy or disseminate this message (or any attachment hereto) to anyone. Instead, please destroy this message (and any attachment hereto), and kindly notify the sender by reply email. Any information in this message (and any attachment thereto) that do not relate to the official business of EasyCall shall be understood as neither given nor endorsed by the company. -Original Message- From: Jody F. Kerr [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 11:12 PM To: [EMAIL PROTECTED] Subject: Re: JSP-DB error Ricky, The empid field was actually an int. I switched the code to int eid = myResultSet.getInt("empid") But that's not resolving the error. I'm still learning/figuring out how to read the error messages, so I'm still not certain what I'm looking at. The remaining fields are all text fields in the db. Thanks Jody you may be accessing a non-String value with the getString() method. Is the empid field of String datatype? :^) Ricky Y. Artigas Analyst/Programmer Information Technology Division Easycall Communications Phils., Inc. - Easycall Internet - 418 Arayat St., Mandaluyong City 1550, Philippines Personal WAP Site: http://www.buzzed.co.uk/mobile/?rya Company Website: http://www.easycall.com.ph Tel.no: (+632) 5338001 ext.6574 Mobile:(+63) 0917-8951783 Pager: 141-002955 Email: [EMAIL PROTECTED] --- IMPORTANT NOTICE: This message (and any attachment hereto) may contain privileged and/or confidential information specific to EasyCall. If you are not the intended addressee indicated in this message, you may not copy or disseminate this message (or any attachment hereto) to anyone. Instead, please destroy this message (and any attachment hereto), and kindly notify the sender by reply email. Any information in this message (and any attachment thereto) that do not relate to the official business of EasyCall shall be understood as neither given nor endorsed by the company. -Original Message- From: Jody F. Kerr [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 10:24 AM To: [EMAIL PROTECTED] Subject: JSP-DB error Hello Folks, I'm trying to connect from a jsp page to a MySQL database, both resdiding on a Win2K box running Apache and Resin. I went through everything, and am pretty certain I have all the configs correct. I get the following error when I load the jsp page: 500 Servlet Exception java.lang.VerifyError: (class: com/caucho/jdbc/mysql/ResultSet, method: findColumn signature: (Ljava/lang/String;)I) Incompatible object argument for function call at com.caucho.jdbc.mysql.Statement.init(Statement.java:65) at com.caucho.jdbc.mysql.Connection.createStatement(Connection.java:153) at _jsp._www__studebakercars__com_0._dbquery__jsp._jspService(_dbquery__jsp.j av a, Compiled Code) at com.caucho.jsp.JavaPage.service(JavaPage.java:89) at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83) at com.caucho.jsp.Page.service(Page.java:280) at com.caucho.jsp.QServlet.service(QServlet.java:161) at com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:452) at com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:395) at com.caucho.server.http.PageCache$Entry.service(PageCache.java:256) at com.caucho.server.http.PageCache.service(PageCache.java:105) at com.caucho.server.http.VirtualHost.service(VirtualHost.java:406) at com.caucho.server.http.Request.dispatch(Request.java:211) at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:307) at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java, Compiled Code) at com.caucho.server.TcpConnection.run(TcpConnection.java, Compiled Code) at
Re: sendRedirect ??
The correct syntax is: reponse.sendRedirect(url); where url is of Java type String... U need to recode your statements to: String url = "login2.jsp"; If URLRewriting is used, the use response.encodeRedirectURL method on ur url string before sending it as a parameter to sendRedirect method Make sure the targetted file is in the correct directory... - Original Message - From: "sufi malak" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 12:48 AM Subject: sendRedirect ?? I got this error : A Servlet Exception Has Occurred org.apache.jasper.JasperException: Unable to compile class for JSP..\work\localhost\ultra2\_0002flogin_00032_0002ejsplogin2_jsp_1.java:89: Undefined variable or class name: Insert response.sendRedirect(Insert.jsp); ^ ..\work\localhost\ultra2\_0002flogin_00032_0002ejsplogin2_jsp_1.java:92: Undefined variable or class name: login2 response.sendRedirect(login2.jsp); ^ 2 errors This is my code for login2.jsp : %@ page import="Employee"% jsp:useBean id="employee" class="Employee" scope="request"/ % String user = (String)request.getParameter("username"); String pass = (String)request.getParameter("password"); // check the session first, if the user is in the session sendRedirect(Insert.jsp) directly if (user != null pass != null) { if (employee.login(user, pass)){ System.out.println("user exists"); response.sendRedirect(Insert.jsp); } else { System.out.println("User does not exist"); response.sendRedirect(login2.jsp); } } % Thanks _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: using session information across different web applications
I urge you to refer to the book "Java Server Programming" by WROX Chapter 9 page 406. It doesn't really give a detailed account of how to implement sharing of session objects between different applications but it does give the idea of how. You can implement a serializable seesion object which can then be freely shared by all. How can I use session information (Attributes) in one web application from another web application. I've noticed that the session IDs from one application to another are different and then I don't have the users information that I collected from the login/security application available to other applications. === 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 _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Form submission clears request attributes
I think your request object is page scope, For you didn't use forward() request object in out of scope. so in your servlet exists nowhere... I hope this could help you!! === 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: Form submission clears request attributes
I think your request object is page scope, For you didn't use forward() request object in out of scope. so in your servlet exists nowhere... I hope this could help you!! - Original Message - From: "Shawn Zhu" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 8:24 AM Subject: Form submission clears request attributes Hi correct me if I am wrong. This is what I concluded from experience... If I have a form.jsp file that has action calling a servlet (handleform.srv). whatever request.setAttribute I've done in the form.jsp will not get passed to handleform.srv. For example: Form.jsp: % request.setAttribute("name", "test"); % form method="post" action="/handleform.srv" .. Handleform.srv: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String name = (String) request.getAttribute("name"); ... } In Handleform.srv, name will be null. === 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
Hiding a jsp file from public access?
Folks, Is there anything in Tomcat or in the .war file specification to deny non-forwarded access to a JSP? Where's the appropriate place to do this? I'm using the MVC, or so-called model 2 approach, where a servlet prepares and then forwards to a JSP. Users should NOT be able to ask for the JSP, only the servlet (because the servlet needs to prepare context, check security, etc.). What's the correct way? Thanks, Ben Flaumenhaft Principal, Sidelight Consulting http://www.sidelight.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: usebean tag : where to store the class files on tomcat
Anywhere in classpath you can set. I recommand in /(your document root)/WEB-INF/classes/(your beans) or /(your document root)/WEB-INF/lib/(your beans) Wish your luck!! heetak Choi - Original Message - From: "veena mallya" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 1:15 AM Subject: usebean tag : where to store the class files on tomcat Hi, I am working on a JSP application. I NEED TO KNOW AS TO WHERE TO STORE THE BEAN CLASS FILE ON on Tomcat engine. Anybody working on tomcat out there?? Please help!! Thanks in advance, Veena _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
HTTP tutorial?
Hi all! I'm using Servlets and JSP and now I'm looking for some good tutorial for HTTP in the web. Please, could anyone help me? Regards. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: usebean tag : where to store the class files on tomcat
Anywhere in classpath you can set. I recommand in /(your document root)/WEB-INF/classes/(your beans) or /(your document root)/WEB-INF/lib/(your beans) Wish your luck!! heetak Choi - Original Message - From: "veena mallya" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 1:15 AM Subject: usebean tag : where to store the class files on tomcat Hi, I am working on a JSP application. I NEED TO KNOW AS TO WHERE TO STORE THE BEAN CLASS FILE ON on Tomcat engine. Anybody working on tomcat out there?? Please help!! Thanks in advance, Veena _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Form submission clears request attributes
I know what you are saying... so would you know anyway around this other than use Session? I have the form need to submit, but also want to forward some request attributes. I guess I can only put them in hidden forms... -Original Message- From: ??? [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 5:44 PM To: [EMAIL PROTECTED] Subject: Re: Form submission clears request attributes I think your request object is page scope, For you didn't use forward() request object in out of scope. so in your servlet exists nowhere... I hope this could help you!! == = 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
shopping cart help
Hi guys Actually I'm working on a shopping cart using JSP and SQL Server and I'm also very new to JSP.. Now this is my first page on which I'm showing all the products and have a link which is called add to cart and what I want is that when I click on that link it should refresh the same page and it should show me the book_id on which the user has clicked but I'm not able to show that Pls help me out in this as it is very very urgent .. I receive error in this piece of code : % int ibook_id = request.getParameter(book_id);% % disB.setBook_id(ibook_id);% code for the JSP page is : -- %@page language="java" import="java.util.*"% %@page import="shop.disBean"% HTML HEAD TITLE Display Products /TITLE /HEAD BODY topmargin="0" leftmargin="0" table cellspacing="2" cellpadding="2" border="1" tr List of Book table border="3" tr tdBook Name/td tdPrice/td tdPublisher/td tdCD/td tdCategory Name/td tdBuy/td /tr % Vector vect=new Vector(); disBean disB=new disBean(); disB.connect(); vect=disB.query(); int size=vect.size(); for(int i=0;isize;i++) { Object refObj=vect.elementAt(i); disBean strRecord=(disBean) refObj; % tr td%= strRecord.getBook_name()%/a/td td%= strRecord.getPrice()%/td td%= strRecord.getPublisher() %/td td%= strRecord.getCd() %/td td%= strRecord.getCategory_name() %/td tda href="dis.jsp?book_id=%=strRecord.getBook_id()%"add to cart/a/td /tr %}% % int ibook_id = request.getParameter(book_id);% % disB.setBook_id(ibook_id);% /table /td/tr/table /BODY /HTML pls help me Regards Preeti === 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: JBDC/OBDC driver loading problem.
1. You have a database user without a username or a password? Did you mean to use the dbo user? Because that's "sa","". 2. In the description for a dsn you may have the " " but in the name that you refer to to DSN with may not. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Thang Nguyen Sent: Tuesday, February 27, 2001 2:26 PM To: [EMAIL PROTECTED] Subject: JBDC/OBDC driver loading problem. Hi, I am currently using Tomcat4.0 and jdk1.3 and my system is Windows 2000. I setup everything and it works fine. However, when I try to run one of my servlets (a servlet that will connect to odbc database). Pls take a look at my CLASSPATH and servelt, let me know if I am missing something. Thanks much. I got the error complaining about the driver which is "SQLException caught: No suitable driver" Here is my CLASSPATH: CLASSPATH= C:\tomcat4.0\jakarta-tomcat-4.0\bin\servlet.jar; C:\jdk1.3\jre\lib\rt.jar And here is my java code: /* VideoSelectServlet */ import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; /** * This is a simple example of an HTTP Servlet. It responds to the GET * method of the HTTP protocol. **/ public class VideoSelectServlet extends HttpServlet { public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Connection con = null; Statement stmt = null; ResultSet rs = null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc.odbc.Movie Catalog"; con = DriverManager.getConnection (url, "", ""); System.out.println("Testpoint"); } catch (ClassNotFoundException e) { System.out.println("SQLException caught: " + e.getMessage()); } catch (SQLException e) { System.out.println("SQLException caught: " + e.getMessage()); } finally { try { if (con != null) con.close(); } catch (SQLException ignored) {} } } public String getServletInfo() { return "The BookDetail servlet returns information about" + "any book that is available from the bookstore."; } } === 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: Note:WANTED JSP PROFESSIONALS
Hi, I am a Java programmer and I am doing many JSP and Java server programming for the company I am working for. I am interested in your opportunity, but I have several questions: 1. Do this mean I have to go oversea or I can stay in US to get the project? 2. Is this a part time or full time position? If you can let me know about these questions, I will send you my resume. Thanks. Ming --- JSP JOBS [EMAIL PROTECTED] wrote: Hi JSP MASTERS, PLEASE SEND YOUR RESUMES IN TEXT FORMAT ONLY --- Regards Mini Sharma -- Hi JSP MASTERS, Anybody who is interested in live overseas JSP project(MODEL2),please send your detailed resume to [EMAIL PROTECTED] Regards Mini Sharma Do You Yahoo!? Get your free @yahoo.co.in address at http://mail.yahoo.co.in === 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!? 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
Re: Form submission clears request attributes
Yes ... Except your object to foward loading in hidden form, I can't find another good solution ^ ^;; % String object_to_forward = request.getParameter("object_to_forward_name"); % form name='formname' method='post' action='yourservlet' input type='hidden' name='object_to_forward_name' value='%=object_to_forward%' input type='submit' name='submit' value='submit' /form good luck heetak Choi - Original Message - From: "Shawn Zhu" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 11:15 AM Subject: Re: Form submission clears request attributes I know what you are saying... so would you know anyway around this other than use Session? I have the form need to submit, but also want to forward some request attributes. I guess I can only put them in hidden forms... -Original Message- From: ??? [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 5:44 PM To: [EMAIL PROTECTED] Subject: Re: Form submission clears request attributes I think your request object is page scope, For you didn't use forward() request object in out of scope. so in your servlet exists nowhere... I hope this could help you!! == = 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 very basic problem
hi, my if statement is DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); con=DriverManager.getConnection("jdbc:oracle:thin:@'ip..address..':1521:ORCL","scott","tiger"); Statement statement= con.createStatement(); ResultSet rs= statement.executeQuery("SELECT * from terminal where termkey ='345'"); if(rs.next()==true) ... the rest u know sorry for not writing this earlier -anurag --- Vidyasagar Guduru [EMAIL PROTECTED] wrote: It might be there is some problem with your if statement ? by the way how u r checking the strings with '==' of Object.equeals() method ? Sagar. --- anurag dewan [EMAIL PROTECTED] wrote: hi, In my main.jsp page i am getting the username and password form the user,checking it from the database and if correct then redirecting the user to the login.jsp. This procedure is going on fine... but when trying to redirect the user to an error.jsp page when the username or password is not correct, there is a problem. the code is like.. if(...) { % jsp:forward page="login.jsp" / % } else { % jsp:forward page="error.jsp" / % } % /form On executing the page...it directly goes to error.jsp. I think initially when the textboxes are blank..it takes it for wrong username or password and goes to error.jsp. Any suggestions on how to tackle it -anurag Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ 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 Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: shopping cart help
Hi! when you use request.getParameter("book_id"), it will return a string value. You are trying to store a string into an integer. You have to type cast it like the below, % int ibook_id = Integer.parseInt(request.getParameter("book_id")); % Another mistake you have done is inside the request.getParameter you should give the string in double quotes.. in your case it is missing... Hope this will help you Muthu - Original Message - From: "Preeti" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 8:37 AM Subject: shopping cart help Hi guys Actually I'm working on a shopping cart using JSP and SQL Server and I'm also very new to JSP.. Now this is my first page on which I'm showing all the products and have a link which is called add to cart and what I want is that when I click on that link it should refresh the same page and it should show me the book_id on which the user has clicked but I'm not able to show that Pls help me out in this as it is very very urgent .. I receive error in this piece of code : % int ibook_id = request.getParameter(book_id);% % disB.setBook_id(ibook_id);% code for the JSP page is : -- %@page language="java" import="java.util.*"% %@page import="shop.disBean"% HTML HEAD TITLE Display Products /TITLE /HEAD BODY topmargin="0" leftmargin="0" table cellspacing="2" cellpadding="2" border="1" tr List of Book table border="3" tr tdBook Name/td tdPrice/td tdPublisher/td tdCD/td tdCategory Name/td tdBuy/td /tr % Vector vect=new Vector(); disBean disB=new disBean(); disB.connect(); vect=disB.query(); int size=vect.size(); for(int i=0;isize;i++) { Object refObj=vect.elementAt(i); disBean strRecord=(disBean) refObj; % tr td%= strRecord.getBook_name()%/a/td td%= strRecord.getPrice()%/td td%= strRecord.getPublisher() %/td td%= strRecord.getCd() %/td td%= strRecord.getCategory_name() %/td tda href="dis.jsp?book_id=%=strRecord.getBook_id()%"add to cart/a/td /tr %}% % int ibook_id = request.getParameter(book_id);% % disB.setBook_id(ibook_id);% /table /td/tr/table /BODY /HTML pls help me Regards Preeti === 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-DB error
Hi, Jody. Another possible case would be that you are trying to access a field after retrieving empid field which is before empid. Try accessing fields according to their field position. (e.g. if table fields are lastname, firstname, empid, access lastname first and then firstname and lastly empid).. why not use the mysql driver found in http://mmmysql.sourceforge.net/ I talked to the folks at Caucho (makers of Resin). Their driver has a bug in it. I switched over to the MySQL drivers and it all worked perfectly. thanks for the help Jody :^) Ricky Y. Artigas Analyst/Programmer Information Technology Division Easycall Communications Phils., Inc. - Easycall Internet - 418 Arayat St., Mandaluyong City 1550, Philippines Personal WAP Site: http://www.buzzed.co.uk/mobile/?rya Company Website: http://www.easycall.com.ph Tel.no: (+632) 5338001 ext.6574 Mobile:(+63) 0917-8951783 Pager: 141-002955 Email: [EMAIL PROTECTED] --- IMPORTANT NOTICE: This message (and any attachment hereto) may contain privileged and/or confidential information specific to EasyCall. If you are not the intended addressee indicated in this message, you may not copy or disseminate this message (or any attachment hereto) to anyone. Instead, please destroy this message (and any attachment hereto), and kindly notify the sender by reply email. Any information in this message (and any attachment thereto) that do not relate to the official business of EasyCall shall be understood as neither given nor endorsed by the company. -Original Message- From: Jody F. Kerr [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 11:12 PM To: [EMAIL PROTECTED] Subject: Re: JSP-DB error Ricky, The empid field was actually an int. I switched the code to int eid = myResultSet.getInt("empid") But that's not resolving the error. I'm still learning/figuring out how to read the error messages, so I'm still not certain what I'm looking at. The remaining fields are all text fields in the db. Thanks Jody you may be accessing a non-String value with the getString() method. Is the empid field of String datatype? :^) Ricky Y. Artigas Analyst/Programmer Information Technology Division Easycall Communications Phils., Inc. - Easycall Internet - 418 Arayat St., Mandaluyong City 1550, Philippines Personal WAP Site: http://www.buzzed.co.uk/mobile/?rya Company Website: http://www.easycall.com.ph Tel.no: (+632) 5338001 ext.6574 Mobile:(+63) 0917-8951783 Pager: 141-002955 Email: [EMAIL PROTECTED] --- IMPORTANT NOTICE: This message (and any attachment hereto) may contain privileged and/or confidential information specific to EasyCall. If you are not the intended addressee indicated in this message, you may not copy or disseminate this message (or any attachment hereto) to anyone. Instead, please destroy this message (and any attachment hereto), and kindly notify the sender by reply email. Any information in this message (and any attachment thereto) that do not relate to the official business of EasyCall shall be understood as neither given nor endorsed by the company. -Original Message- From: Jody F. Kerr [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 10:24 AM To: [EMAIL PROTECTED] Subject: JSP-DB error Hello Folks, I'm trying to connect from a jsp page to a MySQL database, both resdiding on a Win2K box running Apache and Resin. I went through everything, and am pretty certain I have all the configs correct. I get the following error when I load the jsp page: 500 Servlet Exception java.lang.VerifyError: (class: com/caucho/jdbc/mysql/ResultSet, method: findColumn signature: (Ljava/lang/String;)I) Incompatible object argument for function call at com.caucho.jdbc.mysql.Statement.init(Statement.java:65) at com.caucho.jdbc.mysql.Connection.createStatement(Connection.java:153) at _jsp._www__studebakercars__com_0._dbquery__jsp._jspService(_dbquery__jsp.j av a, Compiled Code) at com.caucho.jsp.JavaPage.service(JavaPage.java:89) at com.caucho.jsp.JavaPage.subservice(JavaPage.java:83) at com.caucho.jsp.Page.service(Page.java:280) at com.caucho.jsp.QServlet.service(QServlet.java:161) at com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:452) at com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:395) at com.caucho.server.http.PageCache$Entry.service(PageCache.java:256) at com.caucho.server.http.PageCache.service(PageCache.java:105) at com.caucho.server.http.VirtualHost.service(VirtualHost.java:406) at com.caucho.server.http.Request.dispatch(Request.java:211)
Re: Tomcat 3.1 can't handle load
Download and install Tomcat 3.2...nice, very nice. Over 100 bugs in 3.1 were fixed. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Kishor K Sent: Tuesday, February 27, 2001 1:19 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat 3.1 can't handle load hi, I have Tomcat 3.1 and jdk 1.2.2 on TWO Windows NT machines. Both the machines are loaded with the same code,same database. But on one machine it is causing Dr.Watson error 2-3 times a day whereas the other one is working properly. Could you help in anyway on this? thanks in advance kishor - Original Message - From: "Sunil Kumar Roy" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 19, 2000 12:54 AM Subject: Re: Tomcat 3.1 can't handle load Dear Sangeelee, Thanks for providing this vital info. Sunil K.Roy - Original Message - From: "Kevin Sangeelee" [EMAIL PROTECTED] To: "Sunil Kumar Roy" [EMAIL PROTECTED] Sent: Monday, February 19, 2001 2:39 AM Subject: Re: Tomcat 3.1 can't handle load On Mon, 16 Oct 2000, Sunil Kumar Roy wrote: We are developing a B2B website using Tomcat 3.1 for our company.(We are yet to buy a full-fledged webserver since ours is a startup firm). Lots of people have reported problems with the Jdbc-ODBC bridge (if that's what you're using) - however if it happens without DB access, then it could be your JDK. There is no legal way for Tomcat ever to cause an 'Illegal Operation' - pure java can't cause this. The problem lies elsewhere. However, if you're still choosing your server technologies, I always recommend Unix be considered over NT. I've *never* looked back - it's paid off on many, many occasions so far. K. Sangeelee == = 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!? Get your free @yahoo.com address at http://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
Tomcat 3.1 can't handle load - second post
second post hi, I have Tomcat 3.1 and jdk 1.2.2 on TWO Windows NT machines. Both the machines are loaded with the same code,same database. But on one machine it is causing Dr.Watson error 2-3 times a day whereas the other one is working properly. Could you help in anyway on this? thanks in advance kishor - Original Message - From: "Sunil Kumar Roy" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 19, 2000 12:54 AM Subject: Re: Tomcat 3.1 can't handle load Dear Sangeelee, Thanks for providing this vital info. Sunil K.Roy - Original Message - From: "Kevin Sangeelee" [EMAIL PROTECTED] To: "Sunil Kumar Roy" [EMAIL PROTECTED] Sent: Monday, February 19, 2001 2:39 AM Subject: Re: Tomcat 3.1 can't handle load On Mon, 16 Oct 2000, Sunil Kumar Roy wrote: We are developing a B2B website using Tomcat 3.1 for our company.(We are yet to buy a full-fledged webserver since ours is a startup firm). Lots of people have reported problems with the Jdbc-ODBC bridge (if that's what you're using) - however if it happens without DB access, then it could be your JDK. There is no legal way for Tomcat ever to cause an 'Illegal Operation' - pure java can't cause this. The problem lies elsewhere. However, if you're still choosing your server technologies, I always recommend Unix be considered over NT. I've *never* looked back - it's paid off on many, many occasions so far. K. Sangeelee === 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!? Get your free @yahoo.com address at http://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
include problem
hi, i have the following directory structure root - level1 -level21 -level22 -level23 how can i include a file a.jsp in files b.jsp in level21,c.jsp level22,d.jsp in level 23 this is what i have done %@ include file="../a.jsp"% is something wrong in the syntax? thanx in advance kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://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
Re: strange error
Hai Shailendra, R u trying to retrieve data in this page, if yes then you r not having the proper drivers for the connection. have a nice day Vinay Talwar [EMAIL PROTECTED] [EMAIL PROTECTED] Shailendra Shailendrak@INSPTo: [EMAIL PROTECTED] IRA.COM cc: Sent by: A Subject: strange error mailing list about Java Server Pages specification and reference JSP-INTEREST@jav a.sun.com 02/26/01 01:18 PM Please respond to A mailing list about Java Server Pages specification and reference hi i am using javawebserver2.0 with patch3 i have written some jsp pages all are working fine except one. In that one the servlet ingine create the java file but not able to crete a class file for that and it doesnt give any error on java webserver console in browser it shows internal server error code 500. So i manually go to the directory C: \JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_examples\_jsp\_samples\_ myfolder and givinen javac _myfile.java (_myfile.java is created by JSP ingine) this will lead to successful compilation of java file, after that when i invoke the jsp file it works fine so please can any body help me to overcome the problem that file is working perfectlly in JSWDK1-2-1 and even in javawebserver except not able to create class file when i made changes in jsp file(even for first time). i tried this without patch also but fails to overcome. shailendra === 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
Session Locking
Hi, Anybody can tell me how we can lock and unlock an HttpSession.?. Regards Unni === 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: DB connection policy?
hai, Use connection pool instead of opening the conection and closing it again and again have a nice day Vinay Talwar [EMAIL PROTECTED] [EMAIL PROTECTED] Nicholas Larsson [EMAIL PROTECTED]To: [EMAIL PROTECTED] cc: Sent by: A Subject: DB connection policy? mailing list about Java Server Pages specification and reference JSP-INTEREST@jav a.sun.com 02/27/01 03:16 AM Please respond to A mailing list about Java Server Pages specification and reference Hi How do you guys handle db-connections to keep them as few as possible? Does the connection stay alive through the users visit or do you close and open connection when needed? Nico === 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 Tools
Try JBuilder's enterprise edition Vinay Talwar [EMAIL PROTECTED] [EMAIL PROTECTED] Matthew Schroeder MSchroeder@PMAI.To: [EMAIL PROTECTED] ORG cc: Sent by: A Subject: JSP Tools mailing list about Java Server Pages specification and reference JSP-INTEREST@jav a.sun.com 02/27/01 03:21 AM Please respond to A mailing list about Java Server Pages specification and reference Does JSP have development tools available of the caliber that Microsoft provides for ASP? Either already released or in development? Sincerely, Matthew Schroeder PMAI Software Developer Phone: 517-788--8100 ext. 352 "For every action, there is an equal and opposite criticism." -Anonymous Diplomacy is the art of saying 'Nice doggie!'... till you can find a rock. === 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