Need user-specific files

The way I currently work is, I have a JSP file that builds a user (log-in) specific agenda for a calendar. It does so by accessing a database and putting together a set of javascript commands.
This works great for keeping each users agenda seperate and unreachable by other users. But, on one page the agenda is used just once, on another its used twice, and on a third it is used twelve times. This means the agenda.jsp can be reun up to 12 times on a given page, with all the sql and database access to go along with it!
What I would like to do is have the server print an agenda.js (javascript file) only after each time the database is updated. This is easy enough. I can even tag the .js file with the sessionID or user-name, so there isn't cross-talk between users. But those .js files are still accessable to other users if they really want to get at them.
I tried moving the files to WEB-INF, which will prevent people from accessing them from their browser by putting in a URL to them, but since the .js file needs to be read via a URL in my calendar script, this prevents my own pages from seeing it as well.
Is there some other way I can securely lock out users from being able to see these files, but still be able to access them from the server side?

I am getting a thought I will try to test this weekend.
Put the files in WEB-INF/agendas/agenda_${sessionScope.userName}.js
Then make an agenda.jsp that does <c:import url="WEB-INF/agendas/fagenda_${sessionScope.userName}.js"/> and use the agenda.jsp for the URL needed...

Similar Messages

  • Win 8.1 / Server 2012R2: Setting User specific File Associating through GPO

    I have some issues associating the default application for specific users for specific file extentions.
    I've used registry imports in the times before GPO Preferences and have been using GPO Preferences for Vista/7/2008/2008R2 environments.
    With Win 8.1/2012R2 (and in some extend Win8/2012) I have read I should use the "Default Associations Configuration File" GPO option together with DISM. So, I followed these steps:
    Export current settings using: DISM /online /export-defaultappassociations:C:\Windows\System32\CustomAppAssoc.xml
    I've updated the file and imported it back: DISM /online /import-defaultappassociations:C:\Windows\System32\CustomAppAssoc.xml (*)
    Seeing this didn't work yet, I've also setup the GPO and pointed it to my C:\Windows\System32\CustomAppAssoc.xml
    I've removed the profile of my test-account and logged in
    (*) (To my knowledge this these steps only update the OEMDefaultAssociations.xml-file)Unfortunatly the changes I made, that should have assigned .xml to Microsoft Excel did not work.
    My file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <DefaultAssociations>
    <Association Identifier=".xml" ProgId="Applications\EXCEL.EXE" ApplicationName="Excel (desktop)" />
    </DefaultAssociations>
    A few issues I have:
    This method does not allow seem to enforce a default app; only add it to the list of available/suggested apps.
    This method does not allow me to associate different apps for different users
    Any tips would be more than appriciated.
    Kind regards,
    Peter

    You can use the Deployment Image Servicing and Management (DISM) tool to change the default programs associated with a file name extension.
    1.Deploy your Windows image to a test computer.
    2 Log into Windows and use Control Panel to configure your default application associations.
    3.You can export the default application associations that you have configured to an XML file on a network share or USB drive. For example, at a command prompt type the following command:
    Dism /Online /Export-DefaultAppAssociations:\\Server\Share\AppAssoc.xml
    4.Use GP server to enable the following group policy to modify the default Associations on the client machine.
    Computer Configuration>Administrative Templates>Windows Components>File explorer>Set a default associations configuration file.
    Regarding how to export or Import Default Application Associations,please refer to the following article:
    http://technet.microsoft.com/en-us/library/hh825038.aspx

  • User specifies file to be read in

    I'm working on a program to count the words, characters, etc in a text file. I've just about got it all working, but at the moment I've got it specified in the actual code which text file the program should perform the word count on, whereas I want to alter this so that ther user types in the name of the file to use.
    At the moment, I have it like this:
    class WordCounter
         public static InputStreamReader input = new InputStreamReader(System.in);
         public static BufferedReader keyboardInput = new BufferedReader(input);
         public static void main(String[] args) throws IOException
    FileReader file = new FileReader("report.txt");
    BufferedReader MyFile = new BufferedReader(file);
    String Text = MyFile.readLine();
    and then the program uses the "Text" string in performing its checks.
    How do I alter it so it prompts the user to enter the filename?
    Obviously
    System.out.println("Please enter a filename:");
    and then something to replace the fileReader code I currently have, but what exactly?
    Any help much appreciated

    Aha, it's working!
    Replacing
    FileReader file = new FileReader("report.txt");
    with
    System.out.println("Please enter a filename:");
    FileReader file = new FileReader(keyboardInput.readLine());
    produced the desired result.
    Many thanks for that!!!

  • Can we give UNIQUE ACCESS FOR THE SPECIFIC FILE IN THE LIBRARY in SP2013? How can we remove users from SHARED WITH link where files are shared with users?

    Hi,
    Any help on this?
    Thanks
    srabon

    Hi srabon,
    For giving unique access for a specific file in a library, you can go to the library, and select the file , and click FILES->Shared With->ADVANCED, under PERMISSION ribbon, click ‘Stop Inheriting Permissions’, then the file will have unique permissions.
    For removing the shared users for a file, firstly, like the above steps, select the file , and click FILES->Shared With->ADVANCED , make sure the file has unique access, then select the users that you want to remove, and click Remove User Persmissions
    under PERMISSIONS ribbon.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Layout - User specific - this needs to be unchecked.

    Dear friends,
    We have created a Layout in the Report.  By default, User-specific tick is coming while saving the Layout.  Others are not able to select this report.  How to uncheck this tick ??
    Regards
    KVKR

    It is most definitely an authorization issue.  You, like any security auth issue, should be able to type in /NSU53 and see what authorization objects you have and which ones were checked that failed.  That should give you the auth object/value you need to maintain global display variants.  Please note though that a lot of companies lock this down heavily as having this access not only gives you the ability to create new variants but also update other global layouts and change the default settings. 
    From what I have typically seen IT has the global display authorizations and per the user requests creates them and makes them available for others.  Where this isn't in place I've seen the global layouts get all out of whack and we got many phone calls saying "this never used to look this way before so fix it!"
    Check out OSS Note 409190 but in summary "There is the authorization object S_ALV_LAYO with the authorization field 'ACTVT' (activity) and the value '23' for "Maintain".All ALV versions (Classic, Grid Control and Grid in fullscreen) perform an authorization check against this object.Users whose profile contains the value '23' are then allowed to create and maintain standard layouts and save them as defaults.
    The authorization object can be checked via transaction SU21, object class BC_Z, S_ALV_LAYO and only exists from Release 46C."
    Hope that helps.

  • Store User specific data in Secure file in EP

    Hi
        I wanted to store User specific data into Secure file .Please help me to access JAVA Secure Storage API 's of SAP netweaver
    Regards
    Ganesan S

    sorry, wrong post

  • Need to ftp files(BACS) from Server to Users Local Machine-Urgent

    Hello,
    I am working on a Oracle HRMS Implementation(11i) and have a requirement wher I need to ftp files (BACS File) from a server to Users Local Machine.
    Please let me know any scripts or the way forward to achieve the same using a concurrent program.
    Thanks a lot!

    That requires the users machine for a ftp server installed and to be "visible" to the conc program server, the first one requiring setup and configure for every client and the second one may be a problem if in different segments or security policies. Another approach may be to generate the files on the server in a known location and from the client create a batch script to connect to that server and retrieve the file(s). You may schedule the program to run at certain hours or use a shortcut so the user can run it on demand

  • I need to transfer files applications etc from a Mac Book Pro to a Mac Book, but I want certain files/applicaitons to be available only under certain users. DO I transfer everything first then move it into different accounts or can I set up accounts first

    I need to transfer files applications etc from a Mac Book Pro to a Mac Book, but I want certain files/applicaitons to be available only to certain users. DO I transfer everything first then move it into different accounts or can I set up the different user accounts first & select what goes where when I migrate?
    Thx

    Do you have a backup that you can restore from? Your old hard drive seems to be the problem.

  • Open specific file, read entire contents, close - no user interaction

    I just want to wire in the file name to
    Open/Create/Replace File.vi
    and to
    File/Directory Info.vi

    You should be able to wire in a constant file path to both the open/create/replace file.vi and the file/directory info.vi. I have attached a VI written in LabVIEW 6.0 that opens a specific file, reads the entire content, and closes the file with no user interaction. Take a look at this example.
    Attachments:
    open_specific_file.vi ‏29 KB

  • How to delete a specific file type from a folder

    Hi,
    I have folders with lots of zip or rar files, once I decompress those I want to delete the compressed files specifically. Is there any way I could manage that through Automator?
    Thanks in advance.

    Thanks Niel for the script, unfortunately I am too ignorant about running these on my own, I did save it in my user script library, but I would need instructions to run it. I would be really grateful.
    I did try making up my own workflow using the given actions in Automator, the first action was to 'find specific files in finder' ending with .zip and .rar and then choosing another action which 'moves selected files to trash'. Unfortunately it ended up running only if I specify the path to the specific .zip file, which defeats the purpose. Any suggestions on the proposed workflow? Thanks in advance.

  • How can I get specific files back from my Time Machine backup?

    I wanted to make a fresh install on my MacBook Pro, in order to only have Java 8 instead of any older Java versions. So far so good. But now I want to get specific files/libraries from my external backup (USB):
    One Parallels Virtual Machine
    My old mail
    My iPhoto Library
    I don't need any settings for these, since I can easily configure them again.
    I already used the Migration Assistent to restore all apps.
    How can I get specific data back from the backup without restoring all stuff that I don't want anymore?
    I'm now working on a new account on the fresh system, called 'Admin'. My old account was called 'Hans' (or 'hans') and I'd like to create such an account again for all my tasks.
    Hans

    How can I get specific data back from the backup without restoring all stuff that I don't want anymore?
    I'm now working on a new account on the fresh system, called 'Admin'. My old account was called 'Hans' (or 'hans') and I'd like to create such an account again for all my tasks.
    You will want to add the same User account(s) which hold the data you want to restore. So you will want to add a User account of 'Hans or hans'. Check your Time Machine back up drive to see how the User account is labeled (Hans or hans). Navigate to the Users folder and see how it's labeled.
    You can then use your Time Machine back up drive and navigate to the User Home folder to copy its data over (e.g. contents from Documents, Downloads, Music, Pictures, etc.). Repeat for other Users.

  • Is it possible to link to specific files on a server from within a pdf?

    Hi all,
    Is it possible to create hyperlinks to a specific file on a Windows server from within a pdf?
    Let me explain further, I am working on a Mac trying to create hyperlinks from within InDesign to specific files on a Windows server. I am exporting the file to pdf, along with the hyperlinks, which look correct when I click on them from within Acrobat.
    On Windows, the links will read as \\servername\directoryname\filename so this is exactly how I enter it as the hyperlink. When I view the hyperlink information in the resulting pdf from within Acrobat, it still looks correct as \\servername\directoryname\filename but when I try to click on it from the Windows side OR the Mac side, the link doesn't work and gets changed....the slashes revert to the opposite direction and the whole link gets messed up. I am trying to figure out if the cause is InDesign, Acrobat or whether this can even be done? Of corse, I never have issues with normal URLS.
    What we are trying to do is set up an internal catalogue for the company of all our materials. (Everyone works on Windows)
    Should I try to create the links from within a Windows version of Acrobat... do you think that will make any difference?
    Thanks in advance for your help:)
    Very much appreciated!
    Christine

    Thank you for your help...very much appreciated!
    Basically, what we needed were for the links to be static and not relative, and they were mainly for Windows users. What finally worked was creating the links from within a Windows version of Acrobat. We plan to email the final pdf to several employees around the word (we are an international company) with all the links intact. Once they were logged into our network (vpn'd in) the links would still be valid no matter where the document was located. The trick is to change the start of the link to a specific IP address (the server address) when you are setting it up in Acrobat. I hope this makes sense and is helpful for everyone else out there:)
    (P.S. This works for Windows users only though and cannot be done via the Mac version of Acrobat. I can set things up within the Mac version of Acrobat so that the links will work as long as the document resides in the same location on the server... the advantage to doing it THIS way is that it will work for BOTH Mac and Windows users.)
    Thanks again,
    Christine

  • Advice on allowing specific file types to be written to USB flash drive

    We currently have all of the Removable Storage Access policies enabled (Computer Config > Policies > Admin Templates > System/Removable Storage Access) and would like to know if it is possible to allow specific file types to be exempted from this
    policy. Specifically we need to allow certain users to write to USB flash drive but need to limit to MS Office files only.  Is this possible?
    Thanks in advance for any assistance.
    -Mike

    > Specifically we need to allow
    > certain users to write to USB flash drive but need to limit to MS Office
    > files only.  Is this possible?
    Third party products can do that. GPO cannot.
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Strange user-specific display problem

    I use my MacBook with an external AG Neovo F-419 19"screen. I have one screen at work and another at home. It works beautifully except for one strange phenomenon: when I log into my account and watch the screen during start up, whereas it starts out having nice even-contrast graphics with a good color range, as the boot progresses it goes through two changes. At the first change the color balance changes, probably reflecting a calibration that I have done in the past kicking in from the Display Preferences info. But then it goes through a second change in which the contrast becomes extreme and the color range perhaps reduced and this then stays and I cannot reverse it by changing the settings in Display Prefs (I can alter the contrast, brightness, color balance etc. but I can't restore the normal color and contrast whatever I do). Bizarrely, however, I can restore things to normal just by rotating the screen and then Reverting to normal orientation.
    This is user specific as it doesn't happen if I login as another users and it reappaears when I log back in (andagain gets undone by rotating the screen). It seems not to be a function of a particular Display Profile as I have tried changing them and deleting, ditto for the Prefs file in my User Library. Moreover, the external display does not need to be connected - it happens when I use the Macbook on it's own, which is very annoying because then I cannot rotate the screen to get rid of it!
    If anyone has any ideas I would be very grateful as I do not want to transfer thousands of files into a new User account (I should say that I thnk this problem first arose in Tiger when I had another machine and it has migrated along with the User settings!!). Help!!
    Andy

    Hi,
    I think you can only display a maximum message of 128 characters. There is also another function module SCCA_TH_POPUP which also has a message size of max 128 characters.
    Danish.

  • Interactive "Finder" window of specific files

    Hi!
    Is there a simple way to create a custom view of the filesystem from an obj-c program? Ie. a window with a list of specific files in the Mac filesystem that can be manipulated like opened, dragged to trash (removing them from their original location), etc.
    Basically I start out with a list of paths - files around the system, in several folders, etc. -, and want to display this list as a window with file icons to the user, basically like a Finder window, to manipulate and work with. I'd like filetype icons and/or previews, context menu, drag-and-drop, etc., as if it were a folder opened in Finder.
    Is there some built-in API code I can use to do this in a simple way? If not, what do I need for it to work? Where should I look in the dev documentation?

    the spotlight is set up to view all file types. im looking for a specific set of pictures, but they just dont show up in the finder search. they are there tho, coz i can look thru them. they show up when i import them to iphoto, but i dont use iphoto

Maybe you are looking for

  • Headset controller not working on iPhone 4 with ios7.04

    Trying to connect a new headset with in-line controller/mic to iPhone 4/ios7.04. Music plays fine but no controls, i.e pause, play, skip etc. Same headset works on my daughter's iPhone 4.  Is this a simple fix, i.e. change settings,  or is there some

  • JMS Receiver Adapter to MQ - additional message property error

    Hi, I'm trying to add addional message properties to a Receiver JMS message for MQ Server queue. Creating the message in the MQ queue only works when I don't try to add additional message properties. As soon as I try to add additional message propert

  • Need help changing the setting to preview entire file names

    Using Leopard, I would like to to be able to read the entire name of a file. For example, my files might say (File 2.....609). What the file is named is File 2 Graphs 6209. How can I set up Leopard to allow me to read the entire file, so I don't have

  • Water damaged macbook pro not turning on

    My macbook pro got wet this morning, the ports were a bit wet and after I cleaned off the water it turned on and worked fine. Now, a few hours later it fill not turn on, I have tried everything!!!!!!! Please help me, please?!?!?!?! It had an incipio

  • Retain the LAN, Disable the WAN

    Is there a way to maintain LAN services, but disable (for a few days, anyway) the computer's/system's attempts to access the Internet over that same network? My DSL service is temporarily down, and the telecom is testing it remotely from their end. T