Re: Web Server Crash
Hi Richard, I was in the same situation sometime back. Actually, there is ome bug in jdk1.2.2 because of which, the garbage collector attempts to collect some of the valid objects in memory. Try upgrading to jdk 1.3. I did that and the problem was resolved. Regards Ashish -Original Message- From: Boston Richard [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 15, 2000 12:19 AM To: [EMAIL PROTECTED] Subject: Web Server Crash this question may be suitable for several list groups but I'll start here. I've got a very simple JSP file (A.JSP) that contains a link to another JSP file (B.JSP). B.JSP contains some Java Code that instantiates an object. (It is NOT bean oriented at this point, I just imported.) <% MyObject theObject = new MyObject(); %> some html code. NOTE: This is the only java code in the ServerPage at this point. After going back and forth between A.JSP and B.JSP a couple of times from A.JSP I get an error that java.exe has crashed and can't read memory. My configuration is as follows: Java Web Server 2.0 (patch included) using jdk1.2.2 If anyone has seen this before that would be great. thanks Richard === 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 Visit http://www.NetVarsity.com for online learning === 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
subscribe
Visit http://www.niit.com for eCommerce Solutions. === 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
JSWDK server crashing...Urgent
Hi, I am developing a site using JSPs and .java files (No beans being created for now). The JSWDK server crashes after it executes and displays Screen.jsp file (sequence shown below) Environment: NT 4.0, JDK 1.2.2, JSWDK 2.1 Scenario: Login.jsp ---> Project.jsp ---> Screen.jsp ---> Control.jsp As soon as a request for a JSP file is received by the web server, it invokes the constructor in the respective .class file and creates a connection to the SQL 7.0 database. The code for the Screen processing is given for reference. I am unable to find valid a reason for this. Has anybody ever faced a similar situation...? Where am I going wrong? //Code for processing screen.jsp file public class WebPage private Connection con=null; private Statement stmt; public WebPage() { try { getConnection(); if(con==null) { msg("Connection for screen could not be created..."); return; } } catch (SQLException e) { System.out.println(e.getMessage()); } } private void getConnection() throws SQLException { try { Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc:odbc:TEST"; con = DriverManager.getConnection(url); } catch(Exception CNFE){ System.out.println(CNFE.getMessage()); } } protected void finalize() throws Throwable { if (stmt != null) { try { stmt.close(); } catch(SQLException ex) { msg(ex.getMessage()); } catch(Exception ex) { msg(ex.getMessage()); } } if (con != null) { try { con.close(); } catch(SQLException ex) { msg(ex.getMessage()); } catch(Exception ex) { msg(ex.getMessage()); } } } //Other business specific methods go here... } Regards Ashish === 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: Client side selection
I believe XML would be the best choice for this. Using XML, you can download the entire information(including Country-City relationship) at one go. This would help in three ways: 1. Eliminate the need to get back to the server for getting cities related to a country 2. No array manipulation needs to be done. 3. No need to reload the full page again. Hope this helps Regards Ashish > -- > From: Aggarwal, Pawan[SMTP:[EMAIL PROTECTED]] > Reply To: A mailing list about Java Server Pages specification and > reference > Sent: Monday, May 22, 2000 2:44 PM > To: [EMAIL PROTECTED] > Subject: Re: Client side selection > > > Does that mean If I go for the reloading option then > I need to go to the database table .pickup relevant towns and then refresh > the page > > Can I do something like this!! > I get country-city relationship data from the database(not much heavy in > my case) when I come to this servlet > Store this in an array which can be used through javascript to update my > list onChange event > The reason behind is that the array which contains the relationship will > always be updated, > > Please advice > > > -Original Message- > From: Veronique Dupierris [SMTP:[EMAIL PROTECTED]] > Sent: Friday, May 19, 2000 7:11 PM > To: [EMAIL PROTECTED] > Subject:Re: Client side selection > > I think you should reload your page with this new param set. the > first > time country = all for your second list and when you reload > your page with country = france :) you can then load only those cities > for the second list. If you don't want to reload yur page, you should > have store all informations (all cities for all country) and then use > javascript code to update your list using an onChange event. > > Hope I understood your question > veronique > > > "Aggarwal, Pawan" a écrit : > > > > > > > Hi All, > > > > Can you people suggest me something.. > > > > I am using a servlet which displays 2 drop down boxes... > > If I make a selection in the first one then I need to update the > > filter list in the second one... > > > > For example if the first dropdown is for Country .. > > Now the moment I select any country without refreshing/changing the > > page > > I want the second dropdown to be updated with the cities in that > > country only... > > > > How can I do that? > > > > 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
Passing values
Hi, How can I pass a value from one JSP file to another??. I am trying to capture the value of an item selected from a select list and pass that value to the next JSP screen. Everything that I do does not seem to work. Please help Regards Ashish Visit http://www.NetVarsity.com for online learning === 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: Starting Server
Hi, Edit the startserver.bat file and make the following changes set CLASSPATH=%appClassPath%;%sysJars%;c:\jdk1.3\lib\tools.jar;c:\jdk1.3\lib\dt. jar; set CLASSPATH=%CLASSPATH%;\;\; Also, edit the stopserver.bat file and make sure that it looks like this set appClassPath=.\classes;%appJars% set cp=%CLASSPATH% set CLASSPATH=%appClassPath%;%sysJars% Now re-start the server...using startserver.bat Hope this helps Regards Ashish > -- > From: anderson[SMTP:[EMAIL PROTECTED]] > Reply To: A mailing list about Java Server Pages specification and > reference > Sent: Friday, May 26, 2000 3:37 AM > To: [EMAIL PROTECTED] > Subject: Re: Starting Server > > Try include dot ( . ) in your classpath variable. > > anderson > > "Gomez, Anthony" wrote: > > > Hi All, > > > > I'm new to JSP. I just downloaded the JDK 1.2 and JSWDK to try some of > the > > DEMOS. > > When I try to start the server by clicking on the STARTSEVER.BAT file. I > get > > the following error: > > > > The necessary packages not included in the classpath environment. > > > > Again I'm new to JSP can anybody help! > > > > Thank you in advance > > Anthony. > > > > > == > = > > 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
JSWDK stack dump
Hi, Is there any method by which we can redirect the output generated by the JSWDK server to a log file...or switch off the stack trace dump. Regards Ashish Visit http://www.NetVarsity.com for online learning === 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
mail using JSP
Hi, In my application being developed in JSP, I have a hyperlink for contacting the web admn. When the user clicks on the hyperlink, an outlook form should open. I have done this using the mailto tag. Now, as a next step, I would like the mail form to have the following fields filled in: 1. To: 2. CC: 3. Subject: 4. Body: I am able to open the mail form with all the fields filled in except the mail body. The text that should appear in the mail body should have blank lines between paragraphs. I am unable to insert blank lines in the body text. Does anybody have an idea as to how blank lines can be inserted in the body of a mail message. Thanks and Regards Ashish Bhatia NIIT LTD. 8, Balaji Estate Sudarshan Munjal Marg, New Delhi - 110 058 Tel: 6203447 === 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: Where does System.out.println goes on Tomcat 3.1
Hi Bhrugesh, I am using the same kind of environment as yours. I have written multiple System.out. println statements in my java classes and am able to see these messages in the command window that tomcat opens on starting the server. Thanks and Regards Ashish Bhatia NIIT LTD. 8, Balaji Estate Sudarshan Munjal Marg, New Delhi - 110 058 Tel: 6203447 -Original Message- From: Bhrugesh Shah [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 06, 2000 8:27 PM To: [EMAIL PROTECTED] Subject: Re: Where does System.out.println goes on Tomcat 3.1 Hi Scott, Thanks, I am using my own java classes from jsp. In java class i am printing debug info using system.out.println I am able to see this info if I use JRUN , but I am not getting same in Tomcat 3.1 in tomcat.log/jasper.log/servlet.log Thanks Bhrugesh [EMAIL PROTECTED] -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Scott Stirling Sent: Friday, June 02, 2000 7:50 PM To: [EMAIL PROTECTED] Subject: Re: Where does System.out.println goes on Tomcat 3.1 I believe it goes to /bin/logs. Either tomcat.log or servlet.log. Tip: use the Servlet API log() methods instead of System.out. Kinda weird for the log dir to be under the bin directory, but it is. Scott Stirling > -Original Message- > [mailto:[EMAIL PROTECTED]]On Behalf Of Bhrugesh Shah > Sent: Friday, June 02, 2000 1:57 PM > > Hi, > Please let me know where does tomcat prints System.out statement... > Is there any stderr or stdout file under tomcat directory.. > I am running my application with tomcat http server. > I can see stdout & stderr file in JRun. === 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
Calling Javascript function from Within JSP files
Dear friends, I need to call a javascript function from within my JSP files. I believe this is possible. Could any you please help me in implementing this. Thanks and Regards Ashish Bhatia NIIT LTD. 8, Balaji Estate Sudarshan Munjal Marg, New Delhi - 110 058 Tel: 6203447 Visit http://www.NetVarsity.com for online learning === 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
Variable declaration
Hi, What is the difference in declaring the variables as %> Vs. <% %> as far as concurrent users are concerned. I mean if two users are accessing the same JSP page and submitting the information at the same time, will the two have different instances of these variables, inspite of the requests being served by the same servlet formed after compiling the JSP page. Please help me in resolving this confusion. Thanks and Regards Ashish Bhatia NIIT LTD. 8, Balaji Estate Sudarshan Munjal Marg, New Delhi - 110 058 Tel: 6203447 === 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
Weblogic Error...
Hi, I have installed Weblogic on Windows 95 and Windows 98. On both of these systems, Weblogic gives the following error on startup " Unable to connect to muxer". Please help me in solving this error Thanks and Regards Ashish Bhatia NIIT LTD. 8, Balaji Estate Sudarshan Munjal Marg, New Delhi - 110 058 Tel: 6203447 === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Tomcat and Apache Configuration
Hi, I am also facing the same problem and I tried all what has been said but still I am unable to execute the class file from apache. Is there something else that needs to be done? Also, is the installation of Apache JServ 1.1.1 needed if we are using Tomcat 3.1 and copied the ApacheModuleJServ.dll to modules/ folder in Apache. Thanks, Ashish -Original Message- From: Xing guohong [mailto:[EMAIL PROTECTED]] Sent: Monday, July 10, 2000 2:09 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat and Apache Configuration Hi, I guest that your Tomcat's port is 8080 and Apache's port is 80. If it is. 1) In your httpd.conf file(in the apache program/conf/), you must include the tomcat.conf file in TOMCAT_HOME/conf directory. For example: Append the following line in your httpd.conf file, Include "d:\java\Tomcat\conf\tomcat.conf" 2) Modify the tomcat.conf file. If in Windows: # Tell Apache on win32 to load the Apache JServ communication module LoadModule jserv_module modules/ApacheModuleJServ.dll If in unix: # Tell Apache on Unix to load the Apache JServ communication module # For shared object builds only!!! # @LOAD_OR_NOT@LoadModule jserv_module @LIBEXECDIR@/mod_jserv.so LoadModule jserv_module libexec/mod_jserv.so 3)Copy the ApacheModuleJServ.dll file to the apache/modules http://jakarta.apache.org/builds/tomcat/release/v3.0/win32/ApacheModuleJServ .dll(download it) or ... for unix platform. 4)Start apache and tomcat, you can run them both successfully. Help this hepls xgh. - Original Message - From: "Laiwu Luo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 06, 2000 11:14 PM Subject: Tomcat and Apache Configuration > I have set up Tomcat 3.1 to run with Apache 1.3.12 on NT box. But I run > into the certain problems when I run the demo servlet codes "snoop" and > "servletToJsp" in "examples/wen-inf/classes" directory. Since the > following servlet mappings have been added "web.xml": > > > snoop > /snoop > > > > servletToJsp > /servletToJsp > > > I can successfully run these demo codes by simply typing: > "http://localhost:8080/examples/snoop" and > "http://localhost:8080/examples/servletToJsp". I can also successfully > run the codes by typing "http://localhost/examples/servlet/snoop" and > "http://localhost/examples/servlet/servletToJsp". > > However I cann't run them successfully by typing > "http://localhost/examples/snoop" and > "http://localhost/examples/servletToJsp". The message I got are like > "Not Found The requested URL /examples/snoop (or servletToJsp) was not > found on this server". > > Can someone please let me know what is wrong in my configuration? > > Thanks, > > Laiwu Luo > > === > 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 Visit http://www.NetVarsity.com for online learning === 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
com.livesoftware.jsp.JSPServlet Exception
Hi, Environment : Windows NT 4.0 - SP6, IIS 4.0, JRUN 3.0 I am getting the following error but am unable to understand the reason for it. Please help me in resolving this error. 500 Internal Server Error com.livesoftware.jsp.JSPServlet: javax.servlet.ServletException: Found 1 syntax error in "d:/JRun/jsm-default/services/jse/servlets/jsp/etecgen/propdisp_0x2druf.java ": <--- - 39. public void _jspService(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException . . . 305. public String[] __getDependencies() --> *** Syntax Error: Misplaced construct(s) Thanks and Regards Ashish Bhatia NIIT LTD. 8, Balaji Estate Sudarshan Munjal Marg, New Delhi - 110 058 Tel: 6203447 === 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:include does not work in WebLogic 4.5.1
Hi, jsp:include does not seem to work in WebLogic 4.5.1. I have also tried sendResponse but that also does not seem to work. Has anybody been able to use these tags. Please help. Thanks Ashish === 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