Re: New jsptags
Hi It does not ask me for password. It's http download and it should not ask for that. try again if you can't get let me know I will send you a zip file. - Original Message - From: Khem Chand Sachdeva [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 06, 2000 1:58 PM Subject: Re: New jsptags I tried downloading it and it is asking for password. - Original Message - From: Pratik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 04, 2000 6:06 PM Subject: New jsptags Hi friends I have created two new tags . find it on http://prat.freeservers.com/tags regards Pratik === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Regarding pageContext.getRequest()
Hi Thanks I am using Tomcat 3.1 please help me - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 07, 2000 11:25 AM Subject: Re: Regarding pageContext.getRequest() Pratik wrote: Hi all pageContext.getRequest() returns ServletRequest I want to get the requested url in my own tag. How can i convert ServletRequest to HttpServletRequest. Explisit casting (HttpServletRequest) pageContext.getRequest() gives me an error. If the following statement gives you a ClassCastException: HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); then either your servlet container is broken or for some reason it thinks you are not executing an HTTP based request. What container are you trying to run your JSP pages in? Thanks Pratik Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === 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: FTP From JSP
My two cents on this issue: For most average sites, Both these tools work well and the speed isn't the issue but rather your shops expertise and style that really decide which is the better product. I have to smile since in these enviroments its not the programming language that is to blame for bad performance but badly programed code that kills the project or response time. So pick the programming language that matches your shops programming style. If you are a cookie cutter style shop then ASP is your tool, its great for cut and paste coding. IF you have a strong object based shop then JSP will rock over ASP. But it really comes down to style. When speed and size are the main issues then based upon platform requirements you can choose the approriate solution (jsp vs asp) Both asp and jsp can be made to rock the world, but in each case its when your plaform is tuned to match the solution. So its still a style issue, a style of hardware that your shop excels in. Pick the solution that matches your shops style yet again. So from my point of view both JSP and ASP are great solutions as long as you use them in the right enviroment and programming staff. I have to admit my bias's, I just love JSP, it is just plain fun to program in a good object oriented enviroment, Plus it offers wonderful solutions. If I had to choose one I would choose JSP but on saying that I will also admit for the next year to come JSP will always be playing catch up with ASP. This is due to two reasons. 1) ASP is just easier to learn (ok JSP is easy to learn , but to really unlease the power of JSP, you also need to know Java and you should understand Servlets and JDBC and these 3 extra burdens make the JSP learning curve a much steeper one. Add on top this JSP is newer and the educational materials are still in mid stages of chaos, but with a smile I can say this is finally turning around) 2)The ADO object and the ease of using stable ODBC connections. In my opinion JDBC is easily a year behind the functionality and ease of use of the ADO Data connectivity enviroment. And its these two issues that ultimately which will keep JSP behind ASP in the numbers. Casey Kochmer www.JspInsider.com [EMAIL PROTECTED] From: Gerardo Liza Recinto [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: FTP From JSP Date: Fri, 7 Jul 2000 22:31:56 -0700 Let's explore more on a related topic as I like this {:)).. I still can't figure out why the sentiment against MS when that it is doing a good job bringing out high performance softwares ? {:( (I am also not an avid MS fan although I worked under Bill's army of software developers. 'got to stay neutral to survive in this competitive world {:) Maybe, so many people failed to adopt/learn C++ nor liked basic for its unelegenceness (both are extremes) that they need something easier but elegant to work with and then somebody who is fed up with C++'s short comings when he is working for this networked devices' project came up with a simpler to use (but of course with performance trade-offs) and more adapted to internet programming that is now the famed, the holy grail, the numero uno ballerina of programming world, JAVA. Or, is it due to MS' competitor SM's successful advertisement of JAVA that lured away programmers from C++'s/VB's world. And then, naturally, all JAVA related technologies, environment get to be embraced by the whole programming community (or at least all the noisy ones who are not pro-MS). Or rather, JAVA is the next natural evolution of C++ programming language and that it was embraced right away by developers who saw all the advantages of JAVA as vs. C++ (not to mention basic since it doesn't rise up to the elegance level {:). But indeed, how can a JAVA compiled to bytecode (that needs an interpreter or a runtime engine) compete with the speed of a native, compiled to machine code COMponent. But JAVA is a language, therefore, it is not hopeless that someday a compiler + JAVA runtime engine can match up with the performance of a COM. But never to be better in performance, only in built-in features and in simplicity. Hardware performance, they say, will compensate for a software speed inferiority. As such, it is better to have a more tamed development environment rather than to have a better performing software dev. tools/enviro. In this case, if JAVA is the next evolution of C++, therefore, given a better tamed JAVA environment means it is a better option to choose. But then again everything is relative. That's why SDE's are always the heart and sole of a software dev't project, they are the ones who design optimize the software. No matter how good the features are if the engine is slow and poorly architected, it will be a slow poke of a software. A comparison study of the 2 camps' technologies: MS: - Basic++ (next release of basic WILL formally raise it up to an OO
How can i communicate between 2 appli. or services running on dif ferent ports.
How can i communicate between 2 appli. or services running on different ports. In my case: My J2EE application is running on port 8000 Calendar server is running on port 8100 My J2EE appl. calls the Calendar server by calling : href = "http://hostname:8100/ This creates an ID on the Calendar server. This ID I want on my J2EE appl. Calendar server code is javascript. How can i send the id from the Calendar server to J2EE. Please help. Regards, Ritesh === 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: Navigation from Applets in MS Outlook
You may have problems because of the JSObject. I believe it only works in Netscape and outlook probably uses IE as the default. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of job job Sent: Friday, July 07, 2000 9:15 PM To: [EMAIL PROTECTED] Subject: Navigation from Applets in MS Outlook I'm trying to navigate on click of an applet button in Outlook Mail, but get no response - I expect the lauch of a new browser window, but no luck. Any suggestions? The button code is included below: import java.awt.*; import java.awt.event.*; import java.applet.*; import netscape.javascript.JSObject; import java.net.*; public class OutLook extends Applet implements ActionListener { String target = "_self"; public void init() { Button b = new Button("Click This Button"); b.addActionListener(this); add(b); } public void actionPerformed(ActionEvent e) { try{ URL dest = new URL("http://www.yahoo.com"); JSObject win = JSObject.getWindow(this); if( win == null ) target = "_blank"; this.getAppletContext().showDocument(dest, target); } catch(MalformedURLException a) {} } } Thanks for the help. Rahul __ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Image Size
Re: width and height. I think (from memory) there's code in Jason Hunters book to read the width and height of a .jpg from the file. There's also code that uses ACME's encoders or Suns I forget and uses Image in a Frame to render the image to encode and then spit it out in a servlet. Actually, it's WROX's Professional JSP Photo database example that has the width,height code I believe. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Lesley Eadie Sent: Tuesday, July 04, 2000 3:40 PM To: [EMAIL PROTECTED] Subject: Re: Image Size Hi are you using jsp to generate images server side and display them on a client browser? If you are or anyone else is, I need your help. I'm going mad trying to do it. Thanks in advance a'body! DD xx - Original Message - From: "anderson" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 04, 2000 3:21 PM Subject: Image Size How can I get the image width and height (GIF and JPF) ? thanks anderson == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === 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: asp v. jsp/servlet environment? also called Re: FTP From JSP
---Snipped from JSPInsider article: ... these are good times to be a simple country programmer! Casey: To have life so simple is always a joy. Unfortunately,... Thanks for posting your site and the link to your first-in-a-series article. It presents an informative and intriguing comparison of asp to jsp. It seems a comparison is better made between MS IIS server-side technologies, including asp, with its limited internet server support (principally MS IIS), to server-side Java, including jsp, which is widely supported by most internet server platforms out there. In case some may perceive MS bashing, I like MS tools. I've developed sw for decades, using MS tools for a good part of that time. Among them, I develop in MS VC++ on an NT workstation/server, and run first-tests of C++ and Java apps on MS IIS. Yes, NT IIS is simple, easy to install and manage, but at best, MS IIS leaves ambivalence. MS IIS seems a little like Macintosh: a good platform without market acceptance in important application areas. The lessons of Apple Computer (Apple once held dominant market share) and Ashton Tate's dBase (ditto. Now, Ashton who?) resonate. Great technologies don't die, they fade into oblivion. (Does anyone remember Betamax, VisiCalc or VisiOn?). The argument in favor of MS IIS is that, for "small" sites, MS IIS (asp) holds its own in comparison to Java servers (and jsp), admitting that server-side Java is better suited for "larger" sites. Has anyone argued otherwise? Ultimately, it's unimportant how capable MS IIS asp may be. Use determines acceptance. Many dBase programmers have said, "dBase can do that," but dBase is not used for so many "thats." Similarly, at some point, IS resources turn away from MS IIS towards more accepted platforms. At what point does MS IIS and asp fade into oblivion? Your article suggests an expansive definition for a "small" site, raising a valid question as to how small is "small." Your term "users" seems more clearly called "client requests," since an Internet client-server "user" usually disconnects once the request is satisfied. To call 500 simultaneous requests a "small" site seems a bit much. A quick run at the numbers suggests that a maximum of 500 simultaneous client requests means that server capacity could far exceed 15 million hits per month, 500,000 per day. Shove most NT IIS servers into this environment would prove disappointing. The limit is one of acceptable usage. Of course, MS wants IS managers to believe the limit is the hardware, not the NT (Win2000) OS; perhaps they are right. Still, in my experience, MS IIS(NT/Win2000) is not the preferred choice for high traffic machines. Implementing asp-com technologies outside MS IIS is difficult, at best. IS management seems to accept the concept that MS IIS is acceptable for "small" i-server apps and most IS people feel comfortable saying Java is superior beyond some minimally "small" size site. One question is "How big is a "small" site?" Another question is, "Do you want to speculate with your, or your company's, resources on whether MS IIS will ever be accepted as suitable for serving a rapidly expanding client base with growing client needs?" Bill Gates says he's betting the company on his new net technologies, just as VisiCorp once bet their company on VisiOn (Visi-what?). Do you want to bet your project on MS IIS future, ignoring accepted MS IIS limits? This much seems most simple: Java servers are the accepted choice for growing sites with big-picture needs. Here, the future of MS IIS is simply speculative. Comments? Phil Campbell the-wally-project.org -Original Message- From: casey kochmer [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Friday, July 07, 2000 2:41 PM Subject: Re: asp v. jsp/servlet environment? Hello Phil I just recently wrote an article discussing your questions topic. The article is called ASP Vs JSP and it is the first of several installments on this topic. You can read the article at http://www.jspinsider.com/articles/jspasp/jspasp1.html === 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: session expired
What is the correct way to extend the session then? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Krishnan Sent: Wednesday, July 05, 2000 1:24 PM To: [EMAIL PROTECTED] Subject: Re: session expired Hi, There are two options, one : In the begining set the session time out using the following method. session.setMaxInactiveInterval("specify the no of minutes") for session not to expire set "-1". two: Use session binding listener class which has two methods sessionBound and sessionUnbound. When the session expires, the sessionUnbound method will be called, there you can write code either to extend the session or what ever the action that you want to perform. Hope this might help u bye krish - Original Message - From: Mauro Gagni (EMS) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 05, 2000 4:57 PM Subject: session expired Hi All, I am using tomcat to develop my JSP+benas application. I instanciate some beans with scope session and I get this problem: After a while that I leave the browser inactive, the session information is gone (I store some data in the session) but the beans are still there so they do not get reinitialized as I would expect. Is this correct? Is there a way to free a bean once it has been allocated to a session? Thanks, mauro == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
DB Pooling / Object Pooling / Caching
Hello Folks, I am new to JAVA / JSP programming.. Want to understand more about DB pooling, Object Pooling and Caching mechanisms and how they can be implemented using Java /JSP ? Please explain those concepts and give some example coding to implement. Thanks in advance. Gopu === 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: custom tag question
The Manning book. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Holmes III, William S Sent: Wednesday, July 05, 2000 9:00 PM To: [EMAIL PROTECTED] Subject: custom tag question Hi, Does anyone know of a good example using TagExtraInfo to declare scripting variables? The only example I've found so far is in the Orion Tag Extensions tutorial. Thanks, Bill == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === 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
Standalone Webserver for Java servlets and JSP's
Hi, I am building an application that should build dynamic web pages on several platforms (MS Windows, Unix, Apple). The application will be burnt on a CD that's shipped to users. Users run the application on their standalone PC/ Workstation, without a internet connection. Still being in the definition process, I am considering Java Servlets and Java Server Pages. What kind of Server can I use for this application? Is there a mini webserver that can be easily installed and run on a standalone PC? What's the purchase cost and where do I find it? Regards, Hans Dekker === 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
Caching class files
JRun is caching my java class files... I use them as beans in my JSP pages... I am new to JSP programming, but I know JRUN is caching the the beans that some of the pages use. Is there any JSP directive, or is it JRUN issue? Thanks, []s, Dario Andrade WIZ Technologies tel: (0xx21) 431-1441 e-mail: [EMAIL PROTECTED] web site: http://www.wiz.com.br wap site: http://www.wiz.com.br/wap === 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: Standalone Webserver for Java servlets and JSP's
Hans check out http://jakarta.apache.org/tomcat/index.html "Hans Dekker (D-Sys)" wrote: Hi, I am building an application that should build dynamic web pages on several platforms (MS Windows, Unix, Apple). The application will be burnt on a CD that's shipped to users. Users run the application on their standalone PC/ Workstation, without a internet connection. Still being in the definition process, I am considering Java Servlets and Java Server Pages. What kind of Server can I use for this application? Is there a mini webserver that can be easily installed and run on a standalone PC? What's the purchase cost and where do I find it? Regards, Hans Dekker === 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 . -- -- Peter Blakeley [ coolcat.com.au ] At 40 you may be too old to be young but you are also too young to be old...;-}) . === 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