about jsp:include
hi everybody: same sample as last quesion. is it ok if i change the element of "%@ include file="response.jsp" %" to jsp:include page="response.jsp" flush="true" /? it works wrong in my server. it is like my server do not the element of "flush". and it tell me "com.sun.jsp.JspException: "Include: Invalid attribute, flush"". if i take it out, the first page is ok. but whatever i type in the text, the server response the error of "com.sun.jsp.JspException: Unable to compile class for JSP: null". i want to know the difference between these two elenents. thanks for your help. javabean file: public class HiBean { private String usename; public HiBean() { usename=null; } public void setusename(String name){ this.usename=name; } public String getusename(){ return usename; } } myjsp.jsp: html body form method="get" input type="text" name="usename" br input type="submit" value="Submit" /form % if (request.getParameter("usename")!=null) { % %@ include file="response.jsp" % % } % /body /html response.jsp file: Hello jsp:getProperty name="hello" property="usename" /! === 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
U can save data in one jsp call the other. Suppose u save some data in a.jsp wantto use it in b.jsp -- get the values in a.jsp by request.getParameter(), then call b.jsp with the same parameters. -- From: Lakshmi Anantharaman[SMTP:[EMAIL PROTECTED]] Reply To: A mailing list about Java Server Pages specification and reference Sent: Thursday, April 13, 2000 1:17 AM To: [EMAIL PROTECTED] Hi all, I have a jsp question. I have a jsp program A.jsp which actually defines a frame. I have two jsp pages b.jsp and c.jsp in the frame set. I have a servlet which fetches some data from the database and calls A.jsp with the data. I used request dispatcher to do this and I also added the data using request.setattribute. I am also able to see the data I fetched in A.JSP, but the data should actually be displayed in frame 1 which is b.jsp which has the logic to retrieve this data. It fails with a null pointer exception. In other words, do you know how to save some data in one jsp page and use it in another. I know this can be done using sessions. But I will be fetching a huge chunk of data and I am not sure If i should use session variables to save this. Please advise. Thanks and regards Ganesh === 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
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: Heavy-weight context switch
Question: Is it possible to put variables, in JSP, outside of the per-request scope, such what we can do the pooling also? Answer: Use scope="session" in the jsp tag Ex: jsp:useBean id="beanName" class="com.companyName.packageName" scope="session"/ === 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
If you do not want to use the session object to store the date, a solution could be to get the data in A.jsp and then set them in the src as request param to get them in b.jsp : b.jsp?param=val Or you could also, group all yout data in a bean and only save the bean in the session to be able to get these data from any jsp files and once you get your bean you can destroy it from session object if you want to be sure to not use these data several times. Regards Veronique Lakshmi Anantharaman a écrit : Hi all, I have a jsp question. I have a jsp program A.jsp which actually defines a frame. I have two jsp pages b.jsp and c.jsp in the frame set. I have a servlet which fetches some data from the database and calls A.jsp with the data. I used request dispatcher to do this and I also added the data using request.setattribute. I am also able to see the data I fetched in A.JSP, but the data should actually be displayed in frame 1 which is b.jsp which has the logic to retrieve this data. It fails with a null pointer exception. In other words, do you know how to save some data in one jsp page and use it in another. I know this can be done using sessions. But I will be fetching a huge chunk of data and I am not sure If i should use session variables to save this. Please advise. Thanks and regards Ganesh === 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: ASKING FOR HELP: Unhandled error!
Hi, wildwolf horse a écrit : Hi Veronique Dupierris: thanks a lot for your help. I just checked the it in Webserver.xml and I added it like that WebApplication id="WebApp" mapping="/WebApp" docBase="WebApp" / I tried your's but it seems not work too. Maybe I should specify the path? Yes, you should specify your path in docBase Now I moved to examples path, thanks god it works. But now I met another funny problem. At first I put my *.jsp and *.html files in C:\jswdk-1.0.1\examples\jsp\testOne\ my beans in C:\jswdk-1.0.1\Webapp\Web-inf\jsp\beans\testOne\ I run the jsp file it works perfectly. Then I moved the jsp and html file to C:\jswdk-1.0.1\examples\jsp\tutorial\testOne\ when I run it the jspengine tole me: Unhandled error! com.sun.jsp.compiler.ParseException: Cannot read file: C:\jswdk-1.0.1\examples\jsp\testOne\golferror.html That means the engine still think the html file should be in old directory. Even I reboot the machine or put the html file to C:\jswdk-1.0.1\webpages\, it still not work. So the jsp engine has a very strong memory and if you put your file in one directory, you don't have chance to move to another? How can I solve this funny problem? I'm not really sure that the jsp engine has a strong memory ;) How do you access to golferror.html ? is it a link in an other pages, the error page of a jsp page or do you try to access this page directly? I tried to change the 'cal' example from example/jsp/cal to example/jsp/tutorial/cal and it works well, except of course, the images and links to specific location Thanks a lot for great help. Smart. Veronique __ Do You Yahoo!? Send online invitations with Yahoo! Invites. http://invites.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
using jsp-scope request in a servlet
I want to create a bean in a jsp page with scope=request The request is, however not sent to another jsp page but to a servlet. How can I access this bean in the servlet? I know I can work around by making scope=session, but then I have to do the cleanup etc. Any help would be appreciated, Fred __ Get Your Private, Free Email at http://www.hotmail.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 and cookies
Hi, U can maintain a database of names coresponding passwords. Everytime a user logs in, do something like, boolean ok = obj.getPassword(loginName,passwd,group); if (ok) //The method returns true if the name matches the passwd allow(); else donotAllow(); -- From: Nadeem[SMTP:[EMAIL PROTECTED]] Reply To: A mailing list about Java Server Pages specification and reference Sent: Thursday, April 13, 2000 3:58 AM To: [EMAIL PROTECTED] Subject:session and cookies Hello Folks, Can anyone hlep me with this scenerio and how to achieve this goal. Say for example there is a variable called Abc, and thre are more varibale like that. We defined a varibale in an index.jsp which is like a default page. Somone logs in, how do we go about making sure that person wehn he logs in, logs in to that abc group. Another words he should be a part of that gorup. So its more line this, if person A belongs to abc, then he should only get those right that group abc has. Same thing if B belongs to DEF, he should get those rights. ABC, and DEF and many more all have ID's. Trying to achieve this by passing those variable ID. Any help in this matter will be appreicated. You can email me if yo have more question to [EMAIL PROTECTED] Thank you. === 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: JSP and Javascript
why don't u try HTML meta tag for refresh after say, every 5 sec.? -- From: Cogley, Jonathan[SMTP:[EMAIL PROTECTED]] Reply To: A mailing list about Java Server Pages specification and reference Sent: Wednesday, April 12, 2000 5:38 PM To: [EMAIL PROTECTED] Subject:Re: JSP and Javascript Hi, Try using the JSP expression syntax ... %= % e.g. SCRIPT LANGUAGE="JavaScript" document.location = '%= response.encodeURL("yourURLwithParamsHere!") %'; /SCRIPT You could probably even add the params you want afterwards ... just use the JavaScript escape() function to watch out for bad characters. e.g. SCRIPT LANGUAGE="JavaScript" document.location = '%= response.encodeURL("yourURL") %myParam=' + escape(document.myParam.value); /SCRIPT I don't actually know but I assume the encodeURL adds some Session/URL token to the URL that you need to maintain session ... ? Hope that helps! Jonathan -Original Message- From: Joachim Schaaf [mailto:[EMAIL PROTECTED]] Sent: 11 April, 2000 1:07 PM To: [EMAIL PROTECTED] Subject: JSP and Javascript Hi, is there an intelligent way to combine JSP and Javascript? I want to use some entry fields (choices etc.) to specify search parameters in the JSP page; the question is: how do I get the values? I have tried to reload the page with onChange and appended "?param=value", but then I loose my session, because I can not use response.encodeUrl from Javascript. Any ideas? Joachim -- IoS - Gesellschaft fuer innovative Softwareentwicklung mbH Web: http://IoS.PZwo.de/, http://IoS.PZwo.de/team/js/ Tel/Fax: +49-2234-983590/986433, Mobile: +49-170-4861253 Email: [EMAIL PROTECTED] - PGP mails welcome. Linux-Kontor: http://www.Linux-Kontor.de/ === 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: Heavy-weight context switch
Question: Is it possible to put variables, in JSP, outside of the per-request scope, such what we can do the pooling also? Answer: Use scope="session" in the jsp tag Ex: jsp:useBean id="beanName" class="com.companyName.packageName" scope="session"/ Maybe not. Session variables are very different from class variables in servlets. The former has a from-page-to-page scope, while the later is focused on a single page, among different requests. === 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: Writing XML in JSP file
Yes you can. The main requirement is to include something like the following ?xml version="1.0" encoding="UTF-8"? ?xml:stylesheet type="text/xsl" href="mvppdsal.xsl" ? where the href points to your XML style sheet The style sheet contains all the HTML instead. -Original Message- From: Nishi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 12, 2000 11:54 PM To: [EMAIL PROTECTED] Subject: Writing XML in JSP file Hi all, I am wondering if we can write XML in a jsp file in place of HTML. if yes then how to display it in browser. Thanks, Nishi === 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
Use of implicit variables in custom tags?
Hi all, I want to use the reference of a bean declared by jsp:useBean id="bean" .../ in my custom tag. Does anybody know how to get this reference with the correct type? -- Adolf Liepelt === 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
Request.getParameter
hi all, I have a problem with Request.getParameter() , i wrote %! String namn=""; String temp=Request.getParameter("anvnamn"); % I have also included the package like this %@ page import = "javax.servlet.ServletRequest" contentType="text/vnd.wap.wml" % But i still don't manage it work. -Original Message- From: Adolf Liepelt [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 13, 2000 2:55 PM To: [EMAIL PROTECTED] Subject: Use of implicit variables in custom tags? Hi all, I want to use the reference of a bean declared by jsp:useBean id="bean" .../ in my custom tag. Does anybody know how to get this reference with the correct type? -- Adolf Liepelt === 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: Connection Pool
Hi Thomas, I have 2 questions, 1. the protected instance in the Singleton class should be static right? and Im sure thats what you meant. 2. Also shouldn't you make both the get and put methods thread safe. You've mentioned that only the Put method should be thread safe. Can i Synchronize on the static instance to make the methods threadsafe Thanks for your time Sanjay -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 04, 2000 10:53 AM To: [EMAIL PROTECTED] Subject: SV: Connection Pool Hi Sanjay The best way is to implemets a Singelton (see the GoF book) that uses a ConnectionPool. public class ConnectionPoolAsSingelton { protected ConnectionPoolAsSingelton instance; // Store the Singelton here private ConnectionPoolAsSingelton(...) { // yes private constructor } public static ConnectionPoolAsSingelton getInstance() { if(instance==null) return new ConnectionPoolAsSingelton(); else return instance; } //Put methods for your connpool here but keep in mind that this code should bee thread safe. } to get an instance of connectionpool just call the static function ConnectionPoolAsSingelton pool = ConnectionPoolAsSingelton.getInstance(); This should work fine but if you have any problems pleas email me att [EMAIL PROTECTED] /Thomas -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Skickat:den 4 april 2000 15:57 Till: [EMAIL PROTECTED] Ämne: Connection Pool I am trying to set up a connection pool for my JSP Project. Now I know that there are few ways to implement a connectionpool. My first thought was to put in the the servlets init method,But then what do i do for my other servlets/JSPs, do i create a connectionpool for every servlet?. Is there a standard technique for implementing connection pools. I think the best solution would be to have it in a common place which all the JSPs and servlets can access, something like a global.asa file in ASP. I would like to hear your thoughts on this. Thanks for your time Sanjay = == 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 Fil: Connection Pool.TXT === 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
compatible java version
Hi everyone. I'm going to be using JSP scriplets within Netscape Communicator 4.7 - does anyone know if there are compatibility issues with using JDK v1.1.8_10? I've had problems before when limited to Netscape 4.04 with a later version of the JDK. If anyone has a list of compatible versions/browsers that'd be great (had a quick search round the Netscape site to no avail) Thanks, Neil. === 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: Connection Pool
Hi Sanjay, you can avoid the problem by using the double-checked locking pattern (Schmidt-Harris) as follows: public static ConnectionPoolAsSingelton getInstance() { // check for null singleton if(instance==null) { // obtain lock synchronized( this ) { // check for null again in case initialization // already occurred in another thread if(instance==null) { return new ConnectionPoolAsSingelton(); } } } else return instance; } the synchronization overhead is limited by the first null check, so that further calls to the method never reach the synchronization code and its associated overhead. Regards, Jin -Original Message- From: Radhakrishnan, Sanjay (c) [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 13, 2000 10:08 AM To: [EMAIL PROTECTED] Subject: Re: Connection Pool Hi Thomas, I have 2 questions, 1. the protected instance in the Singleton class should be static right? and Im sure thats what you meant. 2. Also shouldn't you make both the get and put methods thread safe. You've mentioned that only the Put method should be thread safe. Can i Synchronize on the static instance to make the methods threadsafe Thanks for your time Sanjay -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 04, 2000 10:53 AM To: [EMAIL PROTECTED] Subject: SV: Connection Pool Hi Sanjay The best way is to implemets a Singelton (see the GoF book) that uses a ConnectionPool. public class ConnectionPoolAsSingelton { protected ConnectionPoolAsSingelton instance; // Store the Singelton here private ConnectionPoolAsSingelton(...) { // yes private constructor } public static ConnectionPoolAsSingelton getInstance() { if(instance==null) return new ConnectionPoolAsSingelton(); else return instance; } //Put methods for your connpool here but keep in mind that this code should bee thread safe. } to get an instance of connectionpool just call the static function ConnectionPoolAsSingelton pool = ConnectionPoolAsSingelton.getInstance(); This should work fine but if you have any problems pleas email me att [EMAIL PROTECTED] /Thomas -Ursprungligt meddelande- Fran: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Skickat:den 4 april 2000 15:57 Till: [EMAIL PROTECTED] Amne: Connection Pool I am trying to set up a connection pool for my JSP Project. Now I know that there are few ways to implement a connectionpool. My first thought was to put in the the servlets init method,But then what do i do for my other servlets/JSPs, do i create a connectionpool for every servlet?. Is there a standard technique for implementing connection pools. I think the best solution would be to have it in a common place which all the JSPs and servlets can access, something like a global.asa file in ASP. I would like to hear your thoughts on this. Thanks for your time Sanjay = == 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 Fil: Connection Pool.TXT === 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
How to call a servlet from a JSP page ?
I'd like to call a servlet from a JSP page when I click on an image that represents my submit button. I've tested the following code in my jsp page but I got an 404-Error : a href="http://127.0.0.1:7001/servletclasses/myServlet.class"img border=0 height=14 hspace=8 src="/pics/buttons/submit.gif"/a Anyone can help me ? Thanks Pamela mailto:[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: response.encodeURL not working
I think you have to encode the parameters that you intend to tack on. That means substituting +'s for spaces: % String link="cuba2.jsp?Name=Khoo+Swee+Chin";% A HREF="%=response.encodeURL(link)%"%=link%/A Donald - Original Message - From: "Khoo Swee Chin" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 12, 2000 9:59 PM Subject: response.encodeURL not working Hi I need help on this one. My response.encodeURL not working. Here are my codes, what did i do wrong this time? BODY BGCOLOR="#FF" % String link="cuba2.jsp?Name=Khoo Swee Chin";% A HREF="%=response.encodeURL(link)%"%=link%/A /BODY ... When i try to display Name parameter i only get Khoo, where are the rest?? Please help. :) === 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 call a servlet from a JSP page ?
i think you need to remove the .class from your href At 04:39 PM 4/13/00 +0200, you wrote: I'd like to call a servlet from a JSP page when I click on an image that represents my submit button. I've tested the following code in my jsp page but I got an 404-Error : a href="http://127.0.0.1:7001/servletclasses/myServlet.class"img border=0 height=14 hspace=8 src="/pics/buttons/submit.gif"/a Anyone can help me ? Thanks Pamela mailto:[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 ___ Scott Smith phone: 703.262.3459 Proxicom, Inc.fax: 703.262.3201 http://www.proxicom.com mailto:[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: How to call a servlet from a JSP page ?
You can try form action='/servletclasses/myServlet' method='POST' and make your image a submit button. -Original Message- From: Pamela Cotture [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 13, 2000 9:40 AM To: [EMAIL PROTECTED] Subject: How to call a servlet from a JSP page ? I'd like to call a servlet from a JSP page when I click on an image that represents my submit button. I've tested the following code in my jsp page but I got an 404-Error : a href="http://127.0.0.1:7001/servletclasses/myServlet.class"img border=0 height=14 hspace=8 src="/pics/buttons/submit.gif"/a Anyone can help me ? Thanks Pamela mailto:[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: How to call a servlet from a JSP page ?
Looks like you're missing the closing bracket for your anchor tag - try this: a href="http://127.0.0.1:7001/servletclasses/myServlet.class" img border=0 height=14 hspace=8 src="/pics/buttons/submit.gif"/a a href="http://127.0.0.1:7001/servletclasses/myServlet.class"im g border=0 height=14 hspace=8 src="/pics/buttons/submit.gif"/a === 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: User Authentication
On 4/12/00 7:13 PM, Vyacheslav Pedak at [EMAIL PROTECTED] wrote: I'm looking for some code (or guidance) for performing user authentication in JSP. The JSP spec makes some vague comment about being an extension of the servlet spec, but what does that mean? What do I need to do to authenticate a user's login/password, send a cookie to the client and then use the user's info in subsequent JSPs? See Java Servlet API specification 2.2, you can download it from http://java.sun.com/products/servlet/2.2/ Thanks, but I *also* scoured the spec. What parts of the spec answer my question? And, more generally, what parts of the servlet API are accessible to my code when I'm using JSP? All API How? --johnt === 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: about scpritlet
Actually, as far as I know, if you submit the form, the username textfield is not null, but an empty string. You should test for null and for an empty string. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of liuhao Sent: Wednesday, April 12, 2000 11:37 PM To: [EMAIL PROTECTED] Subject: about scpritlet hi everyone: i find something wrong in my following files. i do not understant what is the effect of "% if (request.getParameter("usename")!=null) { %" in the myjsp.jsp. if i input nothing in the text form on the browser, server will response"Hello !"to me. it is "null" for the variable of "usename"!? if this srciptlet is no effect on my program, why is not there display of "Hello !" before i click the "Submit" button. please help! thank you. javabean file: public class HiBean { private String usename; public HiBean() { usename=null; } public void setusename(String name){ this.usename=name; } public String getusename(){ return usename; } } myjsp.jsp: html body form method="get" input type="text" name="usename" br input type="submit" value="Submit" /form % if (request.getParameter("usename")!=null) { % %@ include file="response.jsp" % % } % /body /html response.jsp file: Hello jsp:getProperty name="hello" property="usename" /! === 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: Request.getParameter
There are a few mistakes in your application : - Do not use Request.getParameter("anvnamn") in declaration tag %! % - You do not have to import "javax.servlet.ServletRequest" - The real syntax is : String temp = request.getParameter("anvnamn").toString(); Fred - Original Message - From: Pablo Rito (ERA) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 13, 2000 3:36 PM Subject: Request.getParameter hi all, I have a problem with Request.getParameter() , i wrote %! String namn=""; String temp=Request.getParameter("anvnamn"); % I have also included the package like this %@ page import = "javax.servlet.ServletRequest" contentType="text/vnd.wap.wml" % But i still don't manage it work. -Original Message- From: Adolf Liepelt [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 13, 2000 2:55 PM To: [EMAIL PROTECTED] Subject: Use of implicit variables in custom tags? Hi all, I want to use the reference of a bean declared by jsp:useBean id="bean" .../ in my custom tag. Does anybody know how to get this reference with the correct type? -- Adolf Liepelt === 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: Request.getParameter
request.getParameter() returns a String, so the toString() call is unnecessary. It is also dangerous as request.getParameter("var") may return NULL if "var" was not a form element in the submitted form, or if it was an unchecked Checkbox or Radiobutton. from http://java.sun.com/products/servlet/2.1/api/javax.servlet.ServletRequest.ht ml#getParameter "public abstract String getParameter(String name) Returns a string containing the lone value of the specified parameter, or null if the parameter does not exist." Lance Lavandowska www.AgDomain.com www.Brainopolis.com - Original Message - From: "Burky Stéphane" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 13, 2000 10:36 AM Subject: Re: Request.getParameter - The real syntax is : String temp = request.getParameter("anvnamn").toString(); === 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: User Authentication
John Tangney wrote: On 4/12/00 7:13 PM, Vyacheslav Pedak at [EMAIL PROTECTED] wrote: See Java Servlet API specification 2.2, you can download it from http://java.sun.com/products/servlet/2.2/ Thanks, but I *also* scoured the spec. What parts of the spec answer my question? I don't know what the previous poster does, but you are correct that there is no direct support for authentication in the Servlet spec. What we do in our Model 1 apps (the simplest case) is rely on FORM-based authentication, tracking a successful authentication via methods in a bean that we store in the user's session. Our "normal" pages have something like: jsp:useBean id="userbean" scope="session" class="com.blah.UserBean" / % if( !userbean.isAuthenticated() ) { response.sendRedirect("login.jsp"); } % HTML . . . The isAuthenticated method of UserBean checks a boolean as to whether the user successfully logged in or not. If this flag is not set, we redirect the user to the login page. The login page looks something like: HTML % session.invalidate(); /* nuke any prior session information */ % BODY FORM ACTION="login2.jsp" METHOD="POST" Username: INPUT TYPE="TEXT" NAME="user" SIZE="18" MAXLENGTH="18" BR Password: INPUT TYPE="PASSWORD" NAME="password" SIZE="18" MAXLENGTH="18" BR INPUT TYPE="SUBMIT" /FORM /BODY /HTML When the user presses Submit, they are sent on to login2.jsp, which performs the authentication check and, if successful, forwards on to the main content page -- @ page contentType="text/plain" buffer="16kb" errorPage="loginError.jsp" % jsp:useBean id="userbean" scope="session" class="com.blah.UserBean" / jsp:setProperty name="userbean" property="*" / % // The above setProperty should have called setUser(...) and setPassword(...) // which will allow us to attempt authentication. If we fail authentication, // the bean will throw an exception, which will bounce us over to // the indicated errorPage above. // If successful, this method will set the authenticated flag to true. // If not, it will set authenticated to false and throw an exception. userbean.authenticate(); // If we get this far, we must have succeeded. Let the user in to our app. // Note that we use encodeURL here to handle cookie-less sessions. response.sendRedirect(response.encodeURL("app_page1.jsp")); % The app_page1.jsp would include the check shown at the top of this email. loginError.jsp would display the error message from the "exception" implicit object and then give the user a link to bounce back to login.jsp. There are more efficient ways of implementing the above, particularly ways that use jsp:forward rather than browser redirects. I think the above is the most straightforward to get folks started, though. And, more generally, what parts of the servlet API are accessible to my code when I'm using JSP? All API How? First, you have access to the implicit objects defined in the JSP spec (there is a cheat-sheet for download at http://java.sun.com/products/jsp that lists these): request javax.servlet.http.HttpServletRequest response javax.servlet.http.HttpServletResponse pageContext javax.servlet.jsp.PageContext session javax.servlet.http.HttpSession application javax.servlet.ServletContext out javax.servlet.jsp.JspWriter configjavax.servlet.ServletConfig exception java.lang.Throwable Second, you can access ANY Java class inside a scriptlet: % com.blah.MyUtilityClass utils = new com.blah.MyUtilityClass(); utils.doSomething(request,response); % as long as the class is accessible along your Servlet Engine's classpath (configuring your servlet engine's classpath is vendor-specific -- consult your vendor documentation or visit one of the product-specific support pages or email lists). === 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: User Authentication
One method I've used fairly successfully is to let the webserver do the authentication -- this allows your site to be added to other sites and rely on their authentication. All I do is turn on the built-in auth for the web server, and it takes care of sending a WWW-Authenticate header to users who don't yet have an Authenticate header in their requests. Of course, the basic auth is simple user/pass using crypt, but various servers offer different auth methods such as client-side certificates, etc. With something like Apache, you can even write your own DSO authorization add-in. In order to cut down on admin tasks, I also generally automate the new user creation -- the error link for unauthorized access attempts causes a redirect to an unprotected new user creation site, where users step through a wizard that gathers their info. Once the info has been gathered, I create a user entry (on Apache, I exec the htpasswd command in a JSP) and then redirect the user to the page they originally tried to hit. Once a user successfully enters the site, I use the remote username as a lookup key to get the user's personalization info. _3 M === 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: User Authentication
On 4/12/00 7:13 PM, Vyacheslav Pedak at [EMAIL PROTECTED] wrote: I'm looking for some code (or guidance) for performing user authentication in JSP. The JSP spec makes some vague comment about being an extension of the servlet spec, but what does that mean? What do I need to do to authenticate a user's login/password, send a cookie to the client and then use the user's info in subsequent JSPs? See Java Servlet API specification 2.2, you can download it from http://java.sun.com/products/servlet/2.2/ Thanks, but I *also* scoured the spec. What parts of the spec answer my question? There are many techniques to do user authentication at the application level, that have been discussed often on this mailing list. I'd like to focus here on the meat of your question -- what does the servlet container do for me? There are four things that need to happen for the stuff in the spec (as described below) to provide container-managed security for you. * You have to be running a servlet container based on the version 2.2 (or later) specification for anything described here to matter. There was no standardized support in previous versions. * The 2.2-compatible servlet container you are running on must support the security features of the spec. Check the documentation on your servlet container to make sure. * You must define one or more security-constraint elements, plus a login-config element, in your web application deployment descriptor. The security-constraint element describes what URL patterns (within your app) should be protected, and what "roles" a user must possess to access those resources. The login-config element describes how you're going to perform authentication -- for example, you can choose HTTP BASIC authentication by including auth-methodBASIC/auth-method inside. See Section 11 of the spec for much more about security. * You must register your usernames and passwords, and their associated role assignments, in the users database for your container. How you do this is different for every server -- again, check the docs. When you do these things, the servlet container enforces the authentication and access control restrictions you've defined, and you can use the security related calls on HttpServletRequest (getRemoteUser, getUserPrincipal, and isUserInRole) to find out more information about who was authenticated. And, more generally, what parts of the servlet API are accessible to my code when I'm using JSP? All API How? Every JSP page gets compiled into a servlet. Therefore, the generated code can do anything a servlet can. For example, the "request", "response", and "session" implicit objects that your page can access are instances of HttpServletRequest, HttpServletResponse, and HttpSession respectively -- therefore, these objects have all the methods defined in the servlet API. --johnt Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
redirect slow on netscape?
In a jsp page, I want to redirect the user to the next page, after a form submit using POST. I am using response.sendRedirect(newURL). This works fine in Internet Explorer 5, but in Navigator 4.7.2, it takes about 20 seconds or so before the browser goes to the next page. Has anyone encountered this before? Is this a Navigator problem, or is a servlet not flushing data? I'm using the 2.0 servlet api, so I can't call flushBuffer() myself. My setup: - Windows 2000 - Apache, JServ, GNUJSP Note: I also tried writing a javascript line, "location = newURL", and also "reload(newURL)". Both of these had the same effect. Thanks, Tom === 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: compatible java version
Neil Harrison wrote: Hi everyone. I'm going to be using JSP scriplets within Netscape Communicator 4.7 - does anyone know if there are compatibility issues with using JDK v1.1.8_10? I've had problems before when limited to Netscape 4.04 with a later version of the JDK. If anyone has a list of compatible versions/browsers that'd be great (had a quick search round the Netscape site to no avail) You seem to be confusing client and server side code. JSP scriptlets execute in a JSP enabled web server, and generates a response dynamically (typically an HTML page). What browser you use to view this response is irrelevant. To learn more about JSP, start at http://java.sun.com/products/jsp/ Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.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: using jsp-scope request in a servlet
Monsieur Lapin wrote: I want to create a bean in a jsp page with scope=request The request is, however not sent to another jsp page but to a servlet. How can I access this bean in the servlet? I know I can work around by making scope=session, but then I have to do the cleanup etc. Any help would be appreciated, The request scope corresponds to request attributes in the Servlet spec, so use this in your servlet: public void doGet(HttpServletRequest rqe, HttpServletResponse res) { MyBean myBean = (MyBean) req.getAttribute("theBean); ... } Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.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: Use of implicit variables in custom tags?
Adolf Liepelt wrote: Hi all, I want to use the reference of a bean declared by jsp:useBean id="bean" .../ in my custom tag. Does anybody know how to get this reference with the correct type? The jsp:useBean action places a reference to the bean in the specified scope, or the page scope by default, using the name specified by the id attribute. So your custom action could look something like this: foo:myAction name="bean" ... / The name attribute specified the name of the bean you like to use, and your custom action implementation can search for it in all scopes using the methods of the PageContext class (always available to a custom action). If the custom action can deal with beans of different types, it can use "if (theBean instanceof AClass)" tests to do different things depending on the type of the bean, or use introspection to look for required methods in the bean, etc. What's right here depends on what the custom action is designed to do. Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.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 no-cache problem on IE 5
Hello, Currently I am developing some JSPs and want the pages not to be cached on IE 5 browser. According to the docs in IE 5, I put these three lines in my JSP code, but it doesn't work at all. Just wonder who knows what the problem is ? My java web server is Apache + JRun. % response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "no-cache"); response.setHeader("Expires", "-1"); % Thanks, Huan ___ http://www.SINA.com - #1 Destination Site for Chinese Worldwide === 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: JSP no-cache problem on IE 5
you might try putting this in the head /head area of your page: meta http-equiv="Pragma" content="no-cache" hth, scott At 11:21 AM 4/13/00 -0700, you wrote: Hello, Currently I am developing some JSPs and want the pages not to be cached on IE 5 browser. According to the docs in IE 5, I put these three lines in my JSP code, but it doesn't work at all. Just wonder who knows what the problem is ? My java web server is Apache + JRun. % response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "no-cache"); response.setHeader("Expires", "-1"); % Thanks, Huan ___ http://www.SINA.com - #1 Destination Site for Chinese Worldwide === 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
cookies
hello every body Can any body give me information how to acess cookies from jsp. kindly give me some info on this. thanks your faithfully, srinivas === 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: cookies
You might some info on cookies at cookiecentral.com -Kumar |Content-Transfer-Encoding: 7bit |X-Priority: 3 |X-MSMail-Priority: Normal |X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 |Subject: cookies |To: [EMAIL PROTECTED] | |hello every body | |Can any body give me information how to acess cookies from jsp. |kindly give me some info on this. |thanks | |your faithfully, |srinivas | |=== |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
How to access environment variables such as QUERY_STRING?
Hi, Anyone know how to access environment variables? such as "QUERY_STRING" WITHOUT using request.getParameter,etc There is a method System.getenv() but it is deprecated ... The error mentions using "use properties and -D instead" but how do you achieve this? Many thanks, Jonathan === 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: cookies
This code sends a cookie to the browser: // Create de cookie Cookie cookieTest = new Cookie("MyName","MyValue"); // Sends de cookie response.addCookie(cookieTest); This code get a cookie from the browser: javax.servlet.http.Cookie cookies[]; cookies = request.getCookies(); if (cookies != null) { for (int i= 0; i cookies.length; i++) { if (cookies[i].getName().equals("MyName")) { System.out.println(cookies[i].getName()); System.out.println(cookies[i].getValue()); break; } } } At 12:45 AM 4/14/00 +0530, you wrote: hello every body Can any body give me information how to acess cookies from jsp. kindly give me some info on this. thanks your faithfully, srinivas === 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
long to date?
I'm trying to use file.lastModified() to get the last mod date of a file and then print on the screen as a string. The problem is it looks like lastModified() returns a long? Do I have to covert my long to a string and then use SimpleDateFormater to format it how I want or is there a way to go right from my long to the date format I want? Here's what I would like to do:... % String logFileDate = null; File logFile = new File("/app/webdocroot/insidectm/logs/coxdirect/2000/cdcor2000repo rt.htm" ); if( logFile.exists() ) { DateFormat df = new SimpleDateFormat( "dd-MM-" ); logFileDate = df.format(logFile.lastModified()); } % any help greatly appreciated. Rick === 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: long to date?
On Thu, 13 Apr 2000, Rick Reumann wrote: I'm trying to use file.lastModified() to get the last mod date of a file and then print on the screen as a string. The problem is it looks like lastModified() returns a long? Do I have to covert my long to a string and then use SimpleDateFormater to format it how I want or is there a way to go right from my long to the date format I want? Date d=new Date(logFile.lastModified()); Alternately, I've got a taglib that allows you to do just this without resorting to a scriptlet: file:lastModified name="/insidectm/logs/coxdirect/2000/cdcor2000report.htm" / (Assuming that /app/webdocroot is the application directory... you can also specify absolute filenames, but that's not such a wise idea in my opinion.) The taglibrary (JSP 1.1 only, unfortunately) can be downloaded at http://cupid.suninternet.com/~joeo/filetags-1.1-dev.jar - it also includes file:read /, and file:size /, with more tags scheduled to be written as I need them. (A roadmap is available at http://cupid.suninternet.com/~joeo/roadmap.html) --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer === 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: Model 2 and multi-page techniques
I'm reposting this with a different subject heading, since I got zero responses from my first posting. I've seen so many messages from people that were replied to quite quickly, I guess I've come to expect the same. Hopefully the new subject line will prompt others to read/respond Thanks, Mike All: Govind Seshadri had an excellent article on advanced form processing located here: http://www.javaworld.com/javaworld/jw-03-2000/f_jw-0331-ssj-forms_p.html Other posts to this list have talked about multi-screen (page) forms, e.g. a wizard type interface with back/next/finish/cancel buttons. I'm having a little trouble envisioning how this would all fit together. Using Govind's article as a baseline: * Would multiple forms/pages require a different validation bean for each page? (This assumes that you want to validate the user's input on a per page basis, rather than, or in addition to, when he/she chooses the finish option.) * Choosing the finish option would (naturally!) post to the UserRegistration.do according to good model 2 design. Is it OK to have the back/next "events" directly navigate to the previous/next .jsp page? (I don't want to have to create UserRegistrationStepOne.do thru UserRegistrationStepTen.do! (Do I?) * Finally, doesn't this lead to too high a degree of coupling between the view the controller(s)? Or, what I mean is, haven't we prevented our page designers from exercising their creative freedom to place which fields on which form, since that will always require "back-end" coding changes? Thoughts? Other people's implementations/suggestions would be greatly appreciated! TIA, Mike /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ Michael H. La Budde email: [EMAIL PROTECTED] Prosoft, Inc. phone: 414-860-6509 [EMAIL PROTECTED] fax:414-860-7014 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ === 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 Security
java.security.AccessControlException: access denied I am getting the above error, when I try to load the HelloSwingApplet page of the Java Tutorial: http://java.sun.com/docs/books/tutorial/uiswing/start/HelloSwingApplet.html I am using NT4.0 and IE4. I am new to Swing and was rading the swing Tutorial. I checked the discussion forum, the question has been posted but no answers has been given. Please help. Thanks, Pradeep === 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: Heavy-weight context switch
i think what you want to use in jsp to do instance variables when the jsp is compiled into a servlet is %! String myClassVar = "something" % declarations put in scriptlets % ... % are not converted to instance variables. hope that helps. cheerio, chris chris wilson web developer andrews university www.andrews.edu -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of LynchWu Sent: Thursday, April 13, 2000 6:11 AM To: [EMAIL PROTECTED] Subject: Re: Heavy-weight context switch Question: Is it possible to put variables, in JSP, outside of the per-request scope, such what we can do the pooling also? Answer: Use scope="session" in the jsp tag Ex: jsp:useBean id="beanName" class="com.companyName.packageName" scope="session"/ Maybe not. Session variables are very different from class variables in servlets. The former has a from-page-to-page scope, while the later is focused on a single page, among different requests. == = 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: Model 2 and multi-page techniques
Hi, I'll try responding. ;) * Would multiple forms/pages require a different validation bean for each page? (This assumes that you want to validate the user's input on a per page basis, rather than, or in addition to, when he/she chooses the finish option.) Actually, I prefer client-side validation using JavaScript. I have seen some people say to do both or server-side, but frankly, client-side eliminates the need for server cpu cycles to validate entries. If you validate them properly on the client with JavaScript, you know they are correct when they get to the server. I think the exception is if during trasit something gets messed up, a lost packet or something. I have never seen that happen and am pretty content with using client-side validation. But, if you were to do server-side, I would definitely use page per page validation! Imagine 4 or 5 forms and your sent back to form 1 because of one bad entry. Then you have to code in on that page a "finish" button, and on every page, for that matter, so that they dont have to submit the other forms that may be correct. I would break it in to an action class per page, and if you have multiple actions for a complete set of forms, they can still all reference the same one entity class (JavaBean most likely..or EJB). By storing the entity in the HttpSession, it stays alive all throughought. Then at the end, you process the data, store it, whatever, then remove the bean from the HttpSession. * Choosing the finish option would (naturally!) post to the UserRegistration.do according to good model 2 design. Is it OK to have the back/next "events" directly navigate to the previous/next .jsp page? (I don't want to have to create UserRegistrationStepOne.do thru UserRegistrationStepTen.do! (Do I?) I do. I have a JSP page per form that is to be displayed. And I have an action per form. You can have multiple forms submit to the same action, but then you'll need some sort of hidden command code system to figure out the specific action to take. However, usually no processing other than validation and storage in the bean and display the next page is done between steps. Not always the case though. For example, on our site clients choose an option, and depending on which option they choose, the next page reflects that option. Not necessarily the page name or anything (although that certainly can be done too). * Finally, doesn't this lead to too high a degree of coupling between the view the controller(s)? Or, what I mean is, haven't we prevented our page designers from exercising their creative freedom to place which fields on which form, since that will always require "back-end" coding changes? Ideally your web person can use Taglibs (JSP 1.1) or JavaBeans in any way he/she likes. For example, as I said even if you use one action per form, you would most likely use the same JavaBean amongts the different action classes to store all the form input (and output), so that each of the JSP pages use the same bean for display as well. Thus, unless the name of a method or property was changed on the back end, the web developer pretty much has the freedom to move the dynamic content around at will. Its more likely (I think) that the developers would make changes and tell the web folks the change and not the other way around. === 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 access environment variables such as QUERY_STRING?
"Cogley, Jonathan" wrote: Hi, Anyone know how to access environment variables? such as "QUERY_STRING" WITHOUT using request.getParameter,etc There is a method System.getenv() but it is deprecated ... The error mentions using "use properties and -D instead" but how do you achieve this? Look at the Servlet API, http://java.sun.com/products/servlet/. It contains explicit methods to get all info you get through environment variables in a GCI script. Since a JSP page is actually a servlet, you can use the complete Servlet API in your JSP pages. Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.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: JSP no-cache problem on IE 5
Hi, Scott, Thanks for your reply, but I had ever tried the meta tag before, it doesn't work either. Based on the docs for IE 5, this tag is ignored over IE 4 5 without https connection. Thanks, Huan On Thu, 13 April 2000, Scott Smith wrote: you might try putting this in the head /head area of your page: meta http-equiv="Pragma" content="no-cache" hth, scott At 11:21 AM 4/13/00 -0700, you wrote: Hello, Currently I am developing some JSPs and want the pages not to be cached on IE 5 browser. According to the docs in IE 5, I put these three lines in my JSP code, but it doesn't work at all. Just wonder who knows what the problem is ? My java web server is Apache + JRun. % response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "no-cache"); response.setHeader("Expires", "-1"); % Thanks, Huan ___ http://www.SINA.com - #1 Destination Site for Chinese Worldwide === 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 ___ http://www.SINA.com - #1 Destination Site for Chinese Worldwide === 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 equivalent of JHTML SERVLET/SERVLET
I am dealing with some JHTML pages (stuff parsed with the Sun-provided pageCompile servlet that shipped with JWS 1.1 and is still in JWS 2.0 but deprecated) that use the SERVLET/SERVLET tags to embed servlet output into a page. As far as I can tell from reading the JSP spec, these tags are not part of JSP, nor do I see an obvious equivalent. Anyone know the canonical methodology to do this in JSP? Thanks! Rich Carreiro [EMAIL PROTECTED] Senior Software Engineer Centra Software === 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: JSP no-cache problem on IE 5
Cant remember where i read this but it works for me Apparently IE5 has a bit of a browser caching bug. If I have the following meta tag at the very bottom of my html it fixes my caching problems. In the document I read it said that if the meta tag isnt at the very bottom of the page then it doesnt work. After fooling around I tend to agree. meta http-equiv="Expires" content="0" url="a description here" /html Also - the tag wont work if you include the other caching tags in your HTML. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of He Huan Sent: Friday, 14 April 2000 8:00 To: [EMAIL PROTECTED] Subject: Re: JSP no-cache problem on IE 5 Hi, Scott, Thanks for your reply, but I had ever tried the meta tag before, it doesn't work either. Based on the docs for IE 5, this tag is ignored over IE 4 5 without https connection. Thanks, Huan On Thu, 13 April 2000, Scott Smith wrote: you might try putting this in the head /head area of your page: meta http-equiv="Pragma" content="no-cache" hth, scott At 11:21 AM 4/13/00 -0700, you wrote: Hello, Currently I am developing some JSPs and want the pages not to be cached on IE 5 browser. According to the docs in IE 5, I put these three lines in my JSP code, but it doesn't work at all. Just wonder who knows what the problem is ? My java web server is Apache + JRun. % response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "no-cache"); response.setHeader("Expires", "-1"); % Thanks, Huan ___ http://www.SINA.com - #1 Destination Site for Chinese Worldwide === 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 ___ http://www.SINA.com - #1 Destination Site for Chinese Worldwide === 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: response.encodeURL not working
response.encodeURL does not encode in the manner that you suggest. (This is a rather confusing issue) response.encodeURL is responsible for rewriting the URL in order to add a parameter for identifying a particular session. java.net.URLEncoder.encode(String) is responsible for doing as you suggest, turning spaces into '+' and representing special chars with the %XX format. -AMT -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Donald E. Vandenbeld Sent: Thursday, April 13, 2000 8:03 AM To: [EMAIL PROTECTED] Subject: Re: response.encodeURL not working I think you have to encode the parameters that you intend to tack on. That means substituting +'s for spaces: % String link="cuba2.jsp?Name=Khoo+Swee+Chin";% A HREF="%=response.encodeURL(link)%"%=link%/A Donald - Original Message - From: "Khoo Swee Chin" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 12, 2000 9:59 PM Subject: response.encodeURL not working Hi I need help on this one. My response.encodeURL not working. Here are my codes, what did i do wrong this time? BODY BGCOLOR="#FF" % String link="cuba2.jsp?Name=Khoo Swee Chin";% A HREF="%=response.encodeURL(link)%"%=link%/A /BODY ... When i try to display Name parameter i only get Khoo, where are the rest?? Please help. :) == = 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: JSP equivalent of JHTML SERVLET/SERVLET
Rich Carreiro wrote: I am dealing with some JHTML pages (stuff parsed with the Sun-provided pageCompile servlet that shipped with JWS 1.1 and is still in JWS 2.0 but deprecated) that use the SERVLET/SERVLET tags to embed servlet output into a page. As far as I can tell from reading the JSP spec, these tags are not part of JSP, nor do I see an obvious equivalent. Anyone know the canonical methodology to do this in JSP? Thanks! The jsp:include element provides functionality that is similar, but not identical, to that provided by servlet. Rich Carreiro [EMAIL PROTECTED] Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
JSP and IIS?
Hi all, Does anybody know some plugin for IIS which enables JSP to run? Note that there is a lot of .asp on that IIS, and boss wants that both .asp and .jsp works on that IIS. Thanks in advance, zoxx P.S. I'm a newbee in JSP... Pozdrav, zoxx [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: JSP equivalent of JHTML SERVLET/SERVLET
Hi, We currently employ the SERVLET code="com.package.Servlet" /SERVLET calls right now, and have been replacing them with jsp:include page="/servlet/com.package.Servlet" / calls. The /servlet/ is mapped to where your class package starts, but other than that, its pretty much the same. IF your using JSP 1.1, you can do the jsp:include page="/servlet/com.package.Servlet" jsp:param name="name" value="value" / /jsp:include to include params like you can in the servlet. JSP 1.0 did not support the jsp:param.. tag. Tomcat and Resin both support Servlet 2.2, JSP 1.1, so you should be good to go there. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Rich Carreiro Sent: Thursday, April 13, 2000 2:53 PM To: [EMAIL PROTECTED] Subject: JSP equivalent of JHTML SERVLET/SERVLET I am dealing with some JHTML pages (stuff parsed with the Sun-provided pageCompile servlet that shipped with JWS 1.1 and is still in JWS 2.0 but deprecated) that use the SERVLET/SERVLET tags to embed servlet output into a page. As far as I can tell from reading the JSP spec, these tags are not part of JSP, nor do I see an obvious equivalent. Anyone know the canonical methodology to do this in JSP? Thanks! Rich Carreiro [EMAIL PROTECTED] Senior Software Engineer Centra Software === 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: JSP no-cache problem on IE 5
Matt, Amazing, it works Thanks, huan On Thu, 13 April 2000, Matt Krevs wrote: Cant remember where i read this but it works for me Apparently IE5 has a bit of a browser caching bug. If I have the following meta tag at the very bottom of my html it fixes my caching problems. In the document I read it said that if the meta tag isnt at the very bottom of the page then it doesnt work. After fooling around I tend to agree. meta http-equiv="Expires" content="0" url="a description here" /html Also - the tag wont work if you include the other caching tags in your HTML. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of He Huan Sent: Friday, 14 April 2000 8:00 To: [EMAIL PROTECTED] Subject: Re: JSP no-cache problem on IE 5 Hi, Scott, Thanks for your reply, but I had ever tried the meta tag before, it doesn't work either. Based on the docs for IE 5, this tag is ignored over IE 4 5 without https connection. Thanks, Huan On Thu, 13 April 2000, Scott Smith wrote: you might try putting this in the head /head area of your page: meta http-equiv="Pragma" content="no-cache" hth, scott At 11:21 AM 4/13/00 -0700, you wrote: Hello, Currently I am developing some JSPs and want the pages not to be cached on IE 5 browser. According to the docs in IE 5, I put these three lines in my JSP code, but it doesn't work at all. Just wonder who knows what the problem is ? My java web server is Apache + JRun. % response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "no-cache"); response.setHeader("Expires", "-1"); % Thanks, Huan ___ http://www.SINA.com - #1 Destination Site for Chinese Worldwide === 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 ___ http://www.SINA.com - #1 Destination Site for Chinese Worldwide === 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 ___ http://www.SINA.com - #1 Destination Site for Chinese Worldwide === 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: JSP and IIS?
Hi, We use JRUN, but I would use Resin over JRUN. It supports JSP 1.1, Servlet 2.2, which JRUN doesn't, and it allows it to be a standalone server so you dont even need IIS. Then again, I would also look at Tomcat, and Orion app server (www.orionserver.com) as replacements for IIS, which tends to have some problems we have noticed here. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of zoxx Sent: Thursday, April 13, 2000 4:43 PM To: [EMAIL PROTECTED] Subject: JSP and IIS? Hi all, Does anybody know some plugin for IIS which enables JSP to run? Note that there is a lot of .asp on that IIS, and boss wants that both .asp and .jsp works on that IIS. Thanks in advance, zoxx P.S. I'm a newbee in JSP... Pozdrav, zoxx [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: How to call a servlet from a JSP page ?
Remove the .class from the URL this is the way to do it form method="POST" action="servlet/myServlet" ... ... input type="image" border="0" src="submit.gif" /form - Original Message - From: "Pamela Cotture" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 13, 2000 7:39 AM Subject: How to call a servlet from a JSP page ? I'd like to call a servlet from a JSP page when I click on an image that represents my submit button. I've tested the following code in my jsp page but I got an 404-Error : a href="http://127.0.0.1:7001/servletclasses/myServlet.class"img border=0 height=14 hspace=8 src="/pics/buttons/submit.gif"/a Anyone can help me ? Thanks Pamela mailto:[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 __ 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: JSP and IIS?
zoxx, I use JRun on IIS. It is available from here - http://www.allaire.com/ The demo download is fully functional, but will only allow 5 concurrent users. Regards Dan [EMAIL PROTECTED] -- From: zoxx[SMTP:[EMAIL PROTECTED]] Reply To: A mailing list about Java Server Pages specification and reference Sent: Friday, 14 April 2000 9:13:am To: [EMAIL PROTECTED] Subject: JSP and IIS? Hi all, Does anybody know some plugin for IIS which enables JSP to run? Note that there is a lot of .asp on that IIS, and boss wants that both .asp and .jsp works on that IIS. Thanks in advance, zoxx P.S. I'm a newbee in JSP... Pozdrav, zoxx [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: [Recruiting] Enterprise Java developers required (from USA and AUS )
Just a note...what you call CV is called Resume in the US. ;) I learned this on IRC the other day. Its basically the same deal I believe. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Drew Cox Sent: Thursday, April 13, 2000 4:49 PM To: [EMAIL PROTECTED] Subject: [Recruiting] Enterprise Java developers required (from USA and AUS ) disclaimer First off, my apologies if you consider this type of message to be spam on these lists. If so, hit delete and move on. I thought it through and decided, that as a regular reader and contributor to these lists myself, I am not botherd by the odd, clearly indicated recruiting post. If helps to give you an idea what is actually going on out there in the real world. If you feel strongly enough that this is not the case, please email me off-line to express your opinion, do not flood the list. /disclaimer So, onto the sell. I work as an enterprise Java developer for pre-IPO (planned for Q4 2000) internet pure-play in San Francisco. We are in the initial stages of building a world-class technical infrastructure for the online delivery of psychological assessments and we're doing it with EJBs, Servlets and JSPs. Check out www.epredix.com for an idea of what's on. The enterprise has a very solid business model and the Sales and Marketing team are out there being spectacularly successful signing up fortune 500 clients and partnering with leading online recruiters. The finance people have the VC's lined up We are now in the the thick of developing the robust enterprise web application technology to drive all of this. In the near future the services provided will expand greatly into new media, incorporating the delivery of audio and video. We need a number of people with various levels of experience in Java servlets, JSP, EJB and other J2EE technologies. DBMS is Oracle, so knowledge in this area would also be benifical, although any JDBC and SQL DBMS would do. A note for international readers. The organisation has a special treaty arrangement with the INS whereby they can employ Australian citizens (not residents) on a 2 year E2 working visa. This is similar to the H1-B visa, without the waiting periods and quotas. So if, like I was 4 weeks ago, you're sitting in OZ reading this wishing you were right in the core of internet development, please apply! Of course, US citizens are also welcome. If you are interested, check out the info on the web site then email your CV to Nigel Dalton [EMAIL PROTECTED]. If you are after some further general information, feel free to email me personally. Regards Drew Cox ePredix Inc === 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: JSP and IIS?
You should try ServletExec, which provides the best performance of any servlet/JSP engine for IIS: http://www.newatlanta.com/downloads.html Vince Bonfanti New Atlanta Communications, LLC -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of zoxx Sent: Thursday, April 13, 2000 7:43 PM To: [EMAIL PROTECTED] Subject: JSP and IIS? Hi all, Does anybody know some plugin for IIS which enables JSP to run? Note that there is a lot of .asp on that IIS, and boss wants that both .asp and .jsp works on that IIS. Thanks in advance, zoxx P.S. I'm a newbee in JSP... Pozdrav, zoxx [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: JSP and IIS?
You may want to start with the links at the bottom of this email. In addition, there is a reasonably complete list of vendors at: http://java.sun.com/products/jsp/industry.html#tools Look for those that say they are an Add-on Engine. JRun and Resin are both reasonable alternatives, with Resin being a bit speedier and having better developer support (dynamic class reloading). -=- D. J. zoxx wrote: Does anybody know some plugin for IIS which enables JSP to run? Note that there is a lot of .asp on that IIS, and boss wants that both .asp and .jsp works on that IIS. Thanks in advance, zoxx P.S. I'm a newbee in JSP... Pozdrav, zoxx [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: JSP and IIS?
Actually, Resin provides better performance. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Vince Bonfanti Sent: Thursday, April 13, 2000 5:38 PM To: [EMAIL PROTECTED] Subject: Re: JSP and IIS? You should try ServletExec, which provides the best performance of any servlet/JSP engine for IIS: http://www.newatlanta.com/downloads.html Vince Bonfanti New Atlanta Communications, LLC -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of zoxx Sent: Thursday, April 13, 2000 7:43 PM To: [EMAIL PROTECTED] Subject: JSP and IIS? Hi all, Does anybody know some plugin for IIS which enables JSP to run? Note that there is a lot of .asp on that IIS, and boss wants that both .asp and .jsp works on that IIS. Thanks in advance, zoxx P.S. I'm a newbee in JSP... Pozdrav, zoxx [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 === 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: User Authentication
- Original Message - From: John Tangney [EMAIL PROTECTED] See Java Servlet API specification 2.2, you can download it from http://java.sun.com/products/servlet/2.2/ Thanks, but I *also* scoured the spec. What parts of the spec answer my question? Section 11.5 Authentication, but there is no detailed inctructions so you have to read documentation to your servlet engine. And, more generally, what parts of the servlet API are accessible to my code when I'm using JSP? All API How? You have predefined variables in JSP "request", "response" and so on. Vyacheslav Pedak === 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.getParameter
There are a few mistakes in your application : - Do not use Request.getParameter("anvnamn") in declaration tag %! % - You do not have to import "javax.servlet.ServletRequest" - The real syntax is : String temp = request.getParameter("anvnamn").toString(); hi Burky: do you sure the state of "request.getParameter("anvnamn").toString()"? i check the document of jsdk and i think the method of request .getParameter("name") returns a string. === 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: JSP and IIS?
Prove it. At what cost. What is its compatibility, Windows, Unix etc. ? - Original Message - From: Kevin Duffey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 13, 2000 8:21 PM Subject: Re: JSP and IIS? Actually, Resin provides better performance. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Vince Bonfanti Sent: Thursday, April 13, 2000 5:38 PM To: [EMAIL PROTECTED] Subject: Re: JSP and IIS? You should try ServletExec, which provides the best performance of any servlet/JSP engine for IIS: http://www.newatlanta.com/downloads.html Vince Bonfanti New Atlanta Communications, LLC -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of zoxx Sent: Thursday, April 13, 2000 7:43 PM To: [EMAIL PROTECTED] Subject: JSP and IIS? Hi all, Does anybody know some plugin for IIS which enables JSP to run? Note that there is a lot of .asp on that IIS, and boss wants that both .asp and .jsp works on that IIS. Thanks in advance, zoxx P.S. I'm a newbee in JSP... Pozdrav, zoxx [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 === 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
How do I use RMI in JSP
I am testing rmi in JSP. Jsp engine is jswk1-0. But I got Security error. How do I use RMI in JSP? ÇÑ ¹ø °¡ÀÔÇÏ¸é ¸ÞÀÏ + ȨÆäÀÌÁö + µ¿È£È¸¸¦ Æò»ý ¹«·á·Î ! Lycos Korea Inc. http://www.lycos.co.kr === 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
[Recruiting] Enterprise Java developers required (from USA and AUS )
disclaimer First off, my apologies if you consider this type of message to be spam on these lists. If so, hit delete and move on. I thought it through and decided, that as a regular reader and contributor to these lists myself, I am not botherd by the odd, clearly indicated recruiting post. If helps to give you an idea what is actually going on out there in the real world. If you feel strongly enough that this is not the case, please email me off-line to express your opinion, do not flood the list. /disclaimer So, onto the sell. I work as an enterprise Java developer for pre-IPO (planned for Q4 2000) internet pure-play in San Francisco. We are in the initial stages of building a world-class technical infrastructure for the online delivery of psychological assessments and we're doing it with EJBs, Servlets and JSPs. Check out www.epredix.com for an idea of what's on. The enterprise has a very solid business model and the Sales and Marketing team are out there being spectacularly successful signing up fortune 500 clients and partnering with leading online recruiters. The finance people have the VC's lined up We are now in the the thick of developing the robust enterprise web application technology to drive all of this. In the near future the services provided will expand greatly into new media, incorporating the delivery of audio and video. We need a number of people with various levels of experience in Java servlets, JSP, EJB and other J2EE technologies. DBMS is Oracle, so knowledge in this area would also be benifical, although any JDBC and SQL DBMS would do. A note for international readers. The organisation has a special treaty arrangement with the INS whereby they can employ Australian citizens (not residents) on a 2 year E2 working visa. This is similar to the H1-B visa, without the waiting periods and quotas. So if, like I was 4 weeks ago, you're sitting in OZ reading this wishing you were right in the core of internet development, please apply! Of course, US citizens are also welcome. If you are interested, check out the info on the web site then email your CV to Nigel Dalton [EMAIL PROTECTED]. If you are after some further general information, feel free to email me personally. Regards Drew Cox ePredix Inc === 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 do I use RMI in JSP
I think that it is security manager in RMI. You have to setting up secutiry manager. In case of application, C:\java -Djava.security.policy=java.policy application name ### java.policy grant { permission java.security.AllPermission; }; In case of applet, you don't warry. Because of that is already setting up security policy. but in jsp ...??? T.T In case of JSP, I suggest modify java.policy file. Edit C:\jdk1.2.2(jdk home directory)\jre\lib\security\java.policy and then add permission java.security.AllPermission; see in below grant { // Allows any thread to stop itself using the java.lang.Thread.stop() . . // ¾Æ·¡ÀÇ ÁÙÀ» ÷°¡Çϼ¼¿ä. permission java.security.AllPermission; }; - ¹ÞÀº ¸ÞÀÏ ³»¿ë -- From : ±èÁø¹Î [EMAIL PROTECTED] I am testing rmi in JSP. Jsp engine is jswk1-0. But I got Security error. How do I use RMI in JSP? ÇÑ ¹ø °¡ÀÔÇÏ¸é ¸ÞÀÏ + ȨÆäÀÌÁö + µ¿È£È¸¸¦ Æò»ý ¹«·á·Î ! Lycos Korea Inc. http://www.lycos.co.kr === 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 hr == No. 1 ¿ì¸® ÀÎÅͳÝ, Daum Æò»ý ¾²´Â ¹«·á E-mail ÁÖ¼Ò ÇѸÞÀÏ³Ý Áö±¸ÃÌ ÇÑ±Û °Ë»ö¼ºñ½º Daum FIREBALL http://www.daum.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
I want to find a good web site that have samples of JSP. Who can tell me?
Hi , all I want to find a good web site that have samples of JSP. Who can tell me? ayin === 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