Re: JavaMail in servlet 2
String content = req.getParameter(content);; please see this carefully,why is [;;] - Original Message - From: Taro Kondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 24, 2002 4:37 PM Subject: Re: JavaMail in servlet 2 here is the code for JavaMail - import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import javax.mail.*; import javax.mail.internet.*; public class SendMail extends HttpServlet { public void doPost (HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException { res.setContentType(text/html; charset=\Shift_JIS\); PrintWriter out = res.getWriter(); out.println(htmlheadtitle); out.println(Send mail); out.println(/title/headbodyh3); out.println(Send mail); out.println(/h3); try { Properties props = new Properties(); props.put(mail.smtp.host,mail.smtp.altera.com); props.put(mail.host,mail.altera.com); props.put(mail.user,tkondo); Session session = Session.getInstance(props,null); MimeMessage msg = new MimeMessage(session); InternetAddress[] tolist = new InternetAddress[2]; tolist[0] = new InternetAddress([EMAIL PROTECTED], MimeUtility.encodeWord(recipient1,Shift_JIS,B)); tolist[1] = new InternetAddress([EMAIL PROTECTED], MimeUtility.encodeWord(recipient2,Shift_JIS,B)); msg.setRecipients(Message.RecipientType.TO,tolist); msg.setFrom(new InternetAddress([EMAIL PROTECTED], MimeUtility.encodeWord(sender,Shift_JIS,B))); String subject = sent from servlet; msg.setSubject(MimeUtility.encodeText(subject,Shift_JIS,B)); String content = req.getParameter(content);; msg.setContent(content,text/plain; charset=\Shift_JIS\); // Transport.send(msg); out.println(pmain sent/p); out.println(pre); ByteArrayOutputStream bos = new ByteArrayOutputStream(); msg.writeTo(bos); bos.close(); out.println(bos.toString(Shift_JIS)); out.println(/pre); } catch (MessagingException ex) { out.println(pfail sending main/p); } out.println(/body/html); out.close(); } } -Original Message- From: 崔 建偉 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 1:17 PM To: [EMAIL PROTECTED] Subject: Re: JavaMail in servlet 2 can you show your code here? - Original Message - From: Taro Kondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 24, 2002 1:12 PM Subject: Re: JavaMail in servlet 2 Hi Ritesh and everyone else who knows about JavaMail, I've tried pretty much everything to get my code to work, but even with the successful compiration, the page doesn't work at all. Instead, I get an internal error shown in below. Is there anything I can do? Taro = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JavaMail in servlet 2
Yes. I realized that. But, with one ;, it doesn't send e-mail, and at the same time, words I type in in a form doesn't show in SendMail servlet. It seems that I am getting close to complete it though. Taro -Original Message- From: 崔 建偉 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 4:54 PM To: [EMAIL PROTECTED] Subject: Re: JavaMail in servlet 2 String content = req.getParameter(content);; please see this carefully,why is [;;] - Original Message - From: Taro Kondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 24, 2002 4:37 PM Subject: Re: JavaMail in servlet 2 here is the code for JavaMail - import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import javax.mail.*; import javax.mail.internet.*; public class SendMail extends HttpServlet { public void doPost (HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException { res.setContentType(text/html; charset=\Shift_JIS\); PrintWriter out = res.getWriter(); out.println(htmlheadtitle); out.println(Send mail); out.println(/title/headbodyh3); out.println(Send mail); out.println(/h3); try { Properties props = new Properties(); props.put(mail.smtp.host,mail.smtp.altera.com); props.put(mail.host,mail.altera.com); props.put(mail.user,tkondo); Session session = Session.getInstance(props,null); MimeMessage msg = new MimeMessage(session); InternetAddress[] tolist = new InternetAddress[2]; tolist[0] = new InternetAddress([EMAIL PROTECTED], MimeUtility.encodeWord(recipient1,Shift_JIS,B)); tolist[1] = new InternetAddress([EMAIL PROTECTED], MimeUtility.encodeWord(recipient2,Shift_JIS,B)); msg.setRecipients(Message.RecipientType.TO,tolist); msg.setFrom(new InternetAddress([EMAIL PROTECTED], MimeUtility.encodeWord(sender,Shift_JIS,B))); String subject = sent from servlet; msg.setSubject(MimeUtility.encodeText(subject,Shift_JIS,B)); String content = req.getParameter(content);; msg.setContent(content,text/plain; charset=\Shift_JIS\); // Transport.send(msg); out.println(pmain sent/p); out.println(pre); ByteArrayOutputStream bos = new ByteArrayOutputStream(); msg.writeTo(bos); bos.close(); out.println(bos.toString(Shift_JIS)); out.println(/pre); } catch (MessagingException ex) { out.println(pfail sending main/p); } out.println(/body/html); out.close(); } } -Original Message- From: 崔 建偉 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 1:17 PM To: [EMAIL PROTECTED] Subject: Re: JavaMail in servlet 2 can you show your code here? - Original Message - From: Taro Kondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 24, 2002 1:12 PM Subject: Re: JavaMail in servlet 2 Hi Ritesh and everyone else who knows about JavaMail, I've tried pretty much everything to get my code to work, but even with the successful compiration, the page doesn't work at all. Instead, I get an internal error shown in below. Is there anything I can do? Taro = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Tomcat4.x as NTservice
Hi all, I would like to install Tomcat4.0.3 as NT service. Anybody has an idea how to do this? With Best Regards Jagan K Samuel === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Tomcat4.x as NTservice
Try here for more explanation: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html The other way is to simply put $CATALINA_HOME/bin/startup.bat into your Startup folder, but that will only start tomcat when that particular user logs in. Regards, Vikramjit Singh, Systems Engineer, GTL Ltd. Ph. 7612929-1059 -Original Message- From: Jagan K Samuel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 1:57 AM To: [EMAIL PROTECTED] Subject: Tomcat4.x as NTservice Hi all, I would like to install Tomcat4.0.3 as NT service. Anybody has an idea how to do this? With Best Regards Jagan K Samuel === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JavaMail in servlet 2
Hi Ritesh, Here is what I have for the form page (really simple): html head titleMail test/title meta http-equiv=Content-Type content=text/html; charset=Shift_JIS /head h2Mail test/h2 form method=Post action=servlet/SendMail enctype=text/plain p mailspan class=required*/span textarea rows=5 cols=40 name=content/textarea /p brbr pinput type=submit value=Finish/p /form /body /html -Original Message- From: Ritesh Gupta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 5:25 PM To: [EMAIL PROTECTED] Subject: Re: JavaMail in servlet 2 Hi Taro, Are you going to this form from some different page ? From what I debugged, the problem that you were getting (the excpetion that you sent) is coming because the value that you are getting from request is null. You can print it by putting a SOP just after the call to find out what is the value returned by : String content = req.getParameter(content); This value itself is null. How are you setting this in the previous page ? Ritesh - Original Message - From: Taro Kondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 24, 2002 1:48 PM Subject: Re: JavaMail in servlet 2 Yes. I realized that. But, with one ;, it doesn't send e-mail, and at the same time, words I type in in a form doesn't show in SendMail servlet. It seems that I am getting close to complete it though. Taro -Original Message- From: 崔 建偉 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 4:54 PM To: [EMAIL PROTECTED] Subject: Re: JavaMail in servlet 2 String content = req.getParameter(content);; please see this carefully,why is [;;] - Original Message - From: Taro Kondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 24, 2002 4:37 PM Subject: Re: JavaMail in servlet 2 here is the code for JavaMail - import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import javax.mail.*; import javax.mail.internet.*; public class SendMail extends HttpServlet { public void doPost (HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException { res.setContentType(text/html; charset=\Shift_JIS\); PrintWriter out = res.getWriter(); out.println(htmlheadtitle); out.println(Send mail); out.println(/title/headbodyh3); out.println(Send mail); out.println(/h3); try { Properties props = new Properties(); props.put(mail.smtp.host,mail.smtp.altera.com); props.put(mail.host,mail.altera.com); props.put(mail.user,tkondo); Session session = Session.getInstance(props,null); MimeMessage msg = new MimeMessage(session); InternetAddress[] tolist = new InternetAddress[2]; tolist[0] = new InternetAddress([EMAIL PROTECTED], MimeUtility.encodeWord(recipient1,Shift_JIS,B)); tolist[1] = new InternetAddress([EMAIL PROTECTED], MimeUtility.encodeWord(recipient2,Shift_JIS,B)); msg.setRecipients(Message.RecipientType.TO,tolist); msg.setFrom(new InternetAddress([EMAIL PROTECTED], MimeUtility.encodeWord(sender,Shift_JIS,B))); String subject = sent from servlet; msg.setSubject(MimeUtility.encodeText(subject,Shift_JIS,B)); String content = req.getParameter(content);; msg.setContent(content,text/plain; charset=\Shift_JIS\); // Transport.send(msg); out.println(pmain sent/p); out.println(pre); ByteArrayOutputStream bos = new ByteArrayOutputStream(); msg.writeTo(bos); bos.close(); out.println(bos.toString(Shift_JIS)); out.println(/pre); } catch (MessagingException ex) { out.println(pfail sending main/p); } out.println(/body/html); out.close(); } } -Original Message- From: 崔 建偉 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 1:17 PM To: [EMAIL PROTECTED] Subject: Re: JavaMail in servlet 2 can you show your code here? - Original Message - From: Taro Kondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 24, 2002 1:12 PM Subject: Re: JavaMail in servlet 2 Hi Ritesh and everyone else who knows about JavaMail, I've tried pretty much everything to get my code to work, but even with the successful compiration, the page doesn't work at all. Instead, I get an internal error shown in below. Is there anything I can do? Taro = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
[ANN] Coldtags suite ver 0.95 released
Coldbeans Software announced the major new release of Coldtags taglib. This suite provides 95+ custom JSP tags for common programming tasks faced by JSP developers. And now this suite includes custom tags similar to web controls in .NET framework. Find out more here: http://www.servletsuite.com/jsp.htm Tags cover the most often used areas in web development: Database manipulations XML/XSL support SOAP, UDDI requests JMS printing formatted data authentication featured String manipulations conditional evaluation and flow-control. generating unique ID and random values generating a standard portal view as a set of columns from the given pages (portlets). files uploading dynamic JSP code evaluation dynamic caching of JSP content bar charts manipulations with files mail-reader and sendmail WAP/WML support Etc. At this moment Coldtags suite is probably the largest collection of custom JSP tags over the Net and continues to grow. -- Coldbeans Software - server-side Java (tm) components http://www.servletsuite.com __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JavaMail in servlet 2
Hi, Remove the : enctype=text/plain in the line : form method=Post action=servlet/SendMail enctype=text/plain and try. Regards, Ritesh - Original Message - From: Taro Kondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 24, 2002 2:47 PM Subject: Re: JavaMail in servlet 2 Hi Ritesh, Here is what I have for the form page (really simple): html head titleMail test/title DEFANGED_meta http-equiv=Content-Type content=text/html; charset=Shift_JIS /head h2Mail test/h2 form method=Post action=servlet/SendMail enctype=text/plain p mailspan class=required*/span textarea rows=5 cols=40 name=content/textarea /p brbr pinput type=submit value=Finish/p /form /body /html === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Any Tools For Webbased Reports?
you can go for webfocus for reporting. it is a third party tool. thanks Mugundan -Original Message- From: Daniel [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 5:36 PM To: [EMAIL PROTECTED] Subject: Any Tools For Webbased Reports? Hi Is there any tools or plugins available for creating flexible reports for IE. Like where you can adjust the header or footer or adjust the page layouts. Any third party tools available? Thanks Daniel.E == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Tomcat4.x as NTservice
I've used the following successfully (much easier too): to install tomcat service: %CATALINA_HOME%\bin\tomcat.exe -install Tomcat %JAVA_HOME%\jre\bin\server\hotspot\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.j ar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log to uninstall tomcat service: %CATALINA_HOME%\bin\tomcat.exe -uninstall Tomcat -Original Message- From: Anoop Kumar V [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 3:58 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat4.x as NTservice download jk_nt_service and wrappers.properties file. set java_home and tomcat_home in the wrappers.properties file. on a command prompt. jk_nt_service -i name of service -a path to wrappers.properties file this shd work. give a search for tomcat + NT on Google and you will get these files. cheers, anoop -Original Message- From: Jagan K Samuel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 2:27 PM To: [EMAIL PROTECTED] Subject: Tomcat4.x as NTservice Hi all, I would like to install Tomcat4.0.3 as NT service. Anybody has an idea how to do this? With Best Regards Jagan K Samuel === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Tomcat NT Service
Because of the bug in JDK 1.3 that affects Java applications being run as Windows NT services. The bug causes the service to terminate when the currently logged in user logs out. Does anyone know if jdk1.4 works without this problem before I move to javaserv http://www.kcmultimedia.com/javaserv/ or JavaService http://www.alexandriasc.com/software/JavaService/ ? === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Tomcat NT Service
The bug was fixed in 1.3.1. You have to start the service with the -Xrs argument to the jvm. For more info, type java -X at a command prompt and look for the -Xrs line. If you're going to switch away from the tomcat.exe, I recommend JNT. http://www.eworksmart.com/JNT/ -- Walter Meyer http://www.ThatWaltGuy.com - web [EMAIL PROTECTED] - email (303) 949-8369 - cell McGlorie, Randy (HCJPD) [EMAIL PROTECTED] wrote: Because of the bug in JDK 1.3 that affects Java applications being run as Windows NT services. The bug causes the service to terminate when the currently logged in user logs out. Does anyone know if jdk1.4 works without this problem before I move to javaserv http://www.kcmultimedia.com/javaserv/ or JavaService http://www.alexandriasc.com/software/JavaService/ ? === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Any Tools For Webbased Reports?
Hi Is there any tools or plugins available for creating flexible reports for IE. Like where you can adjust the header or footer or adjust the page layouts. Any third party tools available? http://nagoya.apache.org/eyebrowse/ReadMsg?listName=struts- [EMAIL PROTECTED]msgId=365764 Thanks Daniel.E === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Q: Separation of layout and code (similar to Visual Studio.net)?
Martin == Martin Yager [EMAIL PROTECTED] writes: Martin --- Ola Theander [EMAIL PROTECTED] wrote: Dear subscribers. I would like to know if there is some JSP engine, class library or similar that allows the Java code to be separated from the layout, i.e. HTML code, similar to what's available in MS Visual Studio.net? In VS.net a dynamic web page is built by two separate files, one file containing the layout of the page and one page containing the code. The code manages the objects in the layout file, e.g. a text box, list box etc. as objects with properties and methods, pretty much as if you where coding a GUI application. There is also the possibility to build more complex object composed by existing objects and HTML. The big advantage is that you as the developer will have an abstraction layer between the code and the layout and the graphics designer doesn't need to worry about the code. My question is, is there something similar to this on the JSP/Servlet/J2EE platform? This is provided by the Tiles package, as part of the Jakarta Struts framework. You can define layouts with specific HTML layouts, and definitions, which reference the layouts. You can even define all the definitions (the actual page instances) in a single file. Then, using Struts, you can define all the display strings in a resource file, so your JSP code doesn't hardcode any strings. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JavaMail in servlet 2
Hi eveyone, It looks like it works now! Thank you so much for all of your help! But the problem still exist because I wanted to send e-mail in Japanese. I still have to work on the character setting... Taro -Original Message- From: Ritesh Gupta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 7:25 PM To: [EMAIL PROTECTED] Subject: Re: JavaMail in servlet 2 Hi, Remove the : enctype=text/plain in the line : form method=Post action=servlet/SendMail enctype=text/plain and try. Regards, Ritesh - Original Message - From: Taro Kondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 24, 2002 2:47 PM Subject: Re: JavaMail in servlet 2 Hi Ritesh, Here is what I have for the form page (really simple): html head titleMail test/title DEFANGED_meta http-equiv=Content-Type content=text/html; charset=Shift_JIS /head h2Mail test/h2 form method=Post action=servlet/SendMail enctype=text/plain p mailspan class=required*/span textarea rows=5 cols=40 name=content/textarea /p brbr pinput type=submit value=Finish/p /form /body /html === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Fw: Re: Q: Separation of layout and code (similar to Visual Studio.net)?
BIG YES...JAVA HAS Refer MVC(Model-view-controler) architecture. Refer Tag library tutorilas. - Original Message - From: David M. Karr To: [EMAIL PROTECTED] Sent: Thursday, July 25, 2002 5:48 AM Subject: Re: Q: Separation of layout and code (similar to Visual Studio.net)? Martin == Martin Yager [EMAIL PROTECTED] writes: Martin --- Ola Theander [EMAIL PROTECTED] wrote: Dear subscribers. I would like to know if there is some JSP engine, class library or similar that allows the Java code to be separated from the layout, i.e. HTML code, similar to what's available in MS Visual Studio.net? In VS.net a dynamic web page is built by two separate files, one file containing the layout of the page and one page containing the code. The code manages the objects in the layout file, e.g. a text box, list box etc. as objects with properties and methods, pretty much as if you where coding a GUI application. There is also the possibility to build more complex object composed by existing objects and HTML. The big advantage is that you as the developer will have an abstraction layer between the code and the layout and the graphics designer doesn't need to worry about the code. My question is, is there something similar to this on the JSP/Servlet/J2EE platform? This is provided by the Tiles package, as part of the Jakarta Struts framework. You can define layouts with specific HTML layouts, and definitions, which reference the layouts. You can even define all the definitions (the actual page instances) in a single file. Then, using Struts, you can define all the display strings in a resource file, so your JSP code doesn't hardcode any strings. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JavaMail in servlet 2
Hi, Does anyone know to send more than one string data as an e-mail message using JavaMail. With this code, I can only send one string data only the last one, in this case, spell. I want to send both (actually more, multiple) string data. Thanks in advance. Taro -- String name = req.getParameter(name); String spell = req.getParameter(spell); msg.setContent(name,text/plain; charset=ISO-2022-JP); msg.setContent(spell,text/plain; charset=ISO-2022-JP); Transport.send(msg); - === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JavaMail in servlet 2
String name = req.getParameter(name); String spell = req.getParameter(spell)+name+?+?+?...; - Original Message - From: Taro Kondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 25, 2002 1:08 PM Subject: Re: JavaMail in servlet 2 Hi, Does anyone know to send more than one string data as an e-mail message using JavaMail. With this code, I can only send one string data only the last one, in this case, spell. I want to send both (actually more, multiple) string data. Thanks in advance. Taro -- String name = req.getParameter(name); String spell = req.getParameter(spell); msg.setContent(name,text/plain; charset=ISO-2022-JP); msg.setContent(spell,text/plain; charset=ISO-2022-JP); Transport.send(msg); - === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Last Auto Increment
Hi all, When I insert a record into mysql table I want to obtain the LastAutoIncrement ID, how do i do this in JSP. I have tried this. INSERT INTO formula (Formula_Code, Formula_Name) VALUES ('Test2','Test Formula2') Select LAST_INSERT_ID(); If I used those two statement in one line I got the error say that I have access violation problem. If i used those two statements in two separate sql then I got this error. Select LAST_INSERT_ID() : Results returned for UPDATE ONLY. Can anyone help me out. Thanks, Duc Chat with friends online, try MSN Messenger: Click Here === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JavaMail in servlet 2
Thanks! It works with you idea! Taro -Original Message- From: 崔 建偉 [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 1:10 PM To: [EMAIL PROTECTED] Subject: Re: JavaMail in servlet 2 String name = req.getParameter(name); String spell = req.getParameter(spell)+name+?+?+?...; - Original Message - From: Taro Kondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 25, 2002 1:08 PM Subject: Re: JavaMail in servlet 2 Hi, Does anyone know to send more than one string data as an e-mail message using JavaMail. With this code, I can only send one string data only the last one, in this case, spell. I want to send both (actually more, multiple) string data. Thanks in advance. Taro -- String name = req.getParameter(name); String spell = req.getParameter(spell); msg.setContent(name,text/plain; charset=ISO-2022-JP); msg.setContent(spell,text/plain; charset=ISO-2022-JP); Transport.send(msg); - === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
help me
hi all! i want to begin with JSP. what have i do first? ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: help me
d/l jdk and a suitable jsp/servlet container. u can start with Tomcat 4.x.. it is very popular and easy to use. Install and then we will guide u thro. u can then look at the example/sample jsps and figure out things urslf. -anoop -Original Message- From: Alexander V. Yug [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 11:20 AM To: [EMAIL PROTECTED] Subject: help me hi all! i want to begin with JSP. what have i do first? ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com