File on webser

Hello Guys,
I want to put 1 MS word file on our peoplesoft web server and want to provide a link on the page where user can click to download that file to their local machine.
Can you help me with the code and tell me where exactly should i put the file on web server.
for eg:-
File stored in server location c:\abc.csv. Now I want to access that file from PeopleSoft through some page. How can I achieve it??
Please help
Thanks,

First of all I want to say that it is common to place the file on the appserver or in the database.
This is better manageable and movable between environments.
After placing the file on the appserver or in the database you can create a link on a page and use the ViewAttachment function to link to the file.
>
1. Now how can we stop this direct download of file and provide access only to those users who are logged in PeopleSoft system.
2. If some tries to access that link to download the file , how can we redirect the users to login page for authentication and when post succesful login the file should get downloaded.
>
If you place the file on the webserver in the root of PIA, you will use this a an ordinary webserver, so you can reach this file direct via the url without PeopleSoft authentication.
To make use of the PeopleSoft authentication, you can create a Content Reference in via Peopletools > Portal > Structure and Content with a link to you file http:/<server>:<port>/myfile.htm.
This will place a link in the PeopleSoft menu.
You can even assign roles and permissionlist to this Content Reference so that only groups of people can see the link.
After people logon to PeopleSoft they will see a new link in the PeopleSoft Menu.
Or create a hyperlink on a page that links to your file.
Really I can go on for pages with different possibilities, it depends on how you want to implement this.

Similar Messages

  • Urgent - import an html( which is in cluster) in jsp

    Hi All,
    here is my problem:
    1. I have a sample.jsp in app server.
    2. I have add.html in web server.
    3. these two servers are clustered
    4. i want to import this static html in to jsp.
    i am unable to include html file in webser
    i tried like this <jsp:include page="<%=req.getContextPath()%>/add.html" />
    how to add a html file in jsp. and that html is in clustered evironment.
    Please help me to slove this
    Thanks in advance......
    NG

    When using <jsp:include> you don't need to specify the root context path.
    <jsp:include> treats / as the root context for this web app (ie its already in this context)
    <jsp:include page="/add.html"/>You need to include the context path when you are generating URLs for the client which knows nothing about the web application context.

  • Download file from a websie

    Hi, I want to automatic the following process for downloading a file from website (one click)
    1. open website e.g. (http://aa.com/), it will pop out a user name/password msgbox
    2. enter the username and passport, and log into the website
    3. there's a botton on the website, which calls javascript.dosubmit(), click this botton to download the file and save it to a predefined folder
    I don't have experience of manapulating the website using java, I found JDIC to open the website, but seems it can not do the other steps. Please let me know if you have a solution.
    Many Thanks!

    Yes basic authentication was used for me as well (gray popup), but I chose not to use it and go directly to a web page that also allowed authentication. What you are trying to do it basic authentication and it should work, although I have never tested it. I have use Authenticator on previous projects and I was able to authenticate. If you hit cancel on that gray popup, do you get a web page with login? If so you can use that page as your HtmlPage. If not, you will have to use HtmlUnit with Basic Authentication example from the web.
    The only other code I have at the top of my class is:
    final WebClient webClient = new WebClient(browserVersion);
    webClient.addRequestHeader("ACCEPT", "text/html");
    webClient.setRedirectEnabled(REDIRECT_ENABLED);Then the webclient gets all set (authenticated), I pass the webclient from class to class because it already was authenticated.
    It's possible you had a redirect somewhere..as I do..so you have to set the webclient to enable the redirect.
    You can test to see whats actually happening by asserting, so you might see something.
    assertEquals("I expect my title to be", htmlPage.getTitleText());               Here is a snippet for authenticator
    class MyAuthenticator extends Authenticator {
            public PasswordAuthentication getPasswordAuthentication () {
                return new PasswordAuthentication ("user", "pass1".toCharArray());
        }

  • How to increase the string length of an uploaded file

    Hi,
    i use a abap webser where i've uploaded some JAR files into the mime repository.
    Unfortunately the string length is limited by 40 characters and so longer file names are cut.
    How can I increase the default string length? Does somebody know a workaround?
    Thanks.
    Edited by: Martin Gardyan on Oct 22, 2008 9:48 AM

    what i guess copying those jars should not create this problem.U just try in db using
    "ALTER TABLE <table_name> MODIFY <column_name> VARCHAR2(<new, larger length>)"
    may be it works.
    Regards,
    Anu

  • Use properties file in Struts framework

    I develop a websit with struts, web ap is tomcat5.0, and I have a conf.properties file
    this file is different from ApplicationResource.properties, conf.properties in the /MySite/conf/ directory, not in src directory
    When I Use the conf.properties file in a Common Java Class that not extends any super class
    it will occur a FileNotFoundException exception
    How to make it
    public class Environment
         private static Properties prop = new Properties();
         private static FileInputStream in = null;
         public static String getVariable(String key)
              try
                   in = new FileInputStream(new File("\\conf\\config.properties"));
                   prop.load(in);
                   return prop.getProperty(key, null);
              catch (Exception e)
                   e.printStackTrace();
                   return null;
              finally
                   try
                        in.close();     
                   catch(Exception e)
                        e.printStackTrace();
         }

    Your class cannot find the file in the location tht u have given. The path (\\conf\\config.properties) is relative to the location where your source (Environment class) is kept.
    Try to hard code the path & see if your source can find the prop file ...

  • Linking to html files

    Is it possible to copy a website built in Dreamweave (all the html files and images) into the folder my Muse site is in and create a link in my muse site to
    this website?

    What Im about to describe is difficult but I will do my best. First the company I work for has two web sites: one is the companies web site (the one I'm building in Muse), the other is a web site we provide for
    our customers (built in Dreamweaver). The Dreamweaver site is basically just an online catalog without my companies name on it that our customers can call as there own site. They can use this site to sale our
    products as there own. Ok, now currently-live on the web now the Dreamweaver site exists and the my companies site that is currently-live on the web now was built in flash. What I have done with the Flash
    based site that "is working", is copied all the Dreamweaver files into the websit folder that contains the companies flash site, directed it to the start of this catalog with a link in this folder. So if someone does a search
    for the Dreamweaver sites "name",  it doesn't show that it is linked to the companies site. The company wants this catalog on there site as well , they just don't want the two sites linking by name of the Dreamweaver site. So, if this makes some sort of sense to you, what I'm trying to do now is rebuild the "companies site" in Muse to reach a wider mobile audience and accomplish the same thing that's happening now. I'm currently
    "in Muse" linking to the catalog that was built in Dreameaver that was put in the flash folder that is live now and when I publish it temporarily through Business Catalyst it works. However, I've redesigned the catalog in Dreamweaver site and I'm not sure how to link it now without tying it to the actual Dreamweaver site. I've dropped all the files into the Muse folder like I did before in the flash folder and linked to the first page of the catalog (html file) and when I click on the linke it opens with no images. I'm thinking there is a way since I've achieved this with flash. Just don't know if its a Business Catalyst thing and would work if I upload it live through the other web hoster via FileZilla or if I'm linking it wrong.
    I think Vinayak Gupta might just have the solution for me by route of FTP. Just wanted to know if this would work before I lunched it live. I will re-read the other option he made via thru Muse and try that as well.
    Still trying to figure out the PDF hang up as well.

  • Downloading files from edelivery

    Hi,
    I want to download 12.1.1 Media Pack for Linux x86. To install oracle applications. But when i search for it, it is showing onlu update media pack for linux which is only 4.8 GB. How can i download the all the S/W for 12.1.1.
    Regards
    Taher

    yes , I am facing the same problem , just yesterday I finished downloading 37 files , today I checked the websit to complete downloading the files , I got surprise when I am not seeing the application ,only update files are available
    what is happened any one can know ?

  • Delete File From Mounted Volume

    Hey,
    I am trying to delete the "Calendar Cache" files on both my laptop PowerBook G4 and the Mac Pro Quad that I sync my calendars with. I am using ChronoSync and the individual calendars sync fine, but there is a little house keeping needed with the cache file. They need to be deleted on both systems in order to "refresh" the views of the calendars.
    So after the sync of calendars, I have the software initiating an AppleScript that deletes both. Here's the script:
    +(* PowerBook Files / delete cache file *)+
    +(* Please note that both systems have the same username. This may be arise a conflict *)+
    +tell application "Finder"+
    + activate+
    + tell application "Finder" to delete file "Calendar Cache" of folder "Calendars" of folder "Library" of disk "useranthony"+
    +end tell+
    +(* Mac Pro Quad/ delete cache file *)+
    +tell application "Finder"+
    + mount volume "afp://10.10.10.1/anthonyabraira"+
    + tell application "Finder" to delete file "Calendar Cache" of folder "Calendars" of folder "Library" of disk "/volumes/useranthony"+
    +end tell+
    I am having trouble addressing a deletion on the networked Mac Pro Quad.

    why send it to the trash — just delete it...
    (* PowerBook Files / delete cache file )
    try
            do shell script "rm -rf /Library/Calendars/Calendar\\ Cache"
    end try
    you may need a delay for the Mac Pro Quad to mount
    ( Mac Pro Quad/ delete cache file *)
    --the mount and then the delay
    delay 4
    try
            do shell script "rm -rf /THE-CORRECT/PATH-HERE/Library/Calendars/Calendar\\ Cache"
    end try
    Tom

  • How Open And Print Proc C Genrated Text File Based Report ON Browser

    Dear Sir
    I have my old 6i forms from which i runs some Pro*c programmers with the help of HOST() command ,and then that generates a normal text file as a resultant report like file name "kha10"
    which i can easily open with any text client ,,,
    now what i want is that, to open this file on browser like web Report on my forms 10g like report builder 10g
    can anyone help me as it will be a gr8 help otherwise i would have to develop approx 100 reports.....
    any solution or any technique plzz help me

    bro my work is almost done apart from this virtual directory , how to make a virtual directory so that is dosent comes under
    http://........../form/
    i mean where to put my
    <virtual-directory virtual-path="/procrepo" real-path="c:\" />
    as my original file looks like bellow
    <?xml version="1.0"?>
    <!DOCTYPE orion-web-app PUBLIC "-//ORACLE//DTD OC4J Web Application 9.04//EN" "http://xmlns.oracle.com/ias/dtds/orion-web-9_04.dtd">
    <orion-web-app
         deployment-version="10.1.2.0.2"
         jsp-cache-directory="./persistence"
         temporary-directory="./temp"
         servlet-webdir="/servlet/"
    >
    <context-param-mapping name="configFileName">D:\DevSuiteHome_1/forms/server/formsweb.cfg</context-param-mapping>
         <virtual-directory virtual-path="/html" real-path="D:\DevSuiteHome_1/tools/web/html" />
         <virtual-directory virtual-path="/java" real-path="D:\DevSuiteHome_1/forms/java" />
         <virtual-directory virtual-path="/webutil" real-path="D:\DevSuiteHome_1/forms/webutil" />
         <virtual-directory virtual-path="/jinitiator" real-path="D:\DevSuiteHome_1/jinit" />
         <session-tracking cookies="disabled" />
    <!-- Uncomment this element to control web application class loader behavior.
    <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
    -->
    <security-role-mapping name="administrators">
    </security-role-mapping>
    </orion-web-app>
    plzzzzzzzzzzz help

  • If image file not exist in image path crystal report not open and give me exception error problem

    Hi guys my code below show pictures for all employees
    code is working but i have proplem
    if image not exist in path
    crystal report not open and give me exception error image file not exist in path
    although the employee no found in database but if image not exist in path when loop crystal report will not open
    how to ignore image files not exist in path and open report this is actually what i need
    my code below as following
    DataTable dt = new DataTable();
    string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
    using (SqlConnection con = new SqlConnection(connString))
    con.Open();
    SqlCommand cmd = new SqlCommand("ViewEmployeeNoRall", con);
    cmd.CommandType = CommandType.StoredProcedure;
    SqlDataAdapter da = new SqlDataAdapter();
    da.SelectCommand = cmd;
    da.Fill(dt);
    foreach (DataRow dr in dt.Rows)
    FileStream fs = null;
    fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + dr[0] + ".jpg", FileMode.Open);
    BinaryReader br = new BinaryReader(fs);
    byte[] imgbyte = new byte[fs.Length + 1];
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dr["Image"] = imgbyte;
    fs.Dispose();
    ReportDocument objRpt = new Reports.CrystalReportData2();
    objRpt.SetDataSource(dt);
    crystalReportViewer1.ReportSource = objRpt;
    crystalReportViewer1.Refresh();
    and exception error as below

    First: I created a New Column ("Image") in a datatable of the dataset and change the DataType to System.Byte()
    Second : Drag And drop this image Filed Where I want.
    private void LoadReport()
    frmCheckWeigher rpt = new frmCheckWeigher();
    CryRe_DailyBatch report = new CryRe_DailyBatch();
    DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter ta = new CheckWeigherReportViewer.DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter();
    DataSet1.DataTable_DailyBatch1DataTable table = ta.GetData(clsLogs.strStartDate_rpt, clsLogs.strBatchno_Rpt, clsLogs.cmdeviceid); // Data from Database
    DataTable dt = GetImageRow(table, "Footer.Jpg");
    report.SetDataSource(dt);
    crv1.ReportSource = report;
    crv1.Refresh();
    By this Function I merge My Image data into dataTable
    private DataTable GetImageRow(DataTable dt, string ImageName)
    try
    FileStream fs;
    BinaryReader br;
    if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + ImageName))
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    else
    // if photo does not exist show the nophoto.jpg file
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    // initialise the binary reader from file streamobject
    br = new BinaryReader(fs);
    // define the byte array of filelength
    byte[] imgbyte = new byte[fs.Length + 1];
    // read the bytes from the binary reader
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dt.Rows[0]["Image"] = imgbyte;
    br.Close();
    // close the binary reader
    fs.Close();
    // close the file stream
    catch (Exception ex)
    // error handling
    MessageBox.Show("Missing " + ImageName + "or nophoto.jpg in application folder");
    return dt;
    // Return Datatable After Image Row Insertion
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • How do I find, at-a-glance, the sample size used in several music files?

    How do I find, at-a-glance, the sample size used in several music files?
    Of all the fields available in a FInder Search, "Sample Size" is not available. Finder does offer a "Bits per Sample" field, but it only recognized graphic files and not music files.
    Running 10.8.5 on an iMac i5.
    I did search through a couple of communities but came up empty.
    Thank you,
    Craig

    C-squared,
    There is no View Option to allow display of a column of sample size. 
    For WAV or Apple Lossless files, it is available on the Summary tab (one song at a time, as you know).  For MP3 and AAC it is not available at all.
    You can roughly infer it from the files that are larger than expected for their time.
    99% of the music we use is at the CD standard of 16-bit, so I can guess that displaying it has never been a priority.  However, if you want to make a suggestion to Apple, use this link:
    http://www.apple.com/feedback/itunesapp.html

  • Windows no longer boots up, paging file error

    I just reinstalled windows on my mac last week because until now I had been running the old beta version of boot camp.
    Just a few days ago I started getting blue screens every so often and it happened again (twice to be exact) yesterday, however one of the times it booted up and informed me I might want to change my paging file size. Not quite sure what this was I went and found the paging file option in settings and found it was clicked on a set size...so I figured I'd set it on the option that lets windows decide for me hoping this would fix the blue screen problem.
    I shut down my computer later that night and now windows won't get to the desktop.
    When I start it up normally it runs the system check (which I cannot skip for some reason) which gets to 84% and then says \windows\Dump3865.tmp is cross-linked on allocation unit 1731772
    Above it it mentions there is an invalid size for my page file.
    I tried booting it up the in safe mode multiple times and every time it generates a list in dos and stops on windows\system32\Drivers\mup.sys
    I really don't want to have to reload windows again. Is there anyway to skip the system check (it says press anykey, but that has never worked for me) or any other way to get my paging files back to the way they were?
    Thank you.
    Oh I'm running leopard with windows XP professional on a macbook pro (last years model) if that helps in anyway.
    Message was edited by: Tommmmm

    A. run chkdsk
    B. What happens if you boot from XP CD and Repair System
    C. system file checker - from command "sfc /scannow"
    http://www.informationweek.com/news/windows/showArticle.jhtml?articleID=18530125 1
    http://windowshelp.microsoft.com/Windows/en-US/Help/f768809f-ed90-415f-a83f-89b4 2108b3551033.mspx

  • ITunes & Windows Vista Home - Error File C:\Program Data\Apple Computer\Installer\Cache\iTunes 10.5.142\iTunes.msi was rejected by digital signature policy.

    Tried
    https://discussions.apple.com/thread/2713232?start=0&tstart=0
    and
    http://www.vistax64.com/vista-general/159940-computer-blocking-anything-no-digit al-signature.html
    with no avail!!!
    iTunes opens after I click OK on the above message however I cannot do anything within the app its like Windows it preventing it from running.
    PLEASE HELP!!!

    Update:
    I tried what the diagnostic told me to do, and repaired the installation. I was able to burn a CD in iTunes, but after I restarted, the drives have disappeared again! Here's the diagnostic info now:
    Microsoft Windows Vista Home Edition (Build 6000)
    MICRO-STAR INC. MS-6728
    iTunes 7.6.0.29
    QuickTime 7.4
    CD Driver 2.0.6.1
    CD Driver DLL 2.0.6.2
    Apple Mobile Device 1.1.3.26
    iTunes Serial Number 20D6EAF059AB94B4
    Current user is not an administrator.
    The current local date and time is 2008-01-15 19:09:32.
    iTunes is not running in safe mode.
    Video Display Information
    ATI Technologies Inc., Radeon X1600/X1650 Series
    ATI Technologies Inc., Radeon X1600/1650 Series Secondary
    ** External Plug-ins Information **
    Plug-in Name: Last.fm iTunes plugin
    Plug-in Loaded: Yes
    Plug-in Version: 0.0.13
    Plug-in File Version: 2.0.13.0
    Plug-in Path: C:\Program Files\iTunes\Plug-ins\itw_scrobbler.dll
    No drives showed up to be tested.

  • Error while deploying a PAR file from NWDS into an ECC.

    Hi all,
    I am getting this error while deploying a PAR file from NWDS into an ECC.
    Operation Failed: Please make sure the server is running or check the log (sap-plugin.log) for
    more detail.
    My server is running properly
    1 - Where is sap-plugin.log file? I don´t find it. 
    2 - Could there be another file with another name with information about the error?
    3 - Is there another way to deploy the file directly from the ECC?
    Regards,

    Hi,
    Just make sure you have maintained correct server setting to check the same open the NWDS and follow this path
    Windows/ Prefereces / SAP Enterprise Portal
    Check the following enteries
    Alias
    Host
    Port
    Login etc.
    Regards,

  • In order to create space on my MBA I just bumped iTunes media to G drive linked through Time Capsule.  Now pointed iTunes at new iTunes libary on G drive and, even though all music files are there, iTunes can only 'see' 10 albums. Any help appreciated.

    Bit more detail...
    Mac Book Air has been struggling for space for a while so I bough at time capsule a) for back up and b) to host my itunes folder remotely.  This didnt' work.  I took it into the Genius bar and the genius there told me that time capsule is not designed for anything other than back up.  Instead I have to connect a G drive through the time capsule's wireless router to my MBA. 
    I followed his instructions - moved my files from the Time Capsule and MBA directly onto the G Drive - which took a heartening 2 hrs so something must have been happening - and the held down 'Alt' when starting iTunes and selected the new itunes folder as the location of my itunes libarary which I wanted iTunes to 'point at'.  When I opened iTunes only 10 albums are visible now.
    In ITunes advanced preferences it says it is pointing at the correct folder.  The files are all cleary there when I open the G Drive folder to take a look.  But I cannot get iTunes to find them.
    Any suggestions? 
    Secondary challenge - in spite of deleting the original itunes folder on my MBA I still get messages pop up telling me my start up disk is out of space and I need to clear some - I expected to stop getting this message now I had done this exercise above.  I have emptied Trash.  Again - any pointers appreciated.  I am new to this world of 'intuitive' macbooks.
    Cheers

    After admittedly only a quick read the one thing you don't say is how you are trying to make this move.  Most people with moving library issues do it the wrong way.  Plenty of web sites tell you how to do it the wrong way.
    If the iTunes application is started before the drive with the library is fully mounted and awake iTunes will revert back to the internal drive.

Maybe you are looking for

  • B2B-51507    Error : Incomplete Internal-Properties structure.

    Hi, I send 997 AS2 by manual. And get below error. B2B-51507 Error : Incomplete Internal-Properties structure. ERROR_LEVEL_COLLABORATION ERROR Error Brief : XEngine error. below is 997 xml . <?xml version="1.0" encoding="UTF-8"?><Transaction-997 xmln

  • How to calculate Average of Keyfigure

    Hi Gurus, I have a requirement where I have to calculate average of key figure value for 1 material. I tried using 'Average' in exception Aggregation but it just sums up everything. Can anyone please explain? Thanks

  • Locking Down Devices

    I work at a library that circulates roughly 40 Sony PRS-T1 and PRS-T2 devices to our public. Although we turned off all of the "remember my password" type settings for the browsers and made sure the Reader Store was prompting for a login, patrons hav

  • Trouble with j2ee tutorials

    No able to get started with Hello1 and Hello2 on J2EE SUn App Svr P8 1.4 beta 2004Q4 I built then deployed Hello1 using DeployTool, said successful but when I launch from the admin console I get : org.apache.jasper.JasperException: File "/WEB-INF/str

  • Adobe Reader 10 install problem?

    Adobe reader download appears OK, but doesnt open doc.  Error message from Windows says 'Installation package could not be opened - etc etc.  How do I down load this reader?