Feedback about Swinglets0.8.5
Hi Robin, Today I downloaded ur Swinglets085.zip from ur internet sites.I unzipped it.I m working on windows NT server(Stand alone server).I changed the classpath name as being given instructions in Readme file.I mentioned the path of swing085.zip in classpath.I tried to compile ur HelloWorld program given with swinglets085.zip file It is giving the following error messages. D:\java\birenjavac HelloWorld.java HelloWorld.java:67: No variable PLAIN defined in class com.javelin.swinglets.SFo nt. SFont font=SFont.getFont("Arial", SFont.PLAIN, 16); HelloWorld.java:68: Incompatible type for method. Can't convert com.javelin.swin glets.SFont to java.awt.Font. frame.setFont(font); Can u please tell me how to install it on my computer successfully. Do I need to change anything else in my classpath. Please help. Looking forward to getting reply from u at the earliest. Thanks in advance Biren === 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
Can I use repeat tag in my JSP with Weblogic5.1?
Hi, everybody. I'v got a problem. I used Weblogic 5.1. But it seems that I can not use the repeat tag. My code is here: select size="1" name="txtEm_FundPlan" onchange="ScheCodeList_change()" style="font-family: Arial; font-size: 10pt" REPEAT index="iScheCode" % if (!employee.getSche_Code_List(iScheCode).equals(fundCode)){ % OPTION value="%=employee.getSche_Code_List(iScheCode)%"%=employee.getSche_Code_ List(iScheCode)%/OPTION % } % /REPEAT /select But I got the following error msg: C:\weblogic\myserver\servletclasses\jsp_servlet\_employeeinfo.java:198: ???¡§¡À???: iScheCode probably occurred due to an error in /EmployeeInfo.jsp line 282: % if (!employee.getSche_Code_List(iScheCode).equals(fundCode)){ % C:\weblogic\myserver\servletclasses\jsp_servlet\_employeeinfo.java:200: ???¡§¡À???: iScheCode probably occurred due to an error in /EmployeeInfo.jsp line 283: OPTION value="%=employee.getSche_Code_List(iScheCode)%"%=employee.getSche_Code_ List(iScheCode)%/OPTION C:\weblogic\myserver\servletclasses\jsp_servlet\_employeeinfo.java:202: ???¡§¡À???: iScheCode probably occurred due to an error in /EmployeeInfo.jsp line 283: OPTION value="%=employee.getSche_Code_List(iScheCode)%"%=employee.getSche_Code_ List(iScheCode)%/OPTION Any one can give me advice? Thanks in advanced! Ken === 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: [TAGLIB] Emulation of JSP 0.92 LOOP tag?
Scott Stirling wrote: Go to www.taglibs.com and look around. "Coming Soon!" "We recently registered our domain name at..." Mmm, may be a good tip for the future. The JRun 3.0 custom taglib has some flow control tags like IF, CASE, SELECT, etc. Well, I have had a look at JRun 3.0 Beta and his taglib. The taglib is ok but no free, so I am can not use this in other enviroments :-( The Jakarta Taglib is just at an initial state and a standard tag library will come with JSP 1.2 (see http://java.sun.com/aboutJava/communityprocess/jsr/jsr_052_jsptaglib.html). Thanks, bye Uwe === 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
sendRedirect : get OK, post not OK
Hi all, I'm stumbling over a strange 'error' : I built a login-page, using a form in which username and password are required, and the 'action' field of the form specifies the same login page. Upon entering the login page, a bean is used to check the username and password. If the login is OK, the method response.sendRedirect is used to go on to the next page, if the login is not OK, the same old login page is shown. The weird thing here is : when I use method="get" everything functions fine. However, when I use "post" I get the error 'The page cannot be found'. Since it is a login page, the method 'get' in the form is obviously not preferred... Anyone ? Thanks a lot in advance ! Michiel Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Book Announcement: Java Server Pages
Book Announcement: Java Server Pages Now available: Java Server Pages By Volker Turau Publisher: dpunkt ix Edition 380 Pages ISBN 3-932588-66-5 This book provides a comprehensive in-depth treatement of web-publishing with Java Server Pages Version 1.1. It includes numerous pre-tested examples that you can use as the basis for your own JSP applications. The examples have been tested with the Tomcat and the Orion Server on Linux and Windwos NT. They are available online (including the complete source code). The book explains the life cycle of a JSP page and how the technology relates to servlets and to J2EE. What's inside: -- internationalized applications -- shopping cart -- session management -- bean based applications -- accessing databases -- JSP tag libraries -- JSP V 1.1 and Servlet V 2.2 API The book is written in German. The web-site for the book http://www.informatik.fh-wiesbaden.de/~turau/jsp/index.html has -- a complete outline of the book -- all examples online -- all examples as a WAR file -- two chapters as PDF file -- lots of usefull links to JSP resources prof. volker turau FH Wiesbaden Fachbereich Informatik Tel.: +49-611-9495-205 FAX +49-611-9495-210 http://www.informatik.fh-wiesbaden.de/~turau === 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
jsp and java on solaris 8
Dear all, I'm going to implement a web application with Iplanet as the web server and Oracle8i as the DB server. My question is that the programming lang for implement the application is not yet decided, jsp and java would be in the list of consideration. Could anyone pls kindly tell me about the ease of installation and learning, performance of the two lang on the above platform? Which will be better to connect to Oracle8i? If none of the lang is good enough, what lang will u suggest? Thx!! Janus Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Client side selection
Title: 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, Ýo 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: 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
Session management across a load balanced webserver
Hi I want to maintain session information across a load balanced webserver. How do i do it? The problem is as follows. There is an array of webservers across which requests from the client are load balanced. In such a scenario, lets say a request from USER1 for PAGE1 will be processed by SERVER1. When USER1 enters the information in PAGE1 and hits submit, PAGE2 has to be made available. This request can go to SERVER2 also. How do I maintain the session in this case? Hope i have made the question clear! Thanks for ur insights. K Ramesh === 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: Book Announcement: Java Server Pages
Hi, Can this book be available in English ? Rgds, Sujoy -Original Message- From: Volker Turau Sent: Monday, May 22, 2000 5:48 AM To: [EMAIL PROTECTED] Subject: Book Announcement: Java Server Pages Book Announcement: Java Server Pages Now available: Java Server Pages By Volker Turau Publisher: dpunkt ix Edition 380 Pages ISBN 3-932588-66-5 This book provides a comprehensive in-depth treatement of web-publishing with Java Server Pages Version 1.1. It includes numerous pre-tested examples that you can use as the basis for your own JSP applications. The examples have been tested with the Tomcat and the Orion Server on Linux and Windwos NT. They are available online (including the complete source code). The book explains the life cycle of a JSP page and how the technology relates to servlets and to J2EE. What's inside: -- internationalized applications -- shopping cart -- session management -- bean based applications -- accessing databases -- JSP tag libraries -- JSP V 1.1 and Servlet V 2.2 API The book is written in German. The web-site for the book http://www.informatik.fh-wiesbaden.de/~turau/jsp/index.html has -- a complete outline of the book -- all examples online -- all examples as a WAR file -- two chapters as PDF file -- lots of usefull links to JSP resources prof. volker turau FH Wiesbaden Fachbereich Informatik Tel.: +49-611-9495-205 FAX +49-611-9495-210 http://www.informatik.fh-wiesbaden.de/~turau == = 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
Query about JAVA SERVER SIDE pgmming book
Hi, Can anyone tell me about a good JAVA SERVER SIDE programming book? URGENT Regards, Sujoy === 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: Image genration using jcchart passing it to HTML client.
I used a server-side graphing/charting tool from Visual Engineering (www.ve.com). It worked very well for this requirement. Bill Hines -Original Message- From: Manish Bijay Kumar [mailto:[EMAIL PROTECTED]] Sent: Monday, April 10, 2000 9:41 AM To: [EMAIL PROTECTED] Subject: Image genration using jcchart passing it to HTML client. Hi all, What I am trying to do is to create a graph at the server end using jcchart and passing it to the client (HTML page). Does any body has done this successfully. If yes..then please guide me. Thanks in advance... Manish Kumar === 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: Query about JAVA SERVER SIDE pgmming book
Java Servlet Programming of Jason Hunter and William Crawford O'Reilly ISBN : 1-56592-391-X -Message d'origine- De : Sujoy Kumar Bose [mailto:[EMAIL PROTECTED]] Envoyé : lundi 22 mai 2000 14:18 À : [EMAIL PROTECTED] Objet : Query about JAVA SERVER SIDE pgmming book Importance : Haute Hi, Can anyone tell me about a good JAVA SERVER SIDE programming book? URGENT Regards, Sujoy === 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: Query about JAVA SERVER SIDE pgmming book
Title: RE: Query about JAVA SERVER SIDE pgmming book Theres one by Wrox. I think it is Professional Java Server Programming.. -Original Message- From: LEBARON Christian FTRD/DMI/SOP [SMTP:[EMAIL PROTECTED]] Sent: Monday, May 22, 2000 5:59 PM To: [EMAIL PROTECTED] Subject: Re: Query about JAVA SERVER SIDE pgmming book Java Servlet Programming of Jason Hunter and William Crawford O'Reilly ISBN : 1-56592-391-X -Message d'origine- De : Sujoy Kumar Bose [mailto:[EMAIL PROTECTED]] Envoyé : lundi 22 mai 2000 14:18 À : [EMAIL PROTECTED] Objet : Query about JAVA SERVER SIDE pgmming book Importance : Haute Hi, Can anyone tell me about a good JAVA SERVER SIDE programming book? URGENT Regards, Sujoy === 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 Ýo 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
SSL Resin ???
Hi, Can anybody tell me what is SSL Server and what is Resin 1.1? URGENT Regards, Sujoy === 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: Query about JAVA SERVER SIDE pgmming book
professional java server programming is pretty good, by wrox. Sujoy Kumar Bose wrote: Hi, Can anyone tell me about a good JAVA SERVER SIDE programming book? URGENT Regards, Sujoy === 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: Query about JAVA SERVER SIDE pgmming book
I would recommend Java Enterprise in a Nutshell, from OReilly. It covers the whole J2EE especification and contains lots of reference information. Fernando Ribeiro Organic inteligencia interativa [EMAIL PROTECTED] On Mon, 22 May 2000, LEBARON Christian FTRD/DMI/SOP wrote: Java Servlet Programming of Jason Hunter and William Crawford O'Reilly ISBN : 1-56592-391-X -Message d'origine- De : Sujoy Kumar Bose [mailto:[EMAIL PROTECTED]] Envoyé : lundi 22 mai 2000 14:18 À : [EMAIL PROTECTED] Objet : Query about JAVA SERVER SIDE pgmming book Importance : Haute Hi, Can anyone tell me about a good JAVA SERVER SIDE programming book? URGENT Regards, Sujoy === 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
How JSP Servlet Forward work
Hi, I try the JSP-Servlet-JSP example in JSWDK-1.0.1. This example is show how to forward from JSP to servlet and forward back to the JSP. I want to know the path working in JSWDK-1.0.1, so I move the servletToJsp servlet from the default directory (C:\jswdk-1.0.1\examples\WEB-INF\servlets) to a new directory in C:\jswdk-1.0.1\examples\WEB-INF\servlets\com\test\servlet\ . Then I modified the C:\jswdk-1.0.1\examples\jsp\jsptoservjsptoservlet.jsp file to forward to the servlet. Run the example, the servlet cannot forward back to the JSP. I know the problem is I need to change the forward path in the servlet class, but I try to give a absolute URL, it still cannot forward back to the JSP page. Anyone can tell me what the path I need to give? Thanks Louis === 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: Query about JAVA SERVER SIDE pgmming book
Hi, Try Java Server Programming by Wrox Publications , it's compiled by 12 authors.I'm not sure what exacltly you are looking for , but the book has a good coverage of server side programming. Santosh - Original Message - From: Sujoy Kumar Bose [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 22, 2000 8:18 AM Subject: Query about JAVA SERVER SIDE pgmming book Hi, Can anyone tell me about a good JAVA SERVER SIDE programming book? URGENT Regards, Sujoy === 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: Book Announcement: Java Server Pages
Then there should also be an English Version of the same. Does any one has sample codes Link explaning various topics (not basics) in JSP( like Session ,jsp communicating with EJB) Regards Bhupesh Vora -Original Message- From: Volker Turau [SMTP:[EMAIL PROTECTED]] Sent: Monday, May 22, 2000 3:18 PM To: [EMAIL PROTECTED] Subject: Book Announcement: Java Server Pages Book Announcement: Java Server Pages Now available: Java Server Pages By Volker Turau Publisher: dpunkt ix Edition 380 Pages ISBN 3-932588-66-5 This book provides a comprehensive in-depth treatement of web-publishing with Java Server Pages Version 1.1. It includes numerous pre-tested examples that you can use as the basis for your own JSP applications. The examples have been tested with the Tomcat and the Orion Server on Linux and Windwos NT. They are available online (including the complete source code). The book explains the life cycle of a JSP page and how the technology relates to servlets and to J2EE. What's inside: -- internationalized applications -- shopping cart -- session management -- bean based applications -- accessing databases -- JSP tag libraries -- JSP V 1.1 and Servlet V 2.2 API The book is written in German. The web-site for the book http://www.informatik.fh-wiesbaden.de/~turau/jsp/index.html has -- a complete outline of the book -- all examples online -- all examples as a WAR file -- two chapters as PDF file -- lots of usefull links to JSP resources prof. volker turau FH Wiesbaden Fachbereich Informatik Tel.: +49-611-9495-205 FAX +49-611-9495-210 http://www.informatik.fh-wiesbaden.de/~turau == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: How JSP Servlet Forward work
try giving relative path -Original Message- From: Louis [SMTP:[EMAIL PROTECTED]] Sent: Monday, May 22, 2000 6:57 PM To: [EMAIL PROTECTED] Subject: How JSP Servlet Forward work Hi, I try the JSP-Servlet-JSP example in JSWDK-1.0.1. This example is show how to forward from JSP to servlet and forward back to the JSP. I want to know the path working in JSWDK-1.0.1, so I move the servletToJsp servlet from the default directory (C:\jswdk-1.0.1\examples\WEB-INF\servlets) to a new directory in C:\jswdk-1.0.1\examples\WEB-INF\servlets\com\test\servlet\ . Then I modified the C:\jswdk-1.0.1\examples\jsp\jsptoservjsptoservlet.jsp file to forward to the servlet. Run the example, the servlet cannot forward back to the JSP. I know the problem is I need to change the forward path in the servlet class, but I try to give a absolute URL, it still cannot forward back to the JSP page. Anyone can tell me what the path I need to give? Thanks Louis == = 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: [TAGLIB] Emulation of JSP 0.92 LOOP tag?
Whoops! I meant www.jsptags.com. Sorry about that. I have to disagree. The JRun 3.0 taglib is freely available and can be downloaded separate from the JRun product. The JRun taglib is pure Java with no proprietary extensions, so it should work in any JSP 1.1 container. Scott Stirling -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Uwe Hanisch Sent: Monday, May 22, 2000 4:07 AM To: [EMAIL PROTECTED] Subject: Re: [TAGLIB] Emulation of JSP 0.92 LOOP tag? Scott Stirling wrote: Go to www.taglibs.com and look around. "Coming Soon!" "We recently registered our domain name at..." Mmm, may be a good tip for the future. The JRun 3.0 custom taglib has some flow control tags like IF, CASE, SELECT, etc. Well, I have had a look at JRun 3.0 Beta and his taglib. The taglib is ok but no free, so I am can not use this in other enviroments :-( The Jakarta Taglib is just at an initial state and a standard tag library will come with JSP 1.2 (see http://java.sun.com/aboutJava/communityprocess/jsr/jsr_052_jsptaglib.html). Thanks, bye Uwe === 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: I am looking for mySQL's site and PHP's Site
www.mysql.com and www.php.net :: pål :: : : . ___s_p_r_a_y_ Pål Brattberg | [EMAIL PROTECTED] Mob: (+46) 0704 566299 | Tel: (+46) 08 52790122 Här börjar internet | http://www.spray.se -Original Message- From: Nwalal Mi Nyom Martin [mailto:[EMAIL PROTECTED]] Sent: den 20 maj 2000 13:07 To: [EMAIL PROTECTED] Subject: I am looking for mySQL's site and PHP's Site Hi, can somebody telle where i can find PHP serveur and mySQL Data base; Tanks; Martin __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. 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
Sessions???
Can somebody explain to me how I can track a user's session. I truely tried reading the docs and stuff but I do not get it. If anyone knows of any example code online please (!!!) send me a link. (Or if anyone has the time, post an explanation) Thanks. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: I am looking for mySQL's site and PHP's Site
We sorry you have to be killed. -Original Message- From: Pål Brattberg [mailto:[EMAIL PROTECTED]] Sent: Monday, May 22, 2000 5:17 PM To: [EMAIL PROTECTED] Subject: Re: I am looking for mySQL's site and PHP's Site www.mysql.com and www.php.net :: pål :: : : . ___s_p_r_a_y_ Pål Brattberg | [EMAIL PROTECTED] Mob: (+46) 0704 566299 | Tel: (+46) 08 52790122 Här börjar internet | http://www.spray.se -Original Message- From: Nwalal Mi Nyom Martin [mailto:[EMAIL PROTECTED]] Sent: den 20 maj 2000 13:07 To: [EMAIL PROTECTED] Subject: I am looking for mySQL's site and PHP's Site Hi, can somebody telle where i can find PHP serveur and mySQL Data base; Tanks; Martin __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. 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 === 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: SSL Resin ???
Resin is a Servlet/JSP server extention; a pice of software that can work with a web server and extend its capabilities in order to suppot JSP's and Servlets. SSL Stands for Secure Socket Layer (if I remember well) and is a secure protocol defined to comunicate private data over the internet. A SSL server just support that comunication protocol. mauro -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Sujoy Kumar Bose Sent: 22 May 2000 13:37 To: [EMAIL PROTECTED] Subject: SSL Resin ??? Importance: High Hi, Can anybody tell me what is SSL Server and what is Resin 1.1? URGENT Regards, Sujoy == = 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: Weblogic JavaBeans
Thanks Ken, I have read most of the properties file info, there is a section on configuring the JSPServlet. I have the server configured to run JSP's, any JSP which does not access a Bean via the useBean tag works fine. I just can't get it to locate my beans. Is there any special configuration within the properties file for locating javabeans? -Original Message- From: Wasetis, Ken [mailto:[EMAIL PROTECTED]] Sent: Friday, May 19, 2000 6:15 PM To: [EMAIL PROTECTED] Subject: Re: Weblogic JavaBeans There is a section in the weblogic.properties file. One section for EJBs and one for servlets. The properties file is pretty well documented. It should be located in the \weblogic folder. -Original Message- From: Kaylon Daniels [mailto:[EMAIL PROTECTED]] Sent: Friday, May 19, 2000 2:51 PM To: [EMAIL PROTECTED] Subject: Re: Weblogic JavaBeans Does anyone know how to get the Weblogic 5.1 server to "find" Javabeans? I continue to get ClassNotFoundErrors whenever I try to load a JSP with a javabean. I am using a standard jsp:useBeans id=".." class="..." / tag. I have set the java classpath using the BEA Systems online help examples. Any insight would be helpful. Kaylon D [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 === 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
Session Expire Count-down Clock?
A project sponsor wants me to put some type of "countdown clock" on the page so that the user knows how much time is left before their session expires. Is it possible to do this with script or something? We don't do any client-side Java, only server-side with servlets and JSP. Thanks, Bill === 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: HttpSessionBindingEvent
Why are you maintaining open connections while waiting for the user? Use a connection pool, connect only whem needed and close when done. -Original Message- From: George Klimes [mailto:[EMAIL PROTECTED]] Sent: Monday, May 22, 2000 11:32 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: HttpSessionBindingEvent Hi everyone, quick question. I have an object that has two methods, which do the following: 1) create a connection 2) close the connection (clean up after connection is not needed. Let's call it connection object. This connection object is initialized from a servlet and as soon as the client has a valid HttpSession object. Under ideal circumstances, the connection remains opened as long as the a session is valid. When the client closes the browser or the session times out, the connection object calls the method that closes the connection and cleans up. Here's the problem. If the client opens another browser window, or the layout has frame set, the new browser window initializes the connection object. This means the the first browser window reference points to the connection object initialized by the second window. The implication is, the first window cannot close the connection (when the session is invalid), since it doesn't reference the connection object it originally initiated. How could I avoid this ? HttpSessionBindingEvent and HttpSessionBindingListener might do the magic, however, I wouldn't mind second opinion from the masses. Thank you for your time. GK. BTW: I am running JServ1.1 (JSDK2.0) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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: Weblogic JavaBeans
Make sure you're doing the following: 1. Import the Bean's package: %@ page import="com.package.whatever.myBean" % 2. Refer to the Bean's entire package in the useBean: jsp:useBean id="myBean" class="com.package.whatever.myBean" / 3. Make sure the above mentioned class is in your classpath. I have known Weblogic 4.51 to not find classes that are in .jar files in my classpath. So if your class is in the .jar you might explode it out into a directory that's already in your class path. Do these things and it should work ok. You don't need to worry about the weblogic.properties file for simple JavaBeans. However, for debugging you might want to add the following in the JSP section of weblogic.properties: weblogic.httpd.initArgs.*.jsp=\ keepgenerated=true There will already be other initArgs, but adding keepgenerated=true to the end will keep the servlet.java file that was generated when compiling the JSP page. You can look at this servlet's source and see how it's trying to find the class. Enjoy. ryan -Original Message- From: Kaylon Daniels [mailto:[EMAIL PROTECTED]] Sent: Monday, May 22, 2000 1:03 PM To: [EMAIL PROTECTED] Subject: Re: Weblogic JavaBeans Thanks Ken, I have read most of the properties file info, there is a section on configuring the JSPServlet. I have the server configured to run JSP's, any JSP which does not access a Bean via the useBean tag works fine. I just can't get it to locate my beans. Is there any special configuration within the properties file for locating javabeans? -Original Message- From: Wasetis, Ken [mailto:[EMAIL PROTECTED]] Sent: Friday, May 19, 2000 6:15 PM To: [EMAIL PROTECTED] Subject: Re: Weblogic JavaBeans There is a section in the weblogic.properties file. One section for EJBs and one for servlets. The properties file is pretty well documented. It should be located in the \weblogic folder. -Original Message- From: Kaylon Daniels [mailto:[EMAIL PROTECTED]] Sent: Friday, May 19, 2000 2:51 PM To: [EMAIL PROTECTED] Subject: Re: Weblogic JavaBeans Does anyone know how to get the Weblogic 5.1 server to "find" Javabeans? I continue to get ClassNotFoundErrors whenever I try to load a JSP with a javabean. I am using a standard jsp:useBeans id=".." class="..." / tag. I have set the java classpath using the BEA Systems online help examples. Any insight would be helpful. Kaylon D [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 == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Weblogic JavaBeans
If you are just using normal beans, then I apologize for distracting you with the properties file. Ryan's suggestion on using the page directive import is the only way I seen simple beans used (along with usebean.) If you are using an earlier JSP spec, you'll have to use the BEAN: tag instead of usebean:. I haven't had the .jar problem Ryan has, though. If you are using EJBs and/or servlets, the below could help: One of the last statements on the console as you startup the web server should state that 'X EJBs deployed' if you are using EJBs. If it states that none were deployed, then look at the message on the console just after it attempts to deploy each EJB, which should indicate the reason (connectionpool couldn't be created, license expiration problem, etc.) Here is an example of how the ejb.deploy property is setup: weblogic.ejb.deploy=\ c:/weblogic/myserver/serverclasses/user.jar ,\ c:/weblogic/myserver/serverclasses/plant.jar,\ c:/weblogic/myserver/serverclasses/backofficeuser.jar,\ c:/weblogic/myserver/serverclasses/contactinfo.jar,\ c:/weblogic/myserver/serverclasses/creditcheck.jar -Original Message- From: Shriver, Ryan [mailto:[EMAIL PROTECTED]] Sent: Monday, May 22, 2000 12:57 PM To: [EMAIL PROTECTED] Subject: Re: Weblogic JavaBeans Make sure you're doing the following: 1. Import the Bean's package: %@ page import="com.package.whatever.myBean" % 2. Refer to the Bean's entire package in the useBean: jsp:useBean id="myBean" class="com.package.whatever.myBean" / 3. Make sure the above mentioned class is in your classpath. I have known Weblogic 4.51 to not find classes that are in .jar files in my classpath. So if your class is in the .jar you might explode it out into a directory that's already in your class path. Do these things and it should work ok. You don't need to worry about the weblogic.properties file for simple JavaBeans. However, for debugging you might want to add the following in the JSP section of weblogic.properties: weblogic.httpd.initArgs.*.jsp=\ keepgenerated=true There will already be other initArgs, but adding keepgenerated=true to the end will keep the servlet.java file that was generated when compiling the JSP page. You can look at this servlet's source and see how it's trying to find the class. Enjoy. ryan -Original Message- From: Kaylon Daniels [mailto:[EMAIL PROTECTED]] Sent: Monday, May 22, 2000 1:03 PM To: [EMAIL PROTECTED] Subject: Re: Weblogic JavaBeans Thanks Ken, I have read most of the properties file info, there is a section on configuring the JSPServlet. I have the server configured to run JSP's, any JSP which does not access a Bean via the useBean tag works fine. I just can't get it to locate my beans. Is there any special configuration within the properties file for locating javabeans? -Original Message- From: Wasetis, Ken [mailto:[EMAIL PROTECTED]] Sent: Friday, May 19, 2000 6:15 PM To: [EMAIL PROTECTED] Subject: Re: Weblogic JavaBeans There is a section in the weblogic.properties file. One section for EJBs and one for servlets. The properties file is pretty well documented. It should be located in the \weblogic folder. -Original Message- From: Kaylon Daniels [mailto:[EMAIL PROTECTED]] Sent: Friday, May 19, 2000 2:51 PM To: [EMAIL PROTECTED] Subject: Re: Weblogic JavaBeans Does anyone know how to get the Weblogic 5.1 server to "find" Javabeans? I continue to get ClassNotFoundErrors whenever I try to load a JSP with a javabean. I am using a standard jsp:useBeans id=".." class="..." / tag. I have set the java classpath using the BEA Systems online help examples. Any insight would be helpful. Kaylon D [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 == = 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
Re: How JSP Servlet Forward work
I try relative path like these ../../../examples/jsp/jsptoserv/hello.jsp ../../examples/jsp/jsptoserv/hello.jsp ../examples/jsp/jsptoserv/hello.jsp ../../../jsp/jsptoserv/hello.jsp ../../jsp/jsptoserv/hello.jsp ../jsp/jsptoserv/hello.jsp unfortunetly, it still not forward it. - Original Message - From: bhupesh vora [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 22, 2000 3:06 PM Subject: Re: How JSP Servlet Forward work try giving relative path -Original Message- From: Louis [SMTP:[EMAIL PROTECTED]] Sent: Monday, May 22, 2000 6:57 PM To: [EMAIL PROTECTED] Subject: How JSP Servlet Forward work Hi, I try the JSP-Servlet-JSP example in JSWDK-1.0.1. This example is show how to forward from JSP to servlet and forward back to the JSP. I want to know the path working in JSWDK-1.0.1, so I move the servletToJsp servlet from the default directory (C:\jswdk-1.0.1\examples\WEB-INF\servlets) to a new directory in C:\jswdk-1.0.1\examples\WEB-INF\servlets\com\test\servlet\ . Then I modified the C:\jswdk-1.0.1\examples\jsp\jsptoservjsptoservlet.jsp file to forward to the servlet. Run the example, the servlet cannot forward back to the JSP. I know the problem is I need to change the forward path in the servlet class, but I try to give a absolute URL, it still cannot forward back to the JSP page. Anyone can tell me what the path I need to give? Thanks Louis == = 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
[TAGLIB] No such tag XXX the tag library imported with prefix XXX
I am using the book "Web Development with JavaServer Pages" to develop a tag library for my company. I've created the TDL file describing the tag, and the Java tag handler class. I've got a page referencing the TDL, and then the page uses the tag defined in the TDL. But, I get the error: No such tag task the tag library imported with prefix sched where "task" is my tag name, and "sched" is the prefix. I've tried all mixes of capitalization, so I don't think it has to do with that. I am using Tomcat as my web server, running locally on a Win98 machine, and am running JDK 1.1.8_3. Has anyone experienced this problem before. If so, any solutions? I'm including my source below, in case that helps. Thanks! -David Castro [EMAIL PROTECTED] JSP file- %@ taglib uri="/scheduling" prefix="sched" % HTML BODY sched:task name="Administrator" action="include"pThis text is only displayed if the user is an administrator./p/sched:task /BODY /HTML web.xml file for this application-- ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" web-app taglib taglib-uri/scheduling/taglib-uri taglib-location/WEB-INF/tlds/sched.tld/taglib-location /taglib /web-app sched.tld-- ?xml version="1.0" encoding="ISO-8859-1" ? !DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglib_1_1.dtd" taglib tlibversion1.0/tlibversion shortnamesched/shortname infoUtility tags for the online help for scheduling.com./info tag name task /name tagclass taskTag /tagclass bodycontent JSP /bodycontent info Conditionalize content based on the tasks that the user performs /info attribute name name /name required true /required /attribute attribute name action /name /attribute /tag /taglib taskTag.java-- import javax.servlet.http.HttpServletResponse; import javax.servlet.jsp.tagext.*; import javax.servlet.jsp.*; import java.io.IOException; public class TaskTag extends BodyTagSupport { private String task = "Scheduler"; private String action = "include"; public void setTask(String task) { this.task = task; } public String getTask() { return task; } public void setAction(String action) { this.action = action; } public String getAction() { return action; } public int doAfterBody() throws JspException { BodyContent body = getBodyContent(); String tagBody = body.getString(); body.clearBody(); try { // HttpServletResponse response = (HttpServletResponse)pageContext.getResponse(); //if the task attribute matches the tasks the user specified when logging in then display the body of the tag if (task.equalsIgnoreCase("Administrator")) { if (action.equalsIgnoreCase("include")) { //if tag requests an include for administrators... if (((Boolean)pageContext.getAttribute("Administrator")).booleanValue()) { //...and the user is an administrator, leave the body as is } else { tagBody = " "; //...and the user isn't an administrator, clear the body content } } else { //if tag requests an exclude for administrators... if (((Boolean)pageContext.getAttribute("Administrator")).booleanValue()) { tagBody = " "; //...and the user is an administrator, then clear the content } else { //...and the user is not an administrator, the leave the body as is } } } if (task.equalsIgnoreCase("Scheduler")) { if (action.equalsIgnoreCase("include")) { //if tag requests an include for schedulers... if (((Boolean)pageContext.getAttribute("Scheduler")).booleanValue()) { //...and the user is a scheduler, leave the body as is } else { tagBody = " "; //...and the user is not a scheduler, clear the content } } else { //if tag requests an exclude for schedulers... if (((Boolean)pageContext.getAttribute("Scheduler")).booleanValue()) { tagBody = " "; //...and the user is a scheduler, clear then content } else { //...and the user isn't a scheduler, leave the body as is } } } if (task.equalsIgnoreCase("Registrar")) { if (action.equalsIgnoreCase("include")) { //if tag requests an include for registrars... if (((Boolean)pageContext.getAttribute("Registrar")).booleanValue()) { //and the user is a registrar, leave the body as is } else { tagBody = " "; //...and the user is not a registrar, clear the content } } else {
XML mapping to objects - Model 2 architecture for config file.
This may be a bit inappropriate for this group, but it follows on the heels of me implementing the Model 2 architecture we all have been discussing so much. I have a working Model 2, but, I want to read in my xml config file. I am using the sun/xml parser because we use it in a couple of places on our site. However, my first stab at reading in the XML into a DOM object, while its being read in, trying to get each element and its value (not attribute) has proven to be a pain in the butt. So, my question is, is there any way I can just create a class and have the XML parser map the right elements (by name) and place the values after those tags directly into an instance of an object? It would also need to be able to add items to a vector, or table of some sort. For example, my config file looks like so: config action nameLogin/name classcom.bm.ui.actions.Login/class result name="Successful" page="/inside/home.jsp" / result name="Error" page="/outside/login_error.jsp" / /action action nameEnroll/name classcom.bm.ui.actions.Enroll/class result name="Successful" page="/common/login_ok.jsp" / result name="BadLogin" page="/common/enroll.jsp" / result name="Error" page="/outside/enroll_error.jsp" / /action /config So, if I have class like: public class ActionObject { private String actionName = ""; private String actionClass = ""; private Hashmap results = new Hashmap(); public ActionObject() { } ... and so on ... } Is there a way to automatically get the XML document to map the name, class and result name/page tags and attributes and their values directly to an instance of the object..so that I can do something like: ... read XML document in... ActionObject ao = new ActionObject(XmlDoc); while( ao.hasMoreActions() ) { Object o = ao.nextAction(); mytable.add( o ); } In sum, the few lines above would simply use my ContollerServlet (ServletContext) hashtable object that stores each action, to cycle through my own class (ActionObject) which when created was populated automatically (perhaps through reflection of xml to the object) with the xml config data, and now I am just looping through and adding it to the hash table. OFcourse..if ao contains the entire config tree..there is no need to do another table..this is all hypothetical..for the use to hopefully explain what I am trying to do. Thanks for anyone that can help. === 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: HttpSessionBindingEvent
Actually, the connection IS initialized from the pool and when "con.close()" is called, the connection is recycled/returned to the pool. Sorry about the confusion, I wanted keep the question abstract with focus on the multiple browser window issue. gK. Why are you maintaining open connections while waiting for the user? Use a connection pool, connect only whem needed and close when done. -Original Message- From: George Klimes [mailto:[EMAIL PROTECTED]] Sent: Monday, May 22, 2000 11:32 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: HttpSessionBindingEvent Hi everyone, quick question. I have an object that has two methods, which do the following: 1) create a connection 2) close the connection (clean up after connection is not needed. Let's call it connection object. This connection object is initialized from a servlet and as soon as the client has a valid HttpSession object. Under ideal circumstances, the connection remains opened as long as the a session is valid. When the client closes the browser or the session times out, the connection object calls the method that closes the connection and cleans up. Here's the problem. If the client opens another browser window, or the layout has frame set, the new browser window initializes the connection object. This means the the first browser window reference points to the connection object initialized by the second window. The implication is, the first window cannot close the connection (when the session is invalid), since it doesn't reference the connection object it originally initiated. How could I avoid this ? HttpSessionBindingEvent and HttpSessionBindingListener might do the magic, however, I wouldn't mind second opinion from the masses. Thank you for your time. GK. BTW: I am running JServ1.1 (JSDK2.0) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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: XML mapping to objects - Model 2 architecture for config file.
Kevin Duffey wrote: [snip] So, my question is, is there any way I can just create a class and have the XML parser map the right elements (by name) and place the values after those tags directly into an instance of an object? It would also need to be able to add items to a vector, or table of some sort. For example, my config file looks like so: config action nameLogin/name classcom.bm.ui.actions.Login/class result name="Successful" page="/inside/home.jsp" / result name="Error" page="/outside/login_error.jsp" / /action action nameEnroll/name classcom.bm.ui.actions.Enroll/class result name="Successful" page="/common/login_ok.jsp" / result name="BadLogin" page="/common/enroll.jsp" / result name="Error" page="/outside/enroll_error.jsp" / /action /config I will (shortly) be able to help you with this issue, as well as several others. I'm putting the finishing touches on a small Model 2 based framework that will be open sourced, and will contain the following tools: * Basic "model 2" servlet with action interfaces and some other support classes. * Custom tag library for some common use cases in Model 2 scenarios, including internationalization. * Support for populating bean properties directly from request parameters (like JSP can do with the "*" wildcard). * Processing XML files like the one above, and creating new objects (and populating properties) from them elegantly, based on simple processing rules that you define. Look for an announcement of code availability for this for JavaOne. In addition, I will be present at many of the BOFs and Sessions (TS) related to servlet and JSP technology, including speaking at some of them. This code will be one of the case study examples. Hope to see you there! 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: XML mapping to objects - Model 2 architecture for config file.
hi Kevin Pending the release of the Java XML Binding implementation you could use DXML from ObjectSpace http://www.objectspace.com/downloads/ regards Jim Nicolson -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Duffey Sent: Tuesday, 23 May 2000 05:48 To: [EMAIL PROTECTED] Subject: XML mapping to objects - Model 2 architecture for config file. This may be a bit inappropriate for this group, but it follows on the heels of me implementing the Model 2 architecture we all have been discussing so much. I have a working Model 2, but, I want to read in my xml config file. I am using the sun/xml parser because we use it in a couple of places on our site. However, my first stab at reading in the XML into a DOM object, while its being read in, trying to get each element and its value (not attribute) has proven to be a pain in the butt. So, my question is, is there any way I can just create a class and have the XML parser map the right elements (by name) and place the values after those tags directly into an instance of an object? It would also need to be able to add items to a vector, or table of some sort. For example, my config file looks like so: config action nameLogin/name classcom.bm.ui.actions.Login/class result name="Successful" page="/inside/home.jsp" / result name="Error" page="/outside/login_error.jsp" / /action action nameEnroll/name classcom.bm.ui.actions.Enroll/class result name="Successful" page="/common/login_ok.jsp" / result name="BadLogin" page="/common/enroll.jsp" / result name="Error" page="/outside/enroll_error.jsp" / /action /config So, if I have class like: public class ActionObject { private String actionName = ""; private String actionClass = ""; private Hashmap results = new Hashmap(); public ActionObject() { } ... and so on ... } Is there a way to automatically get the XML document to map the name, class and result name/page tags and attributes and their values directly to an instance of the object..so that I can do something like: ... read XML document in... ActionObject ao = new ActionObject(XmlDoc); while( ao.hasMoreActions() ) { Object o = ao.nextAction(); mytable.add( o ); } In sum, the few lines above would simply use my ContollerServlet (ServletContext) hashtable object that stores each action, to cycle through my own class (ActionObject) which when created was populated automatically (perhaps through reflection of xml to the object) with the xml config data, and now I am just looping through and adding it to the hash table. OFcourse..if ao contains the entire config tree..there is no need to do another table..this is all hypothetical..for the use to hopefully explain what I am trying to do. Thanks for anyone that can help. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
jsp using bean in examples webapps
I am using linu x, apache and tomcat Those jsp pages in examples webapps are work fine. However when i tried to put my jsp page (which use bean) into examples webapps, it has error. the error message is "missing resource:java.util.PropertyResourceBundle" help thanks Get your FREE Email at http://mailcity.lycos.com Get your PERSONALIZED START PAGE at http://my.lycos.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
HttpSessionBindingEvent
Hi everyone, quick question. I have an object that has two methods, which do the following: 1) create a connection 2) close the connection (clean up after connection is not needed. Let's call it connection object. This connection object is initialized from a servlet and as soon as the client has a valid HttpSession object. Under ideal circumstances, the connection remains opened as long as the a session is valid. When the client closes the browser or the session times out, the connection object calls the method that closes the connection and cleans up. Here's the problem. If the client opens another browser window, or the layout has frame set, the new browser window initializes the connection object. This means the the first browser window reference points to the connection object initialized by the second window. The implication is, the first window cannot close the connection (when the session is invalid), since it doesn't reference the connection object it originally initiated. How could I avoid this ? HttpSessionBindingEvent and HttpSessionBindingListener might do the magic, however, I wouldn't mind second opinion from the masses. Thank you for your time. GK. BTW: I am running JServ1.1 (JSDK2.0) === 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
JPEG/GIF Width
Anyone knows how can I get the GIF or JPEG width ? thanks anderson === 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: XML mapping to objects - Model 2 architecture for config file.
Hi, I will (shortly) be able to help you with this issue, as well as several others. I'm putting the finishing touches on a small Model 2 based framework that will be open sourced, and will contain the following tools: * Basic "model 2" servlet with action interfaces and some other support classes. * Custom tag library for some common use cases in Model 2 scenarios, including internationalization. * Support for populating bean properties directly from request parameters (like JSP can do with the "*" wildcard). * Processing XML files like the one above, and creating new objects (and populating properties) from them elegantly, based on simple processing rules that you define. Look for an announcement of code availability for this for JavaOne. In addition, I will be present at many of the BOFs and Sessions (TS) related to servlet and JSP technology, including speaking at some of them. This code will be one of the case study examples. Hope to see you there! I'll be there!! Can you give me time/days you'll be speaking! I'll be sure to attend those. I only get to go for two days, so I want to make sure I make the most of my two days. My main focus/interest will be on servlets, jsp, javabeans, and ejb use with the model/action framework we have been discussing. You should put the framework on CD for the show! ;) Sounds great. The open-source framework you are working on sounds right up my alley. Any idea when it will be done and ready to be used? === 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
jspInit() and request.getParameter()
i get an error using the "request.getParamter()" object/method in the jspInit() method of the page object. are you allowed to get parameters passed to a page "before processing"? i'm basically trying to prepare a recordset that i'm going to keep static in the page so i'm placing the code into the jspInit() method and this is where i get an error. since i'm new to jsp i'm not sure if this is working "as designed" or if i'm processing the paramters wrong or ? thanks in advance for your help. === 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
Best server for jsp1.1 and ejb
Hi guys: I am now try to develop some program using tag library to call ejb.but I not sure which web server is the best for this.I try to use weblogic which declare supporting jsp1.1 and ejp1.1 but it seems to complicate to configure and set envir.I don't like it. so do you guys have some better suggestion? thanks a lot! Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: [TAGLIB] No such tag XXX the tag library imported with prefix XXX
from my exp,I think you should check the the location of your taglib class file.for tomcat I think you just put it in classes dir and check your web.xml,make it correct. From: David Castro [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [TAGLIB] No such tag XXX the tag library imported with prefix XXX Date: Mon, 22 May 2000 11:43:56 -0700 I am using the book "Web Development with JavaServer Pages" to develop a tag library for my company. I've created the TDL file describing the tag, and the Java tag handler class. I've got a page referencing the TDL, and then the page uses the tag defined in the TDL. But, I get the error: No such tag task the tag library imported with prefix sched where "task" is my tag name, and "sched" is the prefix. I've tried all mixes of capitalization, so I don't think it has to do with that. I am using Tomcat as my web server, running locally on a Win98 machine, and am running JDK 1.1.8_3. Has anyone experienced this problem before. If so, any solutions? I'm including my source below, in case that helps. Thanks! -David Castro [EMAIL PROTECTED] JSP file- %@ taglib uri="/scheduling" prefix="sched" % HTML BODY sched:task name="Administrator" action="include"pThis text is only displayed if the user is an administrator./p/sched:task /BODY /HTML web.xml file for this application-- ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" web-app taglib taglib-uri/scheduling/taglib-uri taglib-location/WEB-INF/tlds/sched.tld/taglib-location /taglib /web-app sched.tld-- ?xml version="1.0" encoding="ISO-8859-1" ? !DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglib_1_1.dtd" taglib tlibversion1.0/tlibversion shortnamesched/shortname infoUtility tags for the online help for scheduling.com./info tag name task /name tagclass taskTag /tagclass bodycontent JSP /bodycontent info Conditionalize content based on the tasks that the user performs /info attribute name name /name required true /required /attribute attribute name action /name /attribute /tag /taglib taskTag.java-- import javax.servlet.http.HttpServletResponse; import javax.servlet.jsp.tagext.*; import javax.servlet.jsp.*; import java.io.IOException; public class TaskTag extends BodyTagSupport { private String task = "Scheduler"; private String action = "include"; public void setTask(String task) { this.task = task; } public String getTask() { return task; } public void setAction(String action) { this.action = action; } public String getAction() { return action; } public int doAfterBody() throws JspException { BodyContent body = getBodyContent(); String tagBody = body.getString(); body.clearBody(); try { // HttpServletResponse response = (HttpServletResponse)pageContext.getResponse(); //if the task attribute matches the tasks the user specified when logging in then display the body of the tag if (task.equalsIgnoreCase("Administrator")) { if (action.equalsIgnoreCase("include")) { //if tag requests an include for administrators... if (((Boolean)pageContext.getAttribute("Administrator")).booleanValue()) { //...and the user is an administrator, leave the body as is } else { tagBody = " "; //...and the user isn't an administrator, clear the body content } } else { //if tag requests an exclude for administrators... if (((Boolean)pageContext.getAttribute("Administrator")).booleanValue()) { tagBody = " "; //...and the user is an administrator, then clear the content } else { //...and the user is not an administrator, the leave the body as is } } } if (task.equalsIgnoreCase("Scheduler")) { if (action.equalsIgnoreCase("include")) { //if tag requests an include for schedulers... if (((Boolean)pageContext.getAttribute("Scheduler")).booleanValue()) { //...and the user is a scheduler, leave the body as is } else { tagBody = " "; //...and the user is not a scheduler, clear the content } } else { //if tag requests an exclude for schedulers... if (((Boolean)pageContext.getAttribute("Scheduler")).booleanValue()) { tagBody = " "; //...and the user is a scheduler, clear then content } else {
Re: JPEG/GIF Width
public class NetImg implements ImageObserver{ boolean m_gotDim=false; int m_contentLength=0; Dimension m_dim=new Dimension(-1,-1); public NetImg(String imgUrl){ Toolkit toolkit=Toolkit.getDefaultToolkit(); URL url=null; try{ url=new URL(imgUrl); URLConnection connection=url.openConnection(); String contentType=connection.getContentType(); m_contentLength=connection.getContentLength(); if(contentType.startsWith("image")){ Image img=toolkit.getImage(url); for(int i=0;i1000;i++){ int width=img.getWidth(this); int height=img.getHeight(this); if((width0)(height0)){ m_dim.width=width; m_dim.height=height; m_gotDim=true; return; } Thread.sleep(20); } } m_gotDim=true; }catch(Exception e){System.out.println(e);System.out.println(imgUrl);}; } public int getSize(){ return m_contentLength; } public Dimension getDim(){ return m_dim; } public boolean imageUpdate(Image img, int info, int x, int y, int width, int height){ if((width0)(height0)) return true; else if(m_gotDim) return true; else return false; } } I hope this help. Jim Anyone knows how can I get the GIF or JPEG width ? thanks anderson === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
jsp or java is better?
Dear all, I'm going to implement a web application with Iplanet as the web server and Oracle8i as the DB server. My question is that the programming lang for implement the application is not yet decided, jsp and java would be in the list of consideration. Could anyone pls kindly tell me about the ease of installation and learning, performance of the two lang on the above platform? Which will be better to connect to Oracle8i? If none of the lang is good enough, what lang will u suggest? Thx!! Janus === 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
Touch Screen User Interface
Hello, I need to develop a "touch screen" user interface (that should run within a browser). Is there any functionality within JSP/Java that will allow me to do this? What are my options? How should I proceed? Any help/directions is greatly appreciated. Sachin === 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: JPEG/GIF Width
anderson wrote: Anyone knows how can I get the GIF or JPEG width ? I have the beginnings of an open-sourced GIF decoder at: http://millibits.com/djh/java/ Look at the implementation of readGIFIdentifier and readGlobalImageDescriptor for a way to determine the image type and the header info, including the width and height. There was a discussion about getting similar information out of a JPEG image header on news:comp.lang.java.programmer recently, though considerably more complex as JPEGs can have a variable-length header. A cheaper solution would be to store a simple .txt file with the same name as all your .jpg and .gif files. The text file would simply contain the image width and height which can be read easily by all sorts of applications. A simple Unix script and the netpbm utilities could create these .txt files pretty easily. === 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
Email Validation
hi Gurus, can you pls show me the way to validate Email format (on html/jsp form input) ? what's the best way of doing it ? bean ? script ? thank you for your attention, fay === 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: Email Validation
hi, Better to use scripts for client side validation. If u need server-side validation use Bean. deepati On Tue, 23 May 2000 11:39:03 +0800, A mailing list about Java Server Pages specification and reference wrote: hi Gurus, can you pls show me the way to validate Email format (on html/jsp form input) ? what's the best way of doing it ? bean ? script ? thank you for your attention, fay === 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 100% FREE Internet Access powered by Excite Visit http://freelane.excite.com/freeisp === 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 with XML
Hi EveryBody, Can any one send me some example of using the Jsp with Xml. I want to use the XML with a jsp. So if any one have some examples about this then please tell me. Thanks is advance. Pranav [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: the server is down?
Hello there. if the problem is there in yr admin registry... then u can solve it through administration tool ...in java web server.. thanx === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. 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
Re: mvc2
what is MVC (Model View Controller architecture )can some one explain me or guide me to some resource. Thanx in advance Bramha === 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
mvc2
Hi, Can anyone tell me the difference between MVC and MVC2... thanks Pradeep === 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: help on this error
What's the error message say? You can't have a method longer than 64k. Seems like the JSP container thinks you're trying to exceed that limit. Scott Stirling -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Dheil Corona Sent: Monday, May 22, 2000 11:15 PM To: [EMAIL PROTECTED] Subject: help on this error when i'm loading up my pages i got this error.. (Code of a method longer than 65535 bytes) my main page has codition to get a parameter on the url and include a local jsp on it, if ots true... but i can't figure out what does it really means.. thanks dheil === 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: XML mapping to objects - Model 2 architecture for config file .
Hi, you can also take a look at BeanMaker from IBM's alphaworks. vishu -Original Message- From: Jim Nicolson [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, May 23, 2000 4:08 AM To: [EMAIL PROTECTED] Subject: Re: XML mapping to objects - Model 2 architecture for config file. hi Kevin Pending the release of the Java XML Binding implementation you could use DXML from ObjectSpace http://www.objectspace.com/downloads/ regards Jim Nicolson -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Duffey Sent: Tuesday, 23 May 2000 05:48 To: [EMAIL PROTECTED] Subject: XML mapping to objects - Model 2 architecture for config file. This may be a bit inappropriate for this group, but it follows on the heels of me implementing the Model 2 architecture we all have been discussing so much. I have a working Model 2, but, I want to read in my xml config file. I am using the sun/xml parser because we use it in a couple of places on our site. However, my first stab at reading in the XML into a DOM object, while its being read in, trying to get each element and its value (not attribute) has proven to be a pain in the butt. So, my question is, is there any way I can just create a class and have the XML parser map the right elements (by name) and place the values after those tags directly into an instance of an object? It would also need to be able to add items to a vector, or table of some sort. For example, my config file looks like so: config action nameLogin/name classcom.bm.ui.actions.Login/class result name="Successful" page="/inside/home.jsp" / result name="Error" page="/outside/login_error.jsp" / /action action nameEnroll/name classcom.bm.ui.actions.Enroll/class result name="Successful" page="/common/login_ok.jsp" / result name="BadLogin" page="/common/enroll.jsp" / result name="Error" page="/outside/enroll_error.jsp" / /action /config So, if I have class like: public class ActionObject { private String actionName = ""; private String actionClass = ""; private Hashmap results = new Hashmap(); public ActionObject() { } ... and so on ... } Is there a way to automatically get the XML document to map the name, class and result name/page tags and attributes and their values directly to an instance of the object..so that I can do something like: ... read XML document in... ActionObject ao = new ActionObject(XmlDoc); while( ao.hasMoreActions() ) { Object o = ao.nextAction(); mytable.add( o ); } In sum, the few lines above would simply use my ContollerServlet (ServletContext) hashtable object that stores each action, to cycle through my own class (ActionObject) which when created was populated automatically (perhaps through reflection of xml to the object) with the xml config data, and now I am just looping through and adding it to the hash table. OFcourse..if ao contains the entire config tree..there is no need to do another table..this is all hypothetical..for the use to hopefully explain what I am trying to do. Thanks for anyone that can help. == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Email Validation
do you mind to show me how could it be done ?? deepty kj wrote: hi, Better to use scripts for client side validation. If u need server-side validation use Bean. deepati On Tue, 23 May 2000 11:39:03 +0800, A mailing list about Java Server Pages specification and reference wrote: hi Gurus, can you pls show me the way to validate Email format (on html/jsp form input) ? what's the best way of doing it ? bean ? script ? thank you for your attention, fay === 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 100% FREE Internet Access powered by Excite Visit http://freelane.excite.com/freeisp === 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: help on this error
hi Scott, i check my page weight and i found out that's its around 12K only.. but here's the error i recieved when trying to compile it .. java.lang.ClassFormatError: (Code of a method longer than 65535 bytes) what do you think is the best way to do? thanks dheil - Original Message - From: Scott Stirling [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 23, 2000 1:18 PM Subject: Re: help on this error What's the error message say? You can't have a method longer than 64k. Seems like the JSP container thinks you're trying to exceed that limit. Scott Stirling -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Dheil Corona Sent: Monday, May 22, 2000 11:15 PM To: [EMAIL PROTECTED] Subject: help on this error when i'm loading up my pages i got this error.. (Code of a method longer than 65535 bytes) my main page has codition to get a parameter on the url and include a local jsp on it, if ots true... but i can't figure out what does it really means.. thanks dheil === 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
the server is down?
Hi, I tried to start the web server of jswdk today. But it could not be found. There was no problem before. When I typed stopserver, I got the following error message--- Problem connecting to admin registry.. What does this mean? Can I do anything about it? 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