jakarta jdbc taglib problem....
Hi dudes, I am new to usage of taglibs in jsp pages.As of my first attempt I tried to use jakarta jdbc taglib to retrieve values from a table. At the begening of the page I wrote like this %@ taglib uri="http://jakarta.apache.org/taglibs/jdbc" prefix="sql" % but I try to execute the jsp page i got the error like this Unable to open taglibrary http://jakarta.apache.org/taglibs/jdbc : null I am using Tomcat 3.2.1 version. Please help me regarding this problem. Thanx in advance Rgds padmakar neelapareddy The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. === 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 can I catch an JSP error ????
Thanks you for your answers It's sure that the javascript is more efficient to check the fields before sending to the server but my boss don't want to use javascript because he want that the checking will be realised on the server side :( ... Thanks you Thierry -Message d'origine- De : Michael Sweeney [mailto:[EMAIL PROTECTED]] Envoy : jeudi 5 avril 2001 18:52 : [EMAIL PROTECTED] Objet : Re: How can I catch an JSP error Remember that when the form is submitted, it always sends data as a string in any case, no matter what the user enters. You have to use Integer.parseInt(request.getParameter('paramName') to make the value an int anyway. You might also want to check the form input with some javascript to make sure the user enters valid data before it's submitted, but that doesn't change the need to convert to an int once the data is submitted. Michael At 04:06 PM 4/5/01 +0200, you wrote: Hello, I have a jsp which filled a bean with 3 variables : a name, an address email and an age. This is a part of my JSP : %@ page import="test_tbe" errorPage="error.jsp" % jsp:useBean id ="test" scope="page" class="test_tbe" / jsp:setProperty name="test" property="name" param="p_name"/ jsp:setProperty name="test" property="email" param="p_email"/ jsp:setProperty name="test" property="age" param="p_age"/ Hello please enter your name and your email ... Name : Email : Age : === 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 === 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 can I catch an JSP error ????
Thanks you Nils ! It seems to be a good alternative... but i loose the benefit of the setProperty method... Yes sure but my boss don't want to use javascript for field verification :/ I found something on http://www.jsptut.com/Taglibs.html It talk about Blazix server. This server have a tag libraries which allows to use a catch... blx:setProperty name="user" property="*" onError="errorHandler"/ % if ( haveError ) { out.println( errors.toString()); pageContext.include( "GetName.jsp" ); } else pageContext.forward( "NextPage.jsp" ); % I think it can be interresting ... Thierry Nils wrote : or with JSP try { int age = Interger.parseInt(request.getParameter("age")); bean.setAge(age); } ctach (NumberFormatException e) { error ="Age not a number!"; } So you cant use the setProperty tags to set the bean because it will use parseInt but not catch the exception for you. === 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: JAVASCRIPT PROBLEM
If you want the control of the client software (i.e. browser or other stuff) then sign the script. The philosophy is that if the client trust the server then the server (the page instead) could get the control of client behavior. See also the IE philosophy of trusted/untrusted zones. enjoy, Stefan Dean Sacramone wrote: You can't get rid off that error..cause you are trying to close the "parent" windowmaybe an "onerror" will squash the error box--not sure. If you find a solution, let us know. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of paramjit singh Sent: Wednesday, April 04, 2001 10:50 PM To: [EMAIL PROTECTED] Subject: JAVASCRIPT PROBLEM Hello.. I am opening new Pop up internet explorer window when user clicks next button of current window by using javascript function window.open() but i also wana to close the previous window(parent) i do it like this this.close and then called window.open("new window"); but when user clicks next button javascript's alert box pop's up asking for the confirmation of wheteher to close the current window or notyes or no.. but i don't want this i want that the window should be closed without the user intervention.. any idea.. paramjit singh Get free email and a permanent address at http://www.netaddress.com/?N=1 === 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 === 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 === 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: generating report in Excel
CREATING MS EXCEL DOCUMENTS VIA SERVLETS, PART 1 Suppose your accounting department wants to load information from an employee database into its employee Excel spreadsheet. How could you deliver that information? One method is to provide a file of the Employee table information, which would be importable. But this method requires that you create this file each time the accounting department has a request. Furthermore, if the accounting area has trouble loading the data, you're presented with a technical support issue. A better method is to provide the accounting department with a URL that dynamically produces an Excel document. Not only would this please the department, but also your job is made that much easier. Accomplishing this cool feat is as easy as 1-2-3. By utilizing MIME- type specification in the header of the returned document, you can tell the browser that the information is one of many possible types. There are many browser-supported MIME types, and listings of these can easily be found on the Web. For example, when the browser is told that the returning document is of Excel type, Excel is opened with Internet Explorer and the returning document dynamically loaded. Netscape will typically provide the option of saving the document as the default name and then Excel can open it. If the name isn't provided specifically in the returning header, the document will be the name of the URL's filename by default. See more on that on http://www.techrepublic.com Regards, Stefan Debasis Dash wrote: Hi all, I want to generate the excel file based on the data retrived from database in jsp.How can i do that? help me please. 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://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". 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: generating report in Excel
Hi, There is a commercial tool called "formula one" for java that will allow you to do anything Excel does in Java and will produce, via its gui tool or its API, an XLS file. Check http://www.tidestone.com/home/default.jsp Regards, Konstantinos Damianakis Kinitron Enterprises Limited --- Debasis Dash [EMAIL PROTECTED] wrote: Hi all, I want to generate the excel file based on the data retrived from database in jsp.How can i do that? help me please. 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://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 = Regards,Konstantinos Damianakis,Kinitron Enterprises Ltd __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.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 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
No Subject
hi all, i have apache and jrun servers how can i run jsp,ejb and servlets thanx Namal === 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
Cookie problem
Hello everyone, i have the following code in a jsp file, i want to set a cookie to remember the loginname and the checkbox value, if the checkbox value is null (is not checked) i want to kill/destroy the cookie... if it's not null i want it to set the cookies... when i use the following line without the last jsp:forward tag, it works fine, if i use jsp:frward tag, it doesn't work, it always remembers the cookie, it doesn't destroy it... any suggestion from you guys... also what is the best way to bestroy a cookie, is there a method, or you just setMaxAge to zero... Thank you. % String loginName = request.getParameter ("txtLoginName"); String remember = request.getParameter ("chkRemember"); Cookie oneCookie = null; if (remember == null ) { oneCookie = new Cookie("Login", ""); oneCookie.setMaxAge(0); oneCookie.setPath("/"); response.addCookie(oneCookie); oneCookie = new Cookie("Remember", ""); oneCookie.setMaxAge(0); oneCookie.setPath("/"); response.addCookie(oneCookie); } else if (remember.equals("Remember")) { oneCookie = new Cookie("Login", loginName); oneCookie.setMaxAge(1); oneCookie.setPath("/"); response.addCookie(oneCookie); oneCookie = new Cookie("Remember", remember); oneCookie.setMaxAge(1); oneCookie.setPath("/"); response.addCookie(oneCookie); } % %--jsp:forward page="Main.jsp" /--% === 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
generating a excel page in the browser
in a jsp page if i put: %@page contentType="application/vnd.ms-excel"% the browser shows me a excel page. but there is a problem. It show me a jsp page if i say to it for shown and not to save. when i want to see this page it asks me if i want to save or show the page. What must i to write in the jso page for showing the excel page without asking for saving? thanks Carlos === 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
No Subject
By reading the getting started guide and the manual. Michiel; -- From: Namal Gunasekera[SMTP:[EMAIL PROTECTED]] Reply To: A mailing list about Java Server Pages specification and reference Sent: Friday, April 06, 2001 8:32 AM To: [EMAIL PROTECTED] Importance: High hi all, i have apache and jrun servers how can i run jsp,ejb and servlets thanx Namal == = 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 === 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
Getting the name of the server.
Hi. I'm trying to access the name of the web server as it is published on the web. I'm creating links and actions for forms and I need to be able to know what the name of the server is that the JSP is coming from. For example: FORM name="smuForm" method="POST" action="https://smuServer.smu/bla" ... /FORM This is one of the things I need to be able to do. So the "smuServer.smu" should be dynamically created so the webapp can be portable between different server names. I need to have an absolute path in this part so I can't just write "/bla" in the action part. Can anyone help? Kind regards, Stefan. Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782 === 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: Cookie problem
When ever you use forward tag ensure that the forward is done before any response is sent to the client using the response object. this seems to be the problem in your case, as this response never reaches the client. cheers Sivarajagopal -Original Message- From: Sebouh [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 3:12 PM To: [EMAIL PROTECTED] Subject: Cookie problem Hello everyone, i have the following code in a jsp file, i want to set a cookie to remember the loginname and the checkbox value, if the checkbox value is null (is not checked) i want to kill/destroy the cookie... if it's not null i want it to set the cookies... when i use the following line without the last jsp:forward tag, it works fine, if i use jsp:frward tag, it doesn't work, it always remembers the cookie, it doesn't destroy it... any suggestion from you guys... also what is the best way to bestroy a cookie, is there a method, or you just setMaxAge to zero... Thank you. % String loginName = request.getParameter ("txtLoginName"); String remember = request.getParameter ("chkRemember"); Cookie oneCookie = null; if (remember == null ) { oneCookie = new Cookie("Login", ""); oneCookie.setMaxAge(0); oneCookie.setPath("/"); response.addCookie(oneCookie); oneCookie = new Cookie("Remember", ""); oneCookie.setMaxAge(0); oneCookie.setPath("/"); response.addCookie(oneCookie); } else if (remember.equals("Remember")) { oneCookie = new Cookie("Login", loginName); oneCookie.setMaxAge(1); oneCookie.setPath("/"); response.addCookie(oneCookie); oneCookie = new Cookie("Remember", remember); oneCookie.setMaxAge(1); oneCookie.setPath("/"); response.addCookie(oneCookie); } % %--jsp:forward page="Main.jsp" /--% === 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 === 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
How do I set up a JSP alias with Tomcat standalone ?
Hello, How do I set up an alias for a JSP using Tomcat in standalone mode ? Here is an excerpt of my web.xml configuration file. servlet servlet-namerouterJsp/servlet-name jsp-file/some/where/CiscoRouterBoInfo.jsp/jsp-file /servlet servlet-mapping servlet-namerouterJsp/servlet-name url-pattern/RouterInfo/url-pattern /servlet-mapping When I direct my browser to the JSP URL, /RouterInfo it does not work. I get the following error message: Error: 404 Location: /janet/mo/router/CiscoRouterBoInfo.jspnull File Not Found /some/where/CiscoRouterBoInfo.jspnull Any ideas or pointers ? Regards. Eric. === 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: Getting the name of the server.
Try something like : % StringBuffer sbu = javax.servlet.http.HttpUtils.getRequestURL(request); String uri = request.getRequestURI(); String ssbu = sbu.toString(); int indx = ssbu.indexOf(uri); ssbu = ssbu.substring(0,indx); % getRequestURL() returns the full URL while getRequestUri()returns the relative URL. Marie-Jo === 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: Getting the name of the server.
wow... thanks for the tip... but I went with request.getServerName() :o) obviously I didn't look hard enough before asking :o( sorry about that. Regards, Stefan. p.s. one thing about the getServerName() though, it does exactly that, just the server name, not the scheme (http or https) or the port number (:XXX at the end of the server name. Anyone have a remedy for that? -Original Message- From: Marie Josephe Plainecassagne [mailto:[EMAIL PROTECTED]] Sent: 6. aprl 2001 11:07 To: [EMAIL PROTECTED] Subject: Re: Getting the name of the server. Try something like : % StringBuffer sbu = javax.servlet.http.HttpUtils.getRequestURL(request); String uri = request.getRequestURI(); String ssbu = sbu.toString(); int indx = ssbu.indexOf(uri); ssbu = ssbu.substring(0,indx); % getRequestURL() returns the full URL while getRequestUri()returns the relative URL. Marie-Jo === 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 === 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
Jakarta configuration
Does anyone know how to configure Jakarta server's content-types so it can understand wml content-type === 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
web stress tool
hi, can anyone suggest a good web stress tool for testing jsp applications in apache-tomcat server . regards kishor _ Do You Yahoo!? Get your free @yahoo.com address at 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 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: generating a excel page in the browser
Is a user-defined behavior (to use Ole in place, open another application or save to disk). So, if you want an answer just for you, change the behavior of YOUR browser. Also you can control the behavior from page (jsp, html, asp, jhtml or whatever) with a client-side scripting language. Regards, Stefan Carlos wrote: in a jsp page if i put: %@page contentType="application/vnd.ms-excel"% the browser shows me a excel page. but there is a problem. It show me a jsp page if i say to it for shown and not to save. when i want to see this page it asks me if i want to save or show the page. What must i to write in the jso page for showing the excel page without asking for saving? thanks Carlos === 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 === 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
Taglib question
Hey everybody: I'm learning about Tag Libraries, but I have the following problem: (in my jsp file) ... % String username = request.getParameter("name"); % ... sample:hello name="%= username %" / Instead of getting (if I use 'Ati' as name): Hello Ati I'm getting: Hello %= username % This is an example of Oreilly, but as you can see it doesn't work. Can anybody help me? Thanks = - Ingeniero Atilio Ranzuglia Buteler [EMAIL PROTECTED] - __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.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 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
argghh my object is null ... why ????
Hello, I have 2 simple JSP page : one for recording the datas and the other to display these datas : GetName2.jsp %@ page import="UserData" % jsp:useBean id="Tuser" class="UserData" scope="session"/ jsp:setProperty name="Tuser" property="username" param="pusername"/ jsp:setProperty name="Tuser" property="email" param="pemail"/ jsp:setProperty name="Tuser" property="age" param="page"/ HTML BODY FORM METHOD=POST ACTION="NextPage2.jsp" What's your name? INPUT TYPE=TEXT NAME=pusername SIZE=20BR What's your e-mail address? INPUT TYPE=TEXT NAME=pemail SIZE=20BR What's your age? INPUT TYPE=TEXT NAME=page SIZE=4 PINPUT TYPE=SUBMIT /FORM /BODY /HTML NextPage2.jsp %@ page import="UserData" % jsp:useBean id="Tuser" class="UserData" scope="session"/ HTML BODY You enteredBR Name: jsp:getProperty name="Tuser" property="username" / BR Email: jsp:getProperty name="Tuser" property="email" / BR Age: jsp:getProperty name="Tuser" property="age" / BR /BODY /HTML and the bean : public class UserData { String username; String email; int age; public void setUsername( String value ) { username = new String(value); } public void setEmail( String value ) { email = new String(value); } public void setAge( int value ) { age = value; } public String getUsername() { return username; } public String getEmail() { return email; } public int getAge() { return age; } } When I enter some datas in the GetName2.jsp I have these results : You entered Name: Email: Age: 0 Why ??? Thanks you very mutch Thierry === 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
RES: Taglib question
In your model.tld file you must add rtexprvaluetrue/rtexprvalue inside attribute, to specify that your attribute value may be a runtime expression to be evalutated. []'s, Rodrigo. -Mensagem original- De: Atilio Ranzuglia [mailto:[EMAIL PROTECTED]] Enviada em: Sexta-feira, 6 de Abril de 2001 09:15 Para: [EMAIL PROTECTED] Assunto: Taglib question Hey everybody: I'm learning about Tag Libraries, but I have the following problem: (in my jsp file) ... % String username = request.getParameter("name"); % ... sample:hello name="%= username %" / Instead of getting (if I use 'Ati' as name): Hello Ati I'm getting: Hello %= username % This is an example of Oreilly, but as you can see it doesn't work. Can anybody help me? Thanks = - Ingeniero Atilio Ranzuglia Buteler [EMAIL PROTECTED] - __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.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 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". 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: RES: Taglib question
Thanks, I finally understand what 'rt' inside 'rtexprvalue' means. Bye --- Rodrigo Gevaerd [EMAIL PROTECTED] wrote: In your model.tld file you must add rtexprvaluetrue/rtexprvalue inside attribute, to specify that your attribute value may be a runtime expression to be evalutated. []'s, Rodrigo. -Mensagem original- De: Atilio Ranzuglia [mailto:[EMAIL PROTECTED]] Enviada em: Sexta-feira, 6 de Abril de 2001 09:15 Para: [EMAIL PROTECTED] Assunto: Taglib question Hey everybody: I'm learning about Tag Libraries, but I have the following problem: (in my jsp file) ... % String username = request.getParameter("name"); % ... sample:hello name="%= username %" / Instead of getting (if I use 'Ati' as name): Hello Ati I'm getting: Hello %= username % This is an example of Oreilly, but as you can see it doesn't work. Can anybody help me? Thanks = - Ingeniero Atilio Ranzuglia Buteler [EMAIL PROTECTED] - __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.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 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". 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 = - Ingeniero Atilio Ranzuglia Buteler [EMAIL PROTECTED] - __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.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 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: argghh my object is null ... why ????
setProperty must be done in the page called by the submit not before, otherwise the parameters do not exist so the values are empty. MJ === 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: jakarta jdbc taglib problem....
Did you put jdbc.jar in your classpath ? From: Padmakar Neelapareddy [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: jakarta jdbc taglib problem Date: Fri, 6 Apr 2001 07:59:41 +0200 Hi dudes, I am new to usage of taglibs in jsp pages.As of my first attempt I tried to use jakarta jdbc taglib to retrieve values from a table. At the begening of the page I wrote like this %@ taglib uri="http://jakarta.apache.org/taglibs/jdbc" prefix="sql" % but I try to execute the jsp page i got the error like this Unable to open taglibrary http://jakarta.apache.org/taglibs/jdbc : null I am using Tomcat 3.2.1 version. Please help me regarding this problem. Thanx in advance Rgds padmakar neelapareddy The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. === 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 _ Get your FREE download of MSN Explorer at http://explorer.msn.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://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: Jakarta configuration
Hello, Add mime mappings to web.xml file. !-- MIME type mappings -- mime-mapping !-- WML Source -- extensionwml/extension mime-typetext/vnd.wap.wml/mime-type /mime-mapping mime-mapping !-- Compiled WML -- extensionwmlc/extension mime-typeapplication/vnd.wap.wmlc/mime-type /mime-mapping mime-mapping !-- WML Script Source -- extensionwmls/extension mime-typetext/vnd.wap.wmls/mime-type /mime-mapping mime-mapping !-- Compiled WML Script -- extensionwmlscriptc/extension mime-typeapplication/vnd.wap.wmlscriptc/mime-type /mime-mapping mime-mapping !-- Wireless Bitmap -- extensionwbmp/extension mime-typeimage/vnd.wap.wbmp/mime-type /mime-mapping Cheers, Kare On Fri, 6 Apr 2001, [Qari Qasim] wrote: Date: Fri, 6 Apr 2001 12:01:56 +0100 From: "[Qari Qasim]" [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Jakarta configuration Does anyone know how to configure Jakarta server's content-types so it can understand wml content-type === 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 -- Kare Nuorteva http://www.kare.uklinux.net/ === 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: argghh my object is null ... why ????
Thanks you !! It's working :) Thierry -Message d'origine- De : Marie Josephe Plainecassagne [mailto:[EMAIL PROTECTED]] Envoy : vendredi 6 avril 2001 15:00 : [EMAIL PROTECTED] Objet : Re: argghh my object is null ... why setProperty must be done in the page called by the submit not before, otherwise the parameters do not exist so the values are empty. MJ === 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 === 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: Jakarta configuration
mime-mapping extension wml /extension mime-type text/wml /mime-type /mime-mapping Place this in the web.xml file.either in the %TOMCAT_HOME%\CONF or the \WEB-INF\ of the webapp -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of [Qari Qasim] Sent: Friday, April 06, 2001 7:02 AM To: [EMAIL PROTECTED] Subject: Jakarta configuration Does anyone know how to configure Jakarta server's content-types so it can understand wml content-type == = 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 === 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 do I set up a JSP alias with Tomcat standalone ?
servlet servlet-namerouterJsp/servlet-name servlet-classCiscoRouterBoInfo.jsp/servlet-class /servlet servlet-mapping servlet-namerouterJsp/servlet-name url-pattern/RouterInfo/*/url-pattern /servlet-mapping Will this work ? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Eric Bouchut Sent: Friday, April 06, 2001 6:22 AM To: [EMAIL PROTECTED] Subject: How do I set up a JSP alias with Tomcat standalone ? Hello, How do I set up an alias for a JSP using Tomcat in standalone mode ? Here is an excerpt of my web.xml configuration file. servlet servlet-namerouterJsp/servlet-name jsp-file/some/where/CiscoRouterBoInfo.jsp/jsp-file /servlet servlet-mapping servlet-namerouterJsp/servlet-name url-pattern/RouterInfo/url-pattern /servlet-mapping When I direct my browser to the JSP URL, /RouterInfo it does not work. I get the following error message: Error: 404 Location: /janet/mo/router/CiscoRouterBoInfo.jspnull File Not Found /some/where/CiscoRouterBoInfo.jspnull Any ideas or pointers ? Regards. Eric. == = 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 === 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: Jakarta configuration
Thanks. Actually this is exactly what I did last time, but when I try to display my wml page on a wap browser, I get the following error: " Content-Type Error ...found Content-type: text / plain. No translator for Content-type: text/plain." I hope you can help -Original Message- From: Kare Nuorteva [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 2:59 PM To: [EMAIL PROTECTED] Subject:Re: Jakarta configuration Hello, Add mime mappings to web.xml file. !-- MIME type mappings -- mime-mapping !-- WML Source -- extensionwml/extension mime-typetext/vnd.wap.wml/mime-type /mime-mapping mime-mapping !-- Compiled WML -- extensionwmlc/extension mime-typeapplication/vnd.wap.wmlc/mime-type /mime-mapping mime-mapping !-- WML Script Source -- extensionwmls/extension mime-typetext/vnd.wap.wmls/mime-type /mime-mapping mime-mapping !-- Compiled WML Script -- extensionwmlscriptc/extension mime-typeapplication/vnd.wap.wmlscriptc/mime-type /mime-mapping mime-mapping !-- Wireless Bitmap -- extensionwbmp/extension mime-typeimage/vnd.wap.wbmp/mime-type /mime-mapping Cheers, Kare On Fri, 6 Apr 2001, [Qari Qasim] wrote: Date: Fri, 6 Apr 2001 12:01:56 +0100 From: "[Qari Qasim]" [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Jakarta configuration Does anyone know how to configure Jakarta server's content-types so it can understand wml content-type === 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 -- Kare Nuorteva http://www.kare.uklinux.net/ === 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 === 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: session variables
The JSP 0.91 Specification does not provide support for session objects by default. This was implemeted in JSP 1.0 and above (correct me if wrong). You can still create HttpSession objects in your JSP code and work with them as usual. You can do something like this: % HttpSession currentSession = request.getSession(); currentSession.putValue(""variable_name", variable_value); % If you would like a copy of the JSP 0.91 specification send me an e-mail. I believe that SUN removed it from their web-site some time ago. William J Ortiz EDS E.Solutions/BlueSphere XEEP Buyout Phone: (716) 427-6892 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] e -Original Message- From: Diana Luz Buitrago B. [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 6:44 PM To: [EMAIL PROTECTED] Subject: session variables Hello! i'm working jsp with GNUJSP 0.9.10 compiler and i don't know how i can define session variables and how to read them from other pages. i was trying to define them with "session.putValue("variable_name", variable_value);" but because of the GNUJSP 0.9.10 it appears as not defined. how can i define them and read them for this compiler? Diana Buitrago Webmaster UIS === 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 === 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
Connection to the database
I am not able to connect to the database. I have a HTML page where i capture a employee code. I have to fetch the employee name from the database for the corresponding employee code. The output (viz the employee name) should be displayed in a JSP page. How do i do this. Any pointers. Regards Sriram === 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: Connection to the database
First Create a form that passer the employee code, then the receiving page (jsp page) have the request.getparameter, whatever you call the value to pass on the form, then connection to the database where you are retreive the value and in your sql statement , do a select employee_name, where = employee code. Then display the result of the returned field. Simple~ - Original Message - From: "Sriram R" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 06, 2001 3:49 PM Subject: Connection to the database I am not able to connect to the database. I have a HTML page where i capture a employee code. I have to fetch the employee name from the database for the corresponding employee code. The output (viz the employee name) should be displayed in a JSP page. How do i do this. Any pointers. Regards Sriram === 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 === 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
Organizing Application Constants
I got an application that has several constants (for example, database url). The application consists of several JSPs for presentation and classes for the persistence. How can I keep the application constants, so that 2 applications of this type (with different constants values) can co-exist in the same JVM (possibly in different web applications)? It was developed initially keeping the constants in a singleton class. But with more than one application it cannot be done like that. The constants could be kept in the ServletContext, but the classes would not have access to them (unless each were given the SerlvetContext reference). Does anyone has any idea for a solution for this situation? []'s, Rodrigo. === 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: Organizing Application Constants
I usually put my constants in a class called Constants. I implement them as final and static. I'd then deploy the class in my location accessible to all web applications running in my JSP/Servlet server. I think this location would be server specific (but I could be mistaken). From any web app, I can then access Constants.someConstant. Note that when you make any changes to your Constants class, you will probably need to restart your JSP/Servlet server to force a reload of the class. Rob - Original Message - From: "Rodrigo Gevaerd" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 06, 2001 2:22 PM Subject: Organizing Application Constants I got an application that has several constants (for example, database url). The application consists of several JSPs for presentation and classes for the persistence. How can I keep the application constants, so that 2 applications of this type (with different constants values) can co-exist in the same JVM (possibly in different web applications)? It was developed initially keeping the constants in a singleton class. But with more than one application it cannot be done like that. The constants could be kept in the ServletContext, but the classes would not have access to them (unless each were given the SerlvetContext reference). Does anyone has any idea for a solution for this situation? []'s, Rodrigo. === 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 === 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: Organizing Application Constants
Do you have to use a constant? (i.e.: Does your applciation has to have a static vars?) If not, try to use a regular var, that way the variable won;t be shared among the apps that is instantiated. I hope this is according to what you want. -Original Message- From: Rodrigo Gevaerd [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 2:23 PM To: [EMAIL PROTECTED] Subject: Organizing Application Constants I got an application that has several constants (for example, database url). The application consists of several JSPs for presentation and classes for the persistence. How can I keep the application constants, so that 2 applications of this type (with different constants values) can co-exist in the same JVM (possibly in different web applications)? It was developed initially keeping the constants in a singleton class. But with more than one application it cannot be done like that. The constants could be kept in the ServletContext, but the classes would not have access to them (unless each were given the SerlvetContext reference). Does anyone has any idea for a solution for this situation? []'s, Rodrigo. === 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 === 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
JNI with JSP and JavaBeans
Hi, I had developed a dll file with VC++ for read data of parallel port (JNI). I had developed a JSP with a JavaBean and I need to call the native method in my bean but I obtain the followin error Error: 500 Localizacion: /examples/tesis/database/demo.jsp Error interno del servlet: javax.servlet.ServletException: try to access class tesis.database.ParallelPort from class tesis.database.DatabaseManage at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Causa Raiz: java.lang.IllegalAccessError: try to access class tesis.database.ParallelPort from class tesis.database.DatabaseManage at tesis.database.DatabaseManage.read(DatabaseManage.java:166) at tesis.database._0002ftesis_0002fdatabase_0002fdemo_0002ejspdemo_jsp_66._jspS ervice(_0002ftesis_0002fdatabase_0002fdemo_0002ejspdemo_jsp_66.java:90) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) May you said me which is the problem, what can I do?. I am using Jdk 1.3, Apache Web Server and Tomcat Thanks for your help Regards Freddy Ramiro Tello Delgado Sistemas de Informacin CIAT. === 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: web stress tool
check here for a good selection: http://www.softwareqatest.com/qatweb1.html this is good: http://www.velometer.com/ and here: http://www.geocities.com/SiliconValley/Peaks/3649/JHttpServerTester.html Kishor K wrote: hi, can anyone suggest a good web stress tool for testing jsp applications in apache-tomcat server . regards kishor _ Do You Yahoo!? Get your free @yahoo.com address at 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 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". 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
Servlet debug
hi,I can't find any good debug tools for servlet. can anybody give a hand? thanks in advance. Using jdb remote debug? === 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
remote debug
Hi, all, maybe such question shouldn't be post here. but I really need some help. I want to remot debug an application, so I run the following command:(Linux, JDK1.2.2): java -Xdebug -Xbootclasspath:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar \ -Djava.compiler=NONE TestRuntime It outputed an agent password. but I can't find any process related to it running on backgroud. Also I find it exit(0) using strace, it should normally exit. Can anybody tell me why? thanks in advance. Tonny. === 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: Getting the IP of server
Hi, Can we get the IP of server from which the page is coming(Webserver). e.g If Webserver IP = 192.168.0.20 and its Name = www.JSP.com then how will we get its IP in jsp page. Hamid Hassan -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Stefn F. Stefnsson Sent: Friday, April 06, 2001 4:38 PM To: [EMAIL PROTECTED] Subject: Re: Getting the name of the server. wow... thanks for the tip... but I went with request.getServerName() :o) obviously I didn't look hard enough before asking :o( sorry about that. Regards, Stefan. p.s. one thing about the getServerName() though, it does exactly that, just the server name, not the scheme (http or https) or the port number (:XXX at the end of the server name. Anyone have a remedy for that? -Original Message- From: Marie Josephe Plainecassagne [mailto:[EMAIL PROTECTED]] Sent: 6. aprl 2001 11:07 To: [EMAIL PROTECTED] Subject: Re: Getting the name of the server. Try something like : % StringBuffer sbu = javax.servlet.http.HttpUtils.getRequestURL(request); String uri = request.getRequestURI(); String ssbu = sbu.toString(); int indx = ssbu.indexOf(uri); ssbu = ssbu.substring(0,indx); % getRequestURL() returns the full URL while getRequestUri()returns the relative URL. Marie-Jo === 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 === 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 === 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: JSP and Databases
Hi, make conection with DB and access data in following way from any DB. -- Connection con = null; Statement stmt = null; ResultSet rst1 = null; String url = "jdbc:odbc:DSN-Name"; String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; String login = "username"; String password = "password"; String QueryStr = ""; try { Class.forName(driver); con = DriverManager.getConnection(url,login,password) ; QueryStr = "SELECT * from LISTING_TBL"; stmt = con.createStatement(); rst = stmt.executeQuery(QueryStr); if(rst != null) { while(rst.next()) { out.print("value of field 1= "+rst.getString(1)); } } } catch(Exception e) {;} -- -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Sebastian Odong-Wodolam Sent: Friday, April 06, 2001 12:19 AM To: [EMAIL PROTECTED] Subject: Re: JSP and Databases I'm new to JSP and want to know how can I write code for JSP to communicate with MicroSoft Access DataBase97. If possible, could someone show me some code or direct me in the right direction. Thanks. Sebastian === 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 === 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 encript file
Hi, I want to read global info (like global.asa in asp) from some static text file. but it also contains some imp info which i dont want to give to client, so want to do some encryption on it. Is there any facility in JSP/Java Beans that i will encrypt that text file and decrypt while reading from my beans.. Thanx in advance Hamid Hassan -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of BERWART Thierry Sent: Friday, April 06, 2001 11:29 AM To: [EMAIL PROTECTED] Subject: Re: How can I catch an JSP error Thanks you Nils ! It seems to be a good alternative... but i loose the benefit of the setProperty method... Yes sure but my boss don't want to use javascript for field verification :/ I found something on http://www.jsptut.com/Taglibs.html It talk about Blazix server. This server have a tag libraries which allows to use a catch... blx:setProperty name="user" property="*" onError="errorHandler"/ % if ( haveError ) { out.println( errors.toString()); pageContext.include( "GetName.jsp" ); } else pageContext.forward( "NextPage.jsp" ); % I think it can be interresting ... Thierry Nils wrote : or with JSP try { int age = Interger.parseInt(request.getParameter("age")); bean.setAge(age); } ctach (NumberFormatException e) { error ="Age not a number!"; } So you cant use the setProperty tags to set the bean because it will use parseInt but not catch the exception for you. === 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 === 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: Getting the IP of server
Hi Hamid, u can use request.getRemoteHost() and request.getServerName() to get the Server Name and Server IP Hamid [EMAIL PROTECTED]@java.sun.com on 04/07/2001 10:33:33 AM Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] Sent by: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: Getting the IP of server Hi, Can we get the IP of server from which the page is coming(Webserver). e.g If Webserver IP = 192.168.0.20 and its Name = www.JSP.com then how will we get its IP in jsp page. Hamid Hassan -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Stefn F. Stefnsson Sent: Friday, April 06, 2001 4:38 PM To: [EMAIL PROTECTED] Subject: Re: Getting the name of the server. wow... thanks for the tip... but I went with request.getServerName() :o) obviously I didn't look hard enough before asking :o( sorry about that. Regards, Stefan. p.s. one thing about the getServerName() though, it does exactly that, just the server name, not the scheme (http or https) or the port number (:XXX at the end of the server name. Anyone have a remedy for that? -Original Message- From: Marie Josephe Plainecassagne [mailto:[EMAIL PROTECTED]] Sent: 6. aprl 2001 11:07 To: [EMAIL PROTECTED] Subject: Re: Getting the name of the server. Try something like : % StringBuffer sbu = javax.servlet.http.HttpUtils.getRequestURL(request); String uri = request.getRequestURI(); String ssbu = sbu.toString(); int indx = ssbu.indexOf(uri); ssbu = ssbu.substring(0,indx); % getRequestURL() returns the full URL while getRequestUri()returns the relative URL. Marie-Jo === 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 === 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 === 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 === 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