How to get achieve this in JSP ?

Hi friends,
I am trying to do one scenario in jsp page. here are the steps.
1) when i click on submit button on home page (its already there) a new window should be opened.
2) while opening this new window , it will invoke one shell script and it results to generate one file in the server.
3) in that window , once the file is generated hyper link should appear "click here" --> this should not appear intially/process in progress.
4) when user clicks on this link, it should give that generated file .
I achieved points 1,2. But struggling to get points 3 &4.
Please find my code here , its throwing error. pls help me to solve the issue.
code :
<%@page language="java" %>
<%@page import="java.util.*" %>
<html>
<h1 style="font-family: Georgia; font-style:italic; font-size: 16px; color: #44BDE8;">Submitted your request to server </h1>
<marquee behavior="scroll" direction="left" style="font-family: Arial; font-style:italic; font-size: 14px; color: #B7D1DA;" >Processing ..!! Processing ..!! </marquee>
<head>
<%
String unixCommand = "sh /home/dev/java/run_parse.ksh";;
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(unixCommand);
p.waitFor();
values_StringBuffer.append("<a href="http://272.17.34.204:7777/tools/ready_files.zip"; /a>");
//System.out.println(cmd[0] + " returned " + p.exitValue());
%>
</head>
<body>
</body>
</html>

Thanks Ankur.
Now its not throwing any error , but my hyper link is displaying like a normal text. ( 'click here' is not activated as hyper link displaying )
Here is the code:
<%@page language="java" %>
<%@page import="java.util.*" %>
<html>
<h1 style="font-family: Georgia; font-style:italic; font-size: 16px; color: #44BDE8;">Submitted your request to server </h1>
<marquee behavior="scroll" direction="left" style="font-family: Arial; font-style:italic; font-size: 14px; color: #B7D1DA;"  >Processing ..!!               Processing ..!! </marquee>
<head>
<%
     String unixCommand = "sh /home/dev/raj/java/parse_all.ksh";
     Runtime rt = Runtime.getRuntime();
     Process p = rt.exec(unixCommand);
     p.waitFor();
//String sLink  = http://272.17.34.204:7777/tools/ready_files.zip
  if (p.exitValue() == 0)
      System.out.println("+");
out.write("< a href=\"http://272.17.34.204:7777/tools/ready_files.zip\">Click Here</a>");
    else
      System.out.println("-");
%>
</head>
<body>
</body>
</html>Edited by: Rajesh on 13/06/2011 00:24

Similar Messages

  • Suggest an IDEA how we can achieve this

    Hi Folks
       I have the below requirement:
    Can you please anyone give me the idea how we can achieve this.
    Requirement is:
    Some body in the organization (Representative ) will raise the salesorder .
    When the sales order is created and when the creator  pressed the save button,an email with that order details has to be send to that Representative.
    This Representative will have the supervisor and based on the Representative using some ztable we have to fetch the Supervisor ID and based on that id we have to get the supervisor's mail id and the same mail has to be sent to that Supervisor also.
    Similarly one big boss is there for all these process.
    The mail with the similar content has to sent to that big Boss also.
    All these has to be carried out when the creator of the sales order press the Save Button.
    Points are assured for useful and correct answers.
    Regards,
    Sreeram

    Hi Sreeram,
    I would try to archive this by using the workflow. The workflow should start when the sales order is saved. The event "salesorder create" you can used for starting the workflow. The Workflow functionality is good documeted by the SAP standard documetation.
    Best regards
    Dirk

  • I want to delete my current exchange account. How can I achieve this and not lose stored information such as contacts, photos etc. please help. Thank you.

    I want to delete my current exchange account and replace it with my new one. How can I achieve this and not lose my contacts, photos, etc associated with this account? Please help..
    Thank you,

    Bad idea.
    What information do you want to share, exactly?  You can share contacts, reminders, and calendars with other iCloud users without the need for both of you to use the same iCloud account.  You can authorize both phones to use apps purchased under the same Apple ID without sharing an iCloud account.
    Sharing an iCloud account is a bad idea in general. There is too much opportunity for someone to damage or delete data that will affect both.

  • HT1222 My phone is telling me about a Software Update but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?

    My phone is telling me about a Software Update 7.1.1 but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?

    See if this helps:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212

  • I accepted/installed an update for iMovie and it turns out that this version is not compatible with my graphics card. So now I can no longer open or use iMovie.  Any ideas on how to get around this - how to revert to the previous version.

    I accepted/installed an update for iMovie and it turns out that this version is not compatible with my graphics card. So now I can no longer open or use iMovie.  Any ideas on how to get around this - how to revert to the previous version??

    Look in your Applications folder.  If your system behaved as expected, you should have an iMovie 9.0 folder in your Applications folder.  Apple moved the old version there as even they suspected the new versions was a train wreck.

  • Please help! We got a used Mac Mini and we don't have the former owner's password, so we can't install anything like flash player.  Does anyone know how to get around this?

    Please help! We got a used Mac Mini and we don't have the former owner's password, so we can't install anything like flash player.  Does anyone know how to get around this? I don't know how to wipe the hard drive, and the support online doesn't seem to work.

    As posted previously:
    Reinstall OS X without erasing the drive
    Do the following:
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    If installing Leopard the process is similar in some respects.  If you wish to begin anew then after selecting the target disk click on the Options button and select the Erase and Install option then click on the OK button.  To install over an existing system do the following:
    How to Perform an Archive and Install
    An Archive and Install will NOT erase your hard drive, but you must have sufficient free space for a second OS X installation which could be from 3-9 GBs depending upon the version of OS X and selected installation options. The free space requirement is over and above normal free space requirements which should be at least 6-10 GBs. Read all the linked references carefully before proceeding.
    1. Be sure to use Disk Utility first to repair the disk before performing the Archive and Install.
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Do not proceed with an Archive and Install if DU reports errors it cannot fix. In that case use Disk Warrior and/or TechTool Pro to repair the hard drive. If neither can repair the drive, then you will have to erase the drive and reinstall from scratch.
    3. Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When you reach the screen to select a destination drive click once on the destination drive then click on the Option button. Select the Archive and Install option. You have an option to preserve users and network preferences. Only select this option if you are sure you have no corrupted files in your user accounts. Otherwise leave this option unchecked. Click on the OK button and continue with the OS X Installation.
    4. Upon completion of the Archive and Install you will have a Previous System Folder in the root directory. You should retain the PSF until you are sure you do not need to manually transfer any items from the PSF to your newly installed system.
    5. After moving any items you want to keep from the PSF you should delete it. You can back it up if you prefer, but you must delete it from the hard drive.
    6. You can now download a Combo Updater directly from Apple's download site to update your new system to the desired version as well as install any security or other updates. You can also do this using Software Update.

  • HT4623 i am unable to backup and sync my iphone since updating because it says i need itunes 11 however it will not install because i need a newer version of mac os, any ideas how to get round this ?

    Since updating because it says i need itunes 11 however it will not install because i need a newer version of mac os, any ideas how to get round this ?

    Update your Mac OS level.

  • Hi i've just signed up for lightroom and when i go into the develop screen i get a blue screen with a cross through it and it says cant load picture. any idea how to get around this?

    hi i've just signed up for lightroom and when i go into the develop screen i get a blue screen with a cross through it and it says cant load picture. any idea how to get around this?

    I'm having same problem in develop module which is laggy as hell compared to LR5.8
    Library module is fine but develop module is slow as hell....5 seconds to make ANY adjustment.

  • How do I achieve this effect with a drop cap letter?

    How do I achieve this effect with a drop cap letter as shown in the picture below in indesign?:
    Thanks.

    Apply drop caps then select the letter and create outline from type menu. Select the outline letter and apply drop shadow

  • HT201210 I have an old i phone 3G and do not know the password for it. trying to restore it from itunes but keep getting error code 1015, any help on how to get passed this please?

    I have an old i phone 3G and do not know the password for it. trying to restore it from itunes so my daughter can use it as an ipod but keep getting error code 1015, any help on how to get passed this please?

    Hi ratcat14!
    I have an article that can help you troubleshoot this issue:
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/ts3694
    Check for hardware issues
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the alert when you update or restore, contact Apple support.
    Common errors: 1, 10-47, 1002, 1011, 1012, 1014, 1000-1020.
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • HT1212 My phone says 'iphone is disabled, try again in 22, 198, 686 minutes'!! Can anyone tell me how to get around this?

    My phone says 'iphone is disabled, try again in 22, 198, 686 minutes'!! Can anyone tell me how to get around this?

    I'm experiencing the same issue, if I restore the devise, won't I lose everything? -- I'm hoping there's another alternative to losing everything from one day to the next :-/
    Thanks in advance for your support :-)

  • Missing Sparsity Advisor in AWM, how to get/activate this function?

    hi all,
    I use "Analytic Workspace Manager 10.2.0.3.0A" to create my cubes and dimensions.
    In the Demonstration of "Analytic Workspace Manager 10.2.0.3.0", I seen there is the function "Sparsity Advisor" in AWM. But I don't found this function in my "Analytic Workspace Manager 10.2.0.3.0A".
    Some one show me how to get/activate this function please!
    Thanks in advance!

    To Ragnar
    to obtain the lastest Schema, I downloaded and installed the "GLOBAL Schema 10.2.0.3.0" found here:
    http://www.oracle.com/technology/products/bi/olap/index.html
    To Watrost
    I did which you said:
    SQL> show parameter compatible;
    and I obtains this result:
    compatible string 10.2.0.1.0
    I think I don't have the good version. So I tried to update the lastest patch "10gR2 - 10.2.0.3" but I found another problem.
    I don't have acces to Metalink because I installed "Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Windows (x64)"
    so I don't have the "Support Identifier (CSI, SAC, Access Code etc.)". Or maybe I don't know how to get this "Support Identifier".
    Can you tell me how to get this Identifier number?
    Is it possible to get the lastest patch 10gR2 - 10.2.0.3 without "Support Identifier" or Metalink?
    thanks in advance!

  • Trying to convert Pages to Word doc, but keep getting this error message:  TypeError:  Object doesn't support property or method 'invalidate'  JavaScript console contains more details.   Any ideas on how to get past this?

    Trying to convert Pages to Word doc, but keep getting this error message:  TypeError:  Object doesn't support property or method 'invalidate'  JavaScript console contains more details.   Any ideas on how to get past this?

    Right. If you are using delegated privs and sudo, make sure that sudo is configured to pass on the PERL5LIB and ORACLE_HOME environment variables at least.

  • I'm trying to add the email address for my verizon phone to iMessaging.  In order to verify, you have to reply to an imbedded link in the message.  Unfortunately the link is truncated.  Any idea how to get around this?

    I'm trying to add the email address for my verizon phone to iMessaging.  In order to verify, you have to reply to an imbedded link in the message.  Unfortunately the link is truncated.  Any idea how to get around this?

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (122986)

  • I have iWorks for a Mac Mini, I want to install that software on my MackBook Air, but it keeps telling me to update the software, I have updated it several times. Still no go, any ideas how to get past this problem? Thanks!

    I have iWorks for a Mac Mini, I want to install that software on my MackBook Air, but it keeps telling me to update the software, I have updated it several times. Still no go, any ideas how to get past this problem? Thanks!

    Movies are not bought via Netflix, then are rented or borrowed.
    For iTunes account issues, contact iTunes Customer Support.

Maybe you are looking for

  • Global error handlers in AIR/HTML

    Dear Adobe, there is good article on flobal error handling in Flex and AIR 2.0: http://www.adobe.com/devnet/flex/articles/global-exception-handling.html Is there a global javascript exception handling mechanism in AIR/HTML? window.onerror does not wo

  • Length of character

    Hello BW frnds I have a small requirement,in R/3 side the length of field is 255 characteristics,but in BW side it is 60,how can i bring the R/3 data to BW.my requirement is to increase the character length i.e maximum 60 to 100 or more in BW side.

  • PROXY BASIC AUTHENTICATION

    Hello. I'm facing problem during client connection throungth proxy. The error messagge is: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 302 Moved Temporarily"      at sun.net.www.protocol.http.HttpURLConnection.doTunne

  • Which web address is the web browser homepage in s...

    Is it nokia's default wap page? If not,which web address will be open when you first launch the web browser in S60 smartphone? If not, what is nokia's default wap page address in europe? I'm a chinese user, I can't browse nokia european wap page in c

  • How to pick up the last value of the input string

    Hi there, I have a requirement in which I have to pick up the last value of the input string. I don't know the field length, it could be 10 line, it could be 4 line and it could be even 1 line. Another problem is that the field contains all the alpha