Re: Q: Separation of layout and code (similar to Visual Studio.net)?
Hi, You will find a similarly architected toolkit here: http://barracuda.enhydra.org/index.html It's quite powerful, but quite complex and of course you won't have a development environmnet like Visual Studio. A much simpler to use library, one that is the closest to .NET server-side web controls as I have seen in the Java world can be found here: http://www.kobrix.com. No development environment here either. Just a framework + a set of predefined controls. None of the above is based on the prelevalent Model 2 architecture in the servlets world, and I find them both much better than the frameworks based on that architecture. You may take a look at Tapestry also, it seems close to what you are looking for as well, but I'm unfamiliar with it. Regards, John - Original Message - From: Ola Theander [EMAIL PROTECTED] Date: Mon, 22 Jul 2002 14:47:55 +0200 To: [EMAIL PROTECTED] Subject: Q: Separation of layout and code (similar to Visual Studio.net)? Dear subscribers. I would like to know if there is some JSP engine, class library or similar that allows the Java code to be separated from the layout, i.e. HTML code, similar to what's available in MS Visual Studio.net? In VS.net a dynamic web page is built by two separate files, one file containing the layout of the page and one page containing the code. The code manages the objects in the layout file, e.g. a text box, list box etc. as objects with properties and methods, pretty much as if you where coding a GUI application. There is also the possibility to build more complex object composed by existing objects and HTML. The big advantage is that you as the developer will have an abstraction layer between the code and the layout and the graphics designer doesn't need to worry about the code. My question is, is there something similar to this on the JSP/Servlet/J2EE platform? Kind regards, Ola Theander === 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 -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Save up to $160 by signing up for NetZero Platinum Internet service. http://www.netzero.net/?refcd=N2P0602NEP8 === 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: link tree
The TreeView component from TICL seems perfect for what you want. Get it at http://www.kobrix.com. I have used it to display a tree of a document repository. John - Original Message - From: Cosmin Cremarenco [EMAIL PROTECTED] Date: Fri, 5 Jul 2002 10:46:27 +0300 To: [EMAIL PROTECTED] Subject: link tree hello i'm trying to build a message tree (explorer style) for some sort of a forum. can anybody tell me which is the best solution and if there is some kind of lib/taglib/component for this kind of job. thanks, cosmin === 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 -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Save up to $160 by signing up for NetZero Platinum Internet service. http://www.netzero.net/?refcd=N2P0602NEP8 === 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: 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 -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Save up to $160 by signing up for NetZero Platinum Internet service. http://www.netzero.net/?refcd=N2P0602NEP8 === 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 custom tags
Hi Louis, It very much depends on your internal development process. It very much depends also on what you call presentation. If you replace Java code by equivalent programming constructs which just have a different (tag) syntax, then your designer still has to be doing programming and he/she still has to understand the UI logic of the application. So the only benefit will be the different syntax (Java vs XML tags). As a general advice, all logic decisions should be made outside of the JSP page so that your designer is only dealing with formatting. Displaying a list of options from the database is a good candidate for tags yes. John Hi everyone, Some days ago I posted a message about the better way to separate logic form presentation in a JSP, and some people suggested using taglibs. I decided to use them, but have some doubts. For instance, when should I use a custom tag and how? Should I program all the logic in tags so the designer won't mess with Java code, or he should know at least some Java to program loops or decisions? I need to display a list of options which I get from a database, should I use taglibs here? Sorry for asking too many questions in a single message, but it would be first time I use taglibs and there are some things that I still don't have clear. Thanks again for your help! Luis Javier -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup === 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: Tree View structure in JSP
The best Swing-like treeview JSP component I know of is in TICL from http://www.kobrix.com. You can provide a tree model (including an implementation of the Swing tree model) and have your tree displayed dynamically (client or server-side). You can respond to selection events etc...pretty cool stuff. John - Original Message - From: Arunkumar_N [EMAIL PROTECTED] Date: Sun, 2 Jun 2002 05:01:58 +0530 To: [EMAIL PROTECTED] Subject: Tree View structure in JSP Hello, I have to implement Tree View using JSP. Here the Tree is bulit dynamically. How to go about this. Please look into this Reagrds Arun ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** === 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 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup === 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: 2 parameter at one form
Hi, When you post a form, all input is sent to the server (including hidden fields and all other field data). The problem is, it's not in the form of regular request parameters. And you usually need to parse the byte stream sent by the browser yourself. Fortunately, you have several libraries that allow you to do that. I believe there's one with an O'Reilly book on JSP, can't recall correctly which one, and there are also several commercial ones. I use a GUI library for JSPs called TICL (from http://www.kobrix.com) that handles all that and you don't event notice that there's some special processing going one. I think Struts from jakarta has some classes to do the multipart/form-data parsing as well. John - Original Message - From: Gading [EMAIL PROTECTED] Date: Fri, 24 May 2002 11:46:41 +0700 To: [EMAIL PROTECTED] Subject: 2 parameter at one form Hi, Is it possible to upload file using form method=post enctype=multipart/form-data target=_blank but it also pass other normal input form (ie. input type=hidden value=12345 name =id? Thanks! === 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 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup === 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 to use as controller
You can create a custom tag that acts as a controller and put it in all your JSP pages. John - Original Message - From: Arunkumar_N [EMAIL PROTECTED] Date: Fri, 24 May 2002 18:12:16 +0530 To: [EMAIL PROTECTED] Subject: JSP to use as controller Hello, In one of the requirement I am not able to use Servlet, so can I make use of JSP as a controller. If not, is there any other options. Regards Arun ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** === 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 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup === 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: Save the Doc on Server
Hi Pete, Do you know of any good tools to do that? I've been trying to do it for months. Word itself lets you save a document in HTML, but it's not possible to split it up in pieces and have a TOC in a separate frame for example. A tool that creates an XML without loosing any information (I have some pretty complicated documents) would be nice too. Thanks John - Original Message - From: Pete Freitag [EMAIL PROTECTED] Date: Fri, 17 May 2002 14:07:35 -0400 To: [EMAIL PROTECTED] Subject: Re: Save the Doc on Server If you can convert the Word Document to HTML (you can find tools to do this) then you can use ActivEdit to edit the HTML content: http://www.cfdev.com/activedit/ -pete -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Chan Mal Sent: Friday, May 17, 2002 8:40 AM To: [EMAIL PROTECTED] Subject: Save the Doc on Server In my web application.. frontend JSP User needs to edit word document on browser which is residing in Server and has to save the document in Server it self that means at same URL(not on Local PC)... Is there any mechanism for this to handle either Server side or client side if you people know any thing on this please let me know. --- Luca Ventura [EMAIL PROTECTED] wrote: Ok, thanks a lot!! Luca -Messaggio originale- Da: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]Per conto di John Vanderbrook Inviato: venerdl 17 maggio 2002 12.10 A: [EMAIL PROTECTED] Oggetto: Re: R: Page by page iterator Use TICL (http://www.kobrix.com), you can define different styles for your paged tableview displays. John - Original Message - From: Luca Ventura [EMAIL PROTECTED] Date: Fri, 17 May 2002 09:39:09 +0200 To: [EMAIL PROTECTED] Subject: R: Page by page iterator Thank you! But can I change the layout of every page? I mean...I don't want the same layout of Google or Altavista: I want to be able to define my own layout ,my bottons and so on...is it possible? Thanks a lot in advance! Luca -Messaggio originale- Da: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]Per conto di Vikramjit Singh Inviato: venerdl 17 maggio 2002 8.36 A: [EMAIL PROTECTED] Oggetto: Re: Page by page iterator u can find what u r looking for over here http://jsptags.com/tags/navigation/pager/ Regards, Vikramjit Singh, Systems Engineer, GTL Ltd. Ph. 7612929-1031 -Original Message- From: Luca Ventura [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 11:38 PM To: [EMAIL PROTECTED] Subject: Page by page iterator Hello! Where can I find some code example (or at least hints and suggestions) to implement a page by page iterator in JSP and show many results using more pages, like many search engines (eg Altavista, Jahoo, and so on) do? Anyway for every page I would like to be able to use my own layout to show results. Thanks a lot in advance! Luca === 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 === 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 === 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 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http
Re: R: Page by page iterator
Use TICL (http://www.kobrix.com), you can define different styles for your paged tableview displays. John - Original Message - From: Luca Ventura [EMAIL PROTECTED] Date: Fri, 17 May 2002 09:39:09 +0200 To: [EMAIL PROTECTED] Subject: R: Page by page iterator Thank you! But can I change the layout of every page? I mean...I don't want the same layout of Google or Altavista: I want to be able to define my own layout ,my bottons and so on...is it possible? Thanks a lot in advance! Luca -Messaggio originale- Da: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]Per conto di Vikramjit Singh Inviato: venerdì 17 maggio 2002 8.36 A: [EMAIL PROTECTED] Oggetto: Re: Page by page iterator u can find what u r looking for over here http://jsptags.com/tags/navigation/pager/ Regards, Vikramjit Singh, Systems Engineer, GTL Ltd. Ph. 7612929-1031 -Original Message- From: Luca Ventura [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 11:38 PM To: [EMAIL PROTECTED] Subject: Page by page iterator Hello! Where can I find some code example (or at least hints and suggestions) to implement a page by page iterator in JSP and show many results using more pages, like many search engines (eg Altavista, Jahoo, and so on) do? Anyway for every page I would like to be able to use my own layout to show results. Thanks a lot in advance! Luca === 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 === 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 === 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 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup === 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: How can I show some results at a time?
Checkout the TableView component from TICL (http://www.kobrix.com). It's got automatic paging and a search engine-like pager as well. There's an example on the site under the menu TICL-Examples of the tableview stuff. When I use it, I do the query to the DB on every request, but I'm sure you can store the results in the session and pass to the tableview as well. John - Original Message - From: Luca Ventura [EMAIL PROTECTED] Date: Thu, 9 May 2002 10:54:21 +0200 To: [EMAIL PROTECTED] Subject: How can I show some results at a time? Hello everybody! I would like to build a jsp page that implements something like a search-engine. After getting the results of the search I would like to show some of them at a time like other search engines do (e.g Altavista, Yahoo, and so on), that put them in different pages and let you to access to each of them clicking on the number of the page you desire. How can I implement this in a JSP page? In this way if I have hundreds of results I can avoid to put them in the same page obtaining a better output. I have seen that when I click with the mouse on a number of the page of the results (e.g page number 2 of 100) the other search engines send a new request to the servlet (with a different value of the parameter that indicates the range of the results desired)but I don't know if after receiving it the servlet executes a new search procedure or a new access to the database. In this case I would like to avoid to perform a new search procedure or a new access to the database because I have already executed it the first time, and even because I don't think this is the solution that other search engines do. I think that the other search engines stores the results of the first search in some data structure: so they scan this data structure when the must show a particular page of the results to a user. Am I right? Do you have any idea on how I can implement this search engine in a jsp-page? Thanks a lot in advance! Luca === 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 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup === 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: Leaving the JSP page
BTW, is there a single JavaScript event to accomplish this? It would the complement of 'onLoad', something like 'onNavigate' or 'onLeave' It must be possible because for example on the CitibankOnline site, once you're logged in, whenever you point your browser to somewhere else (be it through a link on the currently displayed page or by typing a URL directly in the browser), the citibank page detects it and pops up a dialog. Maybe it's only possible in IE. Anyone knows? John -Original Message- From: Jaishankar Jayaram [EMAIL PROTECTED] Date: Thu, 28 Feb 2002 14:12:10 -0500 To: [EMAIL PROTECTED] Subject: Re: Leaving the JSP page This is a javascript question, more appropriate for a list dealing in it, but here's something that might work: !-- scripts type=tetx/javacsript var glbBlnNothingthingChanged = true; /scripts -- Set the onchange attribute of all form fields to set the global boolean to false: input type=text onchange=glbBlnNothingthingChanged = false; and the onclick of all links o return the boolean: a href=xyz.jsp onclick=return glbBlnNothingthingChanged target=_blankClick me/a From: sanjib B [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] Date: Thu, 28 Feb 2002 12:00:50 -0700 To: [EMAIL PROTECTED] Subject: Leaving the JSP page Hi All, In my JSP page I have some editable fields which the user can edit but before applying those changes to database updates, if the user clicks some other link or wants to leave the page I want to prevent the user from doing so and wnats to show a message box. If the user presses Ok and want to discard the previous edits then only I want to allow the user to leave the page. How do I do so? any idea ?? thanks sanjib === 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 === 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 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup === 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 Management using JSP and LDAP
What do you mean by a user session. The servlets session objet? The jsession ID? What? I've done some work with ldap (the Netscape Java LDAP API), and I believe it is possible to serialize whole Java object into an LDAP server -Original Message- From: Sazilah Salam [EMAIL PROTECTED] Date: Wed, 20 Feb 2002 17:08:56 +0800 To: [EMAIL PROTECTED] Subject: Session Management using JSP and LDAP Hi, Anyone has tried storing users' sessions into LDAP server? Please refer me to any links, references, guidelines or tutorials available. Thank you very much in advance. Sazilah === 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 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup 1 cent a minute calls anywhere in the U.S.! http://www.getpennytalk.com/cgi-bin/adforward.cgi?p_key=RG9853KJurl=http://www.getpennytalk.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://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: broswer versions
you can very easily parse the user-agent header: request.getHeader(user-agent) will return a string which contains things like Mozilla, MSIE, Netscape etc... experiment with the different browsers to find out to exact format of the string. John -Original Message- From: Eric Cho [EMAIL PROTECTED] Date: Fri, 8 Feb 2002 15:58:24 -0700 To: [EMAIL PROTECTED] Subject: broswer versions hi all, can somebody give me some code to determine what version of browser the client is using wheter it be IE or Netscape?!?! Thanks, Eric ** The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to any one or make copies. ** eSafe scanned this email for viruses, vandals and malicious content ** ** === 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 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Win a ski trip! http://www.nowcode.com/register.asp?affiliate=1net2phone3a === 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: Java bean based tree control - collapsable and expandable
Hi, You can perhaps use the Swing tree control (JTree) if you want to have an applet. Also, there are plenty of JS implementations of a tree some of them faster, some slower. How big is the no of your nodes? John -Original Message- From: JOSHY MON M C [EMAIL PROTECTED] Date: Thu, 7 Feb 2002 19:49:28 +0530 To: [EMAIL PROTECTED] Subject: Java bean based tree control - collapsable and expandable Hi All, Can anybody help. I am looking for a tree contol that is to be used on JSP page. I have used javascript based tree but it is painfully slow, if no of nodes becomes high. Please tell an elegant solution. Using Java beans / Java applets ? Thanks in advance joshy === 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 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Win a ski trip! http://www.nowcode.com/register.asp?affiliate=1net2phone3a === 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: Java bean based tree control - collapsable and expandable
This is really cool... has anybody else of you guys tried this stuff? John -Original Message- From: Borislav Iordanov [EMAIL PROTECTED] Date: Thu, 7 Feb 2002 10:40:13 -0800 To: [EMAIL PROTECTED] Subject: Re: Java bean based tree control - collapsable and expandable There is a WEB GUI component (a web control) called TreeView in TICL - check it out at http://www.kobrix.com. Same component behaves both like a server-side bean (populate through custom tags or by specifying a javax.swing.tree.TreeModel object) or it generates a DHTML version expandable/collapsable at the browser. --- JOSHY MON M C [EMAIL PROTECTED] wrote: Hi All, Can anybody help. I am looking for a tree contol that is to be used on JSP page. I have used javascript based tree but it is painfully slow, if no of nodes becomes high. Please tell an elegant solution. Using Java beans / Java applets ? Thanks in advance joshy === 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 __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://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 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Win a ski trip! http://www.nowcode.com/register.asp?affiliate=1net2phone3a === 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: OpenVMS Java exports
Add JDK_HOME/lib/tools.jar to your classpath, where JDK_HOME is the base/home directory of your JDK. Take care, John-Original Message- From: Eunum Listener <[EMAIL PROTECTED]>Date: Fri, 8 Feb 2002 04:31:06 + To: [EMAIL PROTECTED] Subject: OpenVMS Java exports Hi, Could someone that has had experience installing the CSWS (Compaq Secure WebServer) based on Apache. and CSWS_JAVA (Tomcat and Jserv and ANT). please e-mail me. I am having problems running user apps that wish to connect to a database and Would live some assistance. My error is and it seems to be related to CLASSPATH. Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java, Compiled Code) at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java, Compiled Code) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com This message was posted using eunumTo interact with a real-time, threaded interface to this e-mail list, clickthe link below:JSP-INTEREST === 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 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com Win a ski trip! === 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: Email from a jsp page
The best way is perhaps using a mailer tag library. There are plenty of those. Take a look at http://jakarta.apache.org/taglibs/doc/mailer-doc/intro.html for example. Hope this helps. John -Original Message- From: Carlos [EMAIL PROTECTED] Date: Tue, 29 Jan 2002 17:05:40 +0100 To: [EMAIL PROTECTED] Subject: Email from a jsp page Can anybody says me hw can i send a email from a jsp page? i want to send a styring (message) to a email addresss. thanks === 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 -- ___ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Win a ski trip! http://www.nowcode.com/register.asp?affiliate=1net2phone3a === 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