Results 1 to 2 of 2
  1. #1
    syedabu is offline Member
    Join Date
    Feb 2010
    Posts
    23
    Rep Power
    0

    Exclamation convert please...to finish project

    i have the code for file upload in .net please convert the code into java or jsp or struts..

    the code for file upload is

    Dim filename As String
    Dim strFileNameOnly
    Dim valuarr
    s7 = ViewState("Filename")
    s7 = "E:\lprint\files\" & ViewState("Filename") & ".txt"
    If File.Exists(s7) Then
    ts = File.OpenText(s7)
    ViewState("OriginalLocation") = s7
    While Not ts.Peek = -1
    If ts.Peek = True Then
    'Exit Function
    End If
    valuarr = Split(ts.ReadLine, "|")
    s1 = valuarr(0)
    s2 = valuarr(1)
    s3 = valuarr(2)
    s4 = valuarr(3)
    s5 = valuarr(4)
    s6 = valuarr(5)
    s7 = valuarr(6)
    s8 = valuarr(7)
    s9 = valuarr(8)
    s10 = valuarr(9)
    s11 = valuarr(10)
    s12 = valuarr(11)
    s13 = valuarr(12)
    s14 = valuarr(13)
    s15= valuarr(14)
    s16 = valuarr(15)
    s17 = valuarr(16)
    s18 = valuarr(17)
    s19= valuarr(18)


    If con.State = ConnectionState.Closed Then con.Open()
    cmd = New SqlCommand("insert into corder(jono,sno,item,desp,siz,typesize,finding,uom ,kt,stdwt,convwt,qty,twt,lcharge,scharge,alcharge, total,loss,minwt,maxwt,ord) VALUES ('" & s1 & "','" & s2 & "','" & s3 & "','" & s4 & "','" & s5 & "','" & s6 & "','" & s7 & "','" & s8 & "','" & s9 & "','" & s10 & "','" & s11 & "','" & s12 & "','" & s13 & "','" & s14 & "','" & s15 & "','" & s16 & "','" & s17 & "','" & s18 & "','" & s19 & "')", con)
    cmd.ExecuteNonQuery()
    con.Close()
    cmd.Dispose()
    con.Close()
    cmd.Dispose()


    End While

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by syedabu View Post
    i have the code for file upload in .net please convert the code into java or jsp or struts..
    While most here will be happy to help you learn java, most do not appreciate your dumping work that you are either too lazy or incompetent to do yourself. Thanks and have a nice day.

Similar Threads

  1. help me to finish my project..
    By syedabu in forum NetBeans
    Replies: 1
    Last Post: 07-19-2010, 10:13 PM
  2. I know there's an error, let me finish typing!
    By Stravant in forum Eclipse
    Replies: 1
    Last Post: 12-26-2009, 04:26 PM
  3. Finish Java Application
    By ojsimon in forum Jobs Offered
    Replies: 8
    Last Post: 12-07-2009, 05:25 PM
  4. Replies: 20
    Last Post: 06-03-2009, 06:33 PM
  5. Next, Finish Buttons !!!
    By pele in forum SWT / JFace
    Replies: 1
    Last Post: 07-14-2007, 06:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •