Re: Include Directive
Mr. Dylan Rosario, The jsp include directive does the inclusion at compile time when the jsp is being compiled into a servlet and the jsp include tag does the inclusion at runtime. Therefore based on your need the jsp include tag should be used. Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com - Original Message - From: Dylan Rosario <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 11:51 PM Subject: Include Directive > Hi, > > I asked a question about this a while ago but got zero for an answer. > Probably because I didn't put a lot of background about the problem. > > I'm trying to do a dynamic include page or directive based upon a value in > the URL, some thing like this: > > <%@ include > file="((request.getParameter("body_val")!=null)?request.getParameter("body_v > al"):"")" %> > > OR > > > > > > History behind this code is : > I want to assign the value in an include statement at run time based upon a > value in the URL. > > So if I GET this URL >http://.../body2.jsp?body_val=2.jsp > > The following page body2.jsp will stuff the value 2.jsp into the include > directiuve. > Do I have this all wrong? > > Dylan del Rosario > > === > 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: spliting a comma seperated string
Java is case sensitive as well as requires correct spellings. Should be StringTokenizer. I know that you encountered the same old typo, but please be a little more careful while posting to the list :-). Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com - Original Message - From: Ravi Nallakukalla <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 12:48 PM Subject: Re: spliting a comma seperated string > muthu, > i feel u might have tried this on ur own before droping to the list, > > any how > try > StringTokeniger(string,","); > > -ravi > > "R.Muthukumar" wrote: > > > Hi! > > I have a string like "I am, you are, we all, go for meeting". > > I want to split this string into different strings and store into an array. > > The array should contain I am as the first element and you are as the second > > element and so on. > > That is my requirement is to split the string where were it finds the comma > > and put it in the array. > > Can anyone give me the code for this... > > Thanks in advance > > Muthu > > > > === > > 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: spliting a comma seperated string
Java is case sensitive as well as requires correct spellings. Should be StringTokenizer. I know that you encountered the same old typo, but please be a little more careful while posting to the list :-). Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com - Original Message - From: Vidyasagar Guduru <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 17, 2001 5:35 AM Subject: Re: spliting a comma seperated string > I think this mailing list is for J2EE specific. > > Any how use StringTokeniaer Class > > Sagar > --- "R.Muthukumar" <[EMAIL PROTECTED]> wrote: > > Hi! > > I have a string like "I am, you are, we all, go for > > meeting". > > I want to split this string into different strings > > and store into an array. > > The array should contain I am as the first element > > and you are as the second > > element and so on. > > That is my requirement is to split the string where > > were it finds the comma > > and put it in the array. > > Can anyone give me the code for this... > > Thanks in advance > > Muthu > > > > > === > > 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 > > > __ > 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 > === 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: Using session
Mr. Jasbinder Singh, In JSP's the session variable is implicitly available on every jsp page by default, unless the jsp have the following directive : <%@ page session = "false" %> Thats the reason for the behaviour that you are encountering. Assume the above you can reconsider the design of your application and logic. Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com - Original Message - From: Singh, Jasbinder <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 17, 2001 4:48 AM Subject: Using session > Hi All, > > I am developing an application that requires secured login where the page > should not be reached without logging. > I have a common jsp that has the following scriptlet and also includes the > logo and other header information that has to be displayed. > common.jsp > <% > javax.servlet.http.HttpSession sess = request.getSession(false); > if ( sess.isNew() ) > { >System.out.println("Session new"); >response.sendRedirect("/login.jsp"); >return; > } > else > System.out.println("Session not new"); > if ( sess.getValue("user")==null ) > { >System.out.println("userid is null"); >response.sendRedirect("/login.jsp"); >return; > } > %> > > I include this jsp in all my other JSP's as > > When I try to invoke a page directly by typing the url, I get the above > println statements > correctly("Session new" and "userid is null"), the included common.jsp page > is not displayed but the rest of the page is displayed. The conrol doesn't > go to the login.jsp. But when I invoke the common.jsp directly, the control > does go to the login.jsp page. > > Am I missing something ? Is this possible or I have to include a similar > scriptlet in every jsp that I write. > > Thanks in advance > JS > > === > 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: spliting a comma seperated string
Java is case sensitive. Should be StringTokenizer and it is a class not a method. Please be a little more careful while posting to the list :-). Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com - Original Message - From: A.C. <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 10:10 PM Subject: Re: spliting a comma seperated string > > Hi! > > I have a string like "I am, you are, we all, go for meeting". > > I want to split this string into different strings and store into an > array. > > The array should contain I am as the first element and you are as the > second > > element and so on. > > That is my requirement is to split the string where were it finds the > comma > > and put it in the array. > > Can anyone give me the code for this... > > use the method stringTokenizer > > === > 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: Using session
You might consider writing a servlet class that your Servlets and JSP extend from. In this class implement the service method and also read in system properties that can be used to set the default error page, login-required page, etc. >From within your service method you can call methods implement default behavior that your JSP's can override if necessary. You could also put your common session code here so that you would not need to include it in your JSP code. The service method would also eventually invoke the super.service(HttpServletRequest request,HttpServletResponse response) method after the session checking is performed. You would also have a class that extends from this BaseServlet class that your servlets would in turn extend and also another class that extends this servlet that your JSPs would extend from. In your BaseJSP class, you would have methods like: public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException { _jspService(request,response); } public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException { _jspService(request,response); } This allows your JSP's that extend BaseJSP to work under this 'framework' Your JSP's will only get invoked if a valid session exists, otherwise the LoginRequired page will appear. -Richard Yee -Original Message- From: Singh, Jasbinder [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 3:18 PM To: [EMAIL PROTECTED] Subject: Using session Hi All, I am developing an application that requires secured login where the page should not be reached without logging. I have a common jsp that has the following scriptlet and also includes the logo and other header information that has to be displayed. common.jsp <% javax.servlet.http.HttpSession sess = request.getSession(false); if ( sess.isNew() ) { System.out.println("Session new"); response.sendRedirect("/login.jsp"); return; } else System.out.println("Session not new"); if ( sess.getValue("user")==null ) { System.out.println("userid is null"); response.sendRedirect("/login.jsp"); return; } %> I include this jsp in all my other JSP's as When I try to invoke a page directly by typing the url, I get the above println statements correctly("Session new" and "userid is null"), the included common.jsp page is not displayed but the rest of the page is displayed. The conrol doesn't go to the login.jsp. But when I invoke the common.jsp directly, the control does go to the login.jsp page. Am I missing something ? Is this possible or I have to include a similar scriptlet in every jsp that I write. Thanks in advance JS === 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: spliting a comma seperated string
I think this mailing list is for J2EE specific. Any how use StringTokeniaer Class Sagar --- "R.Muthukumar" <[EMAIL PROTECTED]> wrote: > Hi! > I have a string like "I am, you are, we all, go for > meeting". > I want to split this string into different strings > and store into an array. > The array should contain I am as the first element > and you are as the second > element and so on. > That is my requirement is to split the string where > were it finds the comma > and put it in the array. > Can anyone give me the code for this... > Thanks in advance > Muthu > > === > 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 __ 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: Using session
I am very sorry for the typo. I have used -Original Message- From: Shawn Zhu [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 3:37 PM To: [EMAIL PROTECTED] Subject: Re: Using session I know why, you should use instead of > -Original Message- > From: Singh, Jasbinder [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 16, 2001 3:18 PM > To: [EMAIL PROTECTED] > Subject: Using session > > > Hi All, > > I am developing an application that requires secured login > where the page > should not be reached without logging. > I have a common jsp that has the following scriptlet and also > includes the > logo and other header information that has to be displayed. > common.jsp > <% > javax.servlet.http.HttpSession sess = request.getSession(false); > if ( sess.isNew() ) > { >System.out.println("Session new"); >response.sendRedirect("/login.jsp"); >return; > } > else > System.out.println("Session not new"); > if ( sess.getValue("user")==null ) > { >System.out.println("userid is null"); >response.sendRedirect("/login.jsp"); >return; > } > %> > > I include this jsp in all my other JSP's as > > When I try to invoke a page directly by typing the url, I get > the above > println statements > correctly("Session new" and "userid is null"), the included > common.jsp page > is not displayed but the rest of the page is displayed. The > conrol doesn't > go to the login.jsp. But when I invoke the common.jsp > directly, the control > does go to the login.jsp page. > > Am I missing something ? Is this possible or I have to > include a similar > scriptlet in every jsp that I write. > > Thanks in advance > JS > > == > = > 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: Using session
I know why, you should use instead of > -Original Message- > From: Singh, Jasbinder [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 16, 2001 3:18 PM > To: [EMAIL PROTECTED] > Subject: Using session > > > Hi All, > > I am developing an application that requires secured login > where the page > should not be reached without logging. > I have a common jsp that has the following scriptlet and also > includes the > logo and other header information that has to be displayed. > common.jsp > <% > javax.servlet.http.HttpSession sess = request.getSession(false); > if ( sess.isNew() ) > { >System.out.println("Session new"); >response.sendRedirect("/login.jsp"); >return; > } > else > System.out.println("Session not new"); > if ( sess.getValue("user")==null ) > { >System.out.println("userid is null"); >response.sendRedirect("/login.jsp"); >return; > } > %> > > I include this jsp in all my other JSP's as > > When I try to invoke a page directly by typing the url, I get > the above > println statements > correctly("Session new" and "userid is null"), the included > common.jsp page > is not displayed but the rest of the page is displayed. The > conrol doesn't > go to the login.jsp. But when I invoke the common.jsp > directly, the control > does go to the login.jsp page. > > Am I missing something ? Is this possible or I have to > include a similar > scriptlet in every jsp that I write. > > Thanks in advance > JS > > == > = > 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
Using session
Hi All, I am developing an application that requires secured login where the page should not be reached without logging. I have a common jsp that has the following scriptlet and also includes the logo and other header information that has to be displayed. common.jsp <% javax.servlet.http.HttpSession sess = request.getSession(false); if ( sess.isNew() ) { System.out.println("Session new"); response.sendRedirect("/login.jsp"); return; } else System.out.println("Session not new"); if ( sess.getValue("user")==null ) { System.out.println("userid is null"); response.sendRedirect("/login.jsp"); return; } %> I include this jsp in all my other JSP's as When I try to invoke a page directly by typing the url, I get the above println statements correctly("Session new" and "userid is null"), the included common.jsp page is not displayed but the rest of the page is displayed. The conrol doesn't go to the login.jsp. But when I invoke the common.jsp directly, the control does go to the login.jsp page. Am I missing something ? Is this possible or I have to include a similar scriptlet in every jsp that I write. Thanks in advance JS === 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: Compile error of Servlet
check class path. see those jar file are properly put in the right place, usually in tomcat/lib -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Jun wang Sent: Friday, February 16, 2001 4:14 PM To: [EMAIL PROTECTED] Subject: Compile error of Servlet Hi, I am a new learner.I try to compile java code,which is in the Tomcat examples directory: D:\foo\tomcat\webapps\examples\WEB_INF\classes\cal\ TableBean.java After the compiling, the error message shows following: D:\foo\tomcat\webapps\examples\WEBINF\classes\cal\ TableBean.java:62: Package javax.servlet.http not found in import. import javax.servlet.http.*; ^ D:\foo\tomcat\webapps\examples\WEB_INF\classes\cal\ TableBean.java:63: Package javax.servlet not found in import. import javax.servlet.*; ^ Does something wrong with Tomcat setup? How to solve it? Thanks!! __ 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 === 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: Compile error of Servlet
The class path is not set properly. That should be set to include the servlet packages. - Original Message - From: "Jun wang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 5:14 PM Subject: Compile error of Servlet > Hi, > I am a new learner.I try to compile java code,which is > in the Tomcat examples directory: > D:\foo\tomcat\webapps\examples\WEB_INF\classes\cal\ > TableBean.java > > After the compiling, the error message shows > following: > > D:\foo\tomcat\webapps\examples\WEBINF\classes\cal\ > TableBean.java:62: Package javax.servlet.http not > found in import. > import javax.servlet.http.*; >^ > D:\foo\tomcat\webapps\examples\WEB_INF\classes\cal\ > TableBean.java:63: Package javax.servlet not found in > import. > import javax.servlet.*; >^ > > Does something wrong with Tomcat setup? How to solve > it? > Thanks!! > > > > __ > 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 > === 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
Compile error of Servlet
Hi, I am a new learner.I try to compile java code,which is in the Tomcat examples directory: D:\foo\tomcat\webapps\examples\WEB_INF\classes\cal\ TableBean.java After the compiling, the error message shows following: D:\foo\tomcat\webapps\examples\WEBINF\classes\cal\ TableBean.java:62: Package javax.servlet.http not found in import. import javax.servlet.http.*; ^ D:\foo\tomcat\webapps\examples\WEB_INF\classes\cal\ TableBean.java:63: Package javax.servlet not found in import. import javax.servlet.*; ^ Does something wrong with Tomcat setup? How to solve it? Thanks!! __ 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: JDBC help --- Its off topic
Hi If the driver does not have support for the same it may throw an exception Check with a different driver girish -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Singh, Jasbinder Sent: Friday, February 16, 2001 4:52 PM To: [EMAIL PROTECTED] Subject: Re: JDBC help --- Its off topic Hi, I tried disabling auto-commit mode. It fails in the autocommit statement itself. JS -Original Message- From: Girish Sahu [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 12:48 PM To: [EMAIL PROTECTED] Subject: Re: JDBC help --- Its off topic Hi JS By default, new connections are in auto-commit mode. you got to disable that,if you want to use commit method girish -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Singh, Jasbinder Sent: Friday, February 16, 2001 3:24 PM To: [EMAIL PROTECTED] Subject: JDBC help --- Its off topic Hi All, I am facing a JDBC problem in one of my beans. I update a table and then commit it. I get an exception at the point of commit. try { no_of_records=stmt.executeUpdate(query); } catch(SQLException e) { throw e; } try { conn.commit(); } catch( SQLException e ) { throw e; } The exception is : java.sql.SQLException at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at java.sql.SQLException.(Compiled Code) at com.informix.util.IfxErrMsg.getSQLException(Compiled Code) at com.informix.jdbc.IfxSqliConnect.commit(Compiled Code) at RangeBean.updCalValues(Compiled Code) at TestCalUpdate.main(Compiled Code) java.sql.SQLException -79744 I am using Informix database. The table still gets updated. Could somebody help me out. Thanks JS === 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: JDBC help --- Its off topic
Hi, I tried disabling auto-commit mode. It fails in the autocommit statement itself. JS -Original Message- From: Girish Sahu [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 12:48 PM To: [EMAIL PROTECTED] Subject: Re: JDBC help --- Its off topic Hi JS By default, new connections are in auto-commit mode. you got to disable that,if you want to use commit method girish -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Singh, Jasbinder Sent: Friday, February 16, 2001 3:24 PM To: [EMAIL PROTECTED] Subject: JDBC help --- Its off topic Hi All, I am facing a JDBC problem in one of my beans. I update a table and then commit it. I get an exception at the point of commit. try { no_of_records=stmt.executeUpdate(query); } catch(SQLException e) { throw e; } try { conn.commit(); } catch( SQLException e ) { throw e; } The exception is : java.sql.SQLException at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at java.sql.SQLException.(Compiled Code) at com.informix.util.IfxErrMsg.getSQLException(Compiled Code) at com.informix.jdbc.IfxSqliConnect.commit(Compiled Code) at RangeBean.updCalValues(Compiled Code) at TestCalUpdate.main(Compiled Code) java.sql.SQLException -79744 I am using Informix database. The table still gets updated. Could somebody help me out. Thanks JS === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: JSP vs. Applet
My feeling is that if you want good graphics and layout in a webpage use a mix of HTML and Javascript and if you need even better capabilities try Flash. The Flash plug-in is much smaller than the new applet plug-in (about 300k vs. 6M) and you can get good performance from very small flash files. Also, most people already have at least an older Flash plug-in. You can of course still continue to use JSP or servlets to interface with the app server. "M. Simms" wrote: > This is patently false.. > JSP DOES NOT determine the user interface. > only it can improve the sophistication of the HTML which delivers the > interface. > Many websites are using Javascript with large script libraries to improve > the user interface.. > NOT JAVA or JSP. > > JSP cannot do many things doable with an Appletit's just impossible. > Graphics rotation and live data feeds for instance. > > Applets are unpopular because : > 1) most users with browsers can "shutdown" their built-in JVM > 2) the browser JVM's are old and don't support many JDK 1.2/1.3 classes > 3) applets can increase page size considerablemost applets of any > substantance are at least 20-50k in size. > 4) Microsoft will not support applets in the next version of their browser > (unless the government beats Bill Gates into submission and puts him in jail > (where he belongs) for about 3 months) > > John: are we having fun yet ;) > > > -Original Message- > > From: A mailing list about Java Server Pages specification and reference > > [mailto:[EMAIL PROTECTED]]On Behalf Of Martin, Janet > > Sent: Thursday, February 15, 2001 2:07 PM > > To: [EMAIL PROTECTED] > > Subject: Re: JSP vs. Applet > > > > > > Andy: JSP can handle anything HTML can handle plus! Therefore - of course > > it can handle a robust UI! We are currently designing one here. I can't > > give our code out on the net but trust me - it can do whatever > > you have the > > imagination to do! > > > > BTW: tabing is function of HTML forms (try a test form yourself) where you > > can set tab order. > > > > If you use an Applet be aware that they make for a fat client and you are > > subjecting your users to long download times each time they try to access > > your page vs. a JSP/HTML form which is a thin client (which is > > what the web > > is really for). > > > > You might want to go to any local bookstore and pursue the web > > design books > > and/or check out info on the web on what HTML can do. There are > > any number > > of sites that have "pretty robust" UIs. Just cruse around and > > set what you > > find. > > > > Janet > > > > -Original Message- > > From: Andy Oei [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, February 14, 2001 5:31 PM > > To: [EMAIL PROTECTED] > > Subject: JSP vs. Applet > > > > > > Hi: > > > > This is a novice question: > > I am developing an "intranet database application" that needs to have a > > "pretty robust" User Interface. Example: I have to be able to use full > > keyboard control, like tab-ing from one field to another logical > > field. The > > application is like an Invoice Header and Line Item where you can pick a > > vendor for the invoice header and pick inventory item for the > > invoice line - > > both on one screen/page. > > > > Should I use applet for this purpose or can JSP handle a robust user > > interface? Anyone has an example? > > > > Thank you very much. > > > > Andy Oei > > > > == > > = > > 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: JDBC help --- Its off topic
Hi JS By default, new connections are in auto-commit mode. you got to disable that,if you want to use commit method girish -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Singh, Jasbinder Sent: Friday, February 16, 2001 3:24 PM To: [EMAIL PROTECTED] Subject: JDBC help --- Its off topic Hi All, I am facing a JDBC problem in one of my beans. I update a table and then commit it. I get an exception at the point of commit. try { no_of_records=stmt.executeUpdate(query); } catch(SQLException e) { throw e; } try { conn.commit(); } catch( SQLException e ) { throw e; } The exception is : java.sql.SQLException at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at java.sql.SQLException.(Compiled Code) at com.informix.util.IfxErrMsg.getSQLException(Compiled Code) at com.informix.jdbc.IfxSqliConnect.commit(Compiled Code) at RangeBean.updCalValues(Compiled Code) at TestCalUpdate.main(Compiled Code) java.sql.SQLException -79744 I am using Informix database. The table still gets updated. Could somebody help me out. Thanks JS === 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: JDBC help --- Its off topic
Check Informix documentation for error number: -79744 You should post this to an Informix list, not JSP list. >I am facing a JDBC problem in one of my beans. >I update a table and then commit it. I get an exception at the point of >commit. > > try > { > no_of_records=stmt.executeUpdate(query); > } > catch(SQLException e) > { throw e; } > try > { > conn.commit(); > } > catch( SQLException e ) > { >throw e; > } > >The exception is : >java.sql.SQLException > at java.lang.Throwable.(Compiled Code) > at java.lang.Exception.(Compiled Code) > at java.sql.SQLException.(Compiled Code) > at com.informix.util.IfxErrMsg.getSQLException(Compiled Code) > at com.informix.jdbc.IfxSqliConnect.commit(Compiled Code) > at RangeBean.updCalValues(Compiled Code) > at TestCalUpdate.main(Compiled Code) >java.sql.SQLException -79744 > >I am using Informix database. The table still gets updated. >Could somebody help me out. >Thanks >JS > >=== >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 --- Gopi Mandava(703) 267-1735 x307 CoManage Inc. New Definitions: Cannibal = Someone who is fed up with people === 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 vs. Applet
This is patently false.. JSP DOES NOT determine the user interface. only it can improve the sophistication of the HTML which delivers the interface. Many websites are using Javascript with large script libraries to improve the user interface.. NOT JAVA or JSP. JSP cannot do many things doable with an Appletit's just impossible. Graphics rotation and live data feeds for instance. Applets are unpopular because : 1) most users with browsers can "shutdown" their built-in JVM 2) the browser JVM's are old and don't support many JDK 1.2/1.3 classes 3) applets can increase page size considerablemost applets of any substantance are at least 20-50k in size. 4) Microsoft will not support applets in the next version of their browser (unless the government beats Bill Gates into submission and puts him in jail (where he belongs) for about 3 months) John: are we having fun yet ;) > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Martin, Janet > Sent: Thursday, February 15, 2001 2:07 PM > To: [EMAIL PROTECTED] > Subject: Re: JSP vs. Applet > > > Andy: JSP can handle anything HTML can handle plus! Therefore - of course > it can handle a robust UI! We are currently designing one here. I can't > give our code out on the net but trust me - it can do whatever > you have the > imagination to do! > > BTW: tabing is function of HTML forms (try a test form yourself) where you > can set tab order. > > If you use an Applet be aware that they make for a fat client and you are > subjecting your users to long download times each time they try to access > your page vs. a JSP/HTML form which is a thin client (which is > what the web > is really for). > > You might want to go to any local bookstore and pursue the web > design books > and/or check out info on the web on what HTML can do. There are > any number > of sites that have "pretty robust" UIs. Just cruse around and > set what you > find. > > Janet > > -Original Message- > From: Andy Oei [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 14, 2001 5:31 PM > To: [EMAIL PROTECTED] > Subject: JSP vs. Applet > > > Hi: > > This is a novice question: > I am developing an "intranet database application" that needs to have a > "pretty robust" User Interface. Example: I have to be able to use full > keyboard control, like tab-ing from one field to another logical > field. The > application is like an Invoice Header and Line Item where you can pick a > vendor for the invoice header and pick inventory item for the > invoice line - > both on one screen/page. > > Should I use applet for this purpose or can JSP handle a robust user > interface? Anyone has an example? > > Thank you very much. > > Andy Oei > > == > = > 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: Macromedia's Dreamweaver UltraDev
Warning: Ultradev 4 is a good tool for prototyping and rapid site development. It generates some poor code...for instance: getObject is used instead of getString, getInt, etc. for database resultset data retrieval. Tech support is abysmal.2-4 day wait time can be expected especially when it is free for your 1st 90 days ;) You'll receive a rapid response once you've paid $300 for an annual support agreement. On the Plus side, I've modified their code after the fact and it does not ruin the changes unless you re-insert their macro code again. I have not tried to debug the code yet..I am not sure that is support. Best bet for robust JSP development: JBuilder 4 Enterprise. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Deschenes, Buddy > Sent: Wednesday, February 14, 2001 4:53 PM > To: [EMAIL PROTECTED] > Subject: Re: Macromedia's Dreamweaver UltraDev > > > I like the combination of Homesite 4.5.2 and Tomcat. > I found that if you are dealing with a lot of HTML > in your jsp code Forte/Netbeans gets tiresome. I looked > at UltraDev but I didn't see anything that made it a > must have. > > -Original Message- > From: Andy Oei [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 14, 2001 4:19 PM > To: [EMAIL PROTECTED] > Subject: Macromedia's Dreamweaver UltraDev > > > Hi: > > I am in the process of picking the right tool to do JSP development. > > Has anyone had any experience with Dreamweaver UltraDev? Is this > a good tool > to use? Any pro and cons on this product? > > Thank you for the input. > > Andy Oei > > == > = > 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
JDBC help --- Its off topic
Hi All, I am facing a JDBC problem in one of my beans. I update a table and then commit it. I get an exception at the point of commit. try { no_of_records=stmt.executeUpdate(query); } catch(SQLException e) { throw e; } try { conn.commit(); } catch( SQLException e ) { throw e; } The exception is : java.sql.SQLException at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at java.sql.SQLException.(Compiled Code) at com.informix.util.IfxErrMsg.getSQLException(Compiled Code) at com.informix.jdbc.IfxSqliConnect.commit(Compiled Code) at RangeBean.updCalValues(Compiled Code) at TestCalUpdate.main(Compiled Code) java.sql.SQLException -79744 I am using Informix database. The table still gets updated. Could somebody help me out. Thanks JS === 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: XML
Not that I know of. Your best best is to apply an XSL stylesheet to the XML doc to convert it to HTML server side, then send the transformed doc to the NS4 client. -Original Message- From: Mayuresh Kadu [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 4:30 AM To: [EMAIL PROTECTED] Subject: OT: XML sorry once again for the 2nd OT. I was wondering whether anyone could shed some light into getting NS4+ to display XML data from a file. Any activeX control or anything ?! I have tried inlogix plugin but it has its own hassles !! Mayuresh === 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: Tag Library Descriptor problem - What does tagdependent mean?
Thanks for asking and answering. BTW, I think the question is appropriate for this list. It's better than many others trying to use the list as their Java/Javascript debuggerS. That's an abuse. Why dont they get a decent debugger and be more productive with coding I dont understand... -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph Ottinger LOL! Nasty words indeed, Martin... ones that will draw the ire of JSPI's entire community, except for those of us who've read the spec (or are willing to). Anyway, tagdependent means what it says: the tag decides what to do with the body. There's certainly no requirement that the tag body is sent to the JspWriter - a tag can consume its content very easily. >From: Martin Cooper <[EMAIL PROTECTED]> > >Read the spec. ... === 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
Include Directive
Hi, I asked a question about this a while ago but got zero for an answer. Probably because I didn't put a lot of background about the problem. I'm trying to do a dynamic include page or directive based upon a value in the URL, some thing like this: <%@ include file="((request.getParameter("body_val")!=null)?request.getParameter("body_v al"):"")" %> OR History behind this code is : I want to assign the value in an include statement at run time based upon a value in the URL. So if I GET this URL >http://.../body2.jsp?body_val=2.jsp The following page body2.jsp will stuff the value 2.jsp into the include directiuve. Do I have this all wrong? Dylan del Rosario === 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: Can't convert int to boolean. ??
Sufi, In addition to using the bitwise OR operator | instead of the logical OR operatator ||, you are also trying to do an assignment with = , instead, you should be using == for the comparisions in the if statement. You should pick up a book on Java programming. -Richard -Original Message- From: sufi malak [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 9:09 AM To: [EMAIL PROTECTED] Subject: Can't convert int to boolean. ?? what's wrong with this if statment : Can't convert int to boolean. <% String imageurl = (String)request.getParameter("txtImageURL"); String lastname = (String)request.getParameter("txtLastName"); String firstname = (String)request.getParameter("txtFirstName"); String id = (String)request.getParameter("txtId"); String phone = (String)request.getParameter("txtPhone"); String date = (String)request.getParameter("txtDate"); String department = (String)request.getParameter("txtDept"); String extension = (String)request.getParameter("txtExt"); String email = (String)request.getParameter("txtEmail"); String note = (String)request.getParameter("txtNotes"); String nominatedby = (String)request.getParameter("txtNominatedby"); %> <% Driver DriverResults = (Driver)Class.forName(MM_connCompass_DRIVER).newInstance(); Connection ConnResults = DriverManager.getConnection(MM_connCompass_STRING,MM_connCompass_USERNAME,MM _connCompass_PASSWORD); PreparedStatement StatementResults; String stmt = "insert into employee VALUES(id, firstname, lastname, nominatedby, photo, extension, department, note, phone, email, date)"; StatementResults = ConnResults.prepareStatement(stmt); if (!((imageurl =null) | (lastname =null) | (firstname =null) | (id =null) | (phone =null) | (department =null) | (date =null) | (extension =null) | (email =null) | (note =null) | ( nominatedby =null) )) StatementResults.executeQuery(); %> Thanks _ 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: Can't convert int to boolean. ??
typos, = or ==, array length, and all elementary things like that should be elminated. Come on guys, this is a JSP mailing list, not a debugging list, at least not debug at this level. Everyone should do a Real Through research before post. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Karau, Joe Sent: Friday, February 16, 2001 11:54 AM To: [EMAIL PROTECTED] Subject: Re: Can't convert int to boolean. ?? you also want to user == (which is the comparison operator) instead of = (which is the assignment operator). Two suggestions for you. 1. Spend a little more time reviewing syntax (and all other options) before asking for help. 2. To prevent problems similar to this in the future do null == whatever, therefore when you forget one of the equal signs and code this null = whatever, it will help you to realize that you missed an equal sign because you can not assign anything to null. Joseph Karau Kingland Systems [EMAIL PROTECTED] 507-536-3629 -Original Message- From: sufi malak [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 11:09 AM To: [EMAIL PROTECTED] Subject: Can't convert int to boolean. ?? what's wrong with this if statment : Can't convert int to boolean. <% String imageurl = (String)request.getParameter("txtImageURL"); String lastname = (String)request.getParameter("txtLastName"); String firstname = (String)request.getParameter("txtFirstName"); String id = (String)request.getParameter("txtId"); String phone = (String)request.getParameter("txtPhone"); String date = (String)request.getParameter("txtDate"); String department = (String)request.getParameter("txtDept"); String extension = (String)request.getParameter("txtExt"); String email = (String)request.getParameter("txtEmail"); String note = (String)request.getParameter("txtNotes"); String nominatedby = (String)request.getParameter("txtNominatedby"); %> <% Driver DriverResults = (Driver)Class.forName(MM_connCompass_DRIVER).newInstance(); Connection ConnResults = DriverManager.getConnection(MM_connCompass_STRING,MM_connCompass_USERNAME,MM _connCompass_PASSWORD); PreparedStatement StatementResults; String stmt = "insert into employee VALUES(id, firstname, lastname, nominatedby, photo, extension, department, note, phone, email, date)"; StatementResults = ConnResults.prepareStatement(stmt); if (!((imageurl =null) | (lastname =null) | (firstname =null) | (id =null) | (phone =null) | (department =null) | (date =null) | (extension =null) | (email =null) | (note =null) | ( nominatedby =null) )) StatementResults.executeQuery(); %> Thanks _ 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
Re: Can't convert int to boolean. ??
OK, Now this is what I hate most on this list. This is just a stupid, plainly wrong answer to a very basic question. About everything in the answer is incorrect. | is both a boolean and a bitwise operator, so that's certainly NOT the problem. You might use the || operator, but it won't solve anything. The problem is that you use assignment '=' instead of equality test '==' Geert > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Bishop > Sent: vrijdag 16 februari 2001 18:21 > To: [EMAIL PROTECTED] > Subject: Re: Can't convert int to boolean. ?? > > > I think you want to use the conditional OR operator || , not the > bitwise OR > operator | > > -Original Message- > From: sufi malak [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 16, 2001 12:09 PM > To: [EMAIL PROTECTED] > Subject: Can't convert int to boolean. ?? > > > what's wrong with this if statment : > > Can't convert int to boolean. > <% > String imageurl = (String)request.getParameter("txtImageURL"); > String lastname = (String)request.getParameter("txtLastName"); > String firstname = (String)request.getParameter("txtFirstName"); > String id = (String)request.getParameter("txtId"); > String phone = (String)request.getParameter("txtPhone"); > String date = (String)request.getParameter("txtDate"); > String department = (String)request.getParameter("txtDept"); > String extension = (String)request.getParameter("txtExt"); > String email = (String)request.getParameter("txtEmail"); > String note = (String)request.getParameter("txtNotes"); > String nominatedby = (String)request.getParameter("txtNominatedby"); > > %> > <% > Driver DriverResults = > (Driver)Class.forName(MM_connCompass_DRIVER).newInstance(); > Connection ConnResults = > DriverManager.getConnection(MM_connCompass_STRING,MM_connCompass_U > SERNAME,MM > _connCompass_PASSWORD); > PreparedStatement StatementResults; > String stmt = "insert into employee VALUES(id, firstname, lastname, > nominatedby, photo, extension, department, note, phone, email, date)"; > StatementResults = ConnResults.prepareStatement(stmt); > if (!((imageurl =null) | (lastname =null) | (firstname =null) | > (id =null) > | (phone =null) | >(department =null) | (date =null) | (extension =null) | > (email =null) | > (note =null) | ( nominatedby =null) )) > StatementResults.executeQuery(); > > %> > > Thanks > _ > 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
Re: Can't convert int to boolean. ??
you also want to user == (which is the comparison operator) instead of = (which is the assignment operator). Two suggestions for you. 1. Spend a little more time reviewing syntax (and all other options) before asking for help. 2. To prevent problems similar to this in the future do null == whatever, therefore when you forget one of the equal signs and code this null = whatever, it will help you to realize that you missed an equal sign because you can not assign anything to null. Joseph Karau Kingland Systems [EMAIL PROTECTED] 507-536-3629 -Original Message- From: sufi malak [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 11:09 AM To: [EMAIL PROTECTED] Subject: Can't convert int to boolean. ?? what's wrong with this if statment : Can't convert int to boolean. <% String imageurl = (String)request.getParameter("txtImageURL"); String lastname = (String)request.getParameter("txtLastName"); String firstname = (String)request.getParameter("txtFirstName"); String id = (String)request.getParameter("txtId"); String phone = (String)request.getParameter("txtPhone"); String date = (String)request.getParameter("txtDate"); String department = (String)request.getParameter("txtDept"); String extension = (String)request.getParameter("txtExt"); String email = (String)request.getParameter("txtEmail"); String note = (String)request.getParameter("txtNotes"); String nominatedby = (String)request.getParameter("txtNominatedby"); %> <% Driver DriverResults = (Driver)Class.forName(MM_connCompass_DRIVER).newInstance(); Connection ConnResults = DriverManager.getConnection(MM_connCompass_STRING,MM_connCompass_USERNAME,MM _connCompass_PASSWORD); PreparedStatement StatementResults; String stmt = "insert into employee VALUES(id, firstname, lastname, nominatedby, photo, extension, department, note, phone, email, date)"; StatementResults = ConnResults.prepareStatement(stmt); if (!((imageurl =null) | (lastname =null) | (firstname =null) | (id =null) | (phone =null) | (department =null) | (date =null) | (extension =null) | (email =null) | (note =null) | ( nominatedby =null) )) StatementResults.executeQuery(); %> Thanks _ 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: Can't convert int to boolean. ??
>what's wrong with this if statment : In Java '=' is for assignment and '==' is for compare. ><% >Driver DriverResults = >(Driver)Class.forName(MM_connCompass_DRIVER).newInstance(); >Connection ConnResults = >DriverManager.getConnection(MM_connCompass_STRING,MM_connCompass_USERNAME,MM_connCompass_PASSWORD); >PreparedStatement StatementResults; >String stmt = "insert into employee VALUES(id, firstname, lastname, >nominatedby, photo, extension, department, note, phone, email, date)"; >StatementResults = ConnResults.prepareStatement(stmt); >if (!((imageurl =null) | (lastname =null) | (firstname =null) | (id =null) >| (phone =null) | > (department =null) | (date =null) | (extension =null) | (email =null) | >(note =null) | ( nominatedby =null) )) >StatementResults.executeQuery(); > >%> > >Thanks >_ >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 --- Gopi Mandava(703) 267-1735 x307 CoManage Inc. New Definitions: Cannibal = Someone who is fed up with people === 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: Can't convert int to boolean. ??
do not forget the basics please it cannot be done not in java, not in any language known to mankind sandarbh - Original Message - From: "Peter Bishop" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 5:20 PM Subject: Re: Can't convert int to boolean. ?? > I think you want to use the conditional OR operator || , not the bitwise OR > operator | > > -Original Message- > From: sufi malak [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 16, 2001 12:09 PM > To: [EMAIL PROTECTED] > Subject: Can't convert int to boolean. ?? > > > what's wrong with this if statment : > > Can't convert int to boolean. > <% > String imageurl = (String)request.getParameter("txtImageURL"); > String lastname = (String)request.getParameter("txtLastName"); > String firstname = (String)request.getParameter("txtFirstName"); > String id = (String)request.getParameter("txtId"); > String phone = (String)request.getParameter("txtPhone"); > String date = (String)request.getParameter("txtDate"); > String department = (String)request.getParameter("txtDept"); > String extension = (String)request.getParameter("txtExt"); > String email = (String)request.getParameter("txtEmail"); > String note = (String)request.getParameter("txtNotes"); > String nominatedby = (String)request.getParameter("txtNominatedby"); > > %> > <% > Driver DriverResults = > (Driver)Class.forName(MM_connCompass_DRIVER).newInstance(); > Connection ConnResults = > DriverManager.getConnection(MM_connCompass_STRING,MM_connCompass_USERNAME,MM > _connCompass_PASSWORD); > PreparedStatement StatementResults; > String stmt = "insert into employee VALUES(id, firstname, lastname, > nominatedby, photo, extension, department, note, phone, email, date)"; > StatementResults = ConnResults.prepareStatement(stmt); > if (!((imageurl =null) | (lastname =null) | (firstname =null) | (id =null) > | (phone =null) | >(department =null) | (date =null) | (extension =null) | (email =null) | > (note =null) | ( nominatedby =null) )) > StatementResults.executeQuery(); > > %> > > Thanks > _ > 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
Re: Can't convert int to boolean. ??
I got it, I forgot, I put = instead of == Thanks >From: Joseph Ottinger <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Can't convert int to boolean. ?? >Date: Fri, 16 Feb 2001 12:23:06 -0500 > >This is going to come as a complete surprise: > >You can't convert an int to a boolean. > >You've never been able to, in Java. > >You can't now. > >You're not likely to be able to in the future. > >The error message doesn't say "You can't eat chop suey on Fridays" when it >means "can't convert int to boolean." If it did, I'd have a little more >compassion. > >What does it mean? It means the language is looking for a boolean, and >you're giving it an int. > >As well, you're doing an awful lot of assignments instead of the >comparisons >I think you mean > > >>From: sufi malak <[EMAIL PROTECTED]> >>Reply-To: A mailing list about Java Server Pages specification and >> reference <[EMAIL PROTECTED]> >>To: [EMAIL PROTECTED] >>Subject: Can't convert int to boolean. ?? >>Date: Fri, 16 Feb 2001 17:09:02 - >> >>what's wrong with this if statment : >> >>Can't convert int to boolean. >><% >>String imageurl = (String)request.getParameter("txtImageURL"); >>String lastname = (String)request.getParameter("txtLastName"); >>String firstname = (String)request.getParameter("txtFirstName"); >>String id = (String)request.getParameter("txtId"); >>String phone = (String)request.getParameter("txtPhone"); >>String date = (String)request.getParameter("txtDate"); >>String department = (String)request.getParameter("txtDept"); >>String extension = (String)request.getParameter("txtExt"); >>String email = (String)request.getParameter("txtEmail"); >>String note = (String)request.getParameter("txtNotes"); >>String nominatedby = (String)request.getParameter("txtNominatedby"); >> >>%> >><% >>Driver DriverResults = >>(Driver)Class.forName(MM_connCompass_DRIVER).newInstance(); >>Connection ConnResults = >>DriverManager.getConnection(MM_connCompass_STRING,MM_connCompass_USERNAME,MM_connCompass_PASSWORD); >>PreparedStatement StatementResults; >>String stmt = "insert into employee VALUES(id, firstname, lastname, >>nominatedby, photo, extension, department, note, phone, email, date)"; >>StatementResults = ConnResults.prepareStatement(stmt); >>if (!((imageurl =null) | (lastname =null) | (firstname =null) | (id >>=null) >>| (phone =null) | >> (department =null) | (date =null) | (extension =null) | (email =null) >>| >>(note =null) | ( nominatedby =null) )) >>StatementResults.executeQuery(); >> >>%> > >_ >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 _ 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: Can't convert int to boolean. ??
This is going to come as a complete surprise: You can't convert an int to a boolean. You've never been able to, in Java. You can't now. You're not likely to be able to in the future. The error message doesn't say "You can't eat chop suey on Fridays" when it means "can't convert int to boolean." If it did, I'd have a little more compassion. What does it mean? It means the language is looking for a boolean, and you're giving it an int. As well, you're doing an awful lot of assignments instead of the comparisons I think you mean >From: sufi malak <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Can't convert int to boolean. ?? >Date: Fri, 16 Feb 2001 17:09:02 - > >what's wrong with this if statment : > >Can't convert int to boolean. ><% >String imageurl = (String)request.getParameter("txtImageURL"); >String lastname = (String)request.getParameter("txtLastName"); >String firstname = (String)request.getParameter("txtFirstName"); >String id = (String)request.getParameter("txtId"); >String phone = (String)request.getParameter("txtPhone"); >String date = (String)request.getParameter("txtDate"); >String department = (String)request.getParameter("txtDept"); >String extension = (String)request.getParameter("txtExt"); >String email = (String)request.getParameter("txtEmail"); >String note = (String)request.getParameter("txtNotes"); >String nominatedby = (String)request.getParameter("txtNominatedby"); > >%> ><% >Driver DriverResults = >(Driver)Class.forName(MM_connCompass_DRIVER).newInstance(); >Connection ConnResults = >DriverManager.getConnection(MM_connCompass_STRING,MM_connCompass_USERNAME,MM_connCompass_PASSWORD); >PreparedStatement StatementResults; >String stmt = "insert into employee VALUES(id, firstname, lastname, >nominatedby, photo, extension, department, note, phone, email, date)"; >StatementResults = ConnResults.prepareStatement(stmt); >if (!((imageurl =null) | (lastname =null) | (firstname =null) | (id =null) >| (phone =null) | > (department =null) | (date =null) | (extension =null) | (email =null) | >(note =null) | ( nominatedby =null) )) >StatementResults.executeQuery(); > >%> _ 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: Can't convert int to boolean. ??
I think you want to use the conditional OR operator || , not the bitwise OR operator | -Original Message- From: sufi malak [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 12:09 PM To: [EMAIL PROTECTED] Subject: Can't convert int to boolean. ?? what's wrong with this if statment : Can't convert int to boolean. <% String imageurl = (String)request.getParameter("txtImageURL"); String lastname = (String)request.getParameter("txtLastName"); String firstname = (String)request.getParameter("txtFirstName"); String id = (String)request.getParameter("txtId"); String phone = (String)request.getParameter("txtPhone"); String date = (String)request.getParameter("txtDate"); String department = (String)request.getParameter("txtDept"); String extension = (String)request.getParameter("txtExt"); String email = (String)request.getParameter("txtEmail"); String note = (String)request.getParameter("txtNotes"); String nominatedby = (String)request.getParameter("txtNominatedby"); %> <% Driver DriverResults = (Driver)Class.forName(MM_connCompass_DRIVER).newInstance(); Connection ConnResults = DriverManager.getConnection(MM_connCompass_STRING,MM_connCompass_USERNAME,MM _connCompass_PASSWORD); PreparedStatement StatementResults; String stmt = "insert into employee VALUES(id, firstname, lastname, nominatedby, photo, extension, department, note, phone, email, date)"; StatementResults = ConnResults.prepareStatement(stmt); if (!((imageurl =null) | (lastname =null) | (firstname =null) | (id =null) | (phone =null) | (department =null) | (date =null) | (extension =null) | (email =null) | (note =null) | ( nominatedby =null) )) StatementResults.executeQuery(); %> Thanks _ 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: spliting a comma seperated string
String s = "I am, you are, we all, go for meeting"; StringTokenizer st = new StringTokenizer(s, ","); String[] sa = new String[st.countTokens()]; int i = 0; while(st.hasMoreTokens()) { sa[i] = st.nextToken(); i++; } >From: "A.C." <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: spliting a comma seperated string >Date: Fri, 16 Feb 2001 17:40:15 +0100 > > > Hi! > > I have a string like "I am, you are, we all, go for meeting". > > I want to split this string into different strings and store into an >array. > > The array should contain I am as the first element and you are as the >second > > element and so on. > > That is my requirement is to split the string where were it finds the >comma > > and put it in the array. > > Can anyone give me the code for this... > >use the method stringTokenizer > >=== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Can't convert int to boolean. ??
what's wrong with this if statment : Can't convert int to boolean. <% String imageurl = (String)request.getParameter("txtImageURL"); String lastname = (String)request.getParameter("txtLastName"); String firstname = (String)request.getParameter("txtFirstName"); String id = (String)request.getParameter("txtId"); String phone = (String)request.getParameter("txtPhone"); String date = (String)request.getParameter("txtDate"); String department = (String)request.getParameter("txtDept"); String extension = (String)request.getParameter("txtExt"); String email = (String)request.getParameter("txtEmail"); String note = (String)request.getParameter("txtNotes"); String nominatedby = (String)request.getParameter("txtNominatedby"); %> <% Driver DriverResults = (Driver)Class.forName(MM_connCompass_DRIVER).newInstance(); Connection ConnResults = DriverManager.getConnection(MM_connCompass_STRING,MM_connCompass_USERNAME,MM_connCompass_PASSWORD); PreparedStatement StatementResults; String stmt = "insert into employee VALUES(id, firstname, lastname, nominatedby, photo, extension, department, note, phone, email, date)"; StatementResults = ConnResults.prepareStatement(stmt); if (!((imageurl =null) | (lastname =null) | (firstname =null) | (id =null) | (phone =null) | (department =null) | (date =null) | (extension =null) | (email =null) | (note =null) | ( nominatedby =null) )) StatementResults.executeQuery(); %> Thanks _ 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: spliting a comma seperated string
Look at java's java.util.StringTokenizer class and this is trivial. -j3 > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of R.Muthukumar > Sent: Thursday, February 15, 2001 11:12 PM > To: [EMAIL PROTECTED] > Subject: spliting a comma seperated string > > > Hi! > I have a string like "I am, you are, we all, go for meeting". > I want to split this string into different strings and store into > an array. > The array should contain I am as the first element and you are as > the second > element and so on. > That is my requirement is to split the string where were it finds > the comma > and put it in the array. > Can anyone give me the code for this... > Thanks in advance > Muthu > > == > = > 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: spliting a comma seperated string
> Hi! > I have a string like "I am, you are, we all, go for meeting". > I want to split this string into different strings and store into an array. > The array should contain I am as the first element and you are as the second > element and so on. > That is my requirement is to split the string where were it finds the comma > and put it in the array. > Can anyone give me the code for this... use the method stringTokenizer === 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: downloading of file
What you can do to display a page first, is to send the page and include a refresh header to the download page. I mean, first display predownload.jsp where you will display that "the file you requested is being downloaded..." thing, when it's finished loading it will do a refresh to the real download.jsp. Hope that helps, Luis Javier - Original Message - From: "Hardeep Singh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 6:07 AM Subject: Re: downloading of file > use a servlet instead of jsp since jsp already has content type set before > coming to ur code. what u say that the client sees the message first is not > possible. > > Hardeep > > - Original Message - > From: "Shailendra" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, February 16, 2001 6:56 AM > Subject: downloading of file > > > > hi > > can any body will help me in down loadin of file > > my problem is > > i am writing folowing code in my jsp > > it download the Download.jsp file to the client side but server give the > > error saying > > > > java.lang.IllegalStateException: OutputStream is already being used for > this > > request > > > > code is like that > > <% > > response.setContentType("text/plain"); > > response.setHeader("Content-Disposition","attachment;filename=file.txt;"); > > InputStream is = null; > > > > File f= new File("Download.jsp"); > > FileInputStream fos=new FileInputStream(f); > > BufferedInputStream o=new BufferedInputStream(fos); file://8k > > is=o; > > //... Read InputStream from Database > > OutputStream os = response.getOutputStream(); > > if (os != null) > > { > >int c; > >while ( (c = is.read()) != -1) > >{ > > os.write(c); > >} > >os.flush(); > >os.close(); > > } > > is.close(); > > > > %> > > > > extra to that(downloading of file) > > i also want that the client shoud have some html page ,when it get > download > > dilogbox(first client see the html page saying download will start > > autometicaly then download start) > > > > shailendra > > > > > === > > 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: spliting a comma seperated string
Use the java class StringTokenizer. >From: "R.Muthukumar" <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: spliting a comma seperated string >Date: Fri, 16 Feb 2001 11:42:02 +0530 > >Hi! >I have a string like "I am, you are, we all, go for meeting". >I want to split this string into different strings and store into an array. >The array should contain I am as the first element and you are as the >second >element and so on. >That is my requirement is to split the string where were it finds the comma >and put it in the array. >Can anyone give me the code for this... >Thanks in advance >Muthu > >=== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: bean refreshing
the old bean is still in memory. The server is caching it. have the server re-started. this is not an ejb, right? if it were an ejb, most containers will pick it up. but this bean, I believe is a resident of the servlet container, not the ejb container. >From: Tripat Singh <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: bean refreshing >Date: Fri, 16 Feb 2001 13:36:55 +0530 > >I am having a bean(a class file with my business methods). I am using that >in my JSP page using jsp:useBean tag. The problem is that i have made the >changes in the bean file, tested it locally on the websphere on NT >environment, it runs to my expectations but when i upload the bean to the >Live production server which is the Websphere again but on AIX , the >changes >are not reflected. From the logs i have known that the JSP is taking the >bean which i had uploaded the very first time. No changes are being >reflected. I have tried restarting the server many times. I have even tried >the removing the files from the scratch directory but still it takes the >old >bean. > >Any pointers/suggestion!!! > >=== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Get your FREE download of MSN Explorer at http://explorer.msn.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: downloading of file
> Chances are he's got extraneous newlines being written before the file is > being spooled. However... one wonders why he didn't jsut provide a mapping > to the text file anyway, or if it's not text, why he's using JSP at all > instead of a servlet. The real problem is that the JSP will have call response.getWriter(), telling the container that it's going to use the JSPWriter to output its response. Once you've done that you can't call getOutputStream(). Calling getOutputStream() results in an IllegalStateException. If you want to stream back a file use a servlet! Kevin Jones DevelopMentor www.develop.com > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph Ottinger > Sent: 16 February 2001 11:32 > To: [EMAIL PROTECTED] > Subject: Re: downloading of file > > > Bzzt! You miss out on the 10 points being offered for the right answer to > this question. However, you get 150 points for telling him the right thing > to do regardless. > > Chances are he's got extraneous newlines being written before the file is > being spooled. However... one wonders why he didn't jsut provide a mapping > to the text file anyway, or if it's not text, why he's using JSP at all > instead of a servlet. > > >From: Hardeep Singh <[EMAIL PROTECTED]> > >Reply-To: A mailing list about Java Server Pages specification and > > reference <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: Re: downloading of file > >Date: Fri, 16 Feb 2001 16:37:21 +0530 > > > >use a servlet instead of jsp since jsp already has content type > set before > >coming to ur code. what u say that the client sees the message > first is not > >possible. > > > >Hardeep > > > >- Original Message - > >From: "Shailendra" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Friday, February 16, 2001 6:56 AM > >Subject: downloading of file > > > > > > > hi > > > can any body will help me in down loadin of file > > > my problem is > > > i am writing folowing code in my jsp > > > it download the Download.jsp file to the client side but > server give the > > > error saying > > > > > > java.lang.IllegalStateException: OutputStream is already > being used for > >this > > > request > > > > > > code is like that > > > <% > > > response.setContentType("text/plain"); > > > > >response.setHeader("Content-Disposition","attachment;filename=fil > e.txt;"); > > > InputStream is = null; > > > > > > File f= new File("Download.jsp"); > > > FileInputStream fos=new FileInputStream(f); > > > BufferedInputStream o=new BufferedInputStream(fos); file://8k > > > is=o; > > > //... Read InputStream from Database > > > OutputStream os = response.getOutputStream(); > > > if (os != null) > > > { > > >int c; > > >while ( (c = is.read()) != -1) > > >{ > > > os.write(c); > > >} > > >os.flush(); > > >os.close(); > > > } > > > is.close(); > > > > > > %> > > > > > > extra to that(downloading of file) > > > i also want that the client shoud have some html page ,when it get > >download > > > dilogbox(first client see the html page saying download will start > > > autometicaly then download start) > > > > > > shailendra > > > _ > 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
OT: XML
sorry once again for the 2nd OT. I was wondering whether anyone could shed some light into getting NS4+ to display XML data from a file. Any activeX control or anything ?! I have tried inlogix plugin but it has its own hassles !! Mayuresh === 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: downloading of file
Bzzt! You miss out on the 10 points being offered for the right answer to this question. However, you get 150 points for telling him the right thing to do regardless. Chances are he's got extraneous newlines being written before the file is being spooled. However... one wonders why he didn't jsut provide a mapping to the text file anyway, or if it's not text, why he's using JSP at all instead of a servlet. >From: Hardeep Singh <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: downloading of file >Date: Fri, 16 Feb 2001 16:37:21 +0530 > >use a servlet instead of jsp since jsp already has content type set before >coming to ur code. what u say that the client sees the message first is not >possible. > >Hardeep > >- Original Message - >From: "Shailendra" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Friday, February 16, 2001 6:56 AM >Subject: downloading of file > > > > hi > > can any body will help me in down loadin of file > > my problem is > > i am writing folowing code in my jsp > > it download the Download.jsp file to the client side but server give the > > error saying > > > > java.lang.IllegalStateException: OutputStream is already being used for >this > > request > > > > code is like that > > <% > > response.setContentType("text/plain"); > > >response.setHeader("Content-Disposition","attachment;filename=file.txt;"); > > InputStream is = null; > > > > File f= new File("Download.jsp"); > > FileInputStream fos=new FileInputStream(f); > > BufferedInputStream o=new BufferedInputStream(fos); file://8k > > is=o; > > //... Read InputStream from Database > > OutputStream os = response.getOutputStream(); > > if (os != null) > > { > >int c; > >while ( (c = is.read()) != -1) > >{ > > os.write(c); > >} > >os.flush(); > >os.close(); > > } > > is.close(); > > > > %> > > > > extra to that(downloading of file) > > i also want that the client shoud have some html page ,when it get >download > > dilogbox(first client see the html page saying download will start > > autometicaly then download start) > > > > shailendra _ 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: downloading of file
hi hardeep but i have seen some where that a response come from server that says that download will start autometicaly if not starts, plese click this link how they are doing this? please help me out. shailendra - Original Message - From: Hardeep Singh <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 4:37 PM Subject: Re: downloading of file > use a servlet instead of jsp since jsp already has content type set before > coming to ur code. what u say that the client sees the message first is not > possible. > > Hardeep > > - Original Message - > From: "Shailendra" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, February 16, 2001 6:56 AM > Subject: downloading of file > > > > hi > > can any body will help me in down loadin of file > > my problem is > > i am writing folowing code in my jsp > > it download the Download.jsp file to the client side but server give the > > error saying > > > > java.lang.IllegalStateException: OutputStream is already being used for > this > > request > > > > code is like that > > <% > > response.setContentType("text/plain"); > > response.setHeader("Content-Disposition","attachment;filename=file.txt;"); > > InputStream is = null; > > > > File f= new File("Download.jsp"); > > FileInputStream fos=new FileInputStream(f); > > BufferedInputStream o=new BufferedInputStream(fos); file://8k > > is=o; > > //... Read InputStream from Database > > OutputStream os = response.getOutputStream(); > > if (os != null) > > { > >int c; > >while ( (c = is.read()) != -1) > >{ > > os.write(c); > >} > >os.flush(); > >os.close(); > > } > > is.close(); > > > > %> > > > > extra to that(downloading of file) > > i also want that the client shoud have some html page ,when it get > download > > dilogbox(first client see the html page saying download will start > > autometicaly then download start) > > > > shailendra > > > > > === > > 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: downloading of file
use a servlet instead of jsp since jsp already has content type set before coming to ur code. what u say that the client sees the message first is not possible. Hardeep - Original Message - From: "Shailendra" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 6:56 AM Subject: downloading of file > hi > can any body will help me in down loadin of file > my problem is > i am writing folowing code in my jsp > it download the Download.jsp file to the client side but server give the > error saying > > java.lang.IllegalStateException: OutputStream is already being used for this > request > > code is like that > <% > response.setContentType("text/plain"); > response.setHeader("Content-Disposition","attachment;filename=file.txt;"); > InputStream is = null; > > File f= new File("Download.jsp"); > FileInputStream fos=new FileInputStream(f); > BufferedInputStream o=new BufferedInputStream(fos); file://8k > is=o; > //... Read InputStream from Database > OutputStream os = response.getOutputStream(); > if (os != null) > { >int c; >while ( (c = is.read()) != -1) >{ > os.write(c); >} >os.flush(); >os.close(); > } > is.close(); > > %> > > extra to that(downloading of file) > i also want that the client shoud have some html page ,when it get download > dilogbox(first client see the html page saying download will start > autometicaly then download start) > > shailendra > > === > 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
downloading of file
hi can any body will help me in down loadin of file my problem is i am writing folowing code in my jsp it download the Download.jsp file to the client side but server give the error saying java.lang.IllegalStateException: OutputStream is already being used for this request code is like that <% response.setContentType("text/plain"); response.setHeader("Content-Disposition","attachment;filename=file.txt;"); InputStream is = null; File f= new File("Download.jsp"); FileInputStream fos=new FileInputStream(f); BufferedInputStream o=new BufferedInputStream(fos); file://8k is=o; //... Read InputStream from Database OutputStream os = response.getOutputStream(); if (os != null) { int c; while ( (c = is.read()) != -1) { os.write(c); } os.flush(); os.close(); } is.close(); %> extra to that(downloading of file) i also want that the client shoud have some html page ,when it get download dilogbox(first client see the html page saying download will start autometicaly then download start) shailendra === 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
OT: XML Mailing List !?
hello guyz !! has anyone SEEN any kind of XSLT/XML running on NN6+. And i would also like to look into some SIGs dedicated to the same :) Mayuresh === 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: Tag Library Descriptor problem - What does tagdependent mean?
tagdependent means that your TAGLIB will manage the body content. text in its own manner. You can have tagdependent as ``empty'' to mean that there is no body content == out.println( request.getContextPath() ) You should use subclass the `javax.servlet.jsp.tagext.TagSupport' class Or suppose you written a custom tag to perform an SQL query SELECT customer_name FROM preferred_customers Then here it the tag `querySQL' must be tagdependent, because your tag in dependent on the body content, that appears between the start tag and end tag. You should use subclass the `javax.servlet.jsp.tagext.BodyTagSupport' class In particular you have create a `doAfterBody()' method that retrieves the body content doAfterBody() { BodyContent bc = getBodyContext(); JspWriter out = getPreviousOut(): // You perfrom the JDBC query here but I make the string // UPPERSCASE here! out.write( bc.getString().toUpperCase() ); return SKIP_BODY; } -- Peter Pilgrim G.O.A.T "the Greatest Of All Time" Message History From: Thai Thanh Ha <[EMAIL PROTECTED]>@java.sun.com> on 16/02/2001 12:32 ZE7 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: Tag Library Descriptor problem - What does tagdependent mean? Hi gurus! I have a problem when writing a tag library. The problem is: I want to get the content of a custom tag in the corresponding tag handler, but I don't want that content is displayed in the browser. I have written: testiterationtag com.mycompany.TestIterationTag tagdependent in my tag library descriptor. And this is the extract from my JSP page: <%@ taglib uri="WEB-INF/testtag.tld" prefix="eg" %> aa I think "aa" will not be displayed. But it alway is displayed in the browser. So why is it displayed? When should we use the tagdependent value in tag library descriptor? I can't find any examples using tagdependent value. Thanks in advance. Regards, Thai -- 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: spliting a comma seperated string
You should look up the API for the java.util.StringTokenizer class, and stop asking a list for Java Server Pages off-topic questions. Also see http://java.sun.com/tutorial/, and pay attention in class next time. >From: "R.Muthukumar" <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: spliting a comma seperated string >Date: Fri, 16 Feb 2001 11:42:02 +0530 > >Hi! >I have a string like "I am, you are, we all, go for meeting". >I want to split this string into different strings and store into an array. >The array should contain I am as the first element and you are as the >second >element and so on. >That is my requirement is to split the string where were it finds the comma >and put it in the array. >Can anyone give me the code for this... >Thanks in advance >Muthu _ 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: Tag Library Descriptor problem - What does tagdependent mean?
LOL! Nasty words indeed, Martin... ones that will draw the ire of JSPI's entire community, except for those of us who've read the spec (or are willing to). Anyway, tagdependent means what it says: the tag decides what to do with the body. There's certainly no requirement that the tag body is sent to the JspWriter - a tag can consume its content very easily. >From: Martin Cooper <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Tag Library Descriptor problem - What does tagdependent mean? >Date: Thu, 15 Feb 2001 22:02:35 -0800 > >Read the spec. > >- Original Message - >From: "Thai Thanh Ha" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Thursday, February 15, 2001 9:32 PM >Subject: Tag Library Descriptor problem - What does tagdependent mean? > > > > Hi gurus! > > > > I have a problem when writing a tag library. The problem is: > > > > I want to get the content of a custom tag in the corresponding tag > > handler, but I don't want that content is displayed in the browser. I >have > > written: > > > > > > testiterationtag > > com.mycompany.TestIterationTag > > tagdependent > > > > > > in my tag library descriptor. And this is the extract from my JSP page: > > > > <%@ taglib uri="WEB-INF/testtag.tld" prefix="eg" %> > > aa > > > > I think "aa" will not be displayed. But it alway is displayed in the > > browser. > > > > So why is it displayed? When should we use the tagdependent value in >tag > > library descriptor? I can't find any examples using tagdependent value. > > Thanks in advance. > > > > Regards, > > Thai > > > > >=== > > 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 _ 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