Pls help in sending multiple resposes after analysing the sequential commands from the device

Hi all
pls help me in  sending sequential responses for the different commands. For example,i have to send the response1 for command1 then again host wll send the some other command ,say command 2  after receiving response 1,then again i have to respond to the corresponding command.i m using the pci-6221 card not tradition DAQcard.
regards,
nitin

Hello nitin,
It sounds like you are looking for some examples on how to program your
6221 DAQ board.  I highly reccomend taking a look at the LabVIEW
shipping examples that install with the DAQ driver.  To access
them, open the NI Example Finder by going to the menu bar of a VI and
selecting Help >> Find Examples...
If you have any specific questions, please feel free to ask!
Eric
DE For Life!

Similar Messages

  • The front camera on my iPod touch 4th generation is frozen. I cannot use it. Updating software does not help. This started right after I bought it, new from BestBuy. What can I do?

    The front camera on my iPod touch 4th generation is frozen. I cannot use it. Updating software does not help. This started right after I bought it, new from BestBuy. What can I do? When i go to the camera, it is stuck on a black screen. the only way to use my camera is through other camera apps, but if I try to switch it to the front camera, it freezes again.

    If you still have the problem after retoring the iPOd to factory defaults/new iPod then The iPod is likely defective and replacement is required.  You can make an appoinment at the Genius Bar of an APple store or take it back to BestBuy if within warranty

  • Pls help my BBM Icon disappeared after BBM upgrade to 6MB

    Hello forum, I Upgraded & down loaded the new BBM 6MB on my Blackberry Touch 9800 and after along time it finally Installed.
    But my BBM chat icon is not displayed,I can't Ping,send or receive messages.please can someone tell what to do, what's the point keeping the BB phone if there is No BBM?y

    Hi klazzy
    In many cases, it's temporary BBM problem related with your wireless network provider. You need to check with your carrier to investigate is there something wrong with their network service and to make sure that you have BlackBerry Data plan. The BlackBerry dots logo must show up next to your signal bar. Reboot your device (pull the battery when device is on) might eliminate any glitches also.
    Good luck.
    • Click Likes to appreciate those who helps you
    • If your issue solved, mark the best post in your thread as Solution

  • Web service sends multiple requests after flash upgrade

    I have a Xcelsius engage 2008 SP3 FP2 and i just found out that my dashboard send multiple reqests to web service and this will render my dashboard useless. This is a major bug, is there any solution? Service methods will get around 2-20 request and the dashboard will not be usable any more. Triggers are correct and will not trigger web service unless button is clicked.

    Dear Expert,
    Tcode RZ10
    set the parameter rdisp/gui_auto_logout = 30M    in all Instance profiles  / orwhat ever time limit u want to specify.
    See that this parameter is set on each server.
    And you can make it a default.
    Regards,
    Shankar K B
    Edited by: Shankar.kb on Feb 19, 2012 2:25 AM

  • PLS HELP ive lost all my data during the upgrade!

    Wednesday night i upgraded to ios5 the upgrade seemed to take a long time and hung right at the end of the instalation.  A pop up screen appeared saying that i could complete instalation at a later data so i decided to do that.  I did back up before the instalation took place.
    Now however i cant retrieve any data, everytime i restore it will try for a few minutes then i get this 'itunes could not restore the iphone beacuse the backup was corrupt or not commapible with the iphone that is being restored' then the iphone is wiped and ive lost everything, 4 years of names, photos, contacts, texts everything gone.  I then restored the backup directory from a previous backup on time machine, about two days earlier and one from the previous month.  I have tried to restore the iphone again with these older backup and its doing the same thing error massage as above.
    Can someone pls help me i even went to apple yesterday and they couldnt help they were like 'well you'll just have to start the phone from new'.  Thats easier said than done.  I have multiple backups on time machine i cant believe they are all corrupt, or is this to do with iTunes?
    Help pls!!

    Sorry but I think all your current stuff is gone since you restored from an old backup.
    Have you ever backup your 5C prior to it being restored?  http://support.apple.com/kb/HT1766

  • Premiere Pro not sending files to After Affects "The importer reported a generic error"

    Hi all,
    I just recently purchased PP & AE CC. putting together my first project on my new laptop and when i go to right click a clip on my Premiere pro timeline and proceed to push "Replace with after effects composition" It swaps to After Effects but nothing loads, i alt tab back to Premiere and it displays me the message "The importer reported a generic error"
    If it's any help the footage is from my A7S filmed in SDXC format. everything works fine within the project. I've tried logging out and in of my adobe account updating restarting etc. had no luck.

    Hi Brandon,
    ascarib wrote:
    After doing the reboot my computer gives me the "You can't use this version of the application "Adobe After Effects CS6" with this version of OS X. Nothing has changed on my computer but it was fine before. What else can we try? Thank you for your patience.
    Make sure that you update After Effects: Can't launch | Mac OS X 10.9 (Mavericks)
    Thanks,
    Kevin

  • HT1212 iPad still locked with password even after erasing the device, please help!

    My iPad was locked because I forgot my password; I followed the step by step instructions to recover my iPad but it still asks me for a password to access the device even though the device should have been erased. Please help!?!

    Is this how you do it?
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port. Do not release button until you see picture of iTunes and plug (very important)
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note: Data will be lost

  • Help! Deactivation of account here when the device is sold to another person.

    Do  i have to deactivate my account here so that the new owner of the phone will be able to receive notifications, as well as to create their own account? Please help me!

    "Here", this is a user to user community support forum.
    You DO need to deactivate your BlackBerry account with your mobile service provider to whom you paid your monthly fees, Globe. Have them remove the PIN and IMEI of the device from your account. That will make it 'free' to set up for another user.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • S540 Wake up from Standby after moving the device?

    Hy, I have a problem with my S540. It turns into standby after closing, but wakes up if I move the device. Is that normally? Can anybody prove that with ist own device?

    Hey Zyzx,
    I have seen this type of condition before in a USB connected printer.  How do you have the printer connected to the Windows XP Home Edition desktop PC?  (USB or Network connected)
    If the printer is connected by a USB cable, then you may try a different USB port on the PC and uninstalling/re-installing the USB Controller on the PC.
    To perform the uninstall/re-install of the USB controll follow the steps listed below.
    Boot into Safe Mode on the PC
    Click on the Start menu of the PC
    Right Click on My Computer
    Select Manage out of the list
    Select Device Manager in the list on the left
    Right click on the section titled "Universal Serial Bus controllers" and select Properties
    Uninstall the section and restart the PC to perform the re-install
    I will look into this issue more for you and get back with you.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

  • Can not use SSH after renaming the device - 3640 Router

    Used SSH to change the device name, wrote the config and logged out of the box. When I attempted to use SSH to get back into the box, it would not connect. I removed the old keys and I attempted to create a new key, but I keep recieving this error message "Signature Creation Failed Status -1" Any suggestions?

    Duane,
    You are running into Bug ID CSCsa83601.
    Workaround:
    Set the key pair name to the key name, as shown in the "show crypto key mypubkey rsa".
    ip ssh rsa keypair-name
    Example:
    test#show crypto key mypubkey rsa
    % Key pair was generated at: 13:31:48 UTC Apr 8 2005
    Key name: test.example.invalid
    Usage: General Purpose Key
    Key is not exportable.
    Key Data:
    xxx
    % Key pair was generated at: 13:32:28 UTC Apr 8 2005
    Key name: test.example.invalid.server
    Usage: Encryption Key
    Key is not exportable.
    Key Data:
    307C300D 06092A86 4886F70D 01010105 00036B00 30680261 00F0A09C B20BB211
    F2503F1E DC29CE2E B7A79A7D 7EE54884 A3D3FA2E 55FB2AFB BFDE0531 3BC89229
    A11AAF3A D8642CE3 39DED4D6 348BB5AD DB09C386 466FABCB 473B8D7E DCBC052D
    0C1FC06E 858207CC BFA3B459 504419A2 ACB5ED1F AAA25B82 99020301 0001
    test#
    test#ip ssh rsa keypair-name test.example.invalid
    Let me know if it helps.
    Regards,
    Arul
    ** Please rate all helpful posts **

  • How does FF handle multiple ip addresses on the device?

    Hi
    I was wondering if someone could point me at documentation or explain how FF handles the situation where the device has multiple IP addresses ie an Ethernet card and a wireless card active at the same time and with different networks associated with each device. How does FF decide which interface to use and is there someway of making it use a particular interface always...
    tia
    nava

    Windows Vista and 7 give priority to the wired Network. So if you have Wireless and Wired connected, Windows will (by default) use the wired. Firefox uses what Windows does, so it will also use the Wired network. The only way that I know of to force Firefox to use one network over the other is to disconnect or disable the unwanted network. But this sort of thing is primarily handled through the OS, not Firefox.
    Also, you should update to Firefox 11, as Firefox 9 has some pretty big security holes that have been patched in 11.

  • Pls help...multiple probs

    hi all,
    i have a probem. i have to send an email and the program for that is a java program.but i am using servlets in my project.
    what i try to do is this:
    1. i want save html content as a .html which i do as follows:
    department1=(String)session.getValue("user");
    ///saving a file
    filename=department1+".html";
    session.putValue("filename",filename);
    FileWriter fw=new FileWriter(filename);
    out.println(sb.toString());
    fw.write(sb.toString());
    2. the problem is that
    the code for servlet is as follows:
    import java.io.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.http.HttpSession;
    import java.lang.String;
    import java.util.Date;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    public class Noc1 extends HttpServlet
    {public String NAME;
    public String uridno;
    public String myaddress1,myaddress2,myaddress3,myaddress4;
    String cont_name1;
    int i;
    String myquery;
    String department;
    //String NAME;
    String idno;
    String urdesig;
    String idno2;
    String idno4;
    String idno6;
    String atlocatio;
    String lattitude1;
    String longitude1;
    String ht_agl1;
    String ht_above1;
    String freq1;
    String power1;
    String pu1;
    String address1;
    String address2;
    String COMPANY_NAME;
    String logname,user,urdepcode;
    String CATEGORY;
    //APPID_NO6;
    String tareek,textstring;
    boolean noOfRows1;
    String department1;
    String name1;
    String filename;
    StringBuffer sb=new StringBuffer();
    FileWriter fw;
    public void doPost(HttpServletRequest request,HttpServletResponse response)
    throws ServletException, IOException
    doGet(request,response);
    public void doGet(HttpServletRequest request,HttpServletResponse response)
    throws ServletException, IOException
    HttpSession session = request.getSession();
    String dept_add11,dept_add22;
    String myString;
    Connection con = null;
    Statement stm = null;
    ResultSet rs = null;
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
    try
    {int count;
    count=0;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:SACFA","","");
    stm = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    sb.append("<html>");
    sb.append("<head><title></title></head>");
    sb.append("<body>");
    CATEGORY = request.getParameter("CATEGORY");
    uridno= request.getParameter("APPID_NO6");
    department1=(String)session.getValue("user");
    logname=(String)session.getValue("depts_name1");
    urdepcode =(String)session.getValue("dept_code");
    urdesig=(String)session.getValue("designation");
    address1=(String)session.getValue("address1");
    address2=(String)session.getValue("address2");
    cont_name1=(String)session.getValue("cont_name");
    //user=(String)session.getValue("username");
    System.out.println("5");
    ///saving a file
    filename=department1+".html";
    session.putValue("filename",filename);
    FileWriter fw=new FileWriter(filename);
    System.out.println("1");
    textstring="save the file before emailing it";
    myquery="SELECT * FROM SACFA7 WHERE (EXTRA='"+CATEGORY+"') AND (ID_NO6='"+uridno+"') AND ("+department1+"= 'cl' OR "+department1+"='h') ORDER BY ID_NO6";
    sb.append("<font size=2>");
    rs=stm.executeQuery(myquery);
    System.out.println("2");
    //System.out.println("address11");
    java.sql.Date jsqlDate = new java.sql.Date(System.currentTimeMillis() );
    System.out.println("3");
    System.out.println(jsqlDate.toString() );
    sb.append("<p align=CENTER>");
    sb.append("<br>");
    sb.append("Government Of India");
    sb.append("<br>");
    sb.append(logname);
    sb.append("<br>");
    sb.append(address1);
    sb.append("<br>");
    if(address2==null){}
    else
    sb.append(address2);
    sb.append("<br>");
    sb.append("<br>");
    sb.append("</p>");
    tareek=sdf.format(java.sql.Date.valueOf(jsqlDate.toString().substring(0,10)));
    sb.append("<p align=RIGHT>" + "Dated : " tareek "</p>");
    System.out.println("5");
    sb.append("<p align=LEFT><b>");
    sb.append("The Secretary,");sb.append("<br>");
    sb.append("SACFA, ");sb.append("<br>");
    sb.append("Ministry Of Communications, ");out.print("<br>");
    sb.append("WPC Wing, Sanchar Bhawan");out.print("<br>");
    sb.append("New Delhi. ");out.print("<br>");
    sb.append("</b></p>");
    //rs.beforeFirst();
    while(rs.next())
    //count++;
    //System.out.println("count");
    //System.out.println(count);
    //department1=rs.getString(department1);
    COMPANY_NAME=rs.getString("NAME");
    myaddress1=rs.getString("ADDRESS1");
    myaddress2=rs.getString("ADDRESS2");
    myaddress3=rs.getString("ADDRESS3");
    myaddress4=rs.getString("ADDRESS4");
    idno=rs.getString("ID_NO");
    System.out.println(idno);
    idno2=rs.getString("ID_NO2");
    idno4=rs.getString("ID_NO4");
    idno6=rs.getString("ID_NO6");
    atlocatio=rs.getString("AT_LOCATIO");
    lattitude1=rs.getString("LATTITUDE");
    longitude1=rs.getString("LONGITUDE");
    ht_agl1=rs.getString("HT_AGL");
    ht_above1=rs.getString("HT_ABOVE");
    freq1=rs.getString("FREQ");
    power1=rs.getString("POWER");
    pu1=rs.getString("PU");
    System.out.println("888888888");
    sb.append("<b>"+"Sub:"+"<u>"+" Full siting clearance in respect of " + COMPANY_NAME);
    sb.append("</u>");
    sb.append("<br>");
    sb.append( "Sir/ Madam,"+ "</b>");sb.append("<br>");
    sb.append("<p align=center> " + " This office does not have any objection to clear the following Site I.D.s with conditions indicated at para 2 :- " + "</p>");
    System.out.println("7");
    sb.append( "<p align=center>");
    sb.append("<table font size=1 align=center width=85% border=1 bordercolor=black cellpadding=2 cellspacing=0 bgcolor=White>");
    sb.append("<th font size=1 align=center width=5%><b>S. NO.</b></th><th font size=1 align=center width=12%><b>ID NUMBER</b></th><th font size=1 align=center width=15%><b>Site Name</b></th><th font size=1 colspan=2 align=center width=20%> Geo-coordinates <br>(6 digits) <br>latt. long.</th><th font size=1 align=center width=7%><b>Tower Ht. AGL</b></th><th font size=1 align=center width=7%><b>Site Ht. AMSL</b></th><th font size=1 align=center width=7%><b>Frequency</b></th><th font size=1 align=center width=10%><b>Power</b></th>");
    System.out.println("8");
    //out.println("</table>");
    //out.print("<br>");
    //out.print("<br>");
    sb.append("<font size=2>");
    sb.append("<tr>");
    rs.beforeFirst();
    while(rs.next())
    count++;
    sb.append("<td font size=1 align=center>"+count +"</td><td font size=1 align=center>"+idno+"/"+idno2+"/"+idno4+"/"+idno6+"</td><td font size=1 align=center>"+atlocatio+"</td><td font size=1 align=center> "+lattitude1+"</td><td font size=1 align=center>"+longitude1+"</td><td font size=1 align=center>"+ht_agl1+"</td><td font size=1 align=center>"+ht_above1+"</td><td font size=1 align=center>"+freq1+"</td><td font size=1 align=center>"+power1+" "+pu1+"</td>");
    sb.append("</tr></table>");
    System.out.println("6");
    sb.append( "<p align=left>");
    sb.append( "* Height Above Ground Level ( HAGL).");sb.append("<br>");
    sb.append( "$ Height Above Mean Sea Level ( HAMSL).");sb.append("<br>");
    System.out.println("9");
    sb.append( "# The Heighest point antenna structure should not exceed the ( HAMSL) cleared.");sb.append("<br>");
    sb.append( "<p><b>" + "2."+"<u>"+" Conditions:" + "</u></b>");
    sb.append("<br>");
    sb.append( "(a) Provision of Day/ Night marking during and after construction of tower.");
    sb.append("<br>");
    sb.append( "(b) The erection is to be completed within 1 year from the date of issue of final clearance by SACFA.");
    sb.append("<br>");
    sb.append( "(c) Above sites are cleared subject to frequency coordination." );
    sb.append("<br>");
    sb.append( "(d) Non-Interference/ Non protection from existing Radio installations, where required.");
    sb.append("<br>");out.print("<br>");
    sb.append("<b><u>"+"Copy to"+"</u>"+" :-"+"</b>");
    sb.append("<br>");
    sb.append(COMPANY_NAME);out.print("<br>");
    sb.append(myaddress1);
    sb.append("<br>");
    sb.append(myaddress2);
    sb.append("<br>");
    if (myaddress3==null)
    else
    sb.append(myaddress3);
    sb.append("<br>");
    if (myaddress4==null)
    else
    sb.append(myaddress4);
    sb.append("<p align=right>");
    sb.append( "Yours faithfully,");
    sb.append("<br>");
    sb.append(cont_name1);
    sb.append("<br>");
    sb.append(urdesig);
    sb.append("<br>");
    sb.append("<p align=center>");
    sb.append("Note:- Please save this page using save option in File menu of the browser before sending this NOC as an email.");
    sb.append("<br>");
    sb.append("<A HREF='mailto:[email protected]?subject=Full siting clearance &body='>" +"email this NOC"+"<br>");
    sb.append("</A>");
    sb.append("<form Action='/servlet/Byenew' method = post>");
    sb.append("<a>"+"Exit"+"</a>");
    System.out.println(86);
    //place javascript function for exiting window
    sb.append("</form>");
    sb.append("</p></body></html>");
    out.println(sb.toString());
    fw.write(sb.toString());
    System.out.println("10");
    con.close();
    catch(ClassNotFoundException e)
    out.println("Couldn't load the DataBase Driver "+e.getMessage());
    catch( SQLException e)
    //out.println("DataBase not found");
    out.close();
    public String getServletInfo()
    return "A servlet that prints the No Objection Certificate";
    the java program for sending email is:
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class msgsend{
    static String msgText1="This is a message body.\nHere's line two.";
    static String msgText2="This is a the text in the message attachment.";
    String filename;
    public msgsend(String fname)
    fname=this.filename;
    public static void main(String[] args){
    //if(args.length!=4){
    //System.out.println("usage: java msgmultisend <to> <from> <smtp> true|false");
    //return;
    //String to=args[0];
    //String from=args[1];
    //String host=args[2];
    String to="[email protected]";
    String from="[email protected]";
    String host="xxx.yyy.in";
    //bolean debug=Boolean.valueOf(args[3]).booleanValue();
    boolean debug=true;
    //create sm props & get the default session
    Properties props=new Properties();
    props.put("mail.smtp.host", host);
    Session session= Session.getDefaultInstance(props, null);
    session.setDebug(debug);
    try{
    //create a mssg
    MimeMessage msg=new MimeMessage(session);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address={new InternetAddress(to)};
    msg.setRecipients(Message.RecipientType.TO,address);
    msg.setSubject("Jjava mail api multipart test");
    msg.setSentDate(new Date());
    //create & fill 1st message part
    MimeBodyPart mbp1= new MimeBodyPart();
    mbp1.setText(msgText1);
    //create & fill the 2nd message part
    MimeBodyPart mbp2= new MimeBodyPart();
    //use setText(text, charset), to show it off!
    mbp2.setText(msgText2, "us-ascii");
    //create the multiparty & its parts to it
    Multipart mp=new MimeMultipart();
    mp.addBodyPart(mbp1);
    mp.addBodyPart(mbp2);
    // add the Multipat to the message
    msg.setContent(mp);
    //send the message
    Transport.send(msg);
    }catch(MessagingException mex){
    //mex.printStackTrace();
    Exception ex= null;
    //if((ex=mex.getNextExecption())!=null){
    //ex.printStackTrace();
    the servlet email2.java
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.http.HttpSession;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    //import "msgsend.class";
    * @author Ashna
    * @version
    public class email2 extends HttpServlet {
    String to,bcc,cc,from,subject,filename;
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException {
    HttpSession session = request.getSession();
    //geting a new session everytime this is called
    PrintWriter out = response.getWriter();
    try
    System.out.println(1);
    response.setContentType("text/html");
    out.println("<html>");
    out.println("<head>");
    out.println("<title> </title>");
    out.println("</head>");
    to=request.getParameter("to");
    from=request.getParameter("from");
    bcc=request.getParameter("bcc");
    cc=request.getParameter("cc");
    subject=request.getParameter("subject");
    //setter methods for beans
    ///get the filename from the session variable into a string and pass that srin g as an argument
    filename=(String)session.getValue("filename");
    //JavaClass class=new JavaClass();
    msgsend class=new msgsend(filename);
    System.out.println(2);
    out.println("<body align= center bgcolor='white'>");
    out.println("<br><br><br><br><H2 align=center> ");
    out.println("<FONT color=#ffffff face=arial size=2></FONT>");
    out.println("<h3 align=center>Please enter the following information:-</h3><br><br><br>");
    out.println("<TABLE align=center border=0 cellPadding=0 cellSpacing=0>");
    out.println("<TBODY> <TR> <TD><FONT face=arial size=1>To:</FONT> </TD><TD><INPUT name=to type=textbox></TD></TR>");
    out.println("<TR> <TD></TD><TD></TD></TR><TR><TD><FONT face=arial size=1>Cc:</FONT></TD> <TD><INPUT name=cc type=textbox></TD></TR>");
    out.println("<TR><TD></TD> <TD></TD></TR> <TR> <TD><FONT face=arial size=1>From:</FONT> </TD><TD><INPUT name=from type=textbox></TD></TR>");
    out.println(" <TR><TD></TD><TD></TD></TR>");
    out.println("<TR><TD><FONT face=arial size=1>Subject:<BR><BR><BR><BR></FONT></TD></FONT><TD><TEXTAREA name=UserAddress rows=2 scrollbar=true></TEXTAREA></TD></TR>");
    out.println("<TR><TD></TD><TD></TD></TR>");
    out.println("<TD><FONT face=arial size=1>Comments:</FONT></TD> <TD><TEXTAREA name=UserComments rows=4 scrollbar=true></TEXTAREA></TD></TR>");
    out.println("<TR> <TD></TD> <TD></TD></TR>");
    out.println("<TR><TD></TD><TD><INPUT name=SubmitBtn type=submit value=Submit> <INPUT name=ResetBtn type=reset value=Reset></TD></TR>");
    out.println("</TBODY></TABLE>");
    out.println("</FORM>");
    out.println("</B><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><pagebreak>");
    out.println("<footer align=center><font size=1><a href='wpc.html'>");
    out.println("Home Page");
    out.println("</a></footer>");
    //place javascript function for exiting window
    out.println("</form>");
    out.println("</body>");
    out.println("</html>");
    } catch(Exception e){ }
    out.close();}
    the problem is in this line:
    //JavaClass class=new JavaClass();
    msgsend class=new msgsend(filename);
    when i compile with this line i get compile time error: out.println():symbol not found.
    when i comment this line msgsend class=new msgsend(filename);
    the error disappears.
    also
    how do i import the java program class file....do i need to do that?
    like:
    //import "msgsend.class";
    wht do i do?
    so pls tell me wht to do.?
    thank u,
    ashna

    You can have the msgsend calss as an utility class
    with out a main method. Change the main method to
    some other name like sendMessage.
    import that class in your servlet email2.
    If msgsend is in a package, you can do import somepackage.msgsend
    msgsend emailMes =new msgsend(filename);
    then,
    emailMes.sendMessage();
    Hope this helps.

  • Need Help on Sending Multiple Attachments

    Hi to all,
    I hope some one will help me.. Im stuck with this one. I can only send one attachment.
    Is there someone who know how to send an mail with 2 or more attachments?
    My code is below, I followed this code from the toturial:
    Hope for a kind reply. :-)
    Thankz..MimeMessage myMessage = new MimeMessage(s);           
                InternetAddress fromRec = new InternetAddress(strFrom);
                myMessage.setFrom(fromRec);                     
                Address[] toAddress = InternetAddress.parse(strTo);
                myMessage.addRecipients(Message.RecipientType.TO, toAddress );
                Address[] toCC = InternetAddress.parse(strCC);
                myMessage.addRecipients(Message.RecipientType.CC, toCC );
                Address[] toBCC = InternetAddress.parse(strBCC);
                myMessage.addRecipients(Message.RecipientType.BCC, toBCC );
                myMessage.setSubject( strSubject );               
                MimeBodyPart messageBodyPart =  new MimeBodyPart();           
                messageBodyPart.setContent(strMessage  + "<BR>" +URLResponse  , "text/html" );
                Multipart multipart = new MimeMultipart();
                multipart.addBodyPart(messageBodyPart);               
                /*Part two is attachment*/
                messageBodyPart = new MimeBodyPart();
                DataSource source = new FileDataSource( fileRepository);
                messageBodyPart.setDataHandler(new DataHandler(source));
                messageBodyPart.setFileName(fileName);
                multipart.addBodyPart(messageBodyPart);   
                /* Put parts in message*/
                myMessage.setContent(multipart);                           
                /* End */         
                Transport.send(myMessage);           

    Your code is only adding one attachment. Just repeat the code
    that adds an attachment to add more than one.

  • Pls help: server send a file upon client's request

    I just started learning Java and I'm trying to write a simple file transfer program. My problem should be in the transfer part. Code as follows:
    Client side:
    package p2pclient;
    import java.io.*;
    import java.net.*;
    public class P2PClient {
    public static void main(String argv[]) throws Exception
      String filename;
      try {
      Socket clientSocket = new Socket("localhost", 6783);
      BufferedReader inFromUser = new BufferedReader( new InputStreamReader(System.in));
      filename = inFromUser.readLine();
      DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());
      outToServer.writeBytes(filename);
      String newname = "C:\\" + filename;
      File file = new File(newname);
      byte[] Byte = new byte[1120];
      DataInputStream inFromSocket = new DataInputStream(clientSocket.getInputStream());
      FileOutputStream fout = new FileOutputStream(file);
      int reads;
      while((reads = inFromSocket.read(Byte)) != -1){
      fout.write(Byte, 0, Byte.length);
      clientSocket.close();
      catch (java.io.IOException e) {
          System.err.println("error connecting to " + "Daniel-Ding" + ":" + e);
          return;
    }On the server side:
    package p2pserver;
    import java.io.*;
    import java.net.*;
    import java.util.logging.*;
    class FileTransfer implements Runnable {
      private Socket connectionSocket;
      FileTransfer(Socket connectionSocket) {
        this.connectionSocket = connectionSocket;
      public void run(){
            try {
                String fileName;
                BufferedReader inFromClient = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));
                fileName = inFromClient.readLine();
                System.out.println("received filename: "+ fileName);
                File fl = new File(fileName);
                byte[] filebuffer = new byte[1120];
                FileInputStream fin = new FileInputStream(fl);
                int bytesRead;
            while ((bytesRead = fin.read(filebuffer)) != -1) {
                connectionSocket.getOutputStream().write(filebuffer, 0, bytesRead);         
                connectionSocket.close();
            } catch (IOException ex) {
                Logger.getLogger(FileTransfer.class.getName()).log(Level.SEVERE, null, ex);
    class P2PServer {
        public static void main(String argv[]) throws Exception
            ServerSocket welcomeSocket = new ServerSocket(6783);
            while(true) {
                Socket connectionSocket = welcomeSocket.accept();
                FileTransfer ft;
                ft = new FileTransfer(connectionSocket);
                Thread thread = new Thread(ft);
                thread.start();
    }I can see an empty file with the name of 'newname' in my C drive but no data transfered.
    Thanks a lot in advance.

    Hi Peter,
    Sorry to bother you again. I tried to increase the size of the buffer. The speed improved but the transfered file quality became intolerable. I tested it with some mp3 files and found that with large buffer size there was a lot of noise in the transfered mp3s. Any idea what I can do to optimize this trade-off?
    Many thanks.
    Best,
    Daniel

  • TS4006 Pls help me to find anyway to get my iphone back from the bandid before jailbreak !

    On yesterday,  my iphone's been stolen from my bag on the bus (I live in Thailand).
    I have already in-store application find my iphone but i turn off location button. Pls guide me to available location button via icould or any way to find my iphone. Now, the bandid has already turn off the iphone. I afraid if they jailbreak or crack the iphone. i can not follow it.
    Thanks for helping.

    Thank you for you guideline, I have already change my password.
    I'm very sad.  For my iphone, I will paid via installments untill next year. ( ..><...)
    Let me know, If the bandid has already jailbreak the iphone. I can follow my iphone or not? How the way?

Maybe you are looking for

  • Reversal of Depreciation posted already in a closed financial year

    Hi I met with a scenario , where in a financial year 2009 ( Apr to Mar) I acquired an asset on 01.04.2009. The whole year depreciation was run and posted. How to reverse the posted depreciation, a) for the entire year b) for a selected period. Thanks

  • ALV Grid  screen limit for a long field

    Hi, i am having a problem making an ALV Grid of IDOC contents, i want to show de SDATA field of de EDIDD structure, but it is a 1000 char field, and when the ALV comes out i can only see part of the field. I think the problem is the scrollbar, becaus

  • How to test if a csv file is empty or not and email it?

    Hi, I am new to powershell scripting and i have a small task which is basically i have a csv file which will sometimes be empty(it will have header row even if its empty ) and sometimes it will have some rows of data.so basically i have to write a po

  • Documentation for PI ABAP roles

    Hi all, is there a general documentation for the PI ABAP roles? I assume something like that: - User should access J2EE Adapter Engines / SOAP Adapter (used for sending a Webservice to PI from a 3rd Party Application) --> necessary role abc - User sh

  • Internal Error 500 when trying to open Interactive Form

    I ve installed the NetWeaver Java Trial / SUSE Linux 10 Server (VMWare Edition). It includes a demo scenario, where a new employe needs to confirm the confidentiality aggreement in an interactive form. When I click on this I get an internal server er