[ANN] JOT Servlets web component framework - version 3.0
JOT Object Technologies has released version 3.0 of the JOT Servlets Java web components framework. Jot Servlets use Java objects (Java Beans and POJO's - plain old java objects) to render dynamic content into standard HTML web pages. http://www.jotobjects.com JOT Servlets Framework: JOT Web Components are dynamic content building blocks for rendering composite views, portals and tiled layouts. Iterator components render tabular output using Java Collections and database queries. JOT Web Components can be combined with unlimited nesting depth. JOT Views is a dynamic content rendering engine for Java Servlets and JSP. JOT JSP Tags are custom tags for rendering dynamic content web components. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: help nead in implementing datasource in tomcat5.5.
We have this kind of Hibernate JNDI setting (for database named dbname) - java:comp/env/jdbc/dbname With this in conf/catalina/localhost/appname.xml (where appname is you webapp directory) - Date:Wed, 31 May 2006 09:53:00 +0530 From:"Upendra Nath Reddy K." <[EMAIL PROTECTED]> Subject: help nead in implementing datasource in tomcat5.5. Hi All, Good morning, could help me in implementing Datasource using jndi in tomcat. my requriment: basic steps in implementing datasource and requried jar = files=20 I am using :tomcat5.5 and mysql5.0. Thanks and Regards, Upendra Nath Reddy.K === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Problem with Struts FormFile object.
Create a javax.activation.MimetypesFileTypeMap object and add your types to that object. Then call javax.activation.MimetypesFileTypeMap.getContentType(yourFileName) to get the contentType for the file on the server without relying on the browser content type setting. MimetypesFileTypeMap will return application/octet-stream as the default if it does not know the content type. You have to include the J2EE activation.jar in your classpath for this to work. Here is the API doc - http://java.sun.com/javaee/5/docs/api/javax/activation/MimetypesFileTypeMap.html Paul Copeland http://www.jotobjects.com JOT Servlets dynamic web component framework Date:Fri, 28 Apr 2006 10:09:54 +0530 From:Abhijeet Kahale <[EMAIL PROTECTED]> Subject: Problem with Struts FormFile object. Hi, I am facing some problems while uploading a file using Struts' FormFile object. I want to allow user to upload only .xls/.tdt/.txt files. For that I am comparing the ContentType of the file being uploaded using FormFile's getContentType() method. The problem is, when I upload .xls files, it properly returns a string as 'application/vnd.ms-excel' so that i can compare it with constant and proceed further. But when I upload .tdt or .txt files, it returns a string 'application/octet-stream' instead of 'text/plain', So when i compare it with the constant(which is set to "text/plain"), test fails even if user ha= s uploaded proper file with proper contents. Moreover, this only happens on my machine, If I test it on some-one else' machine(one of my colleague), it works fine. So, my question is, is there some setting in my browser that is making the formfile object to send wrong mime type or this is really a problem? And if it is related to browser setting, what setting should I change? also, if user also has that setting in his browser, how should I handle it? please reply ASAP... thanks in advance, Abhijeet. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: JSP-INTEREST Digest - 1 Mar 2006 to 17 Mar 2006 (#2006-8)
It is really hard to get this kind of design to work correctly. The response will come back to the frame that submitted the request to the jsp page (servlet). You could try returning a 204 status code (no change) to the first frame and then run some javascript to tell the second frame to update itself with window.location.replace or reload. Expect inconsistent behavior with different browsers. Automatic digest processor wrote: There are 2 messages totalling 99 lines in this issue. Topics of the day: 1. Problem with JSP and HTML frames (2) === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com -- Date:Fri, 17 Mar 2006 09:06:27 -0800 From:Nenad Bosanac <[EMAIL PROTECTED]> Subject: Problem with JSP and HTML frames Hello! I have one problem.I want to make JSP page with html frame in it.I want one page with two horizontal frame and in upper frame when someone submit something to display in lower page.I want to make all of this pages in JSP exstension and to call it up.jsp and down.jsp. I try something but it doesn`t work. can anyone have any idea or solution of this problem Thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com -- Date:Sat, 18 Mar 2006 09:18:45 +0500 From:Imran Anwar <[EMAIL PROTECTED]> Subject: Re: Problem with JSP and HTML frames If you attach your files then it will be help full for On 3/17/06, Nenad Bosanac <[EMAIL PROTECTED]> wrote: Hello! I have one problem.I want to make JSP page with html frame in it.I want one page with two horizontal frame and in upper frame when someone submit something to display in lower page.I want to make all of this pages in JSP exstension and to call it up.jsp and down.jsp. I try something but it doesn`t work. can anyone have any idea or solution of this problem Thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com -- Imran Anwar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com -- End of JSP-INTEREST Digest - 1 Mar 2006 to 17 Mar 2006 (#2006-8) === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
[ANN] JOT Servlets web component framework - version 2.3
JOT Object Technologies has released version 2.3 of the JOT Servlets J2EE web component framework: http://www.jotobjects.com - JOT Servlets is a dynamic content rendering engine for Java Servlets and JSP pages. - JOT Servlets connect plain Java objects (POJOs) to standard web pages without the need for complex XML tags or new configuration files. - JOT Web Components render composite views and dynamic tiles to any nesting depth. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
[ANN] JOT Servlets web component framework - version 2.2
JOT Object Technologies has released JOT Servlets version 2.2 JOT Servlets is a J2EE web component framework for rapid development of dynamic content web applications. The 100% Java framework connects POJO plain Java objects to standard web pages without complex XML tags and requires no additional configuration files. This version adds property assignment from web pages and documents the web component model, including examples of "tiled" layouts using JOT Web Components. http://www.jotobjects.com Version 2.2 features: - JOT Web Components render dynamic composite views and tiled web page layouts to any nesting depth. - JOT Views is a rendering engine for dynamic content that can be used by any Java Servlet or JSP page. - JOT JSP Tags are custom tags for rendering dynamic content on JSP pages. - JOT Templates are standard web pages (HTML, XML, WML) with dynamic content tokens and server-side scripting controls. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
[ANN] JOT Servlets Framework version 2.0
JOT Object Technologies has released JOT Servlets version 2.0 http://www.jotobjects.com JOT Servlets is a J2EE web component framework for rapid development of dynamic content web applications. Version 2.0 features: - Renderable JOT Web Components can be embedded on web pages to any nesting depth. - JOT Views dynamic content rendering engine can be invoked from any Java Servlet or JSP page. - Custom tags allow JSP pages to render web components with the JOT Views rendering engine. JSP scoped attributes are available as component properties. - JOT Template tokens now reference indirect properties of any Java object. For example JOT.foo.batz.bar(a,b) refers to the bar property of the batz property of the foo object. - And more... === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: JasperException wraps ServletException wraps JspException
Hi Jan - Apparently this problem is fixed in Tomcat 5. Tomcat 4.1.30 has the following code which has the effect I outlined below (losing the stack trace of the original exception). Yet another example of why it is necessary to test a webapp on all versions of the platform it may be deployed on. - Paul } catch (JasperException ex) { throw ex; } catch (Exception ex) { throw new JasperException(ex); } Jan Luehe wrote: Hi Paul, > When I throw a JspException from a custom tag the PageContext > handlePageException() method wraps it in a ServletException unless the JspException contains a root cause, in which case its root cause it wrapped inside the ServletException. The problem (fixed in Tomcat 5) is that this ServletException is later wrapped AGAIN in the JasperException > and then Tomcat JspServletWrapper.service() wraps that in a JasperException > (which is also a ServletException). So the original exception is 3 deep > and the stack trace of the original exception is not reported in the log > (and if there is no message, as with a NullPointerException, then there > is not even a message about what happened). So there is little or no > useful diagnostics. What is the rationale for this behavior? It seems > like the service() method should not wrap a ServletException inside a > JasperException. Which version of the sources did you look at? The Tomcat 5 version of JspServletWrapper.service(), which I attached, has this code at the bottom: } catch (ServletException ex) { throw ex; } catch (IOException ex) { throw ex; } catch (IllegalStateException ex) { throw ex; } catch (Exception ex) { throw new JasperException(ex); } which wraps an exception inside a JasperException only if it is neither of type ServletException, IOException, and IllegalStateException. Jan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
JasperException wraps ServletException wraps JspException?
When I throw a JspException from a custom tag the PageContext handlePageException() method wraps it in a ServletException and then Tomcat JspServletWrapper.service() wraps that in a JasperException (which is also a ServletException). So the original exception is 3 deep and the stack trace of the original exception is not reported in the log (and if there is no message, as with a NullPointerException, then there is not even a message about what happened). So there is little or no useful diagnostics. What is the rationale for this behavior? It seems like the service() method should not wrap a ServletException inside a JasperException. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
[ANN] JOT Servlets Demonstration
JOT Object Technologies has installed a live demonstration of JOT Servlets at http://www.jotobjects.net - The demonstration is a simple web application with source code that renders dynamic web content with JOT Servlets. JOT Servlets is an application development framework for web applications. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Window pop-up problem!....
Well a bit off topic for servlets - But anyway you can open another browser window with the "target" attribute on the HTML "a href=" and "form" tags and then play games with the focus javascript events on the two windows. The window.open() javascript method also opens another browser window. DHTML layers are probably a better design for human usability. None of this is truly modal in the stateless web client world. The amount of time you will invest in trying to get this half way working may not be worth it in the end. - Paul Copeland - JOT Servlets - http://www.jotobjects.com Date:Thu, 29 Jul 2004 09:37:23 +0530 From:Manish Malhotra <[EMAIL PROTECTED]> Subject: Window pop-up problem! Hi All, My Requirement is: Im creating one web application. I have one screen say S1. There is a link on this screen which needs to open a pop-up window. But the form needs to be submited to send a parameter and on the server side we check this paramater as its 'true' or 'false'. Depends on that It decides that pop-up has to be open or not. And my second requirement is this parent-child window relationship should be modal view. As its in swing. So, that user can't access the parent one until child is open. And no new child will be pop-up if one already open. So, can you please help me out. I need this help urgently. Actually I know something is there in DHTML for thei modal. But actually is it possible through JavaScript. So, that without submitting the parent window I can acheive this goal. Many Thanks. Your input is required. regards, Manish Malhotra === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: [ANN] JOT Servlets Framework version 1.12
A license fee that includes support and source code is required for commercial use. The cost is minor for anyone developing commercial applications. You can download it for free and try it out. http://www.jotobjects.com/JOTdownload.html Date:Wed, 23 Jun 2004 00:56:35 -0700 From:Deepak Kumar <[EMAIL PROTECTED]> Subject: Re: [ANN] JOT Servlets Framework version 1.12 HI, Is it free for commercial use. Regards deepak Kumar --- Paul Copeland <[EMAIL PROTECTED]> wrote: JOT Object Technologies has released JOT Servlets version 1.12. JOT Servlets is a rapid application development framework for web applications. Thus version includes JOT Views, a web page rendering component for MVC architectures. The JOT Servlets framework can now be used both as a complete web applications solution and as a content rendering component in JSP and Struts applications. For more information go to http://www.jotobjects.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
[ANN] JOT Servlets Framework version 1.12
JOT Object Technologies has released JOT Servlets version 1.12. JOT Servlets is a rapid application development framework for web applications. Thus version includes JOT Views, a web page rendering component for MVC architectures. The JOT Servlets framework can now be used both as a complete web applications solution and as a content rendering component in JSP and Struts applications. For more information go to http://www.jotobjects.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
[ANN] JOT Servlets Framework version 1.10 released
JOT Object Technologies has released JOT Servlets version 1.10. JOT Servlets is a J2EE framework for developing dynamic content web applications. This version provides new forms processing examples and also features JOT Views, a rendering engine that can be used by ANY Servlet or JSP page. See http://www.jotobjects.com/JOTviewsservlets.html The JOT Servlets architecture provides a clean separation between Java programming with JOT Beans and web page design using standard HTML and XML JOT Templates. Web designers and Java programmers can immediately develop JOT Servlets with the skills they already have. For more information go to http://www.jotobjects.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Help needed
You should be able to do this with a combination of onClick and onChange events, but it is likely to be messy, especially if you have to support very old versions of browsers. I think using Frames will make it even more complicated... - Paul Copeland JOT Servlets - A Framework for Servlet Applications http://www.jotobjects.com > Date:Thu, 18 Mar 2004 13:36:47 -0800 From:Maya menon > <[EMAIL PROTECTED]> Subject: Help needed > > All, All suggestions welcome for designing this: 1. Have a web page > with tabs [4 tabs] in the body and 2 menu links on the left side. The > requirement is if I modify anything in my page and click on the tabs, > I should prompt the user to do a form submit before proceeding. But > on the same time, if I am clicking on the menu links I should do a > form auto submit. How can I accomplish this ? Thanks > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: JDBC no suitable driver
Have you tried connecting to the DB outside the servlet environment to see if you can can get a JDBC connection? Try putting that into a 10 line Java program to confirm that you are loading the driver classes correctly (and send us that code if it still doesn't work). After that you can work on integration with the Servlet container. Paul Copeland JOT Servlets - A Framework for Servlet Applications http://www.jotobjects.com Date:Wed, 26 Nov 2003 17:01:15 +0800 From:Mikil <[EMAIL PROTECTED]> Subject: Re: [Shameless Plug] Servlets and JavaServer Pages; the J2EE Web Tier Hi to everyone who comes across this mail. I am trying to implement a web application using jsp and sevrlet on os = linux redhat 9, java ver 1.4.2_05, apache tomcat server ver 4.1.27, = mysql ver 3.23.54 std and mysql_connector_java_3.0.9stable.=20 I am able to execute jsp and servlets, but get an error while I try to = access the DB. The error says "no suitable driver". But I checked all = documents related to this matter, according to which it is correct.=20 Will be glad and thankful if someone is able to resolve this. Thanks. Mikil === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Google Tag Library 1.0
Very nice functionality. I'm surprised that Google is not on your back about use of their trademark name... > Date:Fri, 10 Oct 2003 03:54:05 -0700 > From:"Erik C. Thauvin" <[EMAIL PROTECTED]> > Subject: Google Tag Library 1.0 > > I've just released version 1.0 of the Google Tag Library: > > http://google-taglib.sourceforge.net/ > > Enjoy! > > E. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: JSP-INTEREST Digest - 5 Sep 2003 to 8 Sep 2003 (#2003-31)
Horrendous problems on all versions of Windows? Now that is very, very odd. By the way, there are something like 25 versions of Windows since Windows 95. Anyway, I have 1.4.1_01 on Windows ME right now. A couple of weeks ago I installed Java something more recent on Windows XP. I've installed it in the past on NT. The download count for Sun Java Windows installations is well over 10 million systems at least. It should be pretty easy by now! I'd suggest you go to the Java forums http://forums.java.sun.com/ and ask on the New-To-Java forum. The JSP forum is not the best place to ask this basic installation question. When you get it all working, you might want to ditch the JSP mess and take a look at our JOT Servlets product instead :-) http://www.jotobjects.com Good luck - Paul Copeland Date:Mon, 8 Sep 2003 15:41:03 -0400 From:Martin Gainty <[EMAIL PROTECTED]> Subject: JRE Install Maladies on Windows To Sun development team: I have had horrendous problems installing JRE 1.4.1x where x is 1-5 = inclusive on all versions of Windows .. It hangs at the start, middle or the end and does not install completely = .. *problem areas seem to revolve around registering plugin's* A) where is the log? B) there are enough unemployed here that if you released the JRE install = to Source Forge (Open Source) we could get the install working.. Thank You, Martin Gainty =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com -- === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
[ANN] JOT Servlets Framework version 1.0 released
JOT Servlets version 1.0 has been released by JOT Object Technologies. The all new JOT website has more information: http://www.jotobjects.com JOT Servlets is a Java Servlet framework for rapid application development using standard web pages and Java Beans for dynamic content. Web designers and Java programmers can immediately use the JOT Servlets object oriented framework with the skills they already have. The JOT Servlets application framework provides: - A lightweight object-oriented servlet API - Direct web page access to Java Bean values - Easy to use web page scripting language with JOT Templates - Dynamic page composition and content merging - Software tools for servlet programs - Complete demonstration servlet applications - Table/list output from collections, including JDBC ResultSets Version 1.0 has emerged after extensively tested preview releases. The JOT Servlets API and documentation are now "enterprise ready". === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Request For Architecture Suggestions
Mark - Good thing you like to study because there are a ton of books and online sources on this subject! Seriously though the Sun "Blueprints" provide good coverage of best-practices and many good architecture ideas. For the volume it sounds like you expect, probably you can connect from the servlet/jsp layer directly to the database with JDBC if you employ a Database Connection Pool correctly. Links to the Blueprints and some JDBC code examples are on the JOT Servlets site - http://www.jotobjects.com Paul Copeland, JOT Object Technologies Date:Thu, 27 Mar 2003 23:45:08 -0500 From:Mark Kamoski <[EMAIL PROTECTED]> Subject: Request For Architecture Suggestions Hi Everyone. Please help. I have just been assigned to build a simple and small portal site in JSP. I am rather new to JSP. (I do know how to code C, C++, C#, VB, VB.NET, ASP.NET, ASP, HTML, XML, XSL, and also know a little Java). I am familiar with 3-tier architecture, the RUP, MVC, OOA, OOD, and OOP principles. I want to use the MVC design pattern for this JSP site. What I don't know is whether or not I should use "struts" framework or roll my own container. From the looks of things, it might be a bit more than I need and, since I am new to JSP, it might be a bit too ambitions. I would like to do something "like" struts, but something kind of smaller implementation, less complex. I am looking for a simple architecture. (Note-- I am reading and studying a lot, but I want to get the "industry perspective" from veteran JSP programmers.) (Note-- The site will be JSP running on JRun in Windows NT/IIS5, will be less than 100 pages, will be driven by SQLServer or Oracle, will have about a total of support about 100 casual users, and will be an intranet site.) And so, I ask... What do you think? What do you suggest? Any help at all is appreciated (including outright directions, links, and reading suggestions). Thank you very much. --Mark. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Need some useful web site for JSP and Servlet
Hello Ha Duy - You could take a look at the step-by-step guide that comes with JOT Servlets: http://www.jotobjects.com Paul Copeland, JOT Object Technologies Date:Tue, 25 Mar 2003 13:24:38 +0900 From:Ha Duy Thien <[EMAIL PROTECTED]> Subject: Need some useful web site for JSP and Servlet Dear JSP Gurus, Can any one here recommend me some useful resource for learning JSP and = Servlet=20 Thanks you very much === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Strange error
The usual cache-control example is not complete. Try this: // Cache-Control for HTTP 1.1, Expires and Pragma for older browsers response.setHeader("Cache-Control", "no-cache; no-store; must-revalidate; proxy-revalidate"); response.setHeader("Expires", "0"); response.setHeader("Pragma", "no-cache"); Paul Copeland, JOT Object Technologies - http://www.jotobjects.com > -- > > Date:Tue, 28 Jan 2003 16:51:55 +0100 From: > =?iso-8859-1?Q?Jan_Aren=F6?= <[EMAIL PROTECTED]> Subject: Strange > error > > I have got an strange error > > I have 2 pages The first page is a list of dataitems from the > database. You click on one, and end up at page 2. > > onClick="searchTrip('<%=URLEncoder.encode(sr.getRowid())%>')"><%=sr.getHemga > ngsDatum()%> onClick="searchTrip('<%=URLEncoder.encode(sr.getRowid())%>')"> class="link" href="java script: > searchTrip('<%=URLEncoder.encode(sr.getRowid())%>');"><%=txtStep2Vidare%> > > >>> >> > > As you see I have an OnClick at the . It's IE specific. But I > also have an link for the other browsers > > My javascript code looks like this > > function searchTrip(rowid) { > eval("document.location='step3.jsp?searchrow="+rowid+"'"); } > > The click works fine, but at page3 the error occur. First for IE If > you click on the TD, you will get the correct thing from the > database. If you click the link, you sometimes get the correct and > sometimes the last you were on. > > If you use NS If you click the link, you ALWAYS get the correct page. > > > I thought it was the cache that sabotaged, but i have now inserted > these lines on the BOTH pages > > <% response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 > response.setHeader("Pragma","no-cache"); //HTTP 1.0 > response.setDateHeader ("Expires", -1); //prevents caching at the > proxy server %> > > The parameter that I send to page 2 is a rowid (Oracle) that get the > correct Dataitem. I've tested the parameter and it is correct EVEN > WHEN THE PAGE IS NOT! > > the dataRecord is a preperedStatement. > > Since it works ALWAYS in NS, i guess that it still can be an cache > error Is there something I've missed??? > > Any ideas are welcome... > > //Jan > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
Re: Urgent, Making taglib available to JSPs without those being in a WAR
David - OK, I'm game. This just went WAY over my head. Why can't he have a web.xml without a WAR? ;-) -- Paul Copeland, JOT Object Technologies - http://www.jotobjects.com -- Date:Fri, 29 Nov 2002 12:06:40 -0800 From:"Karr, David" <[EMAIL PROTECTED]> Subject: Re: Urgent, Making taglib available to JSPs without those being in a WAR You're answering a different question than he asked. He doesn't have a = web.xml file, as he doesn't have a WAR. I don't see how you can do this. -Original Message- From: padhu vinirs [mailto:[EMAIL PROTECTED]] =20 put =20 <%@ taglib uri=3D"..." prefix=3D"..." %> =20 in your jsp pages. Read about this directive in the jsp spec.=20 Also register the taglib in the web.xml using the "taglib" element. =20 -- padhu =20 - Original Message - From: "m batsis" <[EMAIL PROTECTED]> =20 Hello, Apologies for the dumb question but I have zero time; hope=20 one of you can save me here. I'm under a situation where I have some JSPs *not* in a WAR=20 file. How can make a taglib available to those JSPs without deploying=20 them using a WAR file? I'm using iplanet application server 6. -- Date:Fri, 29 Nov 2002 15:35:25 -0800 From:padhu vinirs <[EMAIL PROTECTED]> Subject: Re: Urgent, Making taglib available to JSPs without those being in a WAR He still has to have a web application. Create a web-inf directory and create a web.xml file. Maybe I am missing something. -- padhu - Original Message - From: "Karr, David" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 29, 2002 12:06 PM Subject: Re: Urgent, Making taglib available to JSPs without those being in a WAR You're answering a different question than he asked. He doesn't have a web.xml file, as he doesn't have a WAR. I don't see how you can do this. -Original Message- From: padhu vinirs [mailto:[EMAIL PROTECTED]] put <%@ taglib uri="..." prefix="..." %> in your jsp pages. Read about this directive in the jsp spec. Also register the taglib in the web.xml using the "taglib" element. -- padhu - Original Message - From: "m batsis" <[EMAIL PROTECTED]> Hello, Apologies for the dumb question but I have zero time; hope one of you can save me here. I'm under a situation where I have some JSPs *not* in a WAR file. How can make a taglib available to those JSPs without deploying them using a WAR file? I'm using iplanet application server 6. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Off-topic: JSP and MySQL
Your example with multiple "begins" indicates a desire to have nested transactions. AFAIK, SQL does not support that and JDBC drivers will throw exceptions if you try it. Some database engines support "savepoints" or "checkpoints" providing a roughly equivalent functionality. Your last statement that "it solves only mistakes durring queries" is incorrect. A single rollback statement will undo all the updates back to the beginning of the transaction. Experiment with a database that supports Transactions and this will become clear. Paul Copeland, JOT Object Technologies - http://www.jotobjects.com -- Date:Tue, 26 Nov 2002 09:06:50 +0100 From:Jiri Chaloupka <[EMAIL PROTECTED]> Subject: Re: Off-topic: JSP and MySQL It solves only mistakes durring queries, not automatic rollabks from concurrently transactions ... Jiri Chaloupka Why not try this approach: try ( conn.setAutoCommit(false); stmt.execute(.); stmt.execute(.); stmt.exexute(); conn.commit(); ) catch (SQLException slqe) { conn.rollback(); } finally { conn.setAutoCommit(true); stmt.close; conn.close(); } Emma -Original Message- From: Jiri Chaloupka [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 9:35 AM To: [EMAIL PROTECTED] Subject: Re: Off-topic: JSP and MySQL I do not know mySQL well, see manual page, looking for transactions. (begin - commit - rollback - if it is supported ...) boolean doit = true; stm.execute("begin"); stm2.execute("begin"); stm3.exexute("begin"); if(!stm.execute("insert into ...")){ doit = false; } if(!stm2.execute("insert into ...")){ doit = false; } if(!stm3.execute("insert into ...")){ doit = false; } if(doit){ stm.execute("commit"); stm2.execute("commit"); stm3.execute("commit"); }else{ stm.execute("rollback"); stm2.execute("rollback"); stm3.execute("rollback"); } Jiri Chaloupka -- Jiri Chaloupka B2BExpander.com [EMAIL PROTECTED] ** http://www.b2bexpander.com/ http://www,chalu.cz === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Use of Vectors in JSP
Amit - java.util.HashMap allows null values whereas java.util.Hashtable does not allow null values. Deepak - JOT Servlets provides an Iterator bean that wraps a JDBC ResultSet for repeating rows of output on a web page. You can work directly with the ResultSet methods instead of transferring the values to another Collection like a Vector. -- Paul Copeland, JOT Object Technologies - http://www.jotobjects.com -- Date:Tue, 19 Nov 2002 03:50:31 -0600 From:Amit Wadhwa <[EMAIL PROTECTED]> Subject: Re: Use of Vectors in JSP i use a 2-dimensional array. i have a bean to which i send the query, the query is processed by the bean, stored in an 2-d array, and the array is stored as an object in a hashtable which is returned to the calling jsp/servlet where i iterate thru the 2-d array and get the results. its working pretty ok but u have tro b careful about null pointer exceptions. anyone with any suggestions on this? * Amit Wadhwa Technical Support Representative, Dell International Services, Bangalore * -Original Message- From: Hans Bergsten [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: Re: Use of Vectors in JSP Deepak wrote: Hi all Would you recommend the use of Vectors in jsp pages to hold the query results from a database? Is it ok then performance wise to iterate over the vector and display the items in the jsp page? For example, a method in a javabean executes a jdbc statement that returns some recordsets. These recordsets are added to a Vector and the Vector is returned by the method. In my jsp page I get the Vector with recordsets from the bean method. Then I iterate over the Vector to display its items in a html table. Is this a good way of doing things? If not can anyone suggest a better way? The methods in Vector are synchronized, so a List or an array is a slightly more efficient approach. But I would suggest that you look at JSTL instead. It's action exposes the query result as a type called a Result. From a Result, you can get an array of arrays where the first dimension represents rows and the second the column value, or as an array of Maps where each Map represents a row, with keys matching column names. Even if you access the database in servlet code (for instance), you can use utility methods to convert a JDBC ResultSet to a JSTL Result. For more info, see: <http://java.sun.com/products/jsp/jstl/> Hans === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: [ANN] Part 3 of my JSTL article at ONJava.com
Just for kicks, here is the JOT (http://www.jotobjects.com) version of the example from Hans' article. The EachDay bean would be roughly similar to the ForEachDayTag class in the article, with methods getNext, getIsSunday, and getFormatDate (you don't have to know anything about custom tags, JSTL, or EL syntax to implement this version). JOT.Repeat(JOT.EachDay.Next) JOT.If(JOT.EachDay.isSunday()) JOT.Else JOT.End JOT.EachDay.formatDate("EE dd, MMM ") JOT.End ---- Paul Copeland, JOT Object Technologies - http://www.jotobjects.com On Thu, Oct 31, 2002 at 12:15:08PM -0800, Hans Bergsten wrote: Dror Matalon wrote: Hans, I just read the article which is very interesting for people that want to use libraries to develop JSTL style tags. In reading the article, I realized that I had a nagging question about JSTL, tag libraries, etc vs JSP. Before I answer, let's just clarify what "JSTL vs JSP" means. JSTL is defined as a tag library that can be implemented (by anyone, but typically by container implementors) using the standard JSP API for custom tag libraries. So there's really no "JSTL vs JSP"; using JSTL _is_ using JSP, just as using the standard , scriptlets, etc. means using JSP. The only difference between JSTL and any other tag library is that JSTL is defined by a spec, and therefore more likely to be supported by all containers (eventually) without having to install it. This also means that a container vendor can choice to support it by generating highly optimized code when converting a JSP page to a servlet, e.g. generate a regular Java if statement instead of calls to the tag handler for . With this in mind, I therefore assume that you really wonder about "using custom tag libraries, such as JSTL, vs using Java code in scriptlets" based on your comments below. That's a fair question (even though it's been asked and answered many times on this list and elsewhere ;-) To quote from your article some code: "> Is JSTL clearly easier than JSP? I'll admit that I'm biased. As someone who know Java this looks more complicated than doing the same or similar things with JSP. But rather than use anecdotal evidence one way or another I'd be intrested in more systematic research on this. The best way I can answer this question is to show how this example can be written with Java code in scriptlets instead: <% Calendar calendar = new GregorianCalendar(); calendar.set(Calendar.DAY_OF_MONTH, 1); int lastDay = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); int thisMonth = calendar.get(Calendar.MONTH); int currMonth = thisMonth; int currDay = calendar.get(Calendar.DAY_OF_MONTH); SimpleDateFormat dateFormat = new SimpleDateFormat("EE dd, MM yyy"); %> <% while (currMonth == thisMonth && currDay <= lastDay) { String bg = "white"; if (calendar.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) { bg = "red"; } %> <%= dateFormat.format(calendar.getTime()) %> <% calendar.set(Calendar.DAY_OF_MONTH, calendar.get(Calendar.DAY_OF_MONTH) + 1); currMonth = calendar.get(Calendar.MONTH); currDay = calendar.get(Calendar.DAY_OF_MONTH); } %> Which version looks looks easier to you? The, of course, answer depends on your background. In both versions, it's clearly "programming"; the primary difference is syntax, but there are also a few other important differences: 1) Code size The scripting version is double the size of the JSTL version (30 lines vs 14 lines) 2) Knowledge requirements For the scripting version I need to know about the Calendar and how to set and get its values, and the SimpleDateFormat class. For the JSTL version, I need to know about the custom tags, their attributes, and the properties of the exposed data I can access using the EL. 3) Syntax error handling With the scripting version, if I make a syntax error, I get cryptic javac error messages (e.g. "'catch' without 'try'") with line numbers that refer to the generated servlet source code. With the JSTL version, I (mostly) get error messages that identify the custom action and attribute names with line numbers that refer to the JSP page source. 4) Development tools If I put the Java code (custom actions, beans) in standard class files, I can develop the code with a regular Java IDE or syntax aware text editor (e.g. emacs), and debug it using st
Re: Question on documentation...
Hans - below you say: "/servlet" default mapping has _never_ been in the spec But the Servlets 2.1a Spec (November 1998) has the following under "Servlet Mapping Techniques" - - quote - You can map a servlet by using the special URL /servlet/servlet_name. For example, if you create a servlet with the name listattributes, you can access the servlet by using the URL /servlet/listattributes. You can invoke a servlet by its class name. For example, if a servlet engine receives a request from the URL /servlet/com.foo.servlet.MailServlet, the servlet engine can load the class com.foo.servlet.MailServlet, instantiate it, cast the instance to a servlet, and then let the servlet handle the request. - end quote - So that much was in the spec in 2.1, but it looks like it changed in 2.2, or am I misunderstanding your comment? Also it would be interesting if you could comment on the security hole created by the "/servlet" mapping... -- Paul Copeland, JOT Object Technologies - http://www.jotobjects.com - Original Message - Date:Fri, 18 Oct 2002 17:49:22 -0700 From:Hans Bergsten <[EMAIL PROTECTED]> Subject: Re: Question on documentation... Luis A wrote: Hans, maybe you can help me, Is there a way to restore the unsecure mode? The students have different Servlet names, the broadband access ones have burned CDs for the others, and they have a deadline. I do not think I will have the time needed to read the documentation and instruct a simple patch or mod. What do you think? Didn't I say "see the [Tomcat 4.1.12] release notes for details"? If you do, you find this: Starting with Tomcat 4.1.12, the invoker servlet is no longer available by default in all webapp. Enabling it for all webapps is possible by editing $CATALINA_HOME/conf/web.xml to uncomment the "/servlet/*" servlet-mapping definition. Hans - Original Message - From: "Hans Bergsten" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 18, 2002 8:33 PM Subject: Re: Question on documentation... Luis A wrote: Man, you must be kidding. So the tutorial I just wrote and emailed to my 32 students will not work without the web.xml changes? Are you sure? Yes, I'm sure. URL mapping has been in the Servlet spec since 2.0 (and was an option in JWS before the API was formally specified, I believe), while the "/servlet" default mapping has _never_ been in the spec (even though most web containers have supported it for a long time). The behavior of an "invoker" mapped to a "/servlet" URL was first identified as a security risk back in the Servlet 2.0/2.1 days. Hans === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: jsp & javascript
Or just return a 204 HTTP Status Code and you don't have to go into the Hidden Frame stuff perhaps. Paul Copeland, JOT Object Technologies -- http://www.jotobjects.com > > Date:Fri, 23 Aug 2002 22:46:48 -0600 > From:Walter Meyer <[EMAIL PROTECTED]> > Subject: Re: jsp & javascript > > Not to be an ass, but what if you write and applet but they disable java? > Does your company have any type of browser rules? There's only so much > hand holding that you can should be expected to do. > > "If you make it idiot proof, someone will make a better idiot." > > I'm not sure exactly what you're trying to do. What happens after the > data is sent to the server? Do you need to send data to the server without > reloading the page? > > One way to send the data to the server would be to store the javascript > array in a hidden form field and submit the form to the server. If the > form is in an inline or hidden frame, you can do all of this without > reloading the page the user sees. > > Am I on the right track? > > Walt > > Sohaila Roberts <[EMAIL PROTECTED]> wrote: > > This app is local to my department. If they turn off javascript they > > will > > come to me asking 'why isnt it working'. > > > > I'm just going to use an applet-servlet method now, I was misinformed > > on > > how jsp would help me. > > > > Thanks > > > > On Fri, 23 Aug 2002, techhead4life wrote: > > > > > well what if they disable javascript from the browser what do u use > > then? > > > > > > - Original Message - > > > Wrom: ALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBG > > > To: <[EMAIL PROTECTED]> > > > Sent: Friday, August 23, 2002 1:23 PM > > > Subject: Re: jsp & javascript > > > > > > > > > > You can't execute Java code from an HTML page without going through > > an > > > > applet > > > > to do it. Java code in a JSP executes on the server side to help > > create > > > the > > > > web page that is sent to the browser. On the client side, if you > > don't > > > use > > > > an applet, the best you can hope for is to try to make JavaScript > > > > do what you want, but, as you know, JavaScript isn't Java. > > > > > > > > Duane Morse, Eldorado Computing Inc., Phoenix, Arizona > > > > > > > > > > > > -Original Message- > > > > Wrom: JSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZA > > > > Sent: Friday, August 23, 2002 10:05 AM > > > > To: [EMAIL PROTECTED] > > > > Subject: jsp & javascript > > > > > > > > > > > > Hi, i have a jsp page which includes javascript. in one of my javascript > > > > functions i want to open a connection to a servlet and send it > > some data > > > > that is stored in a javascript Array. I am using the method i used > > with > > > > applets to open a URLConnection to my servlet and send the data > > via an > > > > objectoutputstream.. my code is as follows.. > > > > > > > > function printform() > > > > { > > > > var servlet = "http://localhost:1000/pr/servlet/pr"; > > > > if(getData()) { > > > > <%@ > > > > Serializable formData[] = { data }; > > > > URLConnection con = servlet.openConnection(); > > > > con.setDoInput(true); > > > > con.setDoOutput(true); > > > > con.setUseCaches(false); > > > > con.setRequestProperty("Content-Type", > > > > "application/x-www-form-urlencoded"); > > > > ObjectOutputStream out = new > > > > ObjectOutputStream(con.getOutputStream()); > > > > int i = formData.length; > > > > for(int x = 0; x < i; x++) > > > > { > > > > out.writeObject(formData[x]); > > > > } > > > > out.flush(); > > > > out.close(); > > > > %> > > > > > > > > } > > > > > > > > but when i go to run it i get the following error.. > > > > > > > > Error: 500 > > > > > > > > Location: /pr
Re: HTML Form submit action and JSP interaction...
Are you returning "false" from the onSubmit event after showing the alert? Typically an onSubmit JavaScript event would look something like the following, but you have to return "false" from the validate_form method to prevent the submit. Paul Copeland, JOT Object Technologies, http://www.jotobjects.com > > -- > > Date:Sat, 6 Jul 2002 14:04:45 -0500 > From:John Vanderbrook <[EMAIL PROTECTED]> > Subject: Re: HTML Form submit action and JSP interaction... > > This is a common problem. Search for how to handle sensetive form submission in JSP. >Struts has functionality to do that. > John > - Original Message - > From: "Rajkumar, Haripriya (Haripriya)" <[EMAIL PROTECTED]> > Date: Wed, 26 Jun 2002 12:36:04 -0400 > To: [EMAIL PROTECTED] > Subject: HTML Form submit action and JSP interaction... > > > Hi, > > > > I am writing a simple login validation pgm. I have a HTML file which has the > > > > login form and it action points to a JSP page that needs to be displayed > > ONLY AFTER the > > user has been successfully validated. > > > > Also, I have a JavaScript file that holds function to check for empty fields > > in the form and > > sends an alert. > > > > Basically > > > > 1. If empty fields are present the JavaScript, alert needs to be called and > > the HTML form page > > should still be visible. > > > > 2. If userId and password are entered but are not valid, then the JSP page > > that prints out the > > error message has to be displayed. > > > > > > Here is what happens. When the HTML form is called in the browser, and > > userid or password is not entered > > then the alert is displayed properly. After entering the userid and > > password, it goes to the JSP > > page properly. > > > > BUT when, I use the browser's BACK button, and go to the HTML form page, and > > if the password field is not > > present and try to hit submit button, The Alert message is displayed AS WELL > > AS the JSP page too, seems > > like the SUBMIT action is getting called. How do I fix this, so that even if > > teh user, hits the > > BACK button and tries to login giving empty fields, ONLY the alert has to be > > displayed. > > > > Any pointers??? > > Thanks > > PHR === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: session
Vaishali - You have perhaps made a giant leap of faith that utype is Class String. Do you get a ClassCastException if you do this instead? String utype = (String)session.getValue("utype"); Paul Copeland, JOT Object Technologies -- http://www.jotobjects.com > > Date:Sat, 29 Jun 2002 14:37:48 +0530 > From:"Vaishali S. Pandya" <[EMAIL PROTECTED]> > Subject: session > > Object utype = session.getValue("utype"); > if (utype==null || utype.equals("")){ > utype="0"; > } > if (utype.equals("0") || utype.equals("2")){ > dis="disabled"; > } > else{ > dis="~"; > } > out.println("utype = " + utype); > out.println("dis = " + dis); > > the output is this > utype = 2 > dis = ~ > ??? > when utype is 2 dis should be disabled but it is not there > can anyone make me correct? > > Vaishali > Reliance Ind Ltd > A'bad > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Need Help w/ MVC and Database
The JOT Servlets framework supports MVC design approaches and includes a JDBC ResultSet Iterator class. The JOT documentation includes sample source code for a JDBC database query Java Bean. Let me know if you need help with that. Paul Copeland, JOT Object Technologies, http://www.jotobjects.com > > From: Tom Kochanowicz [mailto:[EMAIL PROTECTED]] > > > > I am trying to do my first project with the MVC architecture > (not > > using > > struts yet). The examples I look at in books do not have a working > example > > that actually connects to "any" real database and they only show > examples > > loaded a very small amount of data. Does anyone have a "very simple" > > example > > of a MVC actually retreiveing data from a database (any database) OR > can > > point me to a link that has an example. (yes I tried google). > > You have a method on a Java class executing... you can use JDBC or any > O/R mapping tool of your choosing. It shouldn't be very confusing. > Just extract the data from the RowSet, build JavaBeans, and hand those > off as the model to the view layer. > > It's definitely not a simple example, but the Maverick MVC framework > provides a *very* comprehensive sample J2EE application using a > combination of entity EJBs and direct JDBC access. It's a wiki-like > image gallery which is actually being used in the real world. > > The url for the sample application (the Punk Image Gallery) is > http://mav.sourceforge.net/pig. I highly recommend that anyone who is > daunted by Struts (which is far more complicated than it should be for > what it does) should take a look at Maverick: > http://mav.sourceforge.net. > > Good luck, > Jeff Schnitzer > [EMAIL PROTECTED] > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: SQL syntax
Try single quotes around the string. "SELECT * FROM tickets WHERE name='fr.Airline'" Paul Copeland, JOT Object Technologies - http://www.jotobjects.com > > -- > > Date:Sat, 30 Mar 2002 11:57:22 - > From:Nic Jackson <[EMAIL PROTECTED]> > Subject: Re: SQL syntax > > when performing a string match with wildcards in an sql WHERE statement you > must use the SQL word LIKE > > SELECT * FROM tickets WHERE LIKE %fr.Airline% > > Hope this helps > > Nic > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Panayiotis Periorellis > Sent: 30 March 2002 11:43 > To: [EMAIL PROTECTED] > Subject: SQL syntax > > Hello All, > > This is a rather simple question. Can someone help me with the syntax of > this SQL? > > String sql= "SELECT * FROM tickets Where Name=%fr.Airline%" > > I want Name to be equal to the variable fr.Airline which is a > stringbut I get syntax error ..can some help? > > -- === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
[ANN] JOT Servlets Upgrade version 0.98
JOT Object Technologies announces version 0.98 of JOT Servlets. http://www.jotobjects.com JOT Servlets connect standard web pages to Java web server applications. The software framework includes an object oriented API, template language, software tools, and demonstration servlets. NEW IN VERSION 0.98 --- Improved integration with Tomcat 4 and web servers supporting Java Servlet version 2.3 (compatible with Java Servlet 2.1 and later). -- Paul Copeland, JOT Object Technologies === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Model 3-tier in application
Regarding your question about 3-tier servlet architectures, another approach to consider is JOT Servlets, a general purpose tool for dynamic web page generation which combines a template page parser with an efficient server-side Beans framework. http://www.jotobjects.com -- Paul Copeland, JOT Object Technologies > Date:Fri, 23 Mar 2001 09:57:23 - > From:"Jose Gregorio (EST)" <[EMAIL PROTECTED]> > Subject: Model 3-tier in application > > Hello! > > I'm writing for a big question: Where i can find tutorial/paper/docs about > devloping Servlet/JSP applications with 3 tier model. > > Thanks! > > GreG === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: USE JSP/JAVABEANS TO GENERATE ON THE FLY DHTML
Hi Bryan - You might look at the JOT Servlets framework as one approach to accomplishing the end result you are after. http://www.jotobjects.com -- Paul Copeland, JOT Object Technologies > Date:Thu, 8 Feb 2001 11:50:03 -0800 > From:"Bryan L. Croft" <[EMAIL PROTECTED]> > Subject: USE JSP/JAVABEANS TO GENERATE ON THE FLY DHTML > > Is it possible to write javabeans, jsp tags, and jsp that will allow the > on the fly creation of DHTML and perhaps JavaScript? For example > have a JSP page which gets updated with some data, the data flows > into the javabeans, gets processed and the return results go to a jsp > page which automatically generated DHTML and or JavaScript based > on the data coming in? > > BC === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: comparision of webapplication frameworks
Hi Raja - You might want to have a look at the JOT Servlets framework also: http://www.jotobjects.com -- Paul Copeland, JOT Object Technologies > Date:Tue, 30 Jan 2001 07:14:46 + > From:Raja Nagendra Kumar <[EMAIL PROTECTED]> > Subject: comparision of webapplication frameworks > > Hi! > > Can anyone please point me to the URL, comparing the following > WebApplication > Frameworks.. > > 1. Turbine, Expresso, Struts, Melati, Tapestry > 2. WebMacro, FreeMarker, JTemplate, Velocity > > I wish to know comparitive good and bad features of each of these.. > > Regards, > Nagendra > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
[ANN] JOT Servlets Upgrade version 0.96
JOT Object Technologies announces preview release 0.96 of JOT Servlets. http:/www.jotobjects.com JOT Servlets is a web infrastructure component for developing dynamic content internet applications with the JOT template page parser and server-side Java Beans framework. --- NEW IN VERSION 0.95 and 096 --- The demonstration web application is now rewritten as an illustration of the MVC (Model-View-Controller) design pattern using nested JOT Templates with adaptive selection of JotResponseBeans for rendering dynamic content. -- Paul Copeland, JOT Object Technologies === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
[ANN] JOT Servlets Upgrade version 0.94
JOT Object Technologies announces preview release 0.94 of JOT Servlets. http://www.jotobjects.com JOT Servlets is a framework for servlet development featuring a lightweight API, easy to use template language, software tools, and demonstration servlets. NEW IN THIS VERSION: API changes to simplify applications and provide robust lifecycle management for JOT Servlet Beans. Revisions to the Programmers Guide to clarify the JOT Servlets Model-View-Controller (Model 2) design foundation. Revisions to the JOT Templates documentation, including more examples. Versions 0.92 and 0.93 included improvements to the demonstration servlet runner programs (jotserver for JSDK 2.1 and jotrunner for JSDK 2.0) for Windows and Unix platforms. -- Paul Copeland, JOT Object Technologies === 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
[ANN] JOT Servlets Upgrade
JOT Object Technologies announces preview release 0.91 of JOT Servlets. NEW IN THIS VERSION: Improved support, documentation, and examples for JOT Iterators, including examples using JDBC ResultSet iterators. http://www.jotobjects.com JOT Servlets is a framework for servlet development featuring a lightweight API, easy to use template language, software tools, and demonstration servlets. -- Paul Copeland, JOT Object Technologies === 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
[ANN] JOT Servlets version 0.90
JOT Object Technologies announces preview release 0.90 of JOT Servlets. http://www.jotobjects.com JOT Servlets is a framework for servlet development featuring a lightweight API, easy to use template language, software tools, and demonstration servlets. -- Paul Copeland, JOT Object Technologies === 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