Re: List page problem - JSP
Does anyone happen to know how to do this same query in SQL. I am using Microsoft SQL 2000 and can't find a similar query to accomplish this same task. Any help would be appreciated. Eric - Original Message - From: Peter Dolukhanov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 02:33 pm Subject: Re: List page problem - JSP Try using the command: SELECT * FROM TABLE LIMIT 0,50; Obviously changing the numbers does what you need. Cheers, Pete -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]] On Behalf Of JOSHY MON M C Sent: 03 April 2002 19:42 To: [EMAIL PROTECTED] Subject: List page problem - JSP Hi All I have a JSP page that displays a list. The list is shown querying against a database( oracle). It displays data when there few items in the list. If there are 1000 items or so, the list is not displaying, the page hangs. why ? What to do if I need to display the list batchwise (pagewise) say 50 items /page ? How to do that in Db? can anyone help ? Thanks in advance joshy === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
[no subject]
I am a student, a class can have 0 or more objects. - Original Message - From: Zahid Rahman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 02:25 am In fact any student who is logged on this line can answer ? what is the difference between a class and an object ? - Original Message - From: Zahid Rahman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 7:15 AM Incidentally I am very much interested in how academia is doing your part of the world. - Original Message - From: Thuan N. Nguyen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 5:05 PM Hi all, I am a student. I am attending a class Java Programming and having a project of building a mail server. As I am new to Java programming, I don't know where to start, can any one please give me some advices? Thanks in advance. ThuanNN = 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Java Programming (Thread safe)
http://www-106.ibm.com/developerworks/library/threadsafe/ Pretty good article on the subject. Eric - Original Message - From: [Alan Leung] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 09:33 am Subject: Java Programming (Thread safe) Does anybody have any good site about Java Thread or Thread safe? Or I need some resources about Multi-Threading. I appreciate any help!! === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Check account using Java Mail
Check out this site, they have some utilities you can use to validate email addresses. http://www.jscape.com/emailinspector/index.html Eric - Original Message - From: Chris Pratt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 19, 2002 01:43 pm Subject: Re: Check account using Java Mail VRFY is an internal SMTP command. There's no way to directly issue it using JavaMail, since it abstracts away that level of complexity. Suffice to say that there is no sure fire way to automatically verify a user's email address. Any email system that has an administrator with any brains has disabled the VRFY command in the server so that it will not work, plus it only works with SMTP servers to begin with. The only way to verify an email address is to send an email to it and watch for rejections or bounces. Or even better, make them reply to the mail before you'll consider it verified. You might have better luck with JavaMail questions in the JavaMail Interest List. (*Chris*) - Original Message - From: Suryanarayana Murthy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 19, 2002 6:02 AM Subject: Re: [JSP-INTEREST] Check account using Java Mail where to use this VRFY command . Is this command related to windows? how to test this command. please throw some light if any one knows about this. Thanks Regards, Suryanarayana Murthy A Email: [EMAIL PROTECTED] Ph: 8291680 Ext:1137 / 1136 Dial-Comm: 8* 742-1114/1118 === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Extract data from Excel file
http://www.magelang.com/faq/view.jsp?EID=567234 This will give you some info on this subject. Eric Fleming | GravityFree http://www.gravityfree.com - Original Message - From: BERWART Thierry [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 04, 2002 09:59 am Subject: Re: Extract data from Excel file Hello, I think it's possible with an ODBC link... Thierry -Message d'origine- De : rajac [mailto:[EMAIL PROTECTED]] Envoyé : mardi 5 février 2002 3:13 À : [EMAIL PROTECTED] Objet : Extract data from Excel file Hi, Is it possible to directly extract the data from excel file?. Your suggestions would really help me. Regards, Raja = 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Bar graph in JSP
That's good in IE, but not Netscape. - Original Message - From: Anthony Tagunov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 04:06 pm Subject: Re: Bar graph in JSP Hello, Priya! RRCGL Hi Anthony, RRCGL Just run this HTML code and tell me is this what you require RRCGL table width=300 align=left RRCGL tr align=lefttdhr width=30 size=15 noshade/td/tr RRCGL tr align=lefttdhr width=70 size=15 noshade/td/tr RRCGL tr align=lefttdhr width=50 size=15 noshade/td/tr RRCGL tr align=lefttdhr width=40 size=15 noshade/td/tr RRCGL /table RRCGL You can set the width of hr according to the different values for the RRCGL graphHope this helps. RRCGL Priya. Yes, it's very nice! The only probably unwellcome thing about this approach is that something quite different is rendered in NN 4.7 and NN 6 (they both round the corners). Sure NN rendering is much more cozy, but still it is different from IE. And Opera 6 unfortunantly renderes bars as expected but does not fill them with color :( And in NN and Opera I did not find a way to change color of the images, while in IE it can easealy be done. So, as a resume, it is great for IE, but not as good for others. Again we have to pack it into a table, while the img approach allowes us to embed our bars into text, as img is a replacable inline-level element. Looks like no solution as reliable as a tiny gif has been found. Candidates were: div,td,hr. But none looks to do the job as perfectly as img width=xxx height=yy Best regards, Anton Tagunov === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: How to use Different Fonts
I know there is a way to embed any fonts you would like on the actual page. Microsoft has a product called WEFT that you can download and it will convert any font to an embeddable font. You can then use any font you would like on your page. Note: there are 2 different formats for Netscape and Microsoft, but I think the WEFT will convert to both Eric - Original Message - From: Anthony Tagunov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 04:42 pm Subject: Re: How to use Different Fonts Hello Debopam! DG Can anyone suggest on how I can use different fonts(multilingual) in my DG JSPs, especially when there is a chance that those fonts may not be present on DG the client's machine. This is not a problem of fonts. It's a problem of the what charset you use in the Content-Type header: Content-Type: text/html; charset=xxx It is your problem to use such charset that will contain the characters of the language you use. It is a problem of the user to have fonts to support that language. By the HTML 4.0 spec browsers should convert all text received internally to Unicode (or act as if they did it). Then it depends: the browser may have fonts needed to display the resulting Unicode and may not. If you use Chinese chars the user should have at least one Chinese font to be able to view your pages. AFAIK IE 5.5 afferes an option of downloading Chinese support (approx 6Mb) if it comes over a page that uses Chinese characters. Maybe this happens for other langs too. If you use Cyrillic/Greek chars the user should have some Cyrillic font (or he'll see just blank boxes instead of letters) Of course, you may specify downloadable fonts in CSS, but in most cases people do not do that. You may also find some info at http://tagunov.tripod.com/i18n/i18n.html usefull. (Although be critical when you read it, I already know that some things there are rubbish.) Best regards, Anton Tagunov === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JSP Page has expired Error
I have also encountered this problem and I am not sure how to solve it, please forward suggestions to me as well. Eric - Original Message - From: Jack Xu To: [EMAIL PROTECTED] Sent: Thursday, January 03, 2002 12:08 pm Subject: JSP "Page has expired" Error I need some help on this problem: Consider the following scenario: Two pages: page A, and page B. page A has a link to page B. Page A uses: response.setHeader("Cache-Control","no-cache"); //HTTP 1.1response.setHeader("Pragma","no-cache"); //HTTP 1.0to expire the page once it is loaded in order to ensure the data display on the page A is up-to-date. the problem happends when there is a self-posting form on page A. If a self-post in commited before linking to page B, and from page B, user clicks on brower-provided Back button, he/she will get a "page has expired" error. (it is not a big deal, since a simple refresh will solve it. However, it is still not preferable.) Cause of the problem: form data expired. Only occurs on IE. Any suggestions? Thanks a lot. Jack
Parsing Question
I am building a website where there is a backend to the site in which people can enter what will be displayed on a certain page. They fill out a form on the admin side of the site that allows them to enter a title for the page, the body of the page, and also put up to three images on the page. The form writes to a databse and then the front end queries the databse and outputs the page. I would like them to be able to put in html into the body of the page(ex. br tags) and I have it so they can put b tags in there now, but I had to parse out the string because it is written into the page as #60;b#62; so I Tokenize the body of the page and look for that sequence and in place of it, I put the b. I know there has to be a better way to do this, can anybody give me some suggestions. Eric Fleming | GravityFree 1960 Stickney Point Road | Second Floor Sarasota | FL | 34231 | (941) 927-7674 [EMAIL PROTECTED] http://www.gravityfree.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Parsing Question
I am building a website where there is a backend to the site in which people can enter what will be displayed on a certain page. They fill out a form on the admin side of the site that allows them to enter a title for the page, the body of the page, and also put up to three images on the page. The form writes to a databse and then the front end queries the databse and outputs the page. I would like them to be able to put in html into the body of the page(ex. br tags) and I have it so they can put b tags in there now, but I had to parse out the string because it is written into the page as #60;b#62; so I Tokenize the body of the page and look for that sequence and in place of it, I put the b. I know there has to be a better way to do this, can anybody give me some suggestions. Eric Fleming | GravityFree 1960 Stickney Point Road | Second Floor Sarasota | FL | 34231 | (941) 927-7674 [EMAIL PROTECTED] http://www.gravityfree.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Fw: JDBC question
Please help. I am running JRun on Win 2K and I am trying to set up a page to connect to a DB. I have the following code that is producing the following error: Code: Connection connection = DriverManager.getConnection(jdbc:odbc:Driver=sun.jdbc.odbc.JdbcOdbcDriver;S erver=sqlserver://ipofsqlserver;Database=Test,test,test); Error can be found at this page: http://eric.gravityfree.com/webmail/login.jsp I have the JDBC configured in the Jrun admin. Does anybody know why I might be getting this error? Thank You All- Eric === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Virus Alert!!!
I just finished reading all about it. Even if you don't open the attachment, it'll attempt to infect your system. It can do this by having preview window mode on (I always have this turned off on my PCs) and if you double-click the mail to open it up in its own window. It'll not only infect your address book (an mail others the virus) but will also install a trojan (backdoor) on your system which allows capture of keystrokes, IP other personal info. http:[EMAIL PROTECTED] ml Just though you'd all like to know, I have received about 20 or so in the last few days. Eric Fleming | GravityFree 1960 Stickney Point Road | Second Floor Sarasota | FL | 34231 | (941) 927-7674 [EMAIL PROTECTED] http://www.gravityfree.com - Original Message - From: Troy Campano [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 09:48 am Subject: Re: Virus Alert!!! I got the same ones. -Original Message- From: Francisco Manuel Martínez Suárez [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 4:27 AM To: [EMAIL PROTECTED] Subject: Virus Alert!!! I've received a virus alert in my Microsoft Outlook in two messages from Lorena Carlo and Orlando Perdomo. Archive : YOU_ARE_.scr Virus name : W32/BadTrans@MM Please check your systems. Thanks to all Fran Martinez === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: XML URL error
If you go to http://luxurydomain.com you can see the error. Eric - Original Message - From: Richard Yee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 05:52 pm Subject: Re: XML URL error Can you do an nslookup on both names and does it return the IP address of your machine? What is the exact error that you are getting? Regards, Richard At 05:21 PM 11/28/2001 -0500, you wrote: They are both set up correctly in the DNS. The URL of the site is http://www.luxurydomain.com http://luxurydomain.com is the one that produces the error Eric - Original Message - From: Chris Pratt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 04:23 pm Subject: Re: XML URL error You probably need to look at your DNS configuration and make sure the entry is correctly pointing at the machine you think it is. Remember mydomain.com and www.mydomain.com are two different entries in the DNS table. (*Chris*) - Original Message - From: Eric Fleming [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 6:14 AM Subject: [JSP-INTEREST] XML URL error I developing a site for a client and everything is going good with it, except that when I type in the URL minus the www portion of it, I get an xml error. Is there something that I can put in the web.xml file to solve this problem, perhaps some kind of URL mapping? Thanks for any help, Eric === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
XML URL error
I developing a site for a client and everything is going good with it, except that when I type in the URL minus the www portion of it, I get an xml error. Is there something that I can put in the web.xml file to solve this problem, perhaps some kind of URL mapping? Thanks for any help, Eric === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: XML URL error
They are both set up correctly in the DNS. The URL of the site is http://www.luxurydomain.com http://luxurydomain.com is the one that produces the error Eric - Original Message - From: Chris Pratt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 04:23 pm Subject: Re: XML URL error You probably need to look at your DNS configuration and make sure the entry is correctly pointing at the machine you think it is. Remember mydomain.com and www.mydomain.com are two different entries in the DNS table. (*Chris*) - Original Message - From: Eric Fleming [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 6:14 AM Subject: [JSP-INTEREST] XML URL error I developing a site for a client and everything is going good with it, except that when I type in the URL minus the www portion of it, I get an xml error. Is there something that I can put in the web.xml file to solve this problem, perhaps some kind of URL mapping? Thanks for any help, Eric === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
web.xml application variables
I am a CF developer that has been working with JSP recently. In Cold Fusion, we can set application variables in the application.cfm file that gets processed before each page at request time. For example, say I wanted to set the title of every page to My Website, could I create a parameter in the web.xml file that would allow me to call it on every page and if it needed to be changed, just change it in one place. I can do it using session variables, but I would not like to do this. I was looking into the web.xml file and thought that I may be able to do something similar in JSP using the web.xml file, but I have not been able to do so. If anybody can give me some advice on doing this, it would be greatly appreciated. === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
JSP to PDF, JSP to Word
I am trying to convert PDF's and Word Docs to JSP, anybody have any advice on doing this, searched google, looked at some articles, nothing helped, any advice? Thanks In Advance- Eric === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Help in session...
Try doing this: %session.putValue("total_inc", iTotalIncome);session.putValue("total_exp", iTotalExpenses);session.putValue("net_savings", iNetSavings);% Eric- Original Message - From: Joey A To: [EMAIL PROTECTED] Sent: Tuesday, November 13, 2001 11:13 am Subject: Help in session... Hi all,I'm having some problems using 'session' in my JSP's. Please let me know if anyone of you could help in this code: From the first page, I'm passing these values to the second page: INPUT type="Hidden" maxlength="10" name="total_inc" size="10" INPUT type="Hidden" maxlength="10" name="total_exp" size="10" INPUT type="Hidden" maxlength="10" name="net_savings" size="10" In second page, I'm trying to assign them to new intergers like:% int iTotalIncome=Integer.valueOf(request.getParameter("total_inc")).intValue();int iTotalExpenses=Integer.valueOf(request.getParameter("total_exp")).intValue();int iNetSavings=Integer.valueOf(request.getParameter("net_savings")).intValue();% And then put them in session: %session.putValue("total_inc", iTotalIncome);session.putValue("total_exp", iTotalExpenses);session.putValue("net_savings", iNetSavings);% Finally to access them anywhere: %out.print(session.getValue("total_inc"));%%out.print(session.getValue("total_exp"));%%out.print(session.getValue("net_savings"));% I'm getting the followint error:java.lang.NumberFormatException: nullat java.lang.Integer.parseInt(Compiled Code)at jrun__trial__cashflow__Jo_result2ejsp1d._jspService(jrun__trial__cashflow__Jo_result2ejsp1d.java:49)at allaire.jrun.jsp.HttpJSPServlet.service(Compiled Code)at allaire.jrun.jsp.JSPServlet.service(Compiled Code)at allaire.jrun.jsp.JSPServlet.service(Compiled Code)at allaire.jrun.servlet.JRunSE.service(Compiled Code)at allaire.jrun.session.JRunSessionService.service(Compiled Code)at allaire.jrun.servlet.JRunSE.runServlet(Compiled Code)at allaire.jrun.servlet.JRunRequestDispatcher.forward(Compiled Code)at allaire.jrun.servlet.JRunSE.service(Compiled Code)at allaire.jrun.servlet.JRunSE.service(Compiled Code)at allaire.jrun.servlet.JvmContext.dispatch(Compiled Code)at allaire.jrun.jrpp.ProxyEndpoint.run(Compiled Code)at allaire.jrun.ThreadPool.run(Compiled Code)at allaire.jrun.WorkerThread.run(Compiled Code) Can anyone point out the error? Thanx,Joey
Re: Passing parameters to includes
You may want to try using the include this way so that you can use all of the variables on the current page: %@ include file=test.jsp % Eric - Original Message - From: Chris Tucker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 09, 2001 02:14 pm Subject: Passing parameters to includes Hi all, I was wondering how other people approach the problem of passing parameters to include files (or even if this is really something that it's a good idea to do...). For example, say I want to specify some button text for an included file, I may want pass a parameter called buttontext with the value Hello. The way I've been approaching this so far is to encode the parameters as a query string on the include URL, e.g. jsp:include page=test.jsp?buttontext=Hello / but this doesn't really scale up to anything more than simple textual arguments. I could add stuff to the session or context, allowing me to use more complex objects, but I don't want to be creating a load of interdependencies as far as attribute naming etc. is concerned between an include file and the file including it. Ideally, I'd like to just be able to parameterise the include as one would a method. Any suggestions? Chris Tucker === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Strings
If I want to get a portion of a very long string, say 40 words, how would I go about doing it? I looked at both the archives and the searched the net and could not find what I was looking for. Please help. Eric === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Use of Session Attribute
I am a Cold Fusion Developer learning JSP and have a question. In Cold Fusion we have an application file and upon request of a cf page, the application file is called first. this is how we store a lot of variables associated with each page, is there a file that JSP pages go through first or is there a way to store variables in JSP? I have been using session to do this, but I have to check to see if the variable is defined on every page and if it isn't, set it. Anybody know of an easier way to do this? Sorry if this message is confusing. Eric - Original Message - From: Chris Pratt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 22, 2001 12:18 pm Subject: Re: Use of Session Attribute If you never use Session Scope or any Session variables, you can set session=false and save a little memory and a very small amount of processing time. Each time the JSP is entered it calls session = request.getSession(); to populate the intrinsic session variable. On the first call this creates a HashMap to store all the session variables, calculates a unique Session ID, and adds a Cookie to the Response. On each subsequent call it simply looks up the Cookie from the Request and uses the Session ID it contains to retrieve the Session Object from the HashMap. (*Chris*) - Original Message - From: Saravanan Thangaraju [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 19, 2001 11:52 PM Subject: [JSP-INTEREST] Use of Session Attribute What impact will setting attribute session = false in the page directive of a jsp.. Is it recommended.? Saravanan . T. Consultant Kanbay Software ,India. 020-7691100 (ext - 511) -Original Message- From: Dmitry Namiot [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 1:51 PM To: [EMAIL PROTECTED] Subject: Re: Formating Text In JSP Check out Excape taglib from Coldjava's suite for example: http://www.servletsuite.com/jsp.htm -- Coldjava - server-side Java components http://www.servletsuite.com __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com This message and any attachment(s) is intended only for the use of the addressee(s) and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended addressee(s), you are hereby notified that any use, distribution, disclosure or copying of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachment(s) and notify the sender or Kanbay postmaster immediately. Any views expressed in this message are those of the individual sender. Although we have taken steps to ensure that this e-mail and any attachment(s) are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL