Re: On (free) IDEs
From: Sascha Kaufmann [mailto:[EMAIL PROTECTED] hm, the official eclipse page says the opposite :) That is true for plain Eclipse. But that is the reason for plugin support in it. Try: http://www.strecl.com/ (Commercial product) or http://sourceforge.net/projects/solareclipse/ (free) Does text highlighting work with HTML and JSP code? Yes, but that is only a minor improvement :) --Srdjan --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003 === 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: On (free) IDEs
From: Pranav Lal [mailto:[EMAIL PROTECTED] Does Eclipse work for JSP as well? O yes, excelent. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003 === 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: On (free) IDEs
From: Omer Tariq [mailto:[EMAIL PROTECTED] I'm about to start on my first professional JSP/Servlet project and have done some hands dirtyin' on the Sun One Studio IDE. I'd like to know how reliable and popular this IDE is and how does it compare to others. Regards, Try Eclipse (http://www.eclipse.org). --Srdjan Srdjan Pantic ASU Solutions, Inc. Bowers Ave, # 160 Santa Clara, CA 95054 phone (408) 654 7827 fax (408) 654 7820 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003 === 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: Replacing JSP with PHP?
Pillai Jaideep wrote: All the points you have listed basically compares the benfits of a strongly typed OO language over a weakly typed non-OO language. None of the points listed would matter to a person interested in developing a simple web based application. But that does not answer the basic question - Well, I worked with PHP from beginning of the language and I'm working with J2EE last four years. I tend to agree with you that for simple applications with low (read none) budget PHP will probably be the best choice. For my web page I do not need anything more. But if one need to develop enterprise application PHP is poor choice. Of course you can work with MCV in PHP also, I know. I have a friends (see www.datagate.co.uk) specialized with PHP and they developed they framework with around MCV. But, let me put it this way, it is not an easy to work with OO in PHP. Java is simply OOL designed. If you are writing a J2EE application using only JSPs that will end with very bad code indeed in most cases. Scriplets from hell. But if you are using OO you code will be (or should be) easy to understand, easy to maintenance, scalable, for start. b.Development time wise - PHP really has the most beautiful syntax among all available server side scripting languages. Learning time for the language is minimal. Not so with JSP/Servlets( I mean to become a good developer, OOPS , some of the worst code I have seen is from JSP/Servlets ). Maybe the real truth with PHP vs. Java is in fact that PHP is an easy to use, just as you said before and almost everyone can use it... for simple things. For anything more complex you will need an educated software developer and than Java have much more sense. d. Performance - Definitely tilts in favour of PHP because of the overhead of converting a JSP to a servlet java source and Well, depends. then compilation into a class file. Though, this compilation is only one time upon the first request to the JSP, it is definitely an overhead. And second, This is a not a good argument. You can have a precompiled JPSs. In any case in production you will not leave that to your users. PHP is a pure interpreted language, means PHP source is directly converted to executable native code by the interpreting engine. Unlike java, whose intermediate bytecode format is part native and part plain ASCII to be interpreted at And? JIT rings the bell? in PHP. Think about it, anyone who has been working with pure java application servers for some time would describe them as memory hungry monsters. True. But with price for 1 GB of memory today that is not an issue. I have 1 GB on my primary workstation at home and price was reasonable. For production it is not an issue today. Two years ago you will be absolutely right. I worked with IBM WebSphere from version 2 and in that time was not so easy to obtain 512 MB memory for servers. And we work on only one shared developer servers. Today every our developer working on individual workstations with 1 GB and Pentium 4. And we got them for $1000 per workstation. --Srdjan --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003 === 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/JavaBean compared with EJB
7) Another advantage of EJB I heard was transaction management. Why do I need that? I can use JSP/JavaBean to issue all kinds of SQL statements and commit or rollback any transaction as needed. Why do I need EJBs transaction management? I tend to agree with you on other points. You will need a transaction management if you have a distributed transaction, which means more than one database are involved (or database schema for that matter). In fact you can make a one phase transaction with regular JavaBean (better with Data Access Objects), but for true two-phase commit you will need EJB. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003 ==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: URL parameter hiding
I'm trying to do a redirect to a server that lies outside of my application. I cannot do a POST, cause there is no cooresponding action. I'm probably a missing something, but almost always you can use GET. Of course if parameter string is bigger than 255 characters that is not a good idea, or if you want a user to be able to bookmark end page. But in any other case you should be able to do POST. This works, but how do i get it so that the parameters and their values don't show in the address or status bar? If you want just to hide on first page it is easy: a href=/eBiz/servlet/com.asucon.ebiz.common.web.DownloadAsExcelFileServlet?co ntextName=%= contextName %pageName=%= pageName%pageToDownload=shipmentList onMouseOver=window.status='Download as an Excel file'; return true; onMouseOut=window.status=''; return true; class=hyperbold title=Download as an Excel file Download as an Excel file/a Just use events onMouseOver and onMouseOut to cover. But for address bar in browser when you hit a destination page? You can open a new windows without address bar. And of course you can hit your application and redirect request from your servlet to some other site, but... But if somebody whant to find an URL, he will be able to do that. --Srdjan Srdjan Pantic ASU Solutions, Inc. Bowers Ave, # 160 Santa Clara, CA 95054 phone (408) 654 7827 fax (408) 654 7820 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003 === 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: sql server driver for win nt?
i have been looking for sql server jdbc driver for windows nt. i have gone to microsofts site, but the driver's which are available do not work on win nt platform. Could somebody give a link or clue as to where i can get the driver. That JDBC driver is working only woth MS SQL Server 2000. You probably looking for JDBC driver for earlier MS SQL Server versions. There is not free JDBC driver, at least not to my knowlwdge. There is a couple of commercial drivers available. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.431 / Virus Database: 242 - Release Date: 12/17/2002 === 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: jdbc driver for sql server
have you ever used the jdbc driver for sql server? There is a project was developed with servlet and dbAnywhere and sql server ,but we decided to change dbanywhere to jdbc driver for sql server from Microsoft. The problem that exist is, the stored procedure doesn't work properly in jdbc driver. I get error such as [Microsoft][SQLServer 2000 Driver for JDBC]No ResultSet set was produced. .I appreciate any help in advance. Well, first question is which version of MS SQL Server you are using? If you are using MS SQL Server 2000 (as your choice of JDBC driver suggest) in that case make sure that you enable JTA support on MS SQL Server side. Does not matter if you want to run SELECT statements and nothing else. To do that find a folder: c:\program files\microsoft sql server 2000 driver for jdbc\sqlserver jta and take a file instjdbc.sql. You must to run this file against your SQL server. Second, you must a DLL sqljdbc.dll somewhere in path, for example $WINNT\SYSTEM32. Make sure that you restart MS Distributed Transaction Coordinator (DTC) service on MS SQL Server machine and your application server as well. Keep in mind that this JDBC driver will work *only* with MS SQL Server 2000. If you have any previous version of MS SQL Server, you must purchase a JDBC driver. There is no other free working JDBC driver, as far as I know. I hope that this will work for you. --Srdjan Srdjan Pantic ASU Solutions, Inc. Bowers Ave, # 160 Santa Clara, CA 95054 phone (408) 654 7827 fax (408) 654 7820 === 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: J2EE and PL/SQL
Everything you can absolutely put into the db, so use pl/sql. What you cannot, use something else ... I can't agree with this approach. If you have many users using your web application, regardless if that is used for internal application, e-commerce site or whatever, you can always add more application servers, but you can't do that so easily with your database server. In that case database server is your bottleneck and you don't want to slow database even more, which will be result of business logic inside database server. You will still have a need for store procedures and triggers but as exception, not as a rule. Of course, design depends on requirements, but in most cases I will recommend J2EE instead of pl/sql (or TransactionSQL or whatever). --Srdjan Srdjan Pantic ASU Solutions, Inc. Bowers Ave, # 160 Santa Clara, CA 95054 phone (408) 654 7827 fax (408) 654 7820 === 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
WebSphere: Detecting secured connection from servlet
Summary: How to detect cipher suite and key size with IBM WebSphere 3.5 Long version: I have a request to detect type of connection, cipher suite and key size. Type of connection is not the problem. With HttpServletRequest.isSecure() you can find that. But key size and cipher suite are another story. For application server which support Servlet 2.3 standard that is not a problem. Servlet API 2.3 adds two new request attributes that can help a servlet make an informed decision about how to handle secure HTTPS connections. For requests made using HTTPS, the server will provide these new request attributes: javax.servlet.request.cipher_suite: A String representing the cipher suite used by HTTPS, if any javax.servlet.request.key_size: An Integer representing the bit size of the algorithm, if any Of course you can use following variables from request, if any: HTTPS = on HTTPS_CIPHER = EXP-RC4-MD5 HTTPS_KEYSIZE = 128 HTTPS_SECRETKEYSIZE = 40 Problem is, I can't find anything of that in request.getHeaderNames(). Is there any solutions for this? --Srdjan === 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: using super in Jsp
As others on this list would agree that the best way to use JSP's is in conjunction with Servlets and Java Beans, in short The MVC Architecture Model. In the above mentioned model JSP's are used for display purposes and the logic is placed in Beans whereas the Servlet acts as a Controller. In case you need more information on MVC check out any good JSP Book and even the archives of this list is a wonderful resource. You are right about that. But lot of people using directly JSP. My company using MVC. But if you are familiar with BEA WebLogic Servlet 2.2 implementation, for security reason all objects, including servlets must be hidden from application. To use servlets you must map it in web.xml. Maybe I don't understand correctly specification, but I don't find nothing in specification that will put something like that as mandatory. With Tomcat 3.2.2 (Servlet 2.2 and JSP 1.1) and IBM WebSpehere 3.5 and 4.0 that is not the case. You can access to any servlet directly without any mapping. --Srdjan === 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: WebLogic
I was looking for the same thing. Using /servlet/ was the way I found. However, it doesn't seem to pick up new changes. You can play around with and see if you can get it to work. Can you bi so kind to give a example of configuration? And of course where exactly to put it. I was unable to configure /servlet/ usage with WebLogic. And, yes, it's look like that WebLogic (at least in version 6.0 SP1, I now for sure for 5.1 also) can't pick up new changes in servlets. --Srdjan === 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
WebLogic
I'm testing Bea WebLogic 6.1. I write a simple application using MCV aprouch. And in my case Control component is based in servlets. With TomCat and IBM WebSphere I was able to call servlet directly: http://127.0.0.1/eBiz/servlet/com.test.web.TestServlet eBiz is of course name of Web Application. But with WebLogic I was unable to hit servlet. Servlet is based inside web application structure (Servlet 2.2 specification). Only way to hit a servlet is to map servlet to url explicitly, in web.xml. Is there anything I'm missing here? === 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: How to send a file back to client?
If I dynamically create a file on the server (say in a servlet) in memory, how can I send it back to the client so they get a pop-up dialog that asks them to save it? Also, how can I make sure the filename in This is the easy one. public void SetContType(javax.servlet.http.HttpServletResponse response, String filename) { // Get and set the type of the file String contentType = getServletContext().getMimeType(filename); response.setContentType(contentType == null ? "application/octet-stream" : contentType ); } if you like you can add check for additional content types. But for download you can specify your content type. For example: "application/x-srdjan-pantic" the pop-up box (the default to save it under) is a name I specify? This is the hard one. In ASP, ColdFusion, any other CGI program, I would try something like in URL: /download/getFile.cfm?id=1/mod.cwg And I will get mod.cwg as name for download in SAVE AS textbox. But, when I try same in Java environment, using MVC architecture: /eBiz/servlet/com.asucon.ebiz.download.web.GetFileServlet/mod.cwg nothing, doesn't work. If anybody have answer for this one, I will be grateful, too. Kind regards, Srdjan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Keep sessions with WML
From: Fernandez-Moreno, Miguel-Angel [mailto:[EMAIL PROTECTED]] Hi all, u know how to keep the sessions when u send WML to a GateWay WAP? how can i know if the mobile has connected earlier?? Thanks in advance... Personalization is a must for WML/HDML applications. For one session you don't have a problem, or choice: you must store state in the Session on the server or you can Embed session ID in the URL (Use HttpServletResponse.encodeURL()) Incorrect approaches will be to store state in cookies, because Not all WAP gateways support cookies. You could store state in the URL but there is a size limitation for many devices. But, your real question is actually: How to ID users without typing. Right? Well, there is no easy answer for that. Some phones and gateways pass a unique ID. You can always use URL encoding like: http://wap.***.com/resource?ID=XXXPWD=YYY and users can save bookmark in that form, but please DO NOT use that with financial application :) --Srdjan Srdjan Pantic ASU Consulting, Inc. Bowers Ave, # 160 Santa Clara, CA 95054 phone (408) 654 7813 fax (408) 654 7820 === 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