Daily email using jsp
Daily Morning i want to sent an email with data from database.Is it possible to do with jsp?
The mail parts easy, there is a sun forum for java mail, from where you will find the code your looking for.
Getting it to run every morning will be harder, you may want to have a look a the following:
http://www.opensymphony.com/quartz/wikidocs/FAQ.html
Similar Messages
-
How to send emails using JSP?
How can i send emails using JSP? what are the things that i will need? please help me asap...thanks
Hi,
This works for me:
<%
String from = "Person"
String to= "my-email-address;
try{
SmtpClient client = new SmtpClient("smtp.stuff.com");
client.from(from);
client.to(to);
PrintStream message = client.startMessage();
message.println("To: " + to);
message.println("Subject: Sending an e-mail");
message.println();
message.println("Groovy :-)");
client.closeServer();
catch (IOException e){
System.out.println("ERROR SENDING EMAIL: "+e);
%> -
i want to send content of a input text area to particular email id
pls replay to [email protected]check your mail
-
How can I generate auto Emails upon successful registration using jsp?
Dear all, I have been researching on how to send auto-emails using JSP for several days but I still do not understand how to do it and how it works! I tried reading JavaMail but i do not understand it can anyone help me?
Thank You very Much,The mail.jar & activation.jar are part of Tomcat 4.x and up
Here is my simple example, you may want to make bean methods to get/properties so that you create an email like an object :-o
Notice, I make the message body a StringBuffer, so you can append info as you see fit.
Also assuming your SMTP server is the local machine, set that property to "localhost".
I also use a boolean return so I know if the message sent otherwise display a message to the user (aka, please email support to confirm your registration, etc.)
import java.util.Date;
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
import java.net.InetAddress;
private String to = "[email protected]";
static private String from = "registered@localhost";
private String subject = "Registered";
private StringBuffer messageText = null;
private Properties props = null;
private Session sess = null;
private InternetAddress toAddr = null;
private InternetAddress fromAddr = null;
public Email() {
try{
props = new Properties();
props.put("mail.smtp.host","localhost");
Session sess = Session.getDefaultInstance(props,null);
this.toAddr = new InternetAddress(to);
this.fromAddr = new InternetAddress(from);
this.messageText = new StringBuffer(new Date() + "\n\n");
} catch (Exception e) {
e.printStackTrace();
public boolean sendMessage(){
try{
// Create the message object
Message message = new MimeMessage(sess);
message.setFrom(fromAddr);
message.setRecipient(Message.RecipientType.TO, toAddr);
message.setSubject(subject);
message.setContent(messageText.toString(),"text/plain");
// Send Message
Transport.send(message);
return true;
}catch (Exception e){
e.printStackTrace();
return false;
} -
HOW CAN I WRITE A EMAIL FUNCTION USING JSP
WHICH HAVE FORWARD, REPLY, REPLAY ALL, AND ADDRESS BOOK LIKE YAHOO EMAIL FUNCTION
HOW CAN I WRITE IT?I meant you would face a considerable challenge trying to write
public static void main(String[] arg) { } with your Caps-Lock key stuck.
You would not even be able to escape your way out of it with
\u0070\u0075\u0062\u006C\u0069\u0063 \u0073\u0074\u0061\u0074\u0069\u0063 \u0076\u006F\u0069\u0064 \u006D\u0061\u0069\u006E(S\u0074\u0072\u0069\u006E\u0067[] \u0061\u0072\u0067) { } as the "\u" escape sequence also contains a lowercase character. -
Would Like to Get Report of Daily Emails In and Out from Members to a DL
Exchange version : 2007
I am the supervisor for the group and want to quantify this information. I do not need to see the content, just quantity
is it possible ?Well, distribution groups don't really have a concept of "in" or "out". They only serve to distribute messages sent to them -- unless you're asking to know who was a member of the distribution group at the time a message was sent to the DL.
Message tracking logs hold the information you want, though. You'd have to look for EXPAND events that reference the distribution group and take the sender's e-mail address from that event. If the DL is a simple one that's not a member of any other groups
you could also look for RECEIVE events sent to the e-mail address of the group and get the sender's name from that event.
You can use Powershell extract the rows of data from the logs, but you'll have to write the code to get the data out of those rows and into a format you want. Perhaps LogParser could be useful in place of Powershell?
--- Rich Matheisen MCSE&I, Exchange MVP -
hi,
Im trying to send an email in a jsp page, you can see what ive done below. Currently im not entering any username or password for my gmail account - where/how can i do this, also can i send emails using my gmail in a jsp page.
<%@page import="sun.net.smtp.SmtpClient, java.io.*" %>
String username="blah";
String remail = request.getParameter("remail");
String msg = request.getParameter("message");
String subject = "I found a great new product";
String smtp = "smtp.gmail.com";
try{
SmtpClient client = new SmtpClient(smtp);
client.from(username);
client.to(remail);
PrintStream message = client.startMessage();
message.println("To: " + remail);
message.println("Subject: "+subject);
message.println(msg);
client.closeServer();
catch (IOException e){
System.out.println("ERROR SENDING EMAIL:"+e);
}i have create a class file like follows and create its objects in jsp file then i can do this the java file as follows
package exceltoxml;
import java.util.Properties;
import javax.mail.Authenticator;
import javax.mail.Session;
import javax.mail.PasswordAuthentication;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.InternetAddress;
import javax.mail.Address;
import javax.mail.Transport;
import java.util.Enumeration;
public class SendMail
MimeMessage message;
public SendMail()
try
Properties properties=new Properties();
////////////////from gmail
properties.setProperty("mail.smtp.host","smtp.gmail.com");
properties.setProperty("mail.debug","false");
properties.setProperty("mail.smtp.auth","true");
properties.setProperty("mail.smtp.port","587");
properties.setProperty("mail.smtp.starttls.enable","true");
////////////////fram yahoo///////////////////
//properties.setProperty("mail.smtp.host","smtp.mail.yahoo.co.in");
//properties.setProperty("mail.smtp.port","587");
//properties.setProperty("mail.smtp.auth","true");
//properties.setProperty("mail.debug","false");
Authenticator authenticator=new Authenticator()
public PasswordAuthentication getPasswordAuthentication()
return new PasswordAuthentication("from mail id","your password");
Session session=Session.getInstance(properties,authenticator);
message=new MimeMessage(session);
Address fromaddress=new InternetAddress("from mail id");
message.setFrom(fromaddress);
}catch (Exception x){System.out.println("one :"+x);}
synchronized public void sendMail(String messText,String messSubject,String address)
try{
message.setText(messText);
message.setSubject(messSubject);
Address toaddress=new InternetAddress(address);
message.addRecipient(javax.mail.Message.RecipientType.TO,toaddress);
Transport.send(message);
}catch(Exception e){System.out.println("two :"+e);}
for this you must have two jmail jar files. activation.jar and mail.jar -
Need to send mail & upload files using JSP
hi, got a lot of issues,.. just starting out as a developer.. so here goes.
1st Need to send mail & upload files to server using JSP(tomcat).. an example to demo it would be nice.
thanx in advanceLook at this for email:
http://forum.java.sun.com/thread.jspa?forumID=45&threadID=285950
and go to:
http://servlets.com/cos/
for a package to upload files. -
hei evryone!
can anyone pls help me on how to send an email in jsp. I mean i have a webpage wherein you submit data , upon submission or after the submit button is clicked i need to send an email to a person regarding the data sumitted on the form , i dunno how to do this, can anyone please help me on how to use Javamail, or can anyone post a sample code or site of a tutorial .. thx!There are some quite good examples on the use of Javamail on the Sun website. No, we're not going to write your application for you, unless you're willing to pay consultancy fees in real money.
http://java.sun.com/products/javamail/index.jsp
http://java.sun.com/products/javamail/FAQ.html
http://java.sun.com/products/javamail/reference/techart/index.html -
Dynamic Tree Creation using JSP, Struts framework
I urgently require tips/information/code snippet for creating a Dynamic Tree structure.
Tree is the hierarchical folder structure that we see in windows operating system.
Dynamic tree in the sense that all nodes shall be populated from database & a radio button shall be present at each node that can be selected & submitted to form.
Tree should be done using JSP (& if required Javascript).
I am using Struts framework .
[email protected]u need to know quite a few java technologies to make archieve your dream.
JDBC, dynamic array and JSP.
after reading tutorial regarding to these 3 materials, you should be able to get your job done. -
Exception notification through Email in JSP and Tomcat 5.5
Hi,
I have developed a Web application using jsp on Tomcat 5.5 web server. I want and email sent to myself if any exception occurs on the server side along with the exception.
I am not sure if it can be done on JSP or its part of Tomcat configuration.
I hope you guys could help me
Thank youCheck this page:
http://www.imagescript.com/atg/articles/jsp_j2ee/error_page_basics.htm
That explains how to set your own error page. Inside that jsp you can use the JavaMail api to send the exception as an email. -
I receive daily emails from the NY Times, which I read from my Ipad. Some of the emails will show all of the stories available, and some will only show a few lines in the body and the rest of the email is blank. Any ideas of what I need to do to fix this?
Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray before doing the reset.
-
How can WLS use JSP pages in a Web Application (either a .war file or a war directory structure) without a java compiler?
I suspect either the JSP specification is flawed (i.e. it doesn't take account of servers using just a JRE), or BEA's implementation is broken.
Production servers do not have a JDK installed. They only have a JRE. Therfore a java compiler is not present on the machine that the Web Application is deployed onto.
On the development machine, when the server is requested to load the JSP it creates a tmpwar directory within the Web Application directory structure. This is then included in the resultant .war file thus:
D:\war>jar -tf gmi.war
META-INF/
META-INF/MANIFEST.MF
gmiService.jsp
WEB-INF/
WEB-INF/classes/
WEB-INF/classes/com/
WEB-INF/classes/com/bt/
WEB-INF/classes/com/bt/gmi/
WEB-INF/classes/com/bt/gmi/gmiService.class
WEB-INF/getList.xsl
WEB-INF/getListByConnection.xsl
WEB-INF/getListByDistrict.xsl
WEB-INF/getListByDistrictConnection.xsl
WEB-INF/lib/
WEB-INF/source/
WEB-INF/source/build.bat
WEB-INF/source/gmiService.java
WEB-INF/web.xml
WEB-INF/weblogic.xml
tmpwar/
tmpwar/jsp_servlet/
tmpwar/jsp_servlet/_gmiservice.class
tmpwar/jsp_servlet/_gmiservice.java
When deployed on the production server with the web.xml file set to use the following values (note XML stripped):
weblogic.jsp.pageCheckSeconds
-1
weblogic.jsp.precompile
false
weblogic.jsp.compileCommand
javac
weblogic.jsp.verbose
true
weblogic.jsp.packagePrefix
jsp_servlet
weblogic.jsp.keepgenerated
false
And in the weblogic.properties file:
weblogic.httpd.webApp.gmi=war/gmi
I've also tried with the .war file, but that insists on creating another tmpwar directory outside of the .war file.
Then, although I have set pageCheckSeconds to -1 (don't check and don't recompile) ter production server still attempts to recompile the JSP's:
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: init
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param verbose initialized to: true
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param packagePrefix initialized to: jsp_servlet
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param compileCommand initialized to: javac
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param srcCompiler initialized to weblogic.jspc
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param superclass initialized to null
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param workingDir initialized to: /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param pageCheckSeconds initialized to: -1
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: initialization complete
Mon Sep 25 11:40:12 BST 2000:<I> <WebAppServletContext-gmi> Generated java file: /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java
Mon Sep 25 11:40:14 BST 2000:<E> <WebAppServletContext-gmi> Compilation of /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java failed: Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main
java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[javac, -classpath, /opt/Solaris_JRE_1.2.1_04/lib/rt.jar:/opt/Solaris_JRE_1.2.1_04/lib/i18n.jar:/opt/Solaris_JRE_1.2.1_04/classes:/var/wls/5.1/weblogic/lib/weblogic510sp4boot.jar:/var/wls/5.1/weblogic/classes/boot:/var/wls/5.1/weblogic/eval/cloudscape/lib/cloudscape.jar:/var/wls/5.1/weblogic/lib/wleorb.jar:/var/wls/5.1/weblogic/lib/wlepool.jar:/var/wls/5.1/weblogic/lib/weblogic510sp4.jar:/var/wls/5.1/weblogic/license:/var/wls/5.1/weblogic/classes:/var/wls/5.1/weblogic/lib/weblogicaux.jar:/opt/wls-servers/gmiServer/weblogic/gmiServer/serverclasses:/opt/wls-servers/gmiServer/weblogic/lotusxsl.jar:/opt/wls-servers/gmiServer/weblogic/xerces.jar:/opt/wls-servers/gmiServer/weblogic/logging.jar::/opt/wls-servers/gmiServer/weblogic/war/gmi/WEB-INF/classes:/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war, -d, /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war, /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java])
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled Code)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
at weblogic.servlet.jsp.JspStub.compilePage(Compiled Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:187)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:142)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:744)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:692)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
The default Java compiler from sun lives in the tools.jar that comes with
the JDK. Just add that to your set of JARs which are deployed in production
and you should be fine. No need to install the full JDK - just make the
tools.jar available to WebLogic.
Regards
James
James Strachan
=============
email: [email protected]
web: http://www.metastuff.com
"Martin Webb" <[email protected]> wrote in message
news:[email protected]...
>
> How can WLS use JSP pages in a Web Application (either a .war file or a
war directory structure) without a java compiler?
>
> I suspect either the JSP specification is flawed (i.e. it doesn't take
account of servers using just a JRE), or BEA's implementation is broken.
>
> Production servers do not have a JDK installed. They only have a JRE.
Therfore a java compiler is not present on the machine that the Web
Application is deployed onto.
>
> On the development machine, when the server is requested to load the JSP
it creates a tmpwar directory within the Web Application directory
structure. This is then included in the resultant .war file thus:
>
> D:\war>jar -tf gmi.war
> META-INF/
> META-INF/MANIFEST.MF
> gmiService.jsp
> WEB-INF/
> WEB-INF/classes/
> WEB-INF/classes/com/
> WEB-INF/classes/com/bt/
> WEB-INF/classes/com/bt/gmi/
> WEB-INF/classes/com/bt/gmi/gmiService.class
> WEB-INF/getList.xsl
> WEB-INF/getListByConnection.xsl
> WEB-INF/getListByDistrict.xsl
> WEB-INF/getListByDistrictConnection.xsl
> WEB-INF/lib/
> WEB-INF/source/
> WEB-INF/source/build.bat
> WEB-INF/source/gmiService.java
> WEB-INF/web.xml
> WEB-INF/weblogic.xml
> tmpwar/
> tmpwar/jsp_servlet/
> tmpwar/jsp_servlet/_gmiservice.class
> tmpwar/jsp_servlet/_gmiservice.java
>
> When deployed on the production server with the web.xml file set to use
the following values (note XML stripped):
>
> weblogic.jsp.pageCheckSeconds
> -1
>
> weblogic.jsp.precompile
> false
>
> weblogic.jsp.compileCommand
> javac
>
> weblogic.jsp.verbose
> true
>
> weblogic.jsp.packagePrefix
> jsp_servlet
>
> weblogic.jsp.keepgenerated
> false
>
>
> And in the weblogic.properties file:
>
> weblogic.httpd.webApp.gmi=war/gmi
>
> I've also tried with the .war file, but that insists on creating another
tmpwar directory outside of the .war file.
>
>
> Then, although I have set pageCheckSeconds to -1 (don't check and don't
recompile) ter production server still attempts to recompile the JSP's:
>
>
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: init
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
verbose initialized to: true
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
packagePrefix initialized to: jsp_servlet
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
compileCommand initialized to: javac
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
srcCompiler initialized to weblogic.jspc
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
superclass initialized to null
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
workingDir initialized to:
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
pageCheckSeconds initialized to: -1
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp:
initialization complete
> Mon Sep 25 11:40:12 BST 2000:<I> <WebAppServletContext-gmi> Generated java
file:
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
java
> Mon Sep 25 11:40:14 BST 2000:<E> <WebAppServletContext-gmi> Compilation of
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
java failed: Exception in thread "main" java.lang.NoClassDefFoundError:
sun/tools/javac/Main
>
> java.io.IOException: Compiler failed
executable.exec([Ljava.lang.String;[javac, -classpath,
/opt/Solaris_JRE_1.2.1_04/lib/rt.jar:/opt/Solaris_JRE_1.2.1_04/lib/i18n.jar:
/opt/Solaris_JRE_1.2.1_04/classes:/var/wls/5.1/weblogic/lib/weblogic510sp4bo
ot.jar:/var/wls/5.1/weblogic/classes/boot:/var/wls/5.1/weblogic/eval/cloudsc
ape/lib/cloudscape.jar:/var/wls/5.1/weblogic/lib/wleorb.jar:/var/wls/5.1/web
logic/lib/wlepool.jar:/var/wls/5.1/weblogic/lib/weblogic510sp4.jar:/var/wls/
5.1/weblogic/license:/var/wls/5.1/weblogic/classes:/var/wls/5.1/weblogic/lib
/weblogicaux.jar:/opt/wls-servers/gmiServer/weblogic/gmiServer/serverclasses
:/opt/wls-servers/gmiServer/weblogic/lotusxsl.jar:/opt/wls-servers/gmiServer
/weblogic/xerces.jar:/opt/wls-servers/gmiServer/weblogic/logging.jar::/opt/w
ls-servers/gmiServer/weblogic/war/gmi/WEB-INF/classes:/opt/wls-servers/gmiSe
rver/weblogic/war/gmi/_tmp_war, -d,
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war,
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
java])
> at java.lang.Throwable.fillInStackTrace(Native Method)
> at java.lang.Throwable.fillInStackTrace(Compiled Code)
> at java.lang.Throwable.<init>(Compiled Code)
> at java.lang.Exception.<init>(Compiled Code)
> at java.io.IOException.<init>(Compiled Code)
> at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled Code)
> at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
> at weblogic.servlet.jsp.JspStub.compilePage(Compiled Code)
> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
> at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
7)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:118)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:142)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:744)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:692)
> at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:251)
> at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
> at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
> at weblogic.kernel.ExecuteThread.run(Compiled Code)
>
>
>
-
Passing values to JavaBean function using jsp scriplet
Hi,
I have a JavaBean funtion that is SaveData(parameters)
which save the values from HTML form.
Now i want a code for pass the values from HTML form to SaveData() function using jsp scriptlet.
I used the code
<jsp:useBean id="JDBC" class="bean.JDBCBean" scope="application"></jsp:useBean>
<%=JDBC.saveData(phonenumber,manufacturer,model,email,country,newsletter)%>
Here
JDBCBean -> Bean Name
phonenumber,manufacturer,model,email,country,newsletter ->HTML form's text values
But it didnt work properly.
Anyone help me to correct this.Hi,
i have the same code like above
I have to pass the parameters with form name under the following code.
<jsp:useBean id="JDBC" class="bean.JDBCBean" scope="application"></jsp:useBean>
<%=JDBC.saveData(registration.phonenumber.value,id_type.value,id_style.value,registration.email.value,registration.scountry.value,player_type.values)%>
Here
registration -> HTML form name
But i got the error for
package registration does not exist
out.print(JDBC.saveData(registration.phonenumber.value,id_type.value,id_style.value,registration.email.value,registration.scountry.value,player_type.values));
How to i correct this?
Anyone help me...... -
Use JSP update MSSQL server with Chinese content
Hi,
I am using weblogic 7.0 server
win2k english version with Trad.Chinese support. Default encoding is en.
MS SQL server with database collate in Chinese_Taiwan_Stroke
I can use SQl server's query analyser to insert Chinese characters
and after modifying
web.xml and weblogic.xml
to include InputChar as Big5 and encoding as Big5
I can also use JSP's getParameter() to get Chinese characters from form
input.
Now the problem is,
when I use JSP to execute a UPDATE or INSERT statement to the database, and
if the SQL statement contains chinese characters as content
(like INSERT into table1 (field1) values ('some chinese characters'))
the statement is executed without error,
but the content updated in SQL server becomes "???" for all Chinese
characters.
Would anyone please kindly help? Thanks!Hi,
Have you checked that your DOS panel that starts your windows is correctly
set ? (see CHCP values)
I guess that can have some influence on the Java processes when updating and
insterting.
Best regards
Nohmenn BABAI
"newsgroups.bea.com" <[email protected]> a écrit dans le message de
news: [email protected]..
Hi,
I am using weblogic 7.0 server
win2k english version with Trad.Chinese support. Default encoding is en.
MS SQL server with database collate in Chinese_Taiwan_Stroke
I can use SQl server's query analyser to insert Chinese characters
and after modifying
web.xml and weblogic.xml
to include InputChar as Big5 and encoding as Big5
I can also use JSP's getParameter() to get Chinese characters from form
input.
Now the problem is,
when I use JSP to execute a UPDATE or INSERT statement to the database,and
if the SQL statement contains chinese characters as content
(like INSERT into table1 (field1) values ('some chinese characters'))
the statement is executed without error,
but the content updated in SQL server becomes "???" for all Chinese
characters.
Would anyone please kindly help? Thanks!
Maybe you are looking for
-
I only have one hmdi plug in I have a splitter connecting my blue ray player how can I hook up my apple tv
-
Sorting the Tasks available in My Open Tasks
Hi Experts I want to sort the Tasks available in My Open Tasks Please help me in to sorting according to ID. Thanks Shaik Chand
-
I have created a ASP.NET web Site (not Web application), using Visual Studio 2012 Ultimate and "SQL Server Compact 4.0 Local Database" in my C# Code. I am able to successfully compile & publish the website to another IIS Web Server, with Operating Sy
-
There gives an error when trying to sync TV shows to my iPod Classic.
Whenever I try to drag and drop seasons of south park into my iPod classic it gives the following message: Some of the videos in your iTunes, including the video "That Poor Kid" were not copied to the iPod "Grant Kessler's iPod'" because they cannot
-
Iphoto says 'loading photos' but nothing happens
When I open iphoto it says it is loading photos, but none of my albums or photos come up. They are still in the iphoto folder in my library, but can't get them up in iphoto. Nor can I import any new photos into iphoto. Also some photos have been dele