Any body help me in writing a JSP page

I want to write a JSP page through which i can store the downloaded file in to client machine please help me fast

Hi,
Thanks, My question i can't do that thing by using a JSP file, I am not getting that any body can give me the code for a JSP file. I am not getting by using this code-------
s1=request.getParameter("text");
URL url = new URL("s1");
URLConnection connection = url.openConnection();
InputStream stream = connection.getInputStream();
BufferedInputStream in = new BufferedInputStream(stream);
FileOutputStream file = new FileOutputStream("result.txt");
BufferedOutputStream os = new BufferedOutputStream(file);
int i;
while ((i = in.read()) != -1) {
os.write(i);
Its giving some Internal error
When I am specifying some url like "http://www.sun.com" in the place of s1 its not showing any error but its not opening that page.
Pleaseeeeeeeee give me some solution for this
Thanks In advance

Similar Messages

  • CAn any body help

    http://www.2shared.com/file/2262396/ee11120b/Java.html
    in this link jsp page and java class i conect between them by javabeans
    there is somthing wrong when i ran userinfoinput.jsp not all
    but in firstname theres the problem

    CAn any body help[?]Unlikely.
    You haven't given us anything to work with.
    No error message, no code, no real details about what your code does; or what you expect it to do.

  • My macbook (born 2006, mac os x snowleopard) broke down. I started again with DVD, but can not find hard disc, to repair it - can any body help me, pleeeeease?

    first time, using that way looking for help (in former times I get it directly from apple...). My problem: my macbook was getting more and more slowly, I turned it off an after turning on again, there was only a question mark. after starting with system-DVD, I could not find the hard disc to repaire it with first aid or do any thng else. I´m writing with macbook pro of my daughter now and ugentnly need to start my macbook as soon as possible. could any body help me??? (sorry, my english is a not so well) andrea from berlin

    Since you have the system disks, you can try running the Apple Hardware Test, that should confirm if the drive is dead or not. You'll use the disk that says 'AHT Version x.x' in small print on the label.

  • On my macbook pro when opening a page i can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success

    on my macbook pro when opening a page on safaryi can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success?

    Just select Print in Safari and then, in the bottom left-hand corner, select PDF and you can save it to whichever flavor pdf file you like.
    Clinton

  • My Imac is ejecting every disk inserted in it, I cannot access the disks, can any body help me troubleshoot the problem. I am using snow leopard.

    My Imac is ejecting every disk inserted in it, I cannot access the disks, can any body help me troubleshoot the problem. I am using snow leopard.

    Try resetting the SMC Intel-based Macs: Resetting the System Management Controller (SMC) - Apple Support
    and PRAM How to Reset NVRAM on your Mac - Apple Support
    If those don't help you can try a cleaning disc or a quick shot of compressed air. Chances are that your drive has failed, join the club it's not all that uncommon. You can either have it replaced or purchase an inexpensive external drive. Don't buy the cute little Apple USB Superdrive, it won't work on macs with internal drives working or not.

  • My Imac is ejecting every disk inserted in it, I cannot access the disks, can any body help me troubleshoot the problem.

    My Imac is ejecting every disk inserted in it, I cannot access the disks, can any body help me troubleshoot the problem

    The frist thing to try is a drive-n disk. They are cheap (US$5-15) and easy to use. Many unresponsive drives, even ones declared "dead" by an Apple tech, have returned to service after a cleaning.
    Check with home entertainment specialty shops, electronic superstores and office supply outlets that sell computer accessories.

  • Regarding drop down list,  any body help me plz.. very very urgent

    i have to create a drop down list and in that if i select a value it should go to select query and display hte result in the output
    for example if i select open in the inout list. that should go to a partiucular query which i write and after that when i process the report that option open should be displayed in the output
    any body help me plz.. very very urgent

    Check  code below..
    TYPE-POOLS:  vrm.
    CONSTANTS: c_pgp_cmd(20) TYPE c VALUE '/opt/pgp/bin/pgp'.
    DATA : droplist TYPE vrm_values,
           dropval LIKE LINE OF droplist,
           w_command(2000) TYPE c VALUE '/usr/local/bin/ssh'.
    DATA:  BEGIN OF t_cmdres OCCURS 0,
             line(500),
           END OF t_cmdres.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-005.
    PARAMETERS:  tar_sys(10) TYPE c AS LISTBOX VISIBLE LENGTH 20 LOWER CASE,
                 filepath TYPE esefilepath,
                 pgpkey(1000) TYPE c LOWER CASE,
                 option(25) TYPE c AS LISTBOX VISIBLE LENGTH 15 LOWER CASE,
                 pass(100) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
      PERFORM set_screen.
    AT SELECTION-SCREEN OUTPUT.
      IF option EQ 'encrypt'(000).
        LOOP AT SCREEN.
          IF screen-name = 'PASS'.
            screen-input = 0.
            MODIFY SCREEN.
            EXIT.
          ENDIF.
        ENDLOOP.
      ELSEIF option EQ 'set-preferred-ciphers'(001).
        LOOP AT SCREEN.
          IF screen-name = 'FILEPATH'.
            screen-input = 0.
            MODIFY SCREEN.
            EXIT.
          ENDIF.
        ENDLOOP.
      ENDIF.
    START-OF-SELECTION.
    write:/ 'Done'
    *&      Form  set_screen
    FORM set_screen .
      dropval-key = 'oapg18dv'(002).
      dropval-text = 'oapg18dv : DEV'.
      APPEND dropval TO droplist.
      dropval-key = 'oapg18te'(003).
      dropval-text = 'oapg18te : TEST'.
      APPEND dropval TO droplist.
      dropval-key = 'oapg18pr'(004).
      dropval-text = 'oapg18pr : PRD'.
      APPEND dropval TO droplist.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'TAR_SYS'
          values          = droplist
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      CLEAR:  dropval,
              droplist[].
      dropval-key = 'encrypt'(000).
      dropval-text = 'Encrypt'.
      APPEND dropval TO droplist.
      dropval-key = 'set-preferred-ciphers'(001).
      dropval-text = 'Set cipher'.
      APPEND dropval TO droplist.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'OPTION'
          values          = droplist
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      CLEAR:  dropval,
              droplist[].
    ENDFORM.                    " set_screen
    Reward if useful
    Function Module <b>VRM_SET_VALUES</b> is used to set values for droplsit..
    and be careful about Text Elements in this report.
    Regards
    Prax

  • My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

    My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

    My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

  • Please can any body help me out where can I find link to download  ALDSP2.5

    Hi All,
    Please can any body help me out where can I find link to download ALDSP2.5.
    I am trying since last couple of days as I am not able to find it. please some body help me out in this regard. I appriciate even if I get a link to download ALDSP3.0.
    thanks in advance.
    Please mail me the links at [email protected]
    rajen.
    Edited by: user13358281 on Jul 2, 2010 2:57 PM

    Hello Werner,
    Thanks for response, but I couldn't find the same.
    Still my search is going on. I dont know why oracle people made this that dificult, If I am not wrong I think earlier i could easily locate the previous version artifacts(softwares) easily. but now why they made that complicated.. no clues.
    any ways thanks once again.

  • An error encounter on test devise (real devise) i.e "apple mach -o linker error linker command failed with exit code 1", please any body help me to solve the problem

    Hello, I am using tesseract api in my app, which run perfectly on simulator but on test devise (real devise) it is showing an error i.e "apple mach -o linker error linker command failed with exit code 1", please any body help me to solve the problem

    if you can't compile the webutil.pll in your forms developer you need to set the forms_builder_classpath in you windows registry. You have to add the frmwebutil.jar,jacob.jar to the registry key. The configuration files you mention are for running the forms.

  • I cant synchronized my Itunes and iPad..any body help me??

    i cant synchronized my Itunes and iPad..any body help me??

    Thanks I do relise this but I was asking becouse it is an access to the account and I wasn't sure if I had to remove a restriction or something along those lines, or if I had inenvetently fumbled a setting on the phone or something do I thought I'd ask if any one had encountered this issue before ..... But thank u for taking the time to respond ..... 

  • TS3694 i forgot the password of my  iphone 3g and when i try to restore it it shows the message"my iphone 3g could not be restored an unknown error occurred(1015)" can any body help please..

    i forgot the password of my  iphone 3g and when i try to restore it it shows the message"my iphone 3g could not be restored an unknown error occurred(1015)" can any body help please..

    This error normally appears if you attempted to downgrade or modify your iOS. See here http://support.apple.com/kb/TS3694#error1015

  • TS1538 hi i updated my iphone 4 with itunes and now i cannot use my phone as i keep getting error 16 after trying to restore my phone....i cannot afford to replace ..can any body help me...the phone is out of warrenty so apple do not want to know....pleas

    hi i updated my iphone 4 with itunes and now i cannot use my phone as i keep getting error 16 after trying to restore my phone....i cannot afford to replace ..can any body help me...the phone is out of warrenty so apple do not want to know....please any help

    https://discussions.apple.com/message/23100453#23100453
    more hits from the search
    https://www.google.dk/search?q=restore+itphone+error+16&oq=restore+itphone+error +16&aqs=chrome..69i57j0l5.11485j0j7&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8

  • Can any body help me in navigation of sxda(data transfer work bench)

    hi
    i need the navigation(steps to define) of the data transfer work bench any body help me in solving this problem

    Hi,
    i think that you have already raised a question regarding the same . Please close the first question . I have replied to that.

  • HT4061 I can not connect to ITunes Store to download updates. I have no trouble connecting to the internet. It worked OK up to about a last month. can any body help.

    I can not connect to ITunes Store to download updates. I have no trouble connecting to the internet. It worked OK up to about a last month. can any body help.

    Hi there bigyellowdigger!
    I have an article here that can help you troubleshoot this issue with your connection to the iTunes Store. That article can be found right here:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

Maybe you are looking for

  • When I click on links in other applications (email is one) Firefox does not open it.

    If I click on a link in another application, such as one to the application's help service or a link in an email, it looks as if Firefox is trying to open a page or tab, but there is just a brief flash and nothing appears. This is a fairly recent phe

  • Why my macboock pro works so slowly?

    The last months my macbook works slowly, I've made a EtreCheck but I don't understand de problem. Can you help me? EtreCheck version: 1.9.11 (43) - report generated 15 de junio de 2014 11:03:38 GMT+2 Hardware Information:           MacBook Pro - mode

  • After VLSP, to find the number of the master delivery

    We are using VLSP tcode for splitting a single delivery to multiple deliveries. Say that we know the number of the multiple ones but we don't know the delivry number of the master delivery. How can we find it? Is there a table that creates a record f

  • BlazeDS - Support to PDF and iLog

    While migrating from LCDS to BlazeDS,      What are the points to be considered from code and deployment perspective?      Will the iLog graphs work with BlazeDS also?    Are the  PDF templates created using Live Cycle data designer  compatible with

  • Re: How to create More two class with one object

    haii,          i have small information How to create More two class with one object, bye bye babu