Re: JSP and java object
Well its not possible to directly call a stand alone java class from an html form attribute. Indirectly you can call a servlet / jsp which in turn would instantiate a java class / bean. This is what is usually done in the Model 1 and Model II architecture. Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com - Original Message - From: Thang Nguyen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 27, 2000 5:37 AM Subject: JSP and java object Hi, I have this basic question, i have been successfully using servlet within HTML or JSP such as form method: FORM ACTION="/examples/servlet/TestServlet" But I don't know how to invoke a stand along java class (not a servlet) through above method. Can I do that? I have tried many ways to invoke this class through FORM ACTION method, but could not get it work. Please help. Thanks in advacce. TN === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Connection Problem
Hello all: I'm trying to run the examples included in the Java Web Server 2.0 trial version, I execute the Java Web Server with the command jserv -javahome e:\jdk1.3 and when i execute the JDBC/JSP Example i received the follow error message: java.security.AccessControlException: access denied (java.net.SocketPermission bscs-pe resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java :272) at java.security.AccessController.checkPermission(AccessController.java:399) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1042) at java.net.InetAddress.getAllByName0(InetAddress.java:559) at java.net.InetAddress.getAllByName0(InetAddress.java:540) at java.net.InetAddress.getByName(InetAddress.java:449) at java.net.Socket.(Socket.java:100) at oracle.sqlnet.SQLnet.Connect(SQLnet.java:330) at oracle.sqlnet.SQLnet.Connect(SQLnet.java:290) at oracle.sqlnet.SQLnet.Connect(SQLnet.java:199) at oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:997) at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:162) at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:103) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:177) at sunexamples.beans.JDBCBean.go(JDBCBean.java:85) at sunexamples.beans.HttpJDBCBean.processRequest(HttpJDBCBean.java:69) at pagecompile.jsp._examples._jdbc._JDBCSample._jspService(_JDBCSample.java:94) at com.sun.server.http.pagecompile.jsp.runtime.HttpJspBase.service(HttpJspBase. java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.runServlet(JspServlet .java:469) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.processJspPage(JspSer vlet.java:259) at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.service(JspServlet.ja va:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.server.ServletState.callService(ServletState.java:226) at com.sun.server.ServletManager.callServletService(ServletManager.java:936) at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423) at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79) at com.sun.server.http.stages.Runner.process(Runner.java:79) at com.sun.server.ProcessingSupport.process(ProcessingSupport.java:294) at com.sun.server.Service.process(Service.java:204) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java :374) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java :166) at com.sun.server.HandlerThread.run(HandlerThread.java:162) JDBC/JSP Example What's wrong, i have in the classpath the oracle drivers and if i test with jswdk kit i get the connection without problems Thanks Claudia === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
my jsp page is not getting refreshed
Hi I'm facing a peculiar problem... I've written a JSP(file1.jsp) and have seen the output of the page. Then at the end of the day I shutdown the machine and leave for the day. Now what is happening is that on the next day when I am opening that same file i.e file1.jsp and make some changes (say adding a new button or adding a new textbox) and then saving and refreshing, the new changes aren't getting reflected on the jsp file. I am using JSP version 1.1 and the webserver is Java Web Server 2.0 Can u please help me out of this mess... thanks Sumit How do you spell EMAIL? You @ 37.com - The world's easiest free Email address Get your free email at: http://email.37.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Wrox and Servlet
Good morning all. I am a stodgy old VB, COM, ASP, C++ programmer and am trying to convert to a hip, young Java type. I am pushing through the first chapters of "Professional Java Server Programming" published by Wrox. I tried using Apache Server and the Sun SDK directly but found better luck using Netscape's Fastrack server to test some of these Servlet examples. I believe I finally have the server configured right and am trying to use persistent storage in a servlet context that is launched on server startup. The application is a sample chat room program. However when this code is executed later: RoomList roomList = (RoomList) getServletContext().getAttribute("roomList"); The web page gives this: Server Error This server has encountered an internal error which prevents it from fulfilling your request. The most likely cause is a misconfiguration. Please ask the administrator to look for messages in the server's error log. And the server's error log shows this: [27/Oct/2000:07:26:17] failure ( 1524): Internal error: exception thrown from the servlet service function (uri=/ListRooms): java.lang.ClassCastException, Stack: java.lang.ClassCastException at com.wrox.context.chat.ListRoomsServlet.writePage(ListRoomsServlet.java, Compiled Code) at com.wrox.context.chat.ListRoomsServlet.doGet(ListRoomsServlet.java:32) at javax.servlet.http.HttpServlet.service(HttpServlet.java:701) at javax.servlet.http.HttpServlet.service(HttpServlet.java:826) at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.jav a:502) I put this code before it to determine the class because I assumed (as a C++ guy) that there is some sort of casting error: Object ob = getServletContext().getAttribute("roomList"); if(ob==null) { out.println("Not set!"); } else { out.println(ob.getClass().toString()); } which results in: class com.wrox.context.chat.RoomList which is the type defined. Anyone have any ideas to keep me from chucking my Java books out the 9th story window potentially hurting potential customers ??? BTW, I assumed this wasn't covered in a SUN FAQ, so I hope this isn't too junior a question. Regards, Karl D. Parker Core Technologies RetailDNA, LLC http://www.walkerdigital.com/Companies/companies.cfm?screen_id=4.3 - A Walker Digital Company One Stamford Plaza Stamford, CT 06902 203-564-1458 | 203-564-1772 (fax) | 330-8051272 (cell) This message, together with any attachments, is intended only for the use of the individual or entity to which it is addressed and may contain information that is legally privileged, confidential, and exempt from disclosure. If you are not the intended recipient, you are hereby notified that you have received this message in error; any review, dissemination, distribution, or copying of this message, or any attachment, is strictly prohibited. If you have received this message in error, please delete this message and any attachments from your computer and immediately notify the original sender at (203) 564-1432 or by return e-mail. Thank you === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Applet and javascript...HELP
Henry, If it is sensitive information, I think the user would feel happier using SSL ? (in which case you don't have to worry about the encoding ...) If you insist on using the applet approach then ... 1) why not hide the form and make the applet call a javascript function to unhide everything when it has loaded? OR 2) Put all the fields on the applet and do a POST from the applet when they hit the applets submit (probably the most work cos you eliminate the HTML form but definitely do-able) Think carefully about your architecture and which approach fits the situation best and will be the easiest to maintain. Hope that helps! :) Jonathan -Original Message- From: Henry Hooi Tak Keong [mailto:[EMAIL PROTECTED]] Sent: 26 October, 2000 8:38 PM To: [EMAIL PROTECTED] Subject: Applet and javascript...HELP Hi all, I'm need to encode certain form fields on my jsp page before submitting it for processing because the information keyed in by the user is sensitive. Does anyone have any recommendations on how I could go about it? To resolve this issue, I have employed using an applet to encode the user's information. The textfields used is still of a html form, and I used javascript to invoke a method in the applet class on the textfields of the form to help resolve this issue. However, that has led me to several problems... 1) I can't seem determine when the applet has fully loaded on the html page because if I press the submit button and the applet is still loading, then the data in the forms will be posted without being encrypted first. 2) I realised that when I use this applet on form fields in a page with frames , it somehow doesn't get loaded properly no matter how long I wait for it to load. When I apply this applet to a page without frames, it loads up almost instantaniously. Any suggestions on how I could resolve this data? I have tried using the jsp:plugin tag to help download the applet but I'm confused on how to reference it as an object, in terms of the DOM. Initially, I can reference the html applet tag via document.appletname.methodname. This problem has been eluding me for days already and I really need help. I realised that this may not be a the proper mailing list but I'm sure someone here must have come across these issues before. I couldn't find an applet mailing list from SUN, and if any of you found it, I would be glad if you could pass it on. Thanks everyone. Cheers' Henry === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: JSP and java object
I used an applet that communicated with a stand alone java class residing on the server. I set up a socket connection. -Original Message- From: Thang Nguyen [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 26, 2000 7:07 PM To: [EMAIL PROTECTED] Subject: JSP and java object Hi, I have this basic question, i have been successfully using servlet within HTML or JSP such as form method: FORM ACTION="/examples/servlet/TestServlet" But I don't know how to invoke a stand along java class (not a servlet) through above method. Can I do that? I have tried many ways to invoke this class through FORM ACTION method, but could not get it work. Please help. Thanks in advacce. TN === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Beans to do International conversions
Doug- I wish I could say that I have, but I have not.. All I can say is that it exists, and it does Italian better than I thought it would. One warning, it does formal Italian well- slang and informal speech is handled terribly. - Stephanie -Original Message- From: Doug W [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 26, 2000 4:09 PM To: [EMAIL PROTECTED] Subject: Re: Beans to do International conversions Stephanie, are you talking about their AlphaWorlks International Machine translation? Have you used it before within your JSP site? Can you give us feedback? "Spike, Stephanie" [EMAIL PROTECTED] on 10/26/2000 12:56:37 PM Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Douglas Wong/CDS/CG/CAPITAL) Subject: Re: Beans to do International conversions IBM offers a product that will translate English to seven other languages automatically, I don't know what it is called or what the price tag is like but I do know it does English/Italian very well. Hope this helps, Stephanie -Original Message- From: Karau, Joe [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 26, 2000 3:18 PM To: [EMAIL PROTECTED] Subject: Re: Beans to do International conversions Doug, I don't know of any way to automatically translate from one language to another because of all the considerations that go along with translating between languages, not only the words but also the grammar would have to be translated. However, if you do happen to find one, I'd greatly appreciate it if you could let me know. About the 'page code detection of language' I'm not quite sure what you mean, so I can't help you there. Joseph Karau Kingland Systems [EMAIL PROTECTED] 507-536-3629 -Original Message- From: Doug W [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 26, 2000 1:42 PM To: [EMAIL PROTECTED] Subject: Beans to do International conversions Anyone know of any beans to do translation of text from one language to another? must be Unicode complaint Also, are there any beans to automatic page code detection of the language? thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
errror when compilation
Hi When a compilationerror in the jsp-page exists the error page (that I have specified) are not called. Is there a way to do this? Regards Camilla === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: my jsp page is not getting refreshed
I really don't know the exact reason behind this,but I have faced similar problems.What I did was just copied and pasted that file with a new name and it worked.Sometimes restarting the machine also helped.Make sure that ur Java Web Serve has not expired and that u have'nt set the system date to a back date. Raj From: sumit deogharia [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: my jsp page is not getting refreshed Date: Fri, 27 Oct 2000 04:08:52 -0700 Hi I'm facing a peculiar problem... I've written a JSP(file1.jsp) and have seen the output of the page. Then at the end of the day I shutdown the machine and leave for the day. Now what is happening is that on the next day when I am opening that same file i.e file1.jsp and make some changes (say adding a new button or adding a new textbox) and then saving and refreshing, the new changes aren't getting reflected on the jsp file. I am using JSP version 1.1 and the webserver is Java Web Server 2.0 Can u please help me out of this mess... thanks Sumit How do you spell EMAIL? You @ 37.com - The world's easiest free Email address Get your free email at: http://email.37.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: new draft of JSP 1.2 now available
A few comments on this draft. 1) As I understand it the 'pageEncoding' directive denotes the encoding of the page itself, not the output -- or does it denote the encoding of both? The spec could be a bit clearer here. 2) I like the new Localization chapter. It is not explicit, however, that implementations must use the 'charset' information in the contentType or response.setContentType() to set the JspWriter's encoding -- assuming the given encoding is supported by the given VM (if it is not an error should be generated). I presume this is the intent basic intent. If not, I see that as a big issue for "Localization". A JSP engine implementor may not key into the implications as it is in that they may see only an implication to produce an appropriate "Content-Type" header when possible (i.e. when the content body has not yet been started). Whereas they really need to use this to properly configure the JspWriter too. 3) A grammar checker is needed. On page 62, in section 3.4, the following phrase appears: Two common approaches are two use a ^^^ The second "two" (the indicated uncapitalized one) needs to be changed to "to". This jumped out at me while I could barely hold my eyes open, so it is somewhat obvious (at least to some). -- Jess Holle === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: (URGENT) Dynamically changing the name of a vector
Could you be more specific about your problem... - Original Message - From: "Jyoti Bongarala" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 25, 2000 10:57 AM Subject: (URGENT) Dynamically changing the name of a vector I am unable to dynamically change the name of a vector. Can some body please help me with this thanks in advance Jyoti __ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Happy Diwali Greetings
good work vincent cayenne!!1 that was nice! Navpreet Vincent Cayenne wrote: Coming from Trinidad where this festival is a Public Holiday and is celebrated by Hindus and enjoyed by all the other religious/cultural groupings, I thought the proper spelling was "Divali" so I looked it up: Divali (pron. "Di-volly") is the 3,000-year-old Festival of Lights in India. It is also known as Diwali or Deepavali. The name is formed from two Sanskrit words that literally mean "row of lights." This day of grand celebrations varies based on the lunar calendar, but occurs in late October or early November each year. During the festivities people honor Lakshmi, the Hindu Goddess of Wealth, for all she has brought to their lives and for what she will hopefully bestow in the coming year. Millions of twinkling flames play a large role on this day. You would find rows of little clay oil pots, called diyas, lining the walkways and entrances to homes. By nightfall, oil lamps, candles and luminarias illuminate cities and the countryside to mark the most auspicious, spectacular and colorful of all of India's festivals ... It's customary to give a "thali" (a sampler) of sweet treats during the Divali festival. At 4:30 PM +0200 2000/10/25, you (Veronique Dupierris) wrote: hmm, I know, this sort of discution has nothing to do here but i am very curious and i'd like to know what is Diwali !? :) Sorry, I'm french, so this should not happen her Thanks and ... even if I don't know what it is Have a happy Diwali :o) Venu Gopal a écrit : Same to you all guys out here .. Venu --- Ujwala Joglekar [EMAIL PROTECTED] wrote: Wishing you a very Happy Diwali too -Original Message- From: Tripat Singh [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, October 25, 2000 6:35 AM To: [EMAIL PROTECTED] Subject:Happy Diwali Greetings Hey Everybody, Wish you'll all a very Happy Diwali With best wishes, Tripat singh Kharbanda === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: errror when compilation
Camilla Straubel wrote: Hi When a compilationerror in the jsp-page exists the error page (that I have specified) are not called. Is there a way to do this? A compilation error is just that, a compilation error. Since the server is not able to compile the page correctly and create the servlet, it shows the message. AFIK there is no way around this. The error-page directive works from within the servlet. -- == Sven E. van 't Veer http://www.cachoeiro.net Java Developer [EMAIL PROTECTED] == === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Modal Window
Hi All , In my JSP page , I do a var popupwin=window.open("1.htm","newwin","width=200,height=300"); I would like to make this window modal i.e. unless someone clicks a button or closes this window it will stay on focus . Is this possible ? If yes , then how ? Thanks Vivek __ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Capturing http at Browser( Client ) side
Hi, I need to capture "no activity" happening at the Browser and proactively display a dialog box after certain time( variable ). The dialog box is supposed to ask user whether they want continue using the application . If no response is received, After certain time, user is logged out of the Application. Is capturing "no activity" possible? Are there any API (Browser side ) available so we can capture whether any http request Was made by user. Thanks, Manish === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: How to set the no-cache option for IE
Can i disable the Back Button in IE with response.setHeader? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 17, 2000 6:00 AM To: [EMAIL PROTECTED] Subject: Re: How to set the no-cache option for IE try with response.setHeader("pragma", "no-cache"); // no caching response.setHeader("Cache-Control", "no-cache"); response.setDateHeader("Expires",-1); Hi I am trying to set the no-cache option in JSP by using response.setHeader("Cache-Control","no-cache"); response.setHeader("Cache-Control","no-store"); response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","max-age=0"); It works with Netscape.But with IE it doesn't work.Can anyone of u help me out how to set the no-cache option for IE. Thanks Regards Prasanna.G. ___ Click here to get your free domain name and personal portal from NAMEzero(TM): http://www.namezero.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
JWS problems with implementation of new JSP
We recently installed Java Web Server. Every time we change a *.jsp file it crashes the web server within a few minutes. Soevery time we change a JSP we have to reboot the WEB server. Why is this We use beans to support the JSP files...and we have put the beans (supporting classes) in the servlets directory. Should we put the beans in the classes directory Any help would be appreciated!!! Greg Davidson [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Modal Window
var retVal = showModalDialog('ModalDialog.html'); Where "ModalDialog.html" can be a JSP file or any URL. This trick only works in IE 4 or better, I'm not sure if there is a Netscape equivalent. Burr [EMAIL PROTECTED] - Original Message - From: vivek tiwari [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 27, 2000 9:54 AM Subject: Modal Window Hi All , In my JSP page , I do a var popupwin=window.open("1.htm","newwin","width=200,height=300"); I would like to make this window modal i.e. unless someone clicks a button or closes this window it will stay on focus . Is this possible ? If yes , then how ? Thanks Vivek __ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Packaging Precompiled JSP?
Hi, JSP 1.1 (and 1.2) specify a way to precompile your pages and package them as a bunch of Java .class files (eg, in a WAR file). However, the spec allows for "implementation dependent" names in the compiled code -- so the question is, what else do you need to package in order for your compiled pages to work? Eg, JRun 3.0 creates something like this: import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; import allaire.jrun.jsp.JRunJSPStaticHelpers; public class jrun__html__MainPage2ejsp12 extends allaire.jrun.jsp.HttpJSPServlet implements allaire.jrun.jsp.JRunJspPage { ... } ...so there is dependency on classes provided by Allaire, which I would have to include in the WAR file (if I wanted to make sure that they work not only with JRun)... Does anybody have any experience with this? Is there maybe a JSP compiler that creates independent code, or that allows you to include its support classes in your package? (Maybe Tomcat?) Any hint is much appreciated. Thanks a lot, -- Oliver -- Oliver Suciu [EMAIL PROTECTED] http://www.tibcofinance.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Performance problem with ODBC
Hi everybody, My problem is slow database Access with ODBC. I have an Access Database and I wonder if there is a way to connect Database without ODBC. Thanks for your help. with regards === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Application object
I need to set some objects in the Application object that should be available at all times How can I do this at server startup? I am using iPlanet 6.0. Thanks Rupali === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Performance problem with ODBC
Which Java Dev Tool do you use? What's a good tool out there. So far I liked Forte for Java Community Ed. Something I find annoying about the Java Tools that I evaluated was that they don't have good help like Microsoft has for C++. Even Microsoft VJ++ doesn't compare to its VC++ Documentation; the ease for finding helps and examples as well as explainations on compilation errors. There are four types of drivers JDBC/ODBC, DLL direct into vendor database, java sockets with proxy sql, java sockets directly into database. -Original Message- From: Celal Ceken [mailto:[EMAIL PROTECTED]] Sent: Friday, October 27, 2000 11:00 AM To: [EMAIL PROTECTED] Subject: Performance problem with ODBC Hi everybody, My problem is slow database Access with ODBC. I have an Access Database and I wonder if there is a way to connect Database without ODBC. Thanks for your help. with regards == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
new user...
Hello! I´m new on JSP, and I haven´t already choosed the server to my files. Can you people help me with this problem? I prefere server compatible with IIS. []´s Wagner Daanda Do You Yahoo!? Crie o seu e-mail grátis do Yahoo! Mail com 6 Megabytes livres! http://mail.yahoo.com.br === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Modal Window
Hello! With the MSIexplorer you can use a modal window. Look for some options in the window.open method, I guess is "modal=yes", but I not sure.) Is Netscape browser you can do this only if you use a Signed Script. []´s Wagner Danda --- vivek tiwari [EMAIL PROTECTED] escreveu: Hi All , In my JSP page , I do a var popupwin=window.open("1.htm","newwin","width=200,height=300"); I would like to make this window modal i.e. unless someone clicks a button or closes this window it will stay on focus . Is this possible ? If yes , then how ? Thanks Vivek __ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets Do You Yahoo!? Crie o seu e-mail grátis do Yahoo! Mail com 6 Megabytes livres! http://mail.yahoo.com.br === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
auto-compile of JSP
I'm working on some software that creates/deploys JSP files automatically from an external source. Some servlet/app server engines (ie Weblogic, others?) have flags that allow the engine to compile all JSP files on startup. However, if new JSP files are put down while the engine is up, the first compile happens on the first access. Is there anyone who has figured out some trick to cause the JSP to be compiled before the first real web access, or dispatch.forward()/dispatch.include() method? I'm thinking that even if there is a way, it will be app server specific but I figured I would ask. thanks J === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
FYI : Worse than the Mellisa virus. READ!
New Virus Warning There is a new virus-WOBBLER. It will arrive on E-mail titled CALIFORNIA. IBM and AOL have announced that it is very powerful, more so than Melissa, there is no remedy! It will eat all your information on the hard drive and also destroys Netscape Navigator and Microsoft Internet Explorer. Do not open anything with this title and please pass this message on to all your contacts and anyone who uses your e-mail facility. Not many people seem to know about this yet so propagate it as fast as possible. 2. If you receive an e-mail titled "Win A. Holiday" DO NOT open it. It will erase everything on your hard drive. Forward this letter to as many people as you can. This is a new, very malicious virus and not many people know about it. This information was announced yesterday morning from Microsoft. [EMAIL PROTECTED] 10/27/00 12:30 PM I need to set some objects in the Application object that should be available at all times How can I do this at server startup? I am using iPlanet 6.0. Thanks Rupali === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevnt FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: FYI : Worse than the Mellisa virus. READ!
This is a hoax: http://www.sarc.com/avcenter/venc/data/wobbler-hoax.html -Original Message- From: JEFF RUYTER [mailto:[EMAIL PROTECTED]] Sent: Friday, October 27, 2000 3:15 PM To: [EMAIL PROTECTED] Subject: FYI : Worse than the Mellisa virus. READ! New Virus Warning There is a new virus-WOBBLER. It will arrive on E-mail titled CALIFORNIA. IBM and AOL have announced that it is very powerful, more so than Melissa, there is no remedy! It will eat all your information on the hard drive and also destroys Netscape Navigator and Microsoft Internet Explorer. Do not open anything with this title and please pass this message on to all your contacts and anyone who uses your e-mail facility. Not many people seem to know about this yet so propagate it as fast as possible. 2. If you receive an e-mail titled "Win A. Holiday" DO NOT open it. It will erase everything on your hard drive. Forward this letter to as many people as you can. This is a new, very malicious virus and not many people know about it. This information was announced yesterday morning from Microsoft. [EMAIL PROTECTED] 10/27/00 12:30 PM I need to set some objects in the Application object that should be available at all times How can I do this at server startup? I am using iPlanet 6.0. Thanks Rupali === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevnt FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Performance problem with ODBC
You can use JDBC, there's a JDBC driver for almost all databases - Original Message - From: "Celal Ceken" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 27, 2000 12:59 PM Subject: Performance problem with ODBC Hi everybody, My problem is slow database Access with ODBC. I have an Access Database and I wonder if there is a way to connect Database without ODBC. Thanks for your help. with regards === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: FYI : Worse than the Mellisa virus. READ!
I'm sorry, I thought I subscribed to the JSP list. How did I get on the hoax virus list ? -Original Message- From: JEFF RUYTER [mailto:[EMAIL PROTECTED]] Sent: Friday, October 27, 2000 3:15 PM To: [EMAIL PROTECTED] Subject: FYI : Worse than the Mellisa virus. READ! New Virus Warning There is a new virus-WOBBLER. It will arrive on E-mail titled CALIFORNIA. IBM and AOL have announced that it is very powerful, more so than Melissa, there is no remedy! It will eat all your information on the hard drive and also destroys Netscape Navigator and Microsoft Internet Explorer. Do not open anything with this title and please pass this message on to all your contacts and anyone who uses your e-mail facility. Not many people seem to know about this yet so propagate it as fast as possible. 2. If you receive an e-mail titled "Win A. Holiday" DO NOT open it. It will erase everything on your hard drive. Forward this letter to as many people as you can. This is a new, very malicious virus and not many people know about it. This information was announced yesterday morning from Microsoft. [EMAIL PROTECTED] 10/27/00 12:30 PM I need to set some objects in the Application object that should be available at all times How can I do this at server startup? I am using iPlanet 6.0. Thanks Rupali === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevnt FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Question about war files.....
If you deploy a web app in a war file can that app access presumably via getResourceBundle etc. resources outside of the parent of the war file? ie. the apps root context is the root of the war file right? So that means that by design you cannot access resources outside of that tree correct? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Capturing http at Browser( Client ) side
You could try something like this, capture the time when the dialog asking the user for input was displayed. After the specified time interval if the response is not received the you could log the user out. You'll have to figure if you'd do a busy wait for the time interval or you could do it some other way. Irfan -Original Message- From: Mathur, Manish (CAP, GEFA, Contractor) [mailto:[EMAIL PROTECTED]] Sent: Friday, October 27, 2000 6:53 AM To: [EMAIL PROTECTED] Subject: Capturing http at Browser( Client ) side Hi, I need to capture "no activity" happening at the Browser and proactively display a dialog box after certain time( variable ). The dialog box is supposed to ask user whether they want continue using the application . If no response is received, After certain time, user is logged out of the Application. Is capturing "no activity" possible? Are there any API (Browser side ) available so we can capture whether any http request Was made by user. Thanks, Manish === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Problem converting a clob field to a String
Hello, From a JSP page I am trying to query an Oracle database and retrieve a CLOB field. I want to then convert the CLOB to a string and set it in a javabean. Right now I am receiving a org.apache.jasper.JasperException when i try to bring the JSP page up in a browser. I think I'm close, I think the code might be all right, but I might be missing a key package in the import statements. Below is the JSP code, the bean, and the Exception, any help would be gretly appreciated, I'm in a bit of a spot. Thanks, John P. JSP CODE: %@ page import="java.net.URL" % %@ page import="oracle.sql.*" % %@ page import="java.sql.*" % %@ page import = "helloracle.HelloOracleBeanClob" % jsp:useBean id="brandnewline" class="helloracle.HelloOracleBeanClob" % Connection connection = null; Statement statement = null; ResultSet results = null; // HelloOracleBean line = new HelloOracleBean(); brandnewline.setTestvar(); try{ Class.forName("oracle.jdbc.driver.OracleDriver"); String url = "jdbc:oracle:thin:@ipaddress:dbname"; String query = "SELECT FIELD1, CLOB_FIELD FROM TABLE WHERE OTHER_FIELD = 'some text'"; connection = DriverManager.getConnection(url,"userid","password"); statement = connection.createStatement(); results = statement.executeQuery(query); if(results.next()) { Clob localclob = results.getClob("CLOB_FIELD"); long len = localclob.length(); String clobstring = localclob.getSubString(1,len); brandnewline.setXML(clobstring); brandnewline.setSerieseq(results.getString("FIELD1")); } connection.close(); } catch (ClassNotFoundException e) { System.err.println("Could not load database driver!"); } catch (SQLException e) { System.err.println("Could not connect to the database!"); } finally{ try { if (connection != null) connection.close(); } catch (SQLException e) {} } % /jsp:useBean html body table TR TDXML: jsp:getProperty name="brandnewline" property="XML"/ /TD TD /TR TR TDStuff: jsp:getProperty name="brandnewline" property="testvar"//TD TD /TD /TR TR TDSERIES SEQ: jsp:getProperty name="brandnewline" property="serieseq"//TD TD /TD /TR /table /body /html BEAN CODE: package helloracle; import java.util.*; public class HelloOracleBeanClob { private String passed_clob; private String passed_series_seq; private String test_var; public void setXML(String myclob) { passed_clob = myclob; } public void setSerieseq(String myseries_seq) { passed_series_seq = myseries_seq; } public void setTestvar() { test_var = "blahblah"; } public String getXML() { return passed_clob; } public String getSerieseq() { return passed_series_seq; } public String getTestvar() { return test_var; } } EXCEPTIONS: Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPC: \jakarta-tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fhelloracle_0002fhelloart_0002ejsp_0002fjsp_0002fhelloracle_0002fhelloart_jsp_20.java:116: Class Clob not found in type declaration. Clob localclob = results.getClob("CLOB_FIELD"); ^ C: \jakarta-tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fhelloracle_0002fhelloart_0002ejsp_0002fjsp_0002fhelloracle_0002fhelloart_jsp_20.java:116: Method getClob(java.lang.String) not found in interface java.sql.ResultSet. Clob localclob = results.getClob("CLOB_FIELD"); ^ 2 errors at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java:107) at org.apache.jasper.JasperException.(JasperException.java:73) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compiled Code) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled Code) at org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled Code) at org.apache.jasper.runtime.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code) at java.lang.Thread.run(Compiled Code) === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Calling all JRun users.
Nicholson Robert wrote: Our site doesn't have a logout button and what I'm seeing at the moment is that if I close the browser and login as the same user the same session information is still around in the session? How can this be? If I close the browser in IE 5 should I assume that the session cookie is dead? and so when I log into my site again I'm guaranteed to get a new session right? I got caught on this one once ... I closed one window, but still had others open. You will want to make sure you've closed *all* the windows in order to ensure that the session is really gone. You might also want to add "log out" functionality to your application. Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Apache and Tomcat: jsdk.jar
Thank you for bringing this up. We are on the same boat. I am also very interested in how to configure this also. Currently I had Apache running and stand alone Tomcat running, and I believe I need Jserv to be installed and configured in order for Tomcat to work with Apache.Please help us here Thank you -TN Daniel Lynn wrote: OK, so I'm putting Tomcat and apache on our server and I'm running into some problems... We had apache on and we downloaded and installed tomcat so we can run jsp stuff. The tomcat manual said we needed to download Apache JServ so that we could get the apache module (the .dll file) OK, so for the next step I download the apache Jserv and try to install it... it asks where the virtual machine is, no problem, then it asks for jsdk.jar -- problem... I read up on the sun page that apparently no such file exists anymore in JSDK and that anything using it should be refered to the servlet.jar. Unfortunately, the install program won't proceed unless it finds jsdk.jar Anyone out there have any ideas? -Daniel === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
MessageDigest and the database
Hi all, How are people using the MessageDigest object to encrypt values before sending them to the database? Maybe I'm using it in the wrong way, but I am trying to do something like this: Get a value from the user, across SSL, like a password. Encrypt that password with MessageDigest(using MD5). Put the resulting byte array into the database. I can't seem to find a way to get a byte array into the database, Oracle in this case. I figured I could use a NUMBER datatype, but then how do you convert a byte array to a java datatype that you can use with one of the setXXX functions provided with PreparedStatement that will go into a NUMBER? Hope I didn't confuse everyone with this question, I'd be happy to clarify. Thanks in advance, Rey === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: MessageDigest and the database
Make it a string: new String(byte[] buf) -- Oliver "Hernandez, Rey" wrote: Hi all, How are people using the MessageDigest object to encrypt values before sending them to the database? Maybe I'm using it in the wrong way, but I am trying to do something like this: Get a value from the user, across SSL, like a password. Encrypt that password with MessageDigest(using MD5). Put the resulting byte array into the database. I can't seem to find a way to get a byte array into the database, Oracle in this case. I figured I could use a NUMBER datatype, but then how do you convert a byte array to a java datatype that you can use with one of the setXXX functions provided with PreparedStatement that will go into a NUMBER? Hope I didn't confuse everyone with this question, I'd be happy to clarify. Thanks in advance, Rey === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets -- Oliver Suciu [EMAIL PROTECTED] http://www.tibcofinance.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: MessageDigest and the database
Oracle's NUMBER field maps to a java.math.BigDecimal. A byte aray typically maps to a RAW field. I suspect with Oracle 8 it makes to a BLOB. Burr [EMAIL PROTECTED] - Original Message - From: Hernandez, Rey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 27, 2000 9:27 PM Subject: MessageDigest and the database Hi all, How are people using the MessageDigest object to encrypt values before sending them to the database? Maybe I'm using it in the wrong way, but I am trying to do something like this: Get a value from the user, across SSL, like a password. Encrypt that password with MessageDigest(using MD5). Put the resulting byte array into the database. I can't seem to find a way to get a byte array into the database, Oracle in this case. I figured I could use a NUMBER datatype, but then how do you convert a byte array to a java datatype that you can use with one of the setXXX functions provided with PreparedStatement that will go into a NUMBER? Hope I didn't confuse everyone with this question, I'd be happy to clarify. Thanks in advance, Rey === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
EJB mailing list (out of topic)
Hi, Is there a mailing list for EJB? Thanks, Raj _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
jsp page not refreshed?
hi all, i have this refreshing problem in jsp with tomcat. at first, i deleted some data in my database table , and then i browse to my jsp page, to my surprise the data is still shown on the jsp page even though there's no data inside my database table. to counter that, i restart tomcat, and again the same data is still shown on the page. why? does anyone has this problem before? thanks for any ideas/suggestions. ced === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Apache and Tomcat: jsdk.jar
OK, so I'm putting Tomcat and apache on our server and I'm running into some problems... We had apache on and we downloaded and installed tomcat so we can run jsp stuff. The tomcat manual said we needed to download Apache JServ so that we could get the apache module (the .dll file) OK, so for the next step I download the apache Jserv and try to install it... it asks where the virtual machine is, no problem, then it asks for jsdk.jar -- problem... I read up on the sun page that apparently no such file exists anymore in JSDK and that anything using it should be refered to the servlet.jar. Unfortunately, the install program won't proceed unless it finds jsdk.jar Anyone out there have any ideas? -Daniel === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets