Problem with getRequestDispatcher()
Hi All, I am using weblogic 5.1.0 with netscape server 3.6. I have problems using getRequestDispatcher(), method. No error at the weblogic and netscape log files, it is compiling the jsp file and creating myserver/classfiles/jsp_servlet/_jsp/_confirm classfile under weblogic directory, but the netscape displaying just the html tags as if it is a text file, IE is saying page cannot be displayed, The code is like this, getServletConfig().getServletContext().getRequestDispatcher ("/jsp/Test.jsp").forward(req, res); It is working fine with weblogic 4.5 and netscape server 3.6. Please some one help me. Thanks in advance. -Naren === 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
100% Pure Java Certification
Hello Jspians, As there is 100% Pure Java Certification for Applications is there something for web applications made using jsp as well. If yes, i'd appreciate if you could give me links to the resources. Thanking you in anticipation. Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.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
Re: session
hi Albert.. i have read the api of servlet 2.2,and i feel confused the details about how to carry out your method. so will you please show me some code ? thanks ..:)) === 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
Apache on Win2K
Hi, I know it is a silly question. But I just want to make sure from you guys that Apache really can work fine with Win2K before I upgrade to it. So, are Apache, GNUJSP Apache JServ really can work on Win2K? Regards, Muliawan Nettaxi Shopping Exchange - compare products and prices, even negotiate! You pick your own price http://www.nextag.com/serv/nettaxi/buyer/Home.jsp === 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
JSP FAQ Resource Information
This is a weekly informative posting to the jsp-interest list. Before asking questions of a general nature, please check out the resources available online to see if your question already has an answer. The best place to start is our web site: http://java.sun.com/products/jsp This contains pointers to the specification, and to the JavaServer Web Development Kit (JSWDK). Some FAQs that may help you 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 The archives of this list are available at: http://archives.java.sun.com/archives/jsp-interest.html JSWDK is the reference implementation for the latest JSP and Servlet specs. You can download JSWDK at http://java.sun.com/products/jsp/download.html. Please send your feedback and bug reports on JSWDK to [EMAIL PROTECTED] A few notes about the use of this list. We at Sun enjoy hosting this list to give everyone a forum to discuss JSP, servlets and related technology. There are a few things that we ask of you, the list members: Please don't engage in advertising. We like to hear when new products are announced and a link for all the information. What we don't like are lengthy press releases, advertisements, and other material which falls under the umbrella term "marketing". There is no problem in stating how your product compares to another, but remember, this isn't run by Sun to be an advertising forum -- but as a technical forum. Please don't post attachments to the list. The use of VCards and S/MIME is not really needed on a list like this and is annoying to some whose readers don't support them. More serious is the posting of .zip files and other larger items. You might get flamed a little bit for S/MIME or posting in HTML. You will be removed from the list for posting a .zip or other archive file. If you need technical support from a vendor, please contact that vendor directly. Now, back to regularly scheduled programming. Anil Vijendran for the JSP/JSWDK team === 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: Listmaster
I agree, it's one of the best managed lists on the web with several hundred specific lists on asp Before you subscribe to a specific in you find many articles explaining things so you can read up before you subscribe, so you don't annoy list members with newbie questions Recommended (it's moderated!!!) http://www.asplists.com/asplists/aspjavacomponents.asp integrating asp/com with java components Stefan Demetz -Original Message- From: Raj Sinha [mailto:[EMAIL PROTECTED]] Sent: 06 September 2000 19:09 To: [EMAIL PROTECTED] Subject: Re: Listmaster All tyhe more better having graduated from asp, it would be a better idea to further split the list into specific areas. Some of the suggestions could be: 1. JSPBeginner 2. JSPAdvanced 3.JSPIBMwebSphere 4.JSPDatabases etc etc similar on the lines of what we have on www.learnasp.com It really works that way.Very Specific - Original Message - From: Jorge Barrera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 06, 2000 1:29 PM Subject: Re: Listmaster Listmaster, This is a good suggestion to split the JSP list into beginner advanced sections. I have been contemplating getting off the list service because many silly things come through here but every blue moon, some good piece of JSP information does come about. I second the motion. Jorge -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Stefan Demetz Sent: Wednesday, September 06, 2000 12:24 PM To: [EMAIL PROTECTED] Subject: Listmaster Listmaster, please put a system in place where newbies are forced to read a minimum of information (tutorials, recommended books,dev kits, tools, FAQs, servers) before joining the lists, otherwise every day we get the same questions and the list gets were low tech You could do this by sending the links to this info first,then delaying the subscription by about 24 hours or so, so they can read up and download the basics OR split the list into 2: newbies and oldies SD === 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 _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.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: How to test JRE?
2000-09-07
Thread
Maurice Coyle - Sun ireland - Software Products and Platforms - Internationalization Engineer
is the ./ necessary? Date: Wed, 6 Sep 2000 09:05:43 -0700 From: "Lambert, Stephen : CO IR" [EMAIL PROTECTED] Subject: Re: How to test JRE? To: [EMAIL PROTECTED] In a shell window I typed ./java -version Error: can't find libjava.so. Any suggestions? -Original Message- From: Tad Krolik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 05, 2000 4:30 PM To: [EMAIL PROTECTED] Subject: Re: How to test JRE? In the shell window, type: java -version Tad "Lambert, Stephen : CO IR" wrote: On a Redhat 6.2/Apache web server, I'm trying to install Jakarta-Tomcat. Included in the *readme* file from the Jakarta-Tomcat download, it says the following: 2. INSTALLING AND RUNNING TOMCAT Tomcat requires a Java Runtime Environment conformant to JRE 1.1 or later, including any Java2 platform system. So, I downloaded the JRE from : ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-1.3.0/ppc/ b2/ and followed the install instructions ie: cd /usr/local tar -Ixf j2jre-1.3.0beta-b02-linux-ppc.tar.bz2 chown -R desired_owner:desired_group jre1.3 export PATH=$PATH:/usr/local/jre1.3/bin Now how do I test to verify that the JRE is installed correctly? Or do I have to wait until Jakarta-Tomcat is configured to verify the JRE? Thanks. === 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 === 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
hi Alber.. i have try the method you mentioned,and it really works.:) but i get a question about the sequency of the method run.i code a servlet includeing HttpSession session = HttpServletRequest.getsession(); session.putValue("listenerobjcet",listener); HttpSessionBindingEvent sessionbind = new HttpSessionBindingEvent(session,"listener"); session.removeValue("listener"); listenerobject is a instance of the class implements HttpSessionBindingListener. but i found the valueBound( ) and valueUnbound( ) are both called when i run this servlet. why the valueBound ( ) method is also called ? The method putValue ( ) is coded before the Constructor of HttpSessionBindingEvent .:)) === 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
Jsp engine compatible with Domino
Hi , I'm really interesting in using JSP technologie but as i' m a beginner i need some help in the architecture i have to build. I'm obliged to use domino web server but which JSP engine could i add to ? I tried GNUJSP but is not strong enough, in fact too slow. TomCat is also complex and i didn't find some clear explanation to use it with domino. The last, WebSphere seems to be the best one but a bit complex to use... So does it exist other jsp engine compatible with domino, strong and quick ? Or if not, for the others i mentioned, where could i find some clear tutorial ? Txs. === 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: request object system memory (again)
2000-09-07
Thread
Maurice Coyle - Sun ireland - Software Products and Platforms - Internationalization Engineer
ok, so how much is too much? i realise it will depend on the amount of users, so i have probably just answered my own question. if so, can someone tell me how to work out the amount of info contained in the session variable at any given time, if this is possible? all replies greatly apprecited, maurice Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Date: Wed, 6 Sep 2000 15:45:26 -0700 From: Kevin Duffey [EMAIL PROTECTED] Subject: Re: request object system memory (again) To: [EMAIL PROTECTED] No..the request object uses memory only during its scope, a single request. Once the response goes back, the thread is freed up as well as any data (objects) created during that request. HOWEVER, there is one instance as far as I know..that can keep objects around after a request. The only thing that I know of is if you put an object in the request that has another reference to that same object in a longer scope. For example, if you store an object in the HttpSession or ServletContext, and put that same object in the request (say before forwarding to a JSP page or something), it will reside in memory until ALL references to the object are nulled out. In this case, if you have an object that has a reference to it stored in the HttpSession (or ServletContext) AND you have a reference to that object stored in the request object, then the actual memory will stay in use until the httpsession expires or you remove the object from the httpsession (or ServletContext). The GC won't do its thing until it can, so even though Java handles memory for you, you still have to do your part in making sure all references to an object in memory are nulled out. -Original Message- From: Jim Huffsmith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 06, 2000 1:34 PM To: [EMAIL PROTECTED] Subject: request object system memory (again) (I posted this question yesterday, but our ISP went down right afterwards. As a result, I was cut off from the list and didn't see any of the responses. Can we try it again?) I've heard that you should be careful not to overload the session object with data because it can have a big impact on memory requirements. Is this an issue with the request object as well? Or does the request object's shorter lifetime make it a non-issue? Jim Huffsmith Dove Solutions 641-469-5877 x103 == = 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
Help with Redirect
I'm trying to do a redirect in JSP using response.sendRedirect... and i'm getting this weird page which is a combination of 2 - 3 html pages together with headers and the following: " WIDTH="600" Document moved This document has moved Can anyone help? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.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
»Ø¸´: JSP tutorial online?
see http://java.sun.com/products/jsp -Original Message- ·¢¼þÈË: Robuschi (Delfi) [EMAIL PROTECTED] ÊÕ¼þÈË: [EMAIL PROTECTED] [EMAIL PROTECTED] ÈÕÆÚ: 2000Äê9ÔÂ6ÈÕ 23:46 Ö÷Ìâ: JSP tutorial online? Hello, I'm Roberto from Italy. Does anybody can tell me where can I find a good JSPBEANS tutorial online (if it exists) Thank you in advance!!! Robuschi Roberto Delfi srl P.za Ravenet 1/b - 43100 PARMA Tel. 0521/932411 Fax 0521/989045 [EMAIL PROTECTED] --- http://www.delfi.it === 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: Question regarding JSP and HTML forms
Kevin Jones wrote: The JSP page can access the form params any number of ways but typically through % myParam = request.getParameter("ParamName" % or more likely jps:useBean id="FormHandler" class="xyz" scope="request" jsp:setProperty name="formHandler" property="*" /? /jsp:useBean As you showed the above example with %%, I thought about the bottom one, but with one little difference. I'd rather write jsp:useBean id="FormHandler" class="xyz" scope="request" / jsp:setProperty name="formHandler" property="*" / Note the '/'s at the end of tags. I think in this particular situation the bean will live only during a request, so it doesn't matter where jsp:setProperty is. Am I right ? Kevin Jones Jacek Laskowski === 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: Help with Redirect
try the forward element: jsp:forward page="foobar.jsp" / regads, Stefan Bushev From: Ibrahim [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Help with Redirect Date: Thu, 7 Sep 2000 01:05:28 -0700 I'm trying to do a redirect in JSP using response.sendRedirect... and i'm getting this weird page which is a combination of 2 - 3 html pages together with headers and the following: " WIDTH="600" Document moved This document has moved Can anyone help? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.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 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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
jrun problem..urgent
I had posted a message a few days back but got no response. This is urgent. please help.thanks. I m using jrun as my servlet/jsp engine. in my jrun settings, i have given the java compiler as c:\jdk1.2.2\bin\javac.exe. when i give a request from my browser to the jsp page, it builds the corresponding .java file for the servlet. but when it tries to compile the .java file to .class file, there is an error reported to the browser: 500 internal server error usage:javac options source file and a listing of all the options for javac command. This is the usual message u get if u type just javac from ur command prompt. But when i compile the .java file manually from command prompt, it creates the .class files and subsequently when the jsp is requested from browser, i get the expected page. i think some setting for jrun i have missed. somebody using jrun, please help me out. thanks in advance. Rajesh. === 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
properties file for JSP(Urgent help reqd)
Hi All To invoke a servlet from jsp , I need to give url as /WebappPath/servlet/package name.servlet name in WebSphere app server. This WebAppPath ,I dont want to hard code in my JSPs. So I am thinking to read this WebAppPath from a property file of JSP to avoid hard coding in JSP. How to do that, pl. guide me.(If possible , particular to WebSphere/Visual age). If any other solution possible apart from property file , pl. let me know. Thanx in advance. *** * Ashutosh Kumar * HCL Perot Systems Ltd. * B-26, Sector-57 * Noida-201301. U.P. * India. * Phone: +91-11-8-4581236/37/38/39/40 * Fax: +91-11-8-4581235 * email: [EMAIL PROTECTED] *** === 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
(no subject)
sign off === 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
how to use Oracle Stored Procedure
Pls tell me how to use Oracle Stored Procedure in JSP's Naveen Gupta === 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: Hide and Show
hi, Rakesh.. you can just make the button for adv.search to be submit button of a form with hidden parameter and an action target - the same jsp, so in this jsp you may check for this hidden parameter, and if it is != null you may %@ include page="advsearch" % regards, Stefan Bushev. From: Rakesh Bhat [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Hide and Show Date: Thu, 7 Sep 2000 18:03:01 +0530 Hi all, I have following scenario. I have a jsp file called search.jsp. What this file does is to provide a searching option.(say by name). (This i call as simple search) I want to provide advanced search also in the same page. But this should be invisible when the page is rendered first time. The advanced search operations are available only when the user clicks a icon or button. I don't want to take him to the different page for advanced search. Is there any possibilities of achieving that ? Thx in advance Rakesh. === 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 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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
Hide and Show
Hi all, I have following scenario. I have a jsp file called search.jsp. What this file does is to provide a searching option.(say by name). (This i call as simple search) I want to provide advanced search also in the same page. But this should be invisible when the page is rendered first time. The advanced search operations are available only when the user clicks a icon or button. I don't want to take him to the different page for advanced search. Is there any possibilities of achieving that ? Thx in advance Rakesh. === 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
Setting to null a javabean property
Hi all, this is the question: if I set a javabean property to null in a jsp page, it seems the bean does not call the related method. Let's suppose a bean contains: public void setPropertyName (String in_par) { propertyName=in_par; }; if I put into jsp page: jsp:setProperty name="bean_id" property="propertyName" value="" /, the bean does not call the method setPropertyName; if I put into jsp page: jsp:setProperty name="bean_id" property="propertyName" value="*" /, the bean does call the method setPropertyName; but if do I need to empty the property "propertyName"? any suggestion is welcome Thank you all in advance Mauro Quartini Global Database Services S.r.l. Via V. Monti, 4 Milano, Italy tel +39 339 8039053 fax +39 2 66401992 [EMAIL PROTECTED] === 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: Setting to null a javabean property
I think this is fine.. no problem at all -Original Message- From: Mauro Quartini [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 07, 2000 8:37 PM To: [EMAIL PROTECTED] Subject: Setting to null a javabean property Hi all, this is the question: if I set a javabean property to null in a jsp page, it seems the bean does not call the related method. Let's suppose a bean contains: public void setPropertyName (String in_par) { propertyName=in_par; }; if I put into jsp page: jsp:setProperty name="bean_id" property="propertyName" value="" /, the bean does not call the method setPropertyName; if I put into jsp page: jsp:setProperty name="bean_id" property="propertyName" value="*" /, the bean does call the method setPropertyName; but if do I need to empty the property "propertyName"? any suggestion is welcome Thank you all in advance Mauro Quartini Global Database Services S.r.l. Via V. Monti, 4 Milano, Italy tel +39 339 8039053 fax +39 2 66401992 [EMAIL PROTECTED] === 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: Concurrent access to a file
Jamel Tayeb wrote: Hi Everybody, I want to read a configuration file from my Jsp application but I am having problems that I suspect are due to concurrent access to this file by multiple instances of the application. Does anybody know how to avoid conflicts? Will putting the code in a method that is declared synchronised solve the problem and guarantee safety? When two instances of a synchronised method (belonging to the same class) are executing, does the servlet engine detect and coordinate their execution? Concurrent access to the web resource is natural in JSP/Servlet environment. You can't rely on a servlet class that all information stores in its instance variables, if you do, you're asking for a trouble. To avoid conflicts you have to queue all the requests and run them one by one or just put the "sensitive" code inside synchronized block. In your particular situation, you caould create a helper class, e.g. SaveFile. One of the methods could be save() and to create an instance of the class, you'll have to call getInstance(). It decreses time to prepare file and do any file-related tasks. So, your code would look like: public class SaveFile { private static SaveFile instance = null; public static SaveFile getInstance() { if (instance == null) instance = new SaveFile(); return instance; } private RandomAccessFile raf = null; private SaveFile() { // open file // do something... } public void save() { synchronized(raf) { doSomethingWithRaf(); } } } You may also define save function as synchronized in the above snippet since you synchronizes all function's code, so actually whole function. Now, inside your JSP code (actually it should be invisible for HTML developer, so I'd suggest that that code should move to servlet or some other Tag), you'll write % SaveFile saveFile = SaveFile.getInstance(); saveFile.save(); % Actually, you could also put SaveFile object inside session, so the following servlets/jsps would use it without a need to call getInstance() method. Hope, you've got an idea. Jamel Tayeb Jacek Laskowski === 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: Bea Weblogic
From: JSP Insider [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Bea Weblogic Date: Thu, 7 Sep 2000 00:47:10 GMT I am looking into setting up a Mid sized JSP project and the customer is considering using Bea's WebLogic Platform. I have a really basic question of: Does it come with its own Java IDE (if so what is it called) or do you use a third party IDE with it. If you use a third party IDE, which one would work best? It doesn't come with an IDE. Bea owns Visual Cafe now but it may not be great still. JBuilder works with WebLogic fine. I use the ColdFusion editor to edit jsp's and ejb's which is also fine since the ide's still don't handle debugging very well. And Most importantly Also From the People using Bea, do you recommend it with JSP? WebLogic is a great JSP and EJB engine. If all you are needing is JSP support, you may not have to go as "high end" as WebLogic. WebLogic is bucks. I know these are basic questions, but I am trying to work my way around the marketing hype and get a honest appraisal and see what the developer community has to say. Thanks Much Casey Kochmer [EMAIL PROTECTED] www.jspinsider.com _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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
testing the request object
hi, is there any way to test the request object to see whether it contains form values ... i use request.getQueryString() but only with GET method. how about POST method? how to test whether the request == null or not.. Thanx C Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie === 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: Question regarding JSP and HTML forms
The difference bewtween jsp:useBean jsp:setProperty /jsp:useBean and /jsp:useBean ... / /jsp:setProperty / is that in the first case the setProperty only gets called when the bean is created, whereas in the second case the setProperty is always called. I prefer the first case for a number of reasons - I can't accidently do this jsp:useBean / % use the bean % jsp:setProperty / It gives me better 'encapsulation', I'm sure the bean is fully constructed before using it, etc. You pays your money and you takes your choice. Kevin Jones DevelopMentor www.develop.com -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Jacek Laskowski Sent: 07 September 2000 10:29 To: [EMAIL PROTECTED] Subject: Re: Question regarding JSP and HTML forms Kevin Jones wrote: The JSP page can access the form params any number of ways but typically through % myParam = request.getParameter("ParamName" % or more likely jps:useBean id="FormHandler" class="xyz" scope="request" jsp:setProperty name="formHandler" property="*" /? /jsp:useBean As you showed the above example with %%, I thought about the bottom one, but with one little difference. I'd rather write jsp:useBean id="FormHandler" class="xyz" scope="request" / jsp:setProperty name="formHandler" property="*" / Note the '/'s at the end of tags. I think in this particular situation the bean will live only during a request, so it doesn't matter where jsp:setProperty is. Am I right ? Kevin Jones Jacek Laskowski == = 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: Help with Redirect
But forwards and redirects are totally different things, so this doesn't answer the question, Kevin Jones DevelopMentor www.develop.com -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Stefan Bushev Sent: 07 September 2000 14:24 To: [EMAIL PROTECTED] Subject: Re: Help with Redirect try the forward element: jsp:forward page="foobar.jsp" / regads, Stefan Bushev From: Ibrahim [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Help with Redirect Date: Thu, 7 Sep 2000 01:05:28 -0700 I'm trying to do a redirect in JSP using response.sendRedirect... and i'm getting this weird page which is a combination of 2 - 3 html pages together with headers and the following: " WIDTH="600" Document moved This document has moved Can anyone help? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.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 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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: testing the request object
Hi Chad, try this method Enumeration enum = ServletRequest.getParameterNames(); Jamel TAYEB Software engineer, Medsoft. Chad Pitt wrote: hi, is there any way to test the request object to see whether it contains form values ... i use request.getQueryString() but only with GET method. how about POST method? how to test whether the request == null or not.. Thanx C Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie === 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: Question regarding JSP and HTML forms
Kevin Jones wrote: The difference bewtween jsp:useBean jsp:setProperty /jsp:useBean and /jsp:useBean ... / /jsp:setProperty / is that in the first case the setProperty only gets called when the bean is created, whereas in the second case the setProperty is always called. That's what I've said, but I've also said that in "scope=request" case it *does not* matter which one to use. That's because every time a request comes to a JSP page, a new bean is created (scope="request"). Therefore, both are the same as long as we use "request" or "page" scope. In the later, however, you save some extra typing:) Kevin Jones Jacek Laskowski === 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
Angela if you visit my site, I recently wrote up a long description of the session object which will be of help to you. www.jspinsider.com Hope this helps Casey Kochmer [EMAIL PROTECTED] From: Angela Chow [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: session Date: Thu, 7 Sep 2000 09:27:56 -0700 thanks for your reply :) i am very new to this concept. Is there anywhere that i can learn a little bit more about this? I've notice that Tomy Wong has put some code on his reply: HttpSession session = HttpServletRequest.getsession(); session.putValue("listenerobjcet",listener); HttpSessionBindingEvent sessionbind = new HttpSessionBindingEvent(session,"listener"); session.removeValue("listener"); I don't know where to put this code, is the jsp page, or in the bean? If in the jsp page, is it on every page? How do i set the length of time for the time-out? I am getting little confused. Please help me out! angela _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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
jsp suggestion requested
I have to design a jsp page like this. Screen will have name, address details, phone details and "contact" details User should be able to enter multiple addresses, multiple phones and multiple contacts. At the same time after adding multiple details, the same can be edited and deleted. My question is, Is it a good way to have seperate jsp's for address,phones for doing addition,editing the details? Is there any way i can achieve this with javascript in a simpler way? Any sample codes. Any suggestions are welcome. mani __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.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
ASCI Stream generatipon
Hi Everybody I have to develope a page which should return (vis STDOUT) an ASCII stream. How and what do they mean by this.??? The application requires this format to work Thnaks raj __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.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
Re: properties file for JSP(Urgent help reqd)
"Kumar, Ashutosh(sdc)" wrote: Hi All To invoke a servlet from jsp , I need to give url as /WebappPath/servlet/package name.servlet name in WebSphere app server. This WebAppPath ,I dont want to hard code in my JSPs. So I am thinking to read this WebAppPath from a property file of JSP to avoid hard coding in JSP. How to do that, pl. guide me.(If possible , particular to WebSphere/Visual age). If any other solution possible apart from property file , pl. let me know. Standard configuration for JSPs and servlets is WEB-INF/web.xml file. There, you can put all your configuration data and inside a servlet (JSP too as at the end it's a servlet), you are only required to call HttpServlet.getInitParameter(String name) to receive a value of a parameter. It's simple and *portable* across 2.2 compilant servlet engines. servlet servlet-name='myJSPpage' jsp-file='/myfirst.jsp' init-param param1='value1'/ init-param param2='value2'/ /servlet Take a look at the servlet container's documentation. * Ashutosh Kumar Jacek Laskowski === 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
java.lang.UnsatisfiedLinkError
Hi, I am trying to establish a connection to LDAP server from a JSP.However this is the error thrown.It is thrown when I create a DirContext and pass my environment variable to it. Is there anything that I am missing while using JNDI from JSP's ? java.lang.UnsatisfiedLinkError: doPrivileged at at at at at at javax.naming.InitialContext.(InitialContext.java:202) at javax.naming.directory.InitialDirContext.(InitialDirContext.java:87) This si extract from the code. Hashtable env = new Hashtable(11); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, "ldap://localhost:389/o=pinol1.sfba.home.com"); env.put(Context.SECURITY_PRINCIPAL, "cn=Directory Manager"); env.put(Context.SECURITY_CREDENTIALS, "admin123"); try { // Create the initial context DirContext ctx = new InitialDirContext(env); // Get the schema tree root out.println("got context"); DirContext schema = ctx.getSchema(""); Any Suggestions. Thanks, Raj _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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
NoClassDefFoundError ldap
Hi, I had posted a message earlier also,with regards to this problem. I am trying to create a directory context and pass it an environment variable,however I am getting this error.Earlier I also got UnsatisfiedLinkError.I am Netscape Directory Server4.1 java.lang.NoClassDefFoundError: com/sun/naming/internal/ResourceManager at at javax.naming.InitialContext.(InitialContext.java:202) at javax.naming.directory.InitialDirContext.(InitialDirContext.java:87) This is extract from the code. Hashtable env = new Hashtable(11); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, "ldap://localhost:389/o=pinol1.sfba.home.com"); env.put(Context.SECURITY_PRINCIPAL, "cn=Directory Manager"); env.put(Context.SECURITY_CREDENTIALS, "admin123"); try { // Create the initial context DirContext ctx = new InitialDirContext(env); // Get the schema tree root out.println("got context"); DirContext schema = ctx.getSchema(""); Any Suggestions. Thanks, Raj _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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
Re: Apache on Win2K
I'm running apache 1.3.12 / tomcat 3.1 / jdk1.3 / mod_jserv on Win2K and on NT with no visible difference between them. Works great! Chris - Original Message - From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 07, 2000 3:05 AM Subject: Apache on Win2K Hi, I know it is a silly question. But I just want to make sure from you guys that Apache really can work fine with Win2K before I upgrade to it. So, are Apache, GNUJSP Apache JServ really can work on Win2K? Regards, Muliawan Nettaxi Shopping Exchange - compare products and prices, even negotiate! You pick your own price http://www.nextag.com/serv/nettaxi/buyer/Home.jsp === 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
Problem with if statement
I am trying to do something based on if key is equal to "AT", but I am not getting any results. It acts as if key is not equal to "AT", but I can use out.println(key) get "AT". Does anyone know why this might not be working? if (key == "AT") { ..do something... } thanks, Aaron :::..:::...::: Aaron Prohaska :::..:::...::: VerdeSoft Internet Services mailto:[EMAIL PROTECTED] http://www.verdesoft.net/ === 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: Problem with if statement
Hi, I suppose key is a String,in that case you will need to do this if(key.equals("AT"). Hope this helps. From: Aaron Prohaska [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Problem with if statement Date: Thu, 7 Sep 2000 11:39:30 -0700 I am trying to do something based on if key is equal to "AT", but I am not getting any results. It acts as if key is not equal to "AT", but I can use out.println(key) get "AT". Does anyone know why this might not be working? if (key == "AT") { ..do something... } thanks, Aaron :::..:::...::: Aaron Prohaska :::..:::...::: VerdeSoft Internet Services mailto:[EMAIL PROTECTED] http://www.verdesoft.net/ === 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 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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
Re: Problem with if statement
Aaron, I think you have to use something like this: if (key.equals("AT"){ ...do something... } because (supposed) key is a string. Yi Aaron Prohaska wrote: I am trying to do something based on if key is equal to "AT", but I am not getting any results. It acts as if key is not equal to "AT", but I can use out.println(key) get "AT". Does anyone know why this might not be working? if (key == "AT") { ..do something... } thanks, Aaron :::..:::...::: Aaron Prohaska :::..:::...::: VerdeSoft Internet Services mailto:[EMAIL PROTECTED] http://www.verdesoft.net/ === 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 -- Java Programmer |INVISIBLE.INK | http://www.inink.com 1400 Old Country Road Suite 408 | Westbury, NY 11590 Phone: (516) 338 - 5283 Ext.148 | Fax: (516) 876 - 8032 === 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: Problem with if statement
Comparing String with == operator does not work. In such a comparison only the references are checked for equality rather than the values. In order to check for equality based on value try if(key.equals("AT")){ } Irfan -Original Message- From: Aaron Prohaska [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 07, 2000 11:39 AM To: [EMAIL PROTECTED] Subject: Problem with if statement I am trying to do something based on if key is equal to "AT", but I am not getting any results. It acts as if key is not equal to "AT", but I can use out.println(key) get "AT". Does anyone know why this might not be working? if (key == "AT") { ..do something... } thanks, Aaron :::..:::...::: Aaron Prohaska :::..:::...::: VerdeSoft Internet Services mailto:[EMAIL PROTECTED] http://www.verdesoft.net/ === 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: Problem with if statement
Hi, You better use: if (key.compareTo("AT")==0) since compareTo methods compares the string value but .equals compares objects. -Mohammad, - Original Message - From: "Raj S" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 07, 2000 2:01 PM Subject: Re: Problem with if statement Hi, I suppose key is a String,in that case you will need to do this if(key.equals("AT"). Hope this helps. From: Aaron Prohaska [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Problem with if statement Date: Thu, 7 Sep 2000 11:39:30 -0700 I am trying to do something based on if key is equal to "AT", but I am not getting any results. It acts as if key is not equal to "AT", but I can use out.println(key) get "AT". Does anyone know why this might not be working? if (key == "AT") { ..do something... } thanks, Aaron :::..:::...::: Aaron Prohaska :::..:::...::: VerdeSoft Internet Services mailto:[EMAIL PROTECTED] http://www.verdesoft.net/ === 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 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.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: Problem with if statement
Use if (key.equals("AT")) I think these type of question go to general Java mailing list? This list should have only JSP related issues. Thanks - Kamal. Aaron Prohaska wrote: I am trying to do something based on if key is equal to "AT", but I am not getting any results. It acts as if key is not equal to "AT", but I can use out.println(key) get "AT". Does anyone know why this might not be working? if (key == "AT") { ..do something... } thanks, Aaron :::..:::...::: Aaron Prohaska :::..:::...::: VerdeSoft Internet Services mailto:[EMAIL PROTECTED] http://www.verdesoft.net/ === 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: session
Correction, The following JSP statement jsp:useBean id="MyListener" scope="session" class="MyBindingListener" / wouldn't work as it because the class example I gave did not contain a default constructor. The correct way is to: 1. Add a default constructor 2. Add a setter/getter method for ServletContext 3. Use the usebean tag in conjunction with the setProperty tag. Albert -Original Message- From: Albert Wong [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 07, 2000 11:54 AM To: [EMAIL PROTECTED] Subject: Re: session Hi You can do the following: 1. Create a class implementing the interface: import javax.servlet.*; import javax.servlet.http.*; public class MyBindingListener implements HttpSessionBindingListener { // Save a reference to your ServletContext assuming you put your // Database connection pool there. ServletContext context; public MyBindingListener(ServletContext context) { this.context = context; } public void valueBound(HttpSessionBindingEvent event) { HttpSession session = event.getSession(); DBConnectionPool = (DBConnectionPool)context.getAttribute("DBPool"); DBConnection connection = pool.getConnection(); Statement statement = connection.createStatement(); statement.executeInsert("Recording start of session for " + session.getId()); connection.close(); } public void valueUnbound(HttpSessionBindingEvent event) { HttpSession session = event.getSession(); DBConnection connection = pool.getConnection(); Statement statement = connection.createStatement(); statement.executeInsert("Recording end of session for " + session.getId()); connection.close(); } } 2. Add the object to your session: HttpSession session = req.getSession(true); session.setAttribute("MyListener", new MyBindingListener(getServletContext()); Alternatively if your adding it using JSP: jsp:useBean id="MyListener" scope="session" class="MyBindingListener" / 3. That's it. Behind the scenes the following events happens in the HttpSession: public void setAttribute(String name, Object value) { // Remove the attribute if it already exists // store the attribute in the session (generally it's a hashtable) // if "value" is an instanceof HttpSessionBindingListener // call it's valueBound method } public void removeAttribute(String key) { // Retreive the object from session (eg. hashtable) // Remove the object from the session // If the object is an instance of HttpSessionBindingListener // call it's valueUnbound method } Albert -Original Message- From: Angela Chow [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 07, 2000 9:28 AM To: [EMAIL PROTECTED] Subject: Re: session thanks for your reply :) i am very new to this concept. Is there anywhere that i can learn a little bit more about this? I've notice that Tomy Wong has put some code on his reply: HttpSession session = HttpServletRequest.getsession(); session.putValue("listenerobjcet",listener); HttpSessionBindingEvent sessionbind = new HttpSessionBindingEvent(session,"listener"); session.removeValue("listener"); I don't know where to put this code, is the jsp page, or in the bean? If in the jsp page, is it on every page? How do i set the length of time for the time-out? I am getting little confused. Please help me out! angela --- Albert Wong [EMAIL PROTECTED] wrote: Consider using javax.servlet.http.HttpSessionBindingListener. When a session is invalidated (either the user logged out resulting in your explictly invalidating their session, or because their session timed out) and is about to be removed, the servlet container iterates through the contents of your user's session, calling HttpSessionBindingListener.ValueUnBound on any objects in the session that implement the HttpSessionBindingListener interface. So, in your case if the user does not log out, then their session will eventually expire. When that happens, if you put an object implementing HttpSessionBindingListener into the session, it's ValueUnBound method get's called. Within this callback, you can do your JDBC update) Albert -Original Message- From: JSP Insider [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 06, 2000 5:54 PM To: [EMAIL PROTECTED] Subject: Re: session Do you have cookies enabled? On the close out question. You can use Javascript, put code in the document close event. This code can trigger opening another page which then performs the required operation. (the other page can then close itself in the open event.) We have coded something similiar for an ASP app we built a while ago, so I know, that it should work. At least in theory... Other than coding a trick like this, you cant know when the using just shuts the window. one of the disadvantages of a web application. Casey Kochmer [EMAIL
Re: session
Angela Chow wrote: thanks for your reply :) i am very new to this concept. Is there anywhere that i can learn a little bit more about this? I've notice that Tomy Wong has put some code on his reply: HttpSession session = HttpServletRequest.getsession(); session.putValue("listenerobjcet",listener); HttpSessionBindingEvent sessionbind = new HttpSessionBindingEvent(session,"listener"); session.removeValue("listener"); I don't know where to put this code, is the jsp page, or in the bean? If in the jsp page, is it on every page? How do i set the length of time for the time-out? I am getting little confused. Please help me out! I'd suggest that any Java code puts either in Tag Extensions or servlets. Going even a little further, try to follow Model 2 ideas. Create *one* servlet controller which controls who should do what. In that case, all JSPs do is only to display beans' state. To answer your question(s), just put it inside servlet controller, so the following JSP pages can use it. After that, just forward request to JSP to display it. When you becomes more familiar with that approach, you won't have to search all your code, just to check out whether everything is right. All you'll have to do is to open *one* servlet controller and modify it as you wish. Simple ? Yes, it should be:) angela Jacek Laskowski === 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: Problem with if statement
It's Java101, not JSP at all!!! You are comparing 2 objects instead of comparing to content. Use key.equals( "AT" ) and not the == and start to look at the documentation. Frédérik Delacourt --- "A mind once stretched by a new idea never regains its original dimension." --Oliver Wendell Holmes -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron Prohaska Sent: Thursday, September 07, 2000 1:40 PM To: [EMAIL PROTECTED] Subject: Problem with if statement I am trying to do something based on if key is equal to "AT", but I am not getting any results. It acts as if key is not equal to "AT", but I can use out.println(key) get "AT". Does anyone know why this might not be working? if (key == "AT") { ..do something... } thanks, Aaron :::..:::...::: Aaron Prohaska :::..:::...::: VerdeSoft Internet Services mailto:[EMAIL PROTECTED] http://www.verdesoft.net/ === 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: Problem with if statement
Thanks everyone. I actually used key.equalsIgnoreCase("AT") and its works perfectly. Aaron :::..:::...::: Aaron Prohaska :::..:::...::: VerdeSoft Internet Services mailto:[EMAIL PROTECTED] http://www.verdesoft.net/ -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Pierce Sent: Thursday, September 07, 2000 12:16 PM To: [EMAIL PROTECTED] Subject: Re: [JSP-INTEREST] Problem with if statement try this: if (key.equals("AT")) { // do something } -Original Message- From: Aaron Prohaska [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 07, 2000 1:40 PM To: [EMAIL PROTECTED] Subject: Problem with if statement I am trying to do something based on if key is equal to "AT", but I am not getting any results. It acts as if key is not equal to "AT", but I can use out.println(key) get "AT". Does anyone know why this might not be working? if (key == "AT") { ..do something... } thanks, Aaron :::..:::...::: Aaron Prohaska :::..:::...::: VerdeSoft Internet Services mailto:[EMAIL PROTECTED] http://www.verdesoft.net/ === 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: Help with Redirect
Try application.getRequestDispatcher(URL).forward(request,response); or jsp:forward page="/path/page.jsp" / Also, you may want to do a %@ page flush="false" / at the top of a page using the redirect as well as pages being used by the redirect. Look at the JSP Syntax Card, at java.sun.com (or javasoft.com). Go to products/apis, in the pull-down list go to Java Server Pages, and on the far right side, towards the bottom, you'll see a JSP Syntax Card PDF link. Go to it, print it out..live by it. ;) -Original Message- From: Ibrahim [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 07, 2000 1:05 AM To: [EMAIL PROTECTED] Subject: Help with Redirect I'm trying to do a redirect in JSP using response.sendRedirect... and i'm getting this weird page which is a combination of 2 - 3 html pages together with headers and the following: " WIDTH="600" Document moved This document has moved Can anyone help? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.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: Question regarding JSP and HTML forms
No. JavaScript is client side..it operates in the web browser. JSP is a server-side technology. You can use scriplets to return dynamic content, including dynamic inline JavaScript code, but you can't use JSP pages once the response (the JSP page contents) has been sent back to the browser. Only JavaScript can be used. However, you can manipulate the form elements in JSP pages, just as you would in a servlet. -Original Message- From: Ryan Richards [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 06, 2000 11:32 AM To: [EMAIL PROTECTED] Subject: Question regarding JSP and HTML forms Question: I am trying to use JSP's for a project I am working on. Can I use JSP to obtain information from HTML form elements as I would do in JavaScript? hence eliminating the need for JavaScript altogether? Any links to JSP-HTML Form info would be appreciated. I have had trouble finding specific info on this subject. Ryan __ _ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot. == = 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
Tomcat and JServ Installation
Dear all, I'm new to JSP and Servletand I'd like install the Servlet Engine and the JSP Plug-in for Apache What software do I need to go that? What's the different between Tomcat and JServ? How do I install them to be a Apache Module? Sorry for so many questions If it's too long to write hereplease divert me to any good tutorial on the net~ Thanks Kelly === 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
Book reccomendation: Core Servlets and Java Server Pages by M. Ha ll, addresses most of the FAQs on this liist.
Hi, there have been many questions on this list recently about basic JSP/Servlet programming, that are nicely addressed by an available text: core servlets and javaserver pages by Marty Hall of JHU/APL. Especially useful is is appendix A, which is an outline of programming technqiues for JSP/Servlet programming, somewhat like an exam cram sheet, but for something useful. For those of you too cheap to buy this book, some of the content is available in his tutorial web page: http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/ But if you are making your living at this, buy the book, it will pay for itself quickly. Also of use is the text:Web Development with Java Server Pages by Duane K. Fields, Mark A. Kolb (Paperback ) for it's useful coverage of the WAR application packaging format in a chapter entitled "The Art of WAR". Looking forward to reading about stuff niot in these fine books on this mailing list, Andy ([EMAIL PROTECTED]) === 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
File retrieve using HTTPS connection
Sorry for posting this question on the JSP list , this is not a very JSP specific issue , but I am running out of resources , thought someone on this list may have an answer. Appreciate your responses. I am trying to retrieve a file from a https connection, while doing so I get an access denied error. I have verified the userid and password , they are correct because I am able to post a file on to the same location with the same user id and password. The file extension is .log and my content-type has a value of text/html , but I have'nt had success in changing the Content-type. This is my code URL url = new URL("https://file location"); URLConnection urlC = url.openConnection(); HttpsURLConnection theConnection = (HttpsURLConnection)urlC; // Print info about resource for (int i = 0; i 10; i++) { String headerKey = theConnection.getHeaderFieldKey(i); System.out.print("HeaderKey " + i + ": " + headerKey); System.out.println(" Value: " + theConnection.getHeaderField(i)); } // Copy resource to local file, use remote file InputStream is = urlC.getInputStream(); // Get File Name StringTokenizer st = new StringTokenizer(url.getFile(), "/"); String fileName = null; while (st.hasMoreTokens()) { fileName = st.nextToken(); } FileOutputStream fos = new FileOutputStream(fileName); int oneChar, count=0; while ((oneChar=is.read()) != -1) { fos.write(oneChar); count++; } is.close(); fos.close(); This is the output Opening connection: [https://benetest.selfservicenow.com/servicecenter/upload/SS00_2000_09_07_01.log] Connection opened: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection:https://benetest.selfservicenow.com/servicecente Connection Type: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection HeaderKey 0: null Value: HTTP/1.1 401 Access Denied HeaderKey 1: WWW-Authenticate Value: NTLM HeaderKey 2: Connection Value: close HeaderKey 3: Content-Length Value: 644 HeaderKey 4: Content-Type Value: text/html HeaderKey 5: null Value: null HeaderKey 6: null Value: null HeaderKey 7: null Value: null HeaderKey 8: null Value: null HeaderKey 9: null Value: null Expected size is: 644 Resource type: text/html Last modified on: Wed Dec 31 19:00:00 EST 1969... Permission is: (java.net.SocketPermission benetest.selfservicenow.com:80 connect,resolve) OPENING STREAM java.io.FileNotFoundException: https://benetest.selfservicenow.com/servicecenter/upload/SS00_2000_09_07_01.log The file does exist , because I can see it when I view it through the browser Thanks in advance Santosh === 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: Problem with if statement
Strings are not compared using == in Java Use String.equals("another string")as Jeniffer pointed out - Original Message - From: Jennifer Buffington [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 07, 2000 3:12 PM Subject: Re: Problem with if statement This is a java problem... try if (key.equals("AT") { ... do something... } Look up the difference between == and equals. -Original Message- From: Aaron Prohaska [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 07, 2000 11:40 AM To: [EMAIL PROTECTED] Subject: Problem with if statement I am trying to do something based on if key is equal to "AT", but I am not getting any results. It acts as if key is not equal to "AT", but I can use out.println(key) get "AT". Does anyone know why this might not be working? if (key == "AT") { ..do something... } thanks, Aaron :::..:::...::: Aaron Prohaska :::..:::...::: VerdeSoft Internet Services mailto:[EMAIL PROTECTED] http://www.verdesoft.net/ === 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: Book reccomendation: Core Servlets and Java Server Pages by M . Ha ll, addresses most of the FAQs on this liist.
I would second Andy's recommendation for buying Core Servlets and Java Server Pages. There's even an example of an online store that uses a shopping cart and session tracking, online travel agent, embedding applets, using JDBC, and creating custom tag libraries. It also talks a little bit about Tomcat, JSWDK, and JWS, HTML Forms, and JavaBeans. I highly recommend it. -Richard -Original Message- From: Andy Purshottam [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 07, 2000 2:03 PM To: [EMAIL PROTECTED] Subject: Book reccomendation: Core Servlets and Java Server Pages by M. Ha ll, addresses most of the FAQs on this liist. Hi, there have been many questions on this list recently about basic JSP/Servlet programming, that are nicely addressed by an available text: core servlets and javaserver pages by Marty Hall of JHU/APL. Especially useful is is appendix A, which is an outline of programming technqiues for JSP/Servlet programming, somewhat like an exam cram sheet, but for something useful. For those of you too cheap to buy this book, some of the content is available in his tutorial web page: http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/ But if you are making your living at this, buy the book, it will pay for itself quickly. Also of use is the text:Web Development with Java Server Pages by Duane K. Fields, Mark A. Kolb (Paperback ) for it's useful coverage of the WAR application packaging format in a chapter entitled "The Art of WAR". Looking forward to reading about stuff niot in these fine books on this mailing list, Andy ([EMAIL PROTECTED]) === 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: Book recommendation: Core Servlets and Java Server Pages by M . Ha ll, addresses most of the FAQs on this liist.
Me too. I have been using it for a few weeks. It also has a nice section on JDBC too. http://www.coreservlets.com/ Another good one is Professional JSP from WROX. It is a big red book with a bunch of developer's photos on the cover. http://www.wrox.com/Consumer/Default.asp?Category=Java For more advanced Bean development (important for any java/jsp developer): Advanced Java 2 Development for Enterprise Applications from Sun Microsystems Press http://www.ajdea.com/ -Original Message- From: Richard Yee [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 07, 2000 4:36 PM To: [EMAIL PROTECTED] Subject: Re: Book reccomendation: Core Servlets and Java Server Pages by M . Ha ll, addresses most of the FAQs on this liist. I would second Andy's recommendation for buying Core Servlets and Java Server Pages. There's even an example of an online store that uses a shopping cart and session tracking, online travel agent, embedding applets, using JDBC, and creating custom tag libraries. It also talks a little bit about Tomcat, JSWDK, and JWS, HTML Forms, and JavaBeans. I highly recommend it. -Richard === 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: Problem with getRequestDispatcher()
I am using weblogic 5.1.0 with netscape server 3.6. I have problems using getRequestDispatcher(), method. No error at the weblogic and netscape log files, it is compiling the jsp file and creating myserver/classfiles/jsp_servlet/_jsp/_confirm classfile under weblogic directory, but the netscape displaying just the html tags as if it is a text file, IE is saying page cannot be displayed, The code is like this, getServletConfig().getServletContext().getRequestDispatcher ("/jsp/Test.jsp").forward(req, res); It is working fine with weblogic 4.5 and netscape server 3.6. This looks to me as a MIME/Content-Type issue. The HTTP response is having text/plain as Content type. Check whether u have a MIME-TYPE or Content-Type set for .jsp file suffix. This you can check throgh ur Netscape Admin. Go to ur Netscape instance admin screen and click on MIME Types link under preferences TAB. Now check for text/html content-type and the file suffix's it is associated with. If you dont find jsp add jsp. Now apply changes, bounce NES instance and try again. -Shiraz === 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
Reading Context Params from web.xml
Hi, Is there a way to programatically read the context params specified in the web.xml file under the WEB-INF directory. TIA, gg === 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: Reading Context Params from web.xml
Like this: String value = getServletContext().getInitParameter("paramname"); Craig McClanahan Gaurav Gehlot wrote: Hi, Is there a way to programatically read the context params specified in the web.xml file under the WEB-INF directory. TIA, gg === 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 -- See you at ApacheCon Europe http://www.apachecon.com! Session VS01 (23-Oct 13h00-17h00): Sun Technical Briefing Session T06 (24-Oct 14h00-15h00): Migrating Apache JServ Applications to Tomcat === 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: Reading Context Params from web.xml
Is there a way to programatically read the context params specified in the web.xml file under the WEB-INF directory. You can access it from servlet and JSP. For e.g. context-param param-nameidleTimeout/param-name param-value30/param-value /context-param From Servlet: String idleTimeoutValue = getServletContext().getInitParameter("idleTimeout"); From JSP: % String idleTimeoutValue = application.getInitParameter("idleTimeout"); % -Shiraz === 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: testing the request object
how about req.getParameterNames(). - Original Message - From: Chad Pitt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 07, 2000 9:45 PM Subject: testing the request object hi, is there any way to test the request object to see whether it contains form values ... i use request.getQueryString() but only with GET method. how about POST method? how to test whether the request == null or not.. Thanx C Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie === 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: session
Hi Laskowski, As I understand , one uses JSP over Servlet because writing a JSP code is simpler compared to Servlet.Right ? They are 2 different server side technologies. I agree that JSP finally compiles into a Servlet.But , i don't understand why one will use JSP and servlet together ? When you use JSP , all the objects like request , session... are available implicitly which you get in servlet by extending HTTPServletRequest class. right ? So why one will use Servlet with JSP? As I understand one uses Java code in a separate bean because he/she wants to hide the business logic. Right ? Why to keep the same code in a servlet ? Is my thinking correct or am i missing here something ? Thx in advance Rakesh. Jacek Laskowski wrote: Angela Chow wrote: thanks for your reply :) i am very new to this concept. Is there anywhere that i can learn a little bit more about this? I've notice that Tomy Wong has put some code on his reply: HttpSession session = HttpServletRequest.getsession(); session.putValue("listenerobjcet",listener); HttpSessionBindingEvent sessionbind = new HttpSessionBindingEvent(session,"listener"); session.removeValue("listener"); I don't know where to put this code, is the jsp page, or in the bean? If in the jsp page, is it on every page? How do i set the length of time for the time-out? I am getting little confused. Please help me out! I'd suggest that any Java code puts either in Tag Extensions or servlets. Going even a little further, try to follow Model 2 ideas. Create *one* servlet controller which controls who should do what. In that case, all JSPs do is only to display beans' state. To answer your question(s), just put it inside servlet controller, so the following JSP pages can use it. After that, just forward request to JSP to display it. When you becomes more familiar with that approach, you won't have to search all your code, just to check out whether everything is right. All you'll have to do is to open *one* servlet controller and modify it as you wish. Simple ? Yes, it should be:) angela Jacek Laskowski === 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