Re: File upload
Hi i dont know where to look for tut. (I looked in Java Server Pages from scratch) but I'll try explaneing it to you 1) you must declair your HTML form as: 2) 3) in the servlet somthin' like: public String getNextLine() throws Exception { int actual; StringBuffer strBuff = new StringBuffer(); sis.readLine (buffer,0,1000); if (actual > 0) { for ( int i = 0; i < actual; i++ ) { char c = ( char ) buffer[i]; strBuff.append( c ); } return strBuff.toString(); } return null; } where : sis = ServletInputStream buffer = byte[] I hope you'll find this usefull Hades. -Original Message- From: Erwin Kodiat [mailto:[EMAIL PROTECTED]] Sent: Friday, June 01, 2001 9:24 AM To: [EMAIL PROTECTED] Subject: File upload Do you guys know where can I get a tutorial about uploading file with JSP and stored in BLOB data type in Oracle database? Thanks in advance. Erwin Kodiat Mitrais Software Development Center Bali, Indonesia === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: jrun:sendmail
Pop is for reading mail. SMTP is for sending mail. They are not interchangible -Original Message- From: Supreme Being [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 10:02 PM To: [EMAIL PROTECTED] Subject: Re: jrun:sendmail Jim, thank you very much Sir. i guess finally i've understood everything u're trying to tell me. I have a few things though i'd like to clear out. For sending mails, i can use a POP3 account as well, instead of an SMTP one? Now if that is the case, how do i insert it into my code props.put("mail.smtp.host", "smtp.jspinsider.com"); This is the code that connects to the SMTP server. If i replace this with props.put("mail.smtp.host", "mypop3.com"); but what do i do with "mail.smtp.host" and where & how do i put in the username & password that is needed to access my POP3 account. In fact, for that matter, even if i do have an SMTP account, how do give the user/pwd? There is another line of code that mentions SMTP : transport = sendMailSession.getTransport("smtp"); transport.send(newMessage); What will i have to change in this "smtp" in order for my POP3 account to function? I'm sorry for constant questions. I'm new to both JSP and Mail servers. Thanks a lot, Cheers & Glory, SupremeBeing >From: "Jim Rueschhoff" <[EMAIL PROTECTED]> >To: "Supreme Being" <[EMAIL PROTECTED]> >SUBJECTDate: Thu, 31 May 2001 09:43:46 -0700 > >You can use any mail provider you want including internet mail but you must >have pop3, imap and/or smtp access to the mail servers. A mail server >provided by your internet service provider would be fine but you must have a >mail server to connect to from java mail. > >The javamail package is a java extention and as such should be installed in >the d:\Allaire\JRun\lib\ext directory to be consistant with the other javax >files. You could install them elsewhere but you would have to change the >import paths, etc. to get it to work. Your error message seems to indicate >that the system is finding them however. > >The java container (server) you are using is JRun from you other answers. > >Your code shows you are trying to send the email through the >smtp.jspinsider.com email server. You need to change this to an email >server that you have permission to use. I am not sure what servers you have >available but for instance if you were an earthlink customer you would use >something like mail.earthlink.net as an email server. I didn't check it >closely but it appears to me that the rest of your code is ok. > >I have not seen the exact error you are getting before but I think it may >mean that the smtp.jspinsider.com email server is rejecting your attempt to >use it because your domain name is not authorized to send email through that >server. > >Perhaps someone here that has seen this error before can confirm it. > >I hope that helps. > >-Original Message- >From: Supreme Being [mailto:[EMAIL PROTECTED]] >Sent: Thursday, May 31, 2001 8:48 AM >To: [EMAIL PROTECTED] >Cc: [EMAIL PROTECTED] >Subject: Re: jrun:sendmail > > >Jim, > >I'm not having any email server installed on my system. In fact i use >Internet Mail (Yahoo, Hoboe) etc. Apart from JSP, i use PHP and ASP for my >Server Programming. PHP has the in-built mail() function and ASP uses either >the CDONTS component or JMail. So i never faced any such problem with them. >However, now with JSP, i'm having these problems sending mail. > >>JavaMail and JAF works fine. How do you have it installed. In which >>directories did you put all the .jar files. > >I've placed all these files in D:\Allaire\JRun\servers\lib >In fact, they are also in D:\Allaire\JRun\lib >cause on person told me they should go there. > >>What java container are you using? >This, i don't understant. > >>When you say it doesn't work, what do you mean? >Well this the error that i get when i click my "Send" button : > >javax.mail.SendFailedException: Sending failed; nested exception is: >javax.mail.SendFailedException: Invalid Addresses; nested exception is: >javax.mail.SendFailedException: 553 sorry, that domain isn't in my list of >allowed rcpthosts (#5.7.1) > >And if you wanna see ... this is the code that i'm using : > ><%@ page > import=" javax.mail.*, javax.mail.internet.*, >javax.activation.*,java.util.*" > %> ><% > > try{ > Properties props = new Properties(); > Session sendMailSession; > Store store; > Transport transport; > > props.put("mail.smtp.host", "smtp.jspinsider.com"); > sendMailSession = Session.getInstance(props, null); > Message newMessage = new MimeMessage(sendMailSession); > newMessage.setFrom(new InternetAddress(request.getParameter("from"))); > newMessage.setRecipient(Message.RecipientType.TO, new >InternetAddress(request.getParameter("to"))); > newMessage.setSubject(request.getParameter("subject")); > newMessage.setSentDate(new Date()); > newMessage.setText(request.getParameter("text")); > > transport = sendMailSession.getTransport("smtp"); > transport.send(newMessage);
Re: Java Mail in JSP - Problem with multiple addresses
How did you enter the multiple addresses? Most SMTP servers will accept multiple names with a comma and no space in between them. -Original Message- From: Sivakumar Chiluvuri [mailto:[EMAIL PROTECTED]] Sent: Friday, June 01, 2001 12:03 AM To: [EMAIL PROTECTED] Subject: Java Mail in JSP - Problem with multiple addresses Hi all the following jsp is working fine with single mail address, but when we enter multiple address it failed how to pass array of address pl. help thanks regards siva kumar code : <%@ page import=" javax.mail.*, javax.mail.internet.*, javax.activation.*, java.util.*" %> JavaMail <% try{ Properties props = new Properties(); Session sendMailSession; Store store; Transport transport; sendMailSession = Session.getInstance(props, null); props.put("mail.smtp.host", "mail.webappcabaret.com"); Message newMessage = new MimeMessage(sendMailSession); newMessage.setFrom(new InternetAddress(request.getParameter("from"))); // String to = request.getParameter("to"); // InternetAddress [] address = {new InternetAddress(to)}; this is not working newMessage.setRecipient(Message.RecipientType.TO, new InternetAddress(request.getParameter("to"))); newMessage.setSubject(request.getParameter("subject")); newMessage.setSentDate(new Date()); newMessage.setText(request.getParameter("text")); transport = sendMailSession.getTransport("smtp"); transport.send(newMessage); %> Your mail has been sent to the following persons: <% out.println(request.getParameter("to")); %> <% } catch(MessagingException m) { out.println(m.toString()); } %> === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Java Mail in JSP - Problem with multiple addresses
hi all can anyone please help me , how can i use the mail tag in my jsp and what settings do i need to do if i want to use it. please tell me or give me the code using the mail tag in jsp. thanks - Original Message - From: Sivakumar Chiluvuri <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 01, 2001 12:33 PM Subject: Java Mail in JSP - Problem with multiple addresses > Hi all > > the following jsp is working fine with single mail address, but when we enter > multiple address it failed > > how to pass array of address > > pl. help > > thanks > > regards > siva kumar > > code : > > <%@ page > import=" javax.mail.*, javax.mail.internet.*, javax.activation.*, java.util.*" > %> > > > JavaMail > > > <% > > try{ >Properties props = new Properties(); >Session sendMailSession; >Store store; >Transport transport; > > sendMailSession = Session.getInstance(props, null); > > props.put("mail.smtp.host", "mail.webappcabaret.com"); > > Message newMessage = new MimeMessage(sendMailSession); > newMessage.setFrom(new InternetAddress(request.getParameter("from"))); > > // String to = request.getParameter("to"); > // InternetAddress [] address = {new InternetAddress(to)}; this is not > working > > newMessage.setRecipient(Message.RecipientType.TO, new > InternetAddress(request.getParameter("to"))); > newMessage.setSubject(request.getParameter("subject")); > newMessage.setSentDate(new Date()); > newMessage.setText(request.getParameter("text")); > > transport = sendMailSession.getTransport("smtp"); > transport.send(newMessage); >%> > Your mail has been sent to the following persons: <% > out.println(request.getParameter("to")); %> > <% > } > catch(MessagingException m) > { > out.println(m.toString()); > } > %> > > > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: URGENT How TO Handle (MULTIPLE FORMS)
Hi One thing you could do is to not set the beans automaticaly, insted: have one for and get the data explycitely ( request.getParameter("somethin")) and than set your beens manualy I know it's not too "pleasing to the eye" but it is a way to doit whitout to much head ache... Hades -Original Message- From: jyothirmai porika [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 3:24 AM To: [EMAIL PROTECTED] Subject: Re: URGENT How TO Handle (MULTIPLE FORMS) Well i think you dint understand the question. Let me explain you in detail. I have a JSP page which also as HTML in it(I think we all know that) and in that i have 3 forms(there are no 3 different submit button's it should get submitted based on some action/conditions). And each form talk's to different bean's. So, what's happening is when i submit form one. it's refreshing the whole page and data in the form 2 & 3 are changing.so, what i want is when i submit form 1 the data in other form's should not get changed. There are many way's to handle it,what i was looking for is the most easy way.Can you help. If you think this is HTML/JAVA SCRIPT problem. Then you shouldn't be here. --Original Message-- From: Jann VanOver <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: May 30, 2001 5:05:15 PM GMT Subject: Re: URGENT How TO Handle (MULTIPLE FORMS) Hmmm ... I don't see any JSP here. Please folks, let's try to re-route HTML and Javascript questions to other resources. We should all be learning to tell the difference between what can be done with JSP vs. what can be done with Javascript or HTML or Applets. Just answering these off topic questions doesn't help teach anyone about JSP. http://irt.org/ is an excellent resource for MANY other web programming questions. The person posting the question could and SHOULD go there with HTML and Javascript questions, not HERE. -Original Message- From: Julian Doherty [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 29, 2001 5:04 PM To: [EMAIL PROTECTED] Subject: Re: URGENT How TO Handle (MULTIPLE FORMS) Have separate tags for each form. eg, 1st form fields go here. 2nd form fields go here. 3rd form fields go here. That way, the other two forms won't be submitted when you click another one. Julian Doherty Information Systems Analyst Education Review Office jyothirmai porika <[EMAIL PROTECTED]To: [EMAIL PROTECTED] M> cc: Sent by: A Subject: URGENT How TO Handle (MULTIPLE FORMS) mailing list about Java Server Pages specification and reference 05/30/01 05:20 AM Please respond to A mailing list about Java Server Pages specification and reference Hi All, I have a jsp page with 3 forms. What i want to do is when the 2nd form is submitted, fist and third should not be submitted and vice versa. I tried to submit by calling each submit based on condition, But it's not working. How can i handle multiple forms. Thank's -Jyothi --- FREE! The World's Best Email Address @email.com Reserve your name now at http://www.email.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets --- FREE! The World's Best Email Address @email.com Reserve your name now at http://www.email.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets
Re: URGENT How TO Handle (MULTIPLE FORMS)
-Original Message- From: Hunor Nam Sent: Friday, June 01, 2001 12:12 PM To: [EMAIL PROTECTED] Subject: Re: URGENT How TO Handle (MULTIPLE FORMS) SORRY Hi One thing you could do is to not set the beans automaticaly, insted: have one form and get the data explycitely ( request.getParameter("somethin")) and than set your beens manualy I know it's not too "pleasing to the eye" but it is a way to doit whitout to much head ache... Hades -Original Message- From: jyothirmai porika [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 3:24 AM To: [EMAIL PROTECTED] Subject: Re: URGENT How TO Handle (MULTIPLE FORMS) Well i think you dint understand the question. Let me explain you in detail. I have a JSP page which also as HTML in it(I think we all know that) and in that i have 3 forms(there are no 3 different submit button's it should get submitted based on some action/conditions). And each form talk's to different bean's. So, what's happening is when i submit form one. it's refreshing the whole page and data in the form 2 & 3 are changing.so, what i want is when i submit form 1 the data in other form's should not get changed. There are many way's to handle it,what i was looking for is the most easy way.Can you help. If you think this is HTML/JAVA SCRIPT problem. Then you shouldn't be here. --Original Message-- From: Jann VanOver <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: May 30, 2001 5:05:15 PM GMT Subject: Re: URGENT How TO Handle (MULTIPLE FORMS) Hmmm ... I don't see any JSP here. Please folks, let's try to re-route HTML and Javascript questions to other resources. We should all be learning to tell the difference between what can be done with JSP vs. what can be done with Javascript or HTML or Applets. Just answering these off topic questions doesn't help teach anyone about JSP. http://irt.org/ is an excellent resource for MANY other web programming questions. The person posting the question could and SHOULD go there with HTML and Javascript questions, not HERE. -Original Message- From: Julian Doherty [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 29, 2001 5:04 PM To: [EMAIL PROTECTED] Subject: Re: URGENT How TO Handle (MULTIPLE FORMS) Have separate tags for each form. eg, 1st form fields go here. 2nd form fields go here. 3rd form fields go here. That way, the other two forms won't be submitted when you click another one. Julian Doherty Information Systems Analyst Education Review Office jyothirmai porika <[EMAIL PROTECTED]To: [EMAIL PROTECTED] M> cc: Sent by: A Subject: URGENT How TO Handle (MULTIPLE FORMS) mailing list about Java Server Pages specification and reference 05/30/01 05:20 AM Please respond to A mailing list about Java Server Pages specification and reference Hi All, I have a jsp page with 3 forms. What i want to do is when the 2nd form is submitted, fist and third should not be submitted and vice versa. I tried to submit by calling each submit based on condition, But it's not working. How can i handle multiple forms. Thank's -Jyothi --- FREE! The World's Best Email Address @email.com Reserve your name now at http://www.email.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets --- FREE! The World's Best Email Address @email.com Reserve your name now at http://www.email.com === To unsubscribe: mailto [
More on anti-caching
Another possibility for preventing caching is to forcibly set the last-modified date of the servlet/JSP. You can always use the often-suggested (and well-archived) solution: <% response.setHeader("Pragma", "No-cache"); response.setHeader("Cache-Control", "no-cache"); response.setDateHeader("Expires",0); %> SnowWolf Wagner, in an article at http://www.orionsupport.com/articles/defeatingcache.html, mentions the following snippet as being effective as well, especially for defeating caching proxies: <%! // return current time to proxy server request public long getLastModified(HttpServletRequest request) { return System.currentTimeMillis(); } %> This may aid the browsers, even without the proxies, as well. >From: ems vasudevan <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and >reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: How to prevent IE from cacheing a JSP page >Date: Thu, 17 May 2001 19:02:17 -0700 > >Try this .It will work.I have used it to prevent >caching in JSP. >with warm regds, >E.M.S.vasu >--- "Middleton, Jorge Luis" <[EMAIL PROTECTED]> >wrote: > > Did you try with this header? > > > > response.setHeader("Pragma", "No-cache"); > > --> response.setHeader("Cache-Control", > > "no-cache"); > > response.setDateHeader("Expires",0); > > > > Saludos > > Jorge Middleton > > Argentina - Mendoza > > > > -Original Message- > > From: Celeste Haseltine > > [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, May 17, 2001 4:50 PM > > To: [EMAIL PROTECTED] > > Subject: How to prevent IE from cacheing a JSP page > > > > > > I'm hoping someone out here has run into this > > problem, and has found a way > > to address this. I've researched this for two days, > > and have not found a > > solution. > > > > I have 2 jsp files, one that includes server side > > JavaScript to create a > > DHTML menu dynamically. In order for these two > > jsp's to work properly, I > > have to determine what JS files to "include" in the > > JSP page based off of > > the user's login, and I also do this dynamically. > > Both of these files work > > perfectly if I test my web site using Netscape, but > > not with IE. From doing > > some research, I have discovered that Netscape does > > not cache pages, and > > that I can set the expiration of a page to "0" so > > that a particular JSP is > > always recompiled, regardless of the date. But IE > > does cache pages, and > > ignores any commands to set a page's expiration to > > 0. So if I am using > > Netscape, both the JSP's are recompiled to include > > their user specific JS > > code based off of the user's login, and each user > > get his/her specific menu > > JS code. But in IE, the most recent JSP page on the > > server, inclusive of > > that page's menu specific JS code, is sent to the > > browser, regardless of > > what the user's login is. I've tried to work around > > this by using the META > > tags in my JSP files as follows: > > > > > > > > > > > > > > which had no effect at all on IE. I have since > > discovered that the current > > version of IE ignores MetaTags. So I tried to use > > the response.setHeader > > method in the jsp's as follows: > > > > > > <% response.setHeader("expires","0"); > >response.setIntHeader("expires",0); > >response.setHeader("Pragma","no-cache"); > > %> > > > > > > which also doesn't work. Does anyone know how to > > send IE a "message" via > > the HTTP header telling it NOT to cache a jsp page, > > and to also set the > > expiration on a particular page to "0", which means > > "page has immediate > > expiration"? Or is there a way to "set" the > > expiration of a jsp page in > > JRUN 3.1 environment (I could not find one)? I do > > want both of these JSP > > pages to be "recompiled" on the server side to > > include their menu specific > > JS, based off of the user's login. I know that I > > take a performance hit by > > doing this, but since it is only two pages out of > > 300, and it occurs as part > > of the log in process, it's a performance hit I can > > live with. And it beats > > the heck out of writing 11 different JSP's, each > > with their unique > > respective JS menu code. > > > > Any advice/insight would be appreciated. > > > > Celeste _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
No Subject
signoff JSP-INTEREST > -Original Message- > From: James Childers [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, May 30, 2001 2:56 AM > To: [EMAIL PROTECTED] > Subject: Re: URGENT How TO Handle (MULTIPLE FORMS) > > jyothirmai porika wrote: > > > I have a jsp page with 3 forms. > > What i want to do is when the 2nd form is submitted, fist and third > should > > not be submitted and vice versa. > > I tried to submit by calling each submit based on condition, > > But it's not working. > > How can i handle multiple forms. > > Stylistically, you probably want to avoid having multiple forms on a > single page. However, if this is a requirement for some reason then you > just need to set your ACTION attribute of the FORM tag to be different > pages for each tag. > > Ex: > > > [... form elements ...] > > > [... form elements ...] > > > [... form elements ...] > > > Hope this helps. > > - J > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Displaying images
Dear all, I have a BLOB field in a database which stored image in various formats (JPG, GIF). When I try to write the file through the HTTP Response it always fails. However, I successfully wrote it to a file so I assumed that my data is valid (not corrupted). The followings is the scriptlet. Can anyone give me a suggestion? Thanks a lot in advance. Regards, Erwin Kodiat Mitrais Software Development Center Bali, Indonesia <% try { BinObject bo = new BinObject(); bo.objectID= "991986"; bo.type="test"; bo.contentType = "image/jpeg"; InitialContext ic = new InitialContext(); Object obj = ic.lookup("BinObjectBean"); BinObjectHome home = (BinObjectHome) PortableRemoteObject.narrow(obj, BinObjectHome.class); BinObjectRemote remote = home.findByPrimaryKey((PKBinObject) bo); BinObject objBO = remote.getRepository(); response.setContentType("image/jpeg"); //BEGINNING OF SECTION TO DISPLAY IMAGE OutputStream fos = null; fos = response.getOutputStream(); fos.write(objBO.binaryData, 0, objBO.binaryData.length); fos.flush(); fos.close(); } catch(Exception e) { System.out.println("JSP Error : "+ e.getMessage()); } %> === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
urlconnection & readfully fails
Hi! can u please help ? i use this code to get a url page using readfully! URL urlObject = new URL(url); URLConnection agent = urlObject.openConnection(); DataInputStream input = new DataInputStream(agent.getInputStream()); byte[] b = new byte[input.available ()];System.out.println(input.available()); input.readFully (b); input.close ();System.out.println(b.length); page=new String (b, 0, b.length); but it gives me only some piece of the page but when i read line by line that way: while((nextLine = input.readLine()) != null) { page.append(nextLine+"\n"); } it works! please help _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: urlconnection & readfully fails
Hi ! Use Buffered Reader instead of DataInputStream. I think it will work If not tell me too Bye >From: kaab kaoutar <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: urlconnection & readfully fails >Date: Fri, 1 Jun 2001 12:29:48 - > >Hi! > >can u please help ? >i use this code to get a url page using readfully! > >URL urlObject = new URL(url); > URLConnection agent = urlObject.openConnection(); > DataInputStream input = > new DataInputStream(agent.getInputStream()); > > byte[] b = new byte[input.available >()];System.out.println(input.available()); > input.readFully (b); > input.close ();System.out.println(b.length); > page=new String (b, 0, b.length); >but it gives me only some piece of the page > >but when i read line by line that way: > while((nextLine = input.readLine()) != null) { > page.append(nextLine+"\n"); > } >it works! > >please help > >_ >Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com. > >=== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set >JSP-INTEREST DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > >http://java.sun.com/products/jsp/faq.html >http://www.esperanto.org.nz/jsp/jspfaq.html >http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP >http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: disabling the back button
There is no way to guarantee that the user can not somehow use the back button. Joseph Karau Kingland Systems [EMAIL PROTECTED] 507-536-3629 AIM: jkara3629 -Original Message- From: King Maurice [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 4:07 PM To: [EMAIL PROTECTED] Subject: disabling the back button Off the subject I am creating a program which one of the features it does not all you to hit the back button. Does someone have a java code for that, if not due to limitation to browser does any have the code for javascript Maurice~ - Original Message - From: "sufi malak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 15, 2001 3:12 PM Subject: apache + tomcat ?? > Hi, > I installed Apache to work with tomcat, if I wok from tomcat directly: > when I type http://mil2wwds10:8080/jetspeed/ > I got http://mil2wwds10:8080/jetspeed/index.jsp > and everything works fine. > > But if I call from Apache port : > http://mil2wwds10:80/jetspeed/ > I got only a page that show all the files and directories under jetspeed, > then I have to click in index.jsp to be shown, and when I click in a link in > the index.jsp file, if the link is an html file it works fine, but if it's a > jsp or servlet it does not work. > > > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: jrun:sendmail
Sorry, POP3 access is for retrieving and reading email only. SMTP is how you send email... The "mail.smtp.host" is telling the system what property you are setting. You must set this to a smtp server name that you have access to. You can not use a POP3 server to send mail. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Supreme Being Sent: Thursday, May 31, 2001 10:02 PM To: [EMAIL PROTECTED] Subject: Re: [JSP-INTEREST] jrun:sendmail Jim, thank you very much Sir. i guess finally i've understood everything u're trying to tell me. I have a few things though i'd like to clear out. For sending mails, i can use a POP3 account as well, instead of an SMTP one? Now if that is the case, how do i insert it into my code props.put("mail.smtp.host", "smtp.jspinsider.com"); This is the code that connects to the SMTP server. If i replace this with props.put("mail.smtp.host", "mypop3.com"); but what do i do with "mail.smtp.host" and where & how do i put in the username & password that is needed to access my POP3 account. In fact, for that matter, even if i do have an SMTP account, how do give the user/pwd? There is another line of code that mentions SMTP : transport = sendMailSession.getTransport("smtp"); transport.send(newMessage); What will i have to change in this "smtp" in order for my POP3 account to function? I'm sorry for constant questions. I'm new to both JSP and Mail servers. Thanks a lot, Cheers & Glory, SupremeBeing >From: "Jim Rueschhoff" <[EMAIL PROTECTED]> >To: "Supreme Being" <[EMAIL PROTECTED]> >SUBJECTDate: Thu, 31 May 2001 09:43:46 -0700 > >You can use any mail provider you want including internet mail but you must >have pop3, imap and/or smtp access to the mail servers. A mail server >provided by your internet service provider would be fine but you must have a >mail server to connect to from java mail. > >The javamail package is a java extention and as such should be installed in >the d:\Allaire\JRun\lib\ext directory to be consistant with the other javax >files. You could install them elsewhere but you would have to change the >import paths, etc. to get it to work. Your error message seems to indicate >that the system is finding them however. > >The java container (server) you are using is JRun from you other answers. > >Your code shows you are trying to send the email through the >smtp.jspinsider.com email server. You need to change this to an email >server that you have permission to use. I am not sure what servers you have >available but for instance if you were an earthlink customer you would use >something like mail.earthlink.net as an email server. I didn't check it >closely but it appears to me that the rest of your code is ok. > >I have not seen the exact error you are getting before but I think it may >mean that the smtp.jspinsider.com email server is rejecting your attempt to >use it because your domain name is not authorized to send email through that >server. > >Perhaps someone here that has seen this error before can confirm it. > >I hope that helps. > >-Original Message- >From: Supreme Being [mailto:[EMAIL PROTECTED]] >Sent: Thursday, May 31, 2001 8:48 AM >To: [EMAIL PROTECTED] >Cc: [EMAIL PROTECTED] >Subject: Re: jrun:sendmail > > >Jim, > >I'm not having any email server installed on my system. In fact i use >Internet Mail (Yahoo, Hoboe) etc. Apart from JSP, i use PHP and ASP for my >Server Programming. PHP has the in-built mail() function and ASP uses either >the CDONTS component or JMail. So i never faced any such problem with them. >However, now with JSP, i'm having these problems sending mail. > >>JavaMail and JAF works fine. How do you have it installed. In which >>directories did you put all the .jar files. > >I've placed all these files in D:\Allaire\JRun\servers\lib >In fact, they are also in D:\Allaire\JRun\lib >cause on person told me they should go there. > >>What java container are you using? >This, i don't understant. > >>When you say it doesn't work, what do you mean? >Well this the error that i get when i click my "Send" button : > >javax.mail.SendFailedException: Sending failed; nested exception is: >javax.mail.SendFailedException: Invalid Addresses; nested exception is: >javax.mail.SendFailedException: 553 sorry, that domain isn't in my list of >allowed rcpthosts (#5.7.1) > >And if you wanna see ... this is the code that i'm using : > ><%@ page > import=" javax.mail.*, javax.mail.internet.*, >javax.activation.*,java.util.*" > %> ><% > > try{ > Properties props = new Properties(); > Session sendMailSession; > Store store; > Transport transport; > > props.put("mail.smtp.host", "smtp.jspinsider.com"); > sendMailSession = Session.getInstance(props, null); > Message newMessage = new MimeMessage(sendMailSession); > newMessage.setFrom(new InternetAddress(request.getParameter("from"))); > newMessage.setRecipient(Message.RecipientType.TO
Massive Deja Vu o Quoi? Re: A Poor Man's JSP compatible Search Engine Implementation
Haven't I seen this email before -- Peter Pilgrim "Putting PLEASE HELP ME! URGENT HELP! in the E-Mail Subject: Line, will probably lead to the opposite intention." << The Windows Trash Can >> Message History From: Julian Doherty <[EMAIL PROTECTED]>@JAVA.SUN.COM> on 18/05/2001 09:41 ZE12 Please respond to A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> DELEGATED - Sent by: A mailing list about Java Server Pages specification and [EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: Subject: Re: A Poor Man's JSP compatible Search Engine Implementation We are using Lucene (http://www.lucene.com/) as a search engine on our Intranet project with good results. It handles indexing terms, and running searches on them. You would need to write/obtain a separate spider to parse the pages and load the terms into it though, as it doesn't cover this part of the search process. -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Displaying images
This is not right! You need to write a special Java Servlet that specifically extract the image from the database using a servlet CGI parameter. Your , say Picture, Servlet sends back to the browser the right content header type for the image e.g "image/jpeg" or "image/gif". Then code your JSPs to refer to the servlet in the hyperlink You can't really do this thing from a JSP because it adds extra stuff like newlines. It has be a proper Java Servlet unfortunately. -- Peter Pilgrim SCJ2P "Putting PLEASE HELP ME! URGENT HELP! in the E-Mail Subject: Line, will probably lead to the opposite intention." << The Windows Trash Can >> Message History From: Erwin Kodiat <[EMAIL PROTECTED]>@java.sun.com> on 01/06/2001 20:04 ZE8 Please respond to A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> DELEGATED - Sent by: A mailing list about Java Server Pages specification and [EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: Subject: Displaying images Dear all, I have a BLOB field in a database which stored image in various formats (JPG, GIF). When I try to write the file through the HTTP Response it always fails. However, I successfully wrote it to a file so I assumed that my data is valid (not corrupted). The followings is the scriptlet. Can anyone give me a suggestion? Thanks a lot in advance. Regards, Erwin Kodiat Mitrais Software Development Center Bali, Indonesia <% try { BinObject bo = new BinObject(); bo.objectID= "991986"; bo.type="test"; bo.contentType = "image/jpeg"; InitialContext ic = new InitialContext(); Object obj = ic.lookup("BinObjectBean"); BinObjectHome home = (BinObjectHome) PortableRemoteObject.narrow(obj, BinObjectHome.class); BinObjectRemote remote = home.findByPrimaryKey((PKBinObject) bo); BinObject objBO = remote.getRepository(); response.setContentType("image/jpeg"); //BEGINNING OF SECTION TO DISPLAY IMAGE OutputStream fos = null; fos = response.getOutputStream(); fos.write(objBO.binaryData, 0, objBO.binaryData.length); fos.flush(); fos.close(); } catch(Exception e) { System.out.println("JSP Error : "+ e.getMessage()); } %> === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
off topic (javascript popup window selection) ???
Hi, I was looking for this in some javascripts sites , but could not find it, please if you know a web site that has done it , show me the link, or if you have done it, I will appreciate your help. from a parent window the user has two radi buttons YES and NO when the user click in one of them, a pop up window show up with several checked box, from that pop up window the user can check one or more checked boxes, then click select button, the popup window disappears and in the parent window under the radio button selected the user can see the value selected. Thanks lot _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: off topic (javascript popup window selection) ???
This is SPECIFICALLY a javascript question. Sufi, please join a javascript mailing list and post this question there. Here is the url for what I feel is a fairly good javascript mailing list. It should be able to help you with questions such as this in the future. http://www.LaTech.edu/mailman/listinfo/javascript Joseph Karau Kingland Systems [EMAIL PROTECTED] 507-536-3629 AIM: jkara3629 -Original Message- From: sufi malak [mailto:[EMAIL PROTECTED]] Sent: Friday, June 01, 2001 10:19 AM To: [EMAIL PROTECTED] Subject: off topic (javascript popup window selection) ??? Hi, I was looking for this in some javascripts sites , but could not find it, please if you know a web site that has done it , show me the link, or if you have done it, I will appreciate your help. from a parent window the user has two radi buttons YES and NO when the user click in one of them, a pop up window show up with several checked box, from that pop up window the user can check one or more checked boxes, then click select button, the popup window disappears and in the parent window under the radio button selected the user can see the value selected. Thanks lot _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
free hosting site for JSp
hi friends Hey if any one knows the Free hosting web sites for JSP please let me know as I need it urgently Regards Preeti - Original Message - From: Sachin S. Khanna <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 18, 2001 7:02 AM > Find the modified jsp and bean files below : > They are working :-) > bean file : > > mport java.sql.*; > import java.util.*; > > public class databank { > > private String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; > private String url = "jdbc:odbc:db1"; > private Connection connection; > private Statement statement; > private ResultSet res; > private ResultSetMetaData meta; > private String naam; > private int aantal; > > public databank(){} > > public ResultSet lijst(){ > try { >String query = "select * from klant"; >Class.forName(driver); >connection = DriverManager.getConnection(url); >statement = connection.createStatement(); >res = statement.executeQuery(query); > } > catch (SQLException e){ > } > catch (ClassNotFoundException cnfex){} > > return res; > } > } > -- > jsp file > > html> > > > <%@ page import="databank" %> > <%@ page import="java.sql.*" %> > > > > <%! ResultSet res; > ResultSetMetaData meta; > int aantal; > int kol; > %> > > <% res = db.lijst(); > %> > > <% if(!res.next()) { > System.out.println("Reached here again"); > out.println("Deze instructie heeft geen resultaten"); > } > else > > res.next(); > %> > <%= res.getString(0) %> > <% } %> > > > > > > > > Have a nice day. > With regards, > Sachin S. Khanna > http://www.emailanorder.com > - Original Message - > From: Jonas Devries <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, May 18, 2001 3:14 PM > > > > This is the whole jsp-file!!! > > > > Hope you can do something with it!! > > > > Thanx > > Jonas > > > > > > > > > > <%@ page import="databank" import="java.sql.*" %> > > > > > > > > <%! ResultSet res; > > ResultSetMetaData meta; > > int aantal; > > int kol; > > %> > > > > <% res = db.lijst("select * from klant"); %> > > > > <% if(!res.next()) { > > out.println("Deze instructie heeft geen resultaten"); > > } > > else { %> > > <%= res.getString(0) %> > > <% } %> > > > > > > > > > > > > > > >From: "Sachin S. Khanna" <[EMAIL PROTECTED]> > > >Reply-To: A mailing list about Java Server Pages specification and > > > reference <[EMAIL PROTECTED]> > > >To: [EMAIL PROTECTED] > > >Date: Fri, 18 May 2001 14:37:47 +0530 > > > > > >Couple of things : > > >a) Provide the complete source code for the jsp. > > >b) Apparently nothing seems to be wrong with your java bean code. > > >Have a nice day. > > >With regards, > > >Sachin S. Khanna > > >http://www.emailanorder.com > > >- Original Message - > > >From: Jonas Devries <[EMAIL PROTECTED]> > > >To: <[EMAIL PROTECTED]> > > >Sent: Friday, May 18, 2001 1:04 PM > > > > > > > > > > Does somebody knows why this code doesn't work? I want to acces a MS > = > > > > Access DB and give a simple query. I give the ResultSet back to my > JSP > > >= > > > > file but he gives some errors. JSP and Java-bean are included. > Errors > > >= > > > > also. There is data in the db and the odbc-jdbc driver is installed. > > > > > > > > Thank you very much in advance > > > > > > > > Jonas > > > > > > > > > > > > import java.sql.*; > > > > import java.util.*; > > > > > > > > public class databank { > > > > > > > > private String driver =3D "sun.jdbc.odbc.Jdbc.OdbcDriver"; > > > > private String url =3D "jdbc:odbc:db1"; > > > > private Connection connection; > > > > private Statement statement; > > > > private ResultSet res; > > > > private ResultSetMetaData meta; > > > > private String naam; > > > > private int aantal; > > > > > > > > public databank(){} > > > > =20 > > > > =20 > > > > public ResultSet lijst(){ > > > > > > > > try { > > > >String query =3D "select * from klant"; > > > >Class.forName(driver); > > > >connection =3D DriverManager.getConnection(url);=20 > > > >statement =3D connection.createStatement(); > > > >res =3D statement.executeQuery(query);=20 > > > > =20 > > > > } > > > > catch (SQLException e){} > > > > catch (ClassNotFoundException cnfex){}=20 > > > > > > > > return res; > > > > > > > > } > > > > > > > > } > > > > > > > > > > > > > > > > > > > > ResultSetMetaData meta =3D res.getMetaData(); int aantal =3D > > > > meta.getColumnCount(); %> while (res.next()){ for (kol =3D 1; kol <=3D > > > > aantal; kol++) %> > > > > > > > > > > > > > > > > > > > > > > > > Error: 500 > > > > Location: /test9.jsp > > > > Internal Servlet Error: > > > > > > > > javax.servlet.ServletException > > > > at = > > > > > > > >org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContext= > > > > Impl.java:386) > > > > at = > > > > > > > >_0002ftest_00039_0002ejsptest9_jsp_0._jspService(_0002ftest_00039_0002ejs= > > > > p
AW: free hosting site for JSp
http://www.webappcabaret.com http://www.mycgiserver.com -Ursprüngliche Nachricht- Von: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]Im Auftrag von Preeti Gesendet: Freitag, 1. Juni 2001 20:56 An: [EMAIL PROTECTED] Betreff: free hosting site for JSp hi friends Hey if any one knows the Free hosting web sites for JSP please let me know as I need it urgently Regards Preeti - Original Message - From: Sachin S. Khanna <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 18, 2001 7:02 AM > Find the modified jsp and bean files below : > They are working :-) > bean file : > > mport java.sql.*; > import java.util.*; > > public class databank { > > private String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; > private String url = "jdbc:odbc:db1"; > private Connection connection; > private Statement statement; > private ResultSet res; > private ResultSetMetaData meta; > private String naam; > private int aantal; > > public databank(){} > > public ResultSet lijst(){ > try { >String query = "select * from klant"; >Class.forName(driver); >connection = DriverManager.getConnection(url); >statement = connection.createStatement(); >res = statement.executeQuery(query); > } > catch (SQLException e){ > } > catch (ClassNotFoundException cnfex){} > > return res; > } > } > -- > jsp file > > html> > > > <%@ page import="databank" %> > <%@ page import="java.sql.*" %> > > > > <%! ResultSet res; > ResultSetMetaData meta; > int aantal; > int kol; > %> > > <% res = db.lijst(); > %> > > <% if(!res.next()) { > System.out.println("Reached here again"); > out.println("Deze instructie heeft geen resultaten"); > } > else > > res.next(); > %> > <%= res.getString(0) %> > <% } %> > > > > > > > > Have a nice day. > With regards, > Sachin S. Khanna > http://www.emailanorder.com > - Original Message - > From: Jonas Devries <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, May 18, 2001 3:14 PM > > > > This is the whole jsp-file!!! > > > > Hope you can do something with it!! > > > > Thanx > > Jonas > > > > > > > > > > <%@ page import="databank" import="java.sql.*" %> > > > > > > > > <%! ResultSet res; > > ResultSetMetaData meta; > > int aantal; > > int kol; > > %> > > > > <% res = db.lijst("select * from klant"); %> > > > > <% if(!res.next()) { > > out.println("Deze instructie heeft geen resultaten"); > > } > > else { %> > > <%= res.getString(0) %> > > <% } %> > > > > > > > > > > > > > > >From: "Sachin S. Khanna" <[EMAIL PROTECTED]> > > >Reply-To: A mailing list about Java Server Pages specification and > > > reference <[EMAIL PROTECTED]> > > >To: [EMAIL PROTECTED] > > >Date: Fri, 18 May 2001 14:37:47 +0530 > > > > > >Couple of things : > > >a) Provide the complete source code for the jsp. > > >b) Apparently nothing seems to be wrong with your java bean code. > > >Have a nice day. > > >With regards, > > >Sachin S. Khanna > > >http://www.emailanorder.com > > >- Original Message - > > >From: Jonas Devries <[EMAIL PROTECTED]> > > >To: <[EMAIL PROTECTED]> > > >Sent: Friday, May 18, 2001 1:04 PM > > > > > > > > > > Does somebody knows why this code doesn't work? I want to acces a MS > = > > > > Access DB and give a simple query. I give the ResultSet back to my > JSP > > >= > > > > file but he gives some errors. JSP and Java-bean are included. > Errors > > >= > > > > also. There is data in the db and the odbc-jdbc driver is installed. > > > > > > > > Thank you very much in advance > > > > > > > > Jonas > > > > > > > > > > > > import java.sql.*; > > > > import java.util.*; > > > > > > > > public class databank { > > > > > > > > private String driver =3D "sun.jdbc.odbc.Jdbc.OdbcDriver"; > > > > private String url =3D "jdbc:odbc:db1"; > > > > private Connection connection; > > > > private Statement statement; > > > > private ResultSet res; > > > > private ResultSetMetaData meta; > > > > private String naam; > > > > private int aantal; > > > > > > > > public databank(){} > > > > =20 > > > > =20 > > > > public ResultSet lijst(){ > > > > > > > > try { > > > >String query =3D "select * from klant"; > > > >Class.forName(driver); > > > >connection =3D DriverManager.getConnection(url);=20 > > > >statement =3D connection.createStatement(); > > > >res =3D statement.executeQuery(query);=20 > > > > =20 > > > > } > > > > catch (SQLException e){} > > > > catch (ClassNotFoundException cnfex){}=20 > > > > > > > > return res; > > > > > > > > } > > > > > > > > } > > > > > > > > > > > > > > > > > > > > ResultSetMetaData meta =3D res.getMetaData(); int aantal =3D > > > > meta.getColumnCount(); %> while (res.next()){ for (kol =3D 1; kol <=3D > > > > aantal; kol++) %> > > > > > > > > > > > > > > > > > > > > > > > > Error: 500 > > > > Location: /test9.jsp > > > > Internal Servlet
Re: free hosting site for JSp
http://www.webappcabaret.com Santosh Preeti <[EMAIL PROTECTED]> on 06/01/2001 02:55:47 PM Please respond to A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc:(bcc: Santosh Daryani/IT/Aon Consulting) Subject: free hosting site for JSp hi friends Hey if any one knows the Free hosting web sites for JSP please let me know as I need it urgently Regards Preeti - Original Message - From: Sachin S. Khanna <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 18, 2001 7:02 AM > Find the modified jsp and bean files below : > They are working :-) > bean file : > > mport java.sql.*; > import java.util.*; > > public class databank { > > private String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; > private String url = "jdbc:odbc:db1"; > private Connection connection; > private Statement statement; > private ResultSet res; > private ResultSetMetaData meta; > private String naam; > private int aantal; > > public databank(){} > > public ResultSet lijst(){ > try { >String query = "select * from klant"; >Class.forName(driver); >connection = DriverManager.getConnection(url); >statement = connection.createStatement(); >res = statement.executeQuery(query); > } > catch (SQLException e){ > } > catch (ClassNotFoundException cnfex){} > > return res; > } > } > -- > jsp file > > html> > > > <%@ page import="databank" %> > <%@ page import="java.sql.*" %> > > > > <%! ResultSet res; > ResultSetMetaData meta; > int aantal; > int kol; > %> > > <% res = db.lijst(); > %> > > <% if(!res.next()) { > System.out.println("Reached here again"); > out.println("Deze instructie heeft geen resultaten"); > } > else > > res.next(); > %> > <%= res.getString(0) %> > <% } %> > > > > > > > > Have a nice day. > With regards, > Sachin S. Khanna > http://www.emailanorder.com > - Original Message - > From: Jonas Devries <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, May 18, 2001 3:14 PM > > > > This is the whole jsp-file!!! > > > > Hope you can do something with it!! > > > > Thanx > > Jonas > > > > > > > > > > <%@ page import="databank" import="java.sql.*" %> > > > > > > > > <%! ResultSet res; > > ResultSetMetaData meta; > > int aantal; > > int kol; > > %> > > > > <% res = db.lijst("select * from klant"); %> > > > > <% if(!res.next()) { > > out.println("Deze instructie heeft geen resultaten"); > > } > > else { %> > > <%= res.getString(0) %> > > <% } %> > > > > > > > > > > > > > > >From: "Sachin S. Khanna" <[EMAIL PROTECTED]> > > >Reply-To: A mailing list about Java Server Pages specification and > > > reference <[EMAIL PROTECTED]> > > >To: [EMAIL PROTECTED] > > >Date: Fri, 18 May 2001 14:37:47 +0530 > > > > > >Couple of things : > > >a) Provide the complete source code for the jsp. > > >b) Apparently nothing seems to be wrong with your java bean code. > > >Have a nice day. > > >With regards, > > >Sachin S. Khanna > > >http://www.emailanorder.com > > >- Original Message - > > >From: Jonas Devries <[EMAIL PROTECTED]> > > >To: <[EMAIL PROTECTED]> > > >Sent: Friday, May 18, 2001 1:04 PM > > > > > > > > > > Does somebody knows why this code doesn't work? I want to acces a MS > = > > > > Access DB and give a simple query. I give the ResultSet back to my > JSP > > >= > > > > file but he gives some errors. JSP and Java-bean are included. > Errors > > >= > > > > also. There is data in the db and the odbc-jdbc driver is installed. > > > > > > > > Thank you very much in advance > > > > > > > > Jonas > > > > > > > > > > > > import java.sql.*; > > > > import java.util.*; > > > > > > > > public class databank { > > > > > > > > private String driver =3D "sun.jdbc.odbc.Jdbc.OdbcDriver"; > > > > private String url =3D "jdbc:odbc:db1"; > > > > private Connection connection; > > > > private Statement statement; > > > > private ResultSet res; > > > > private ResultSetMetaData meta; > > > > private String naam; > > > > private int aantal; > > > > > > > > public databank(){} > > > > =20 > > > > =20 > > > > public ResultSet lijst(){ > > > > > > > > try { > > > >String query =3D "select * from klant"; > > > >Class.forName(driver); > > > >connection =3D DriverManager.getConnection(url);=20 > > > >statement =3D connection.createStatement(); > > > >res =3D statement.executeQuery(query);=20 > > > > =20 > > > > } > > > > catch (SQLException e){} > > > > catch (ClassNotFoundException cnfex){}=20 > > > > > > > > return res; > > > > > > > > } > > > > > > > > } > > > > > > > > > > > > > > > > > > > > ResultSetMetaData meta =3D res.getMetaData(); int aantal =3D > > > > meta.getColumnCount(); %> while (res.next()){ for (kol =3D 1; kol <=3D > > > > aantal; kol++) %> > > > > > > > > > > > > > > > > > > > > > > > > Error: 500 > > > > Location: /test9.jsp > > > > Int
Re: off topic (javascript popup window selection) ???
Sufi, I assume you know how to create the popup window and lay out the selection boxes. So what you do is after clicking the select button, you can either: 1. use Javascript to populate fields in the parent window something like, window.opener.document.[whatever].value or 2. pass the check boxes values to a servlet, and process/ manipulate those values then forward back to the parent window. > -Original Message- > From: sufi malak [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 01, 2001 8:19 AM > To: [EMAIL PROTECTED] > Subject: off topic (javascript popup window selection) ??? > > > Hi, I was looking for this in some javascripts sites , but > could not find > it, please if you know a web site that has done it , show me > the link, or if > you have done it, I will appreciate your help. > > from a parent window the user has two radi buttons YES and NO > when the user click in one of them, a pop up window show up > with several > checked box, from that pop up window the user can check one > or more checked > boxes, then click select button, the popup window disappears > and in the > parent window under the radio button selected the user can > see the value > selected. > > Thanks lot > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: > "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set > JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Connection Issue
Hi, I am not sure whether I should use Connection Pooling or Not. In an intranet application where the connections for the number of concurrent users at anytime (lets say 20) is supported by the database, is there an advantage to using Connection Pooling? Could there be problems if we get a connection at login, save it in a Bean with session scope and use it through out the client session and disconnect at logout? Hope someone can shred some light. Thanks. Chintha _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: free hosting site for JSp
try www.isavvix.com thanks -VA -Original Message- From: Preeti [mailto:[EMAIL PROTECTED]] Sent: Friday, June 01, 2001 2:56 PM To: [EMAIL PROTECTED] Subject: free hosting site for JSp hi friends Hey if any one knows the Free hosting web sites for JSP please let me know as I need it urgently Regards Preeti - Original Message - From: Sachin S. Khanna <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 18, 2001 7:02 AM > Find the modified jsp and bean files below : > They are working :-) > bean file : > > mport java.sql.*; > import java.util.*; > > public class databank { > > private String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; > private String url = "jdbc:odbc:db1"; > private Connection connection; > private Statement statement; > private ResultSet res; > private ResultSetMetaData meta; > private String naam; > private int aantal; > > public databank(){} > > public ResultSet lijst(){ > try { >String query = "select * from klant"; >Class.forName(driver); >connection = DriverManager.getConnection(url); >statement = connection.createStatement(); >res = statement.executeQuery(query); > } > catch (SQLException e){ > } > catch (ClassNotFoundException cnfex){} > > return res; > } > } > -- > jsp file > > html> > > > <%@ page import="databank" %> > <%@ page import="java.sql.*" %> > > > > <%! ResultSet res; > ResultSetMetaData meta; > int aantal; > int kol; > %> > > <% res = db.lijst(); > %> > > <% if(!res.next()) { > System.out.println("Reached here again"); > out.println("Deze instructie heeft geen resultaten"); > } > else > > res.next(); > %> > <%= res.getString(0) %> > <% } %> > > > > > > > > Have a nice day. > With regards, > Sachin S. Khanna > http://www.emailanorder.com > - Original Message - > From: Jonas Devries <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, May 18, 2001 3:14 PM > > > > This is the whole jsp-file!!! > > > > Hope you can do something with it!! > > > > Thanx > > Jonas > > > > > > > > > > <%@ page import="databank" import="java.sql.*" %> > > > > > > > > <%! ResultSet res; > > ResultSetMetaData meta; > > int aantal; > > int kol; > > %> > > > > <% res = db.lijst("select * from klant"); %> > > > > <% if(!res.next()) { > > out.println("Deze instructie heeft geen resultaten"); > > } > > else { %> > > <%= res.getString(0) %> > > <% } %> > > > > > > > > > > > > > > >From: "Sachin S. Khanna" <[EMAIL PROTECTED]> > > >Reply-To: A mailing list about Java Server Pages specification and > > > reference <[EMAIL PROTECTED]> > > >To: [EMAIL PROTECTED] > > >Date: Fri, 18 May 2001 14:37:47 +0530 > > > > > >Couple of things : > > >a) Provide the complete source code for the jsp. > > >b) Apparently nothing seems to be wrong with your java bean code. > > >Have a nice day. > > >With regards, > > >Sachin S. Khanna > > >http://www.emailanorder.com > > >- Original Message - > > >From: Jonas Devries <[EMAIL PROTECTED]> > > >To: <[EMAIL PROTECTED]> > > >Sent: Friday, May 18, 2001 1:04 PM > > > > > > > > > > Does somebody knows why this code doesn't work? I want to acces a MS > = > > > > Access DB and give a simple query. I give the ResultSet back to my > JSP > > >= > > > > file but he gives some errors. JSP and Java-bean are included. > Errors > > >= > > > > also. There is data in the db and the odbc-jdbc driver is installed. > > > > > > > > Thank you very much in advance > > > > > > > > Jonas > > > > > > > > > > > > import java.sql.*; > > > > import java.util.*; > > > > > > > > public class databank { > > > > > > > > private String driver =3D "sun.jdbc.odbc.Jdbc.OdbcDriver"; > > > > private String url =3D "jdbc:odbc:db1"; > > > > private Connection connection; > > > > private Statement statement; > > > > private ResultSet res; > > > > private ResultSetMetaData meta; > > > > private String naam; > > > > private int aantal; > > > > > > > > public databank(){} > > > > =20 > > > > =20 > > > > public ResultSet lijst(){ > > > > > > > > try { > > > >String query =3D "select * from klant"; > > > >Class.forName(driver); > > > >connection =3D DriverManager.getConnection(url);=20 > > > >statement =3D connection.createStatement(); > > > >res =3D statement.executeQuery(query);=20 > > > > =20 > > > > } > > > > catch (SQLException e){} > > > > catch (ClassNotFoundException cnfex){}=20 > > > > > > > > return res; > > > > > > > > } > > > > > > > > } > > > > > > > > > > > > > > > > > > > > ResultSetMetaData meta =3D res.getMetaData(); int aantal =3D > > > > meta.getColumnCount(); %> while (res.next()){ for (kol =3D 1; kol <=3D > > > > aantal; kol++) %> > > > > > > > > > > > > > > > > > > > > > > > > Error: 500 > > > > Location: /test9.jsp > > > > Internal Servlet Error: > > > > > > > > javax.servlet.ServletException > > > > at = > > > > > > > >org.apache.jasper.runti
Re: Connection Issue
Though you have limited number of users, generally, not all of them will be using the dbConnection at the same time. So you need to use connection pooling to conserve memory resources, as each connection abounts to gobbling up certain sapce in memory. Since you do not want to jam your JVM with unclosed connections, you should promptly close it after use. hope this answers your question thanks -VA -Original Message- From: chintha ratnasiri [mailto:[EMAIL PROTECTED]] Sent: Friday, June 01, 2001 2:45 PM To: [EMAIL PROTECTED] Subject: Connection Issue Hi, I am not sure whether I should use Connection Pooling or Not. In an intranet application where the connections for the number of concurrent users at anytime (lets say 20) is supported by the database, is there an advantage to using Connection Pooling? Could there be problems if we get a connection at login, save it in a Bean with session scope and use it through out the client session and disconnect at logout? Hope someone can shred some light. Thanks. Chintha _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: MVC, EJBs and Oracle-TESTING SITES
Sorry this took so long: www.testmybeans.com for load and stress testing www.ejbquick.com for regression and performance testing and measurement www.mmsindia.com for checking and measuring source code quality www.parasoft.com for QA testing > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Mayuresh Kadu > Sent: Saturday, May 26, 2001 3:30 PM > To: [EMAIL PROTECTED] > Subject: Re: MVC, EJBs and Oracle > > > yep .. i would be interested in reading that too .. > > > Mayuresh > > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Nevarez, Benjamin > Sent: Saturday, May 26, 2001 04:25 > To: [EMAIL PROTECTED] > Subject: Re: MVC, EJBs and Oracle > > > Well, I am not saying that my solution is the best and that other > solutions > are bad. I am just saying that this solution looks very good to me. > > But anyway it will be interesting to compare the two choices you say, and > probably others. I think I'll do it, later. > > I do not know about the tools to 'simulate 1000+ users hitting the submit > button at the same time' so please give us more info about it. > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set > JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
JSP Manual in PDF
Just wanted 2 know, is there a Manual available on the Net on JSP?Which can help learn, use & understand better JSP? SupremeBeing ** >From my right-eye i create all for myself, from the left-eye i accept all that there >is otherwise. It is nothing more than what i deserve, for i am the Supreme Being ** Are you a Hoboe? Hobnob at http://www.hoboe.com Click here -> http://www.hoboe.com Global Mail Access === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
How to properly setHeader in JSP?
I have read the following warning in several books that for setHeader, need to: "Be sure to set response headers before sending any document content to the client." Eg. of such a warning - see page 144 of: http://developer.java.sun.com/developer/Books/cservletsjsp/chapter7.pdf There is a sample of do proper setHeader for Servlets (see page 156, 157 in the above PDF). Basically the setHeader command is placed BEFORE the PrinWriter command. ie. response.setHeader("Refresh", "5"); response.setContentType("text/html"); PrintWriter out = response.getWriter(); How can I achieve this in JSP? I have tried using <% response.setHeader("Refresh", "5"); %> but I find that the generated servlet code is as follows: out = pageContext.getOut(); out.print(_jspx_html_data[0]); response.setHeader("Cache-Control", "no-cache"); ie. the setHeader comes AFTER some print commands. Is this acceptable? or is there something wrong with the way I am coding my setHeader in the JSP? [I know that in the case of setContentType, there is a special command <%@ page contentType="" %> to ensure that the setContentType command is generated in the correct position - ie. before any out.print command. Is there something equivalent for setHeader?] Thanks. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
distributed shared session
Hi We are In the process of adding a distributed session api to JavaSpaces. JavaSpaces is a distributed shared memory service and Is part of the JINI starter-kit java.sun.com/JINI ) One of the demands for this set of api is maintain a consistent session key that will be shared across several webservers and applications. Does anyone know how I can control the session key behavior ? To give an idea of what this is all about I will use the following scenario: A user perform a search query in server A. The same user need to browse the search result in server B. Server A and B will need to share the search result information and maintain a consistent session information between A and B. Any ideas ? --- Nati Shalom www.j-spaces.com "the space is the network" === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: JSP Manual in PDF
First, you can download the official tutorial from JavaSoft: http://java.sun.com/products/jsp/docs.html http://java.sun.com/products/jsp/pdf/jsptut.pdf And to keep you going, you can also take a look at the WebLogic 6.0 documentation: Programming WebLogic JSP: http://e-docs.bea.com/wls/docs60/jsp/index.html http://e-docs.bea.com/wls/docs60/pdf/jsp.pdf Programming JSP Tag Extensions: http://e-docs.bea.com/wls/docs60/taglib/index.html http://e-docs.bea.com/wls/docs60/pdf/taglib.pdf --- Supreme Being <[EMAIL PROTECTED]> wrote: > Just wanted 2 know, is there a Manual available on the Net on JSP?Which can > help learn, use & understand better JSP? > > SupremeBeing __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: [ClassPath] JSP, JDBC, and mm.MySql
Jon, i'm not too sure about Apache, i don't use that one for JSP. I'm running JRun for my JSP. I do use Apache for PHP though. It took me a long time setting up a mySQL connection using JSP before someone told me that there is no need for any CLASSPATH inclusions in the bat file. CLASSPATH was not required. Only thing needed to be done was placing the "mysql.jar" file in the /servers/lib folder of my JRun. And voila...it worked. Apache has a /lib folder too, trying placing the jar file thier and see if it works... SupremeBeing >Date: Thu, 17 May 2001 23:49:16 -0500 >Reply-To: [EMAIL PROTECTED] >From: Jon Shoberg <[EMAIL PROTECTED]> >SUBJECTTo: [EMAIL PROTECTED] > >Its getting late but I'm not having too much luck at getting a sucessful >JSP / mysql connection. Given the error message below can someone explain >where I should be setting my class path and the actual mm.mysql files or the >entire jar file? I am using jdk1.3 with the latest apache on win2K pro. > >My JSP page looks like and the error is below: > > > >Login > ><%@ page import="java.sql.*, java.io.*" %> ><% > // Step 1: registering the MySQL JDBC driver > > try { >// The newInstance() call is a work around for some >// broken Java implementations >Class.forName("org.gjt.mm.mysql.Driver").newInstance(); > } > catch (Exception E) { >out.println("some crapUnable to load >driver."); >E.printStackTrace(new PrintWriter(out)); > } > > >%> > > > >error: > > >java.lang.ClassNotFoundException: Unable to load class >org.gjt.mm.mysql.Driver at >org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223) at >org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147) at >java.lang.ClassLoader.loadClass(ClassLoader.java:253) at >java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at >java.lang.Class.forName0(Native Method) at >java.lang.Class.forName(Class.java:120) at >_0002fsql_0002ejspsql_jsp_7._jspService(_0002fsql_0002ejspsql_jsp_7.java:70) >at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at >javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at >org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja >va:177) at >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at >org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at >javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at >org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at >org.apache.tomcat.core.Handler.service(Handler.java:286) at >org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at >org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 >7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) >at >org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection >(Ajp12ConnectionHandler.java:166) at >org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at >org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) >at java.lang.Thread.run(Thread.java:484) > >=== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > >=== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets ** >From my right-eye i create all for myself, from the left-eye i accept all that there >is otherwise. It is nothing more than what i deserve, for i am the Supreme Being ** Are you a Hoboe? Hobnob at http://www.hoboe.com Click here -> http://www.hoboe.com Global Mail Access === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets