Opening an attachment from outside the tomcat context

I am creating a simple mail software. In my incoming message screen i'm showing all the Attachments as hyperlinks. I want that when the user clicks the hyperlink the Attachment should open in a new browser window.
My problem is that the attachments are there in a folder outside the tomcat context i.e. in a folder outside the tomcat's folder on the server's c:/Attachments folder.
If I put the attachments in the root folder of my application under webapps folder it is working properly. But I want to open it from the outside folder c:/Attachments, and also I can't hardcode this path in my code. It can be any path outside tomcat.
Please help me, if u have any solution.

Make that path a parameter in web.xml
     <context-param>     
          <param-name>beginyear</param-name>
          <param-value>2004</param-value>          
          <description>starting year of the application</description>
     </context-param>

Similar Messages

  • Pages (or Numbers) Template Cannot Be Opened From Outside the Application

    Ever since the upgrade to Mavericks, I cannot open a Pages (or Numbers) template without being asked.....
    Do you want to add this custom template to the Template Chooser?  Then my only options are Cancel or Add to Template Chooser.
    If I cancel, it won't open anything.
    But this template is already in my Template Chooser.
    So the only way to open a template in Pages (or Numbers) is to open the application first, and then click "New", and choose the template.
    I can't figure out a way to open the template from outside the application, which is very very handy, rather than having to open the application every time that I want to access a template.
    How can I open a template simply by clicking on it?

    Yes, the problem is that opening the template from outside of the application will not open the application, showing the document.  I only get this....
    Do you want to add this custom template to the Template Chooser?  Then my only options are Cancel or Add to Template Chooser.
    If I cancel, it won't open anything. 
    But this template is already in my Template Chooser.
    Put your Pages or Numbers document on your desktop and open it by double-clicking it, and you'll understand.  You can't do it, even if the template is in your template chooser.
    The only way to do this now is to open the application, select "New", and the select the template.  So you cannot open a template from outside the application....only from within.

  • Numbers (or Pages) Template Cannot Be Opened From Outside the Application

    Ever since the upgrade to Mavericks, I cannot open a Numbers (or Pages) template without being asked.....
    Do you want to add this custom template to the Template Chooser?  Then my only options are Cancel or Add to Template Chooser.
    If I cancel, it won't open anything.
    But this template is already in my Template Chooser.
    So the only way to open a template in Numbers (or Pages) is to open the application first, and then click "New", and choose the template.
    I can't figure out a way to open the template from outside the application, which is very very handy, rather than having to open the application every time that I want to access a template.
    How can I open a template simply by clicking on it?

    Yes, the problem is that opening the template from outside of the application will not open the application, showing the document.  I only get this....
    Do you want to add this custom template to the Template Chooser?  Then my only options are Cancel or Add to Template Chooser.
    If I cancel, it won't open anything. 
    But this template is already in my Template Chooser.
    Put your Pages or Numbers document on your desktop and open it by double-clicking it, and you'll understand.  You can't do it, even if the template is in your template chooser.
    The only way to do this now is to open the application, select "New", and the select the template.  So you cannot open a template from outside the application....only from within.

  • Open Directory access from outside of network / internet

    Hello all,
    Got a question I'd love to get some help on, I have some users who are outside of my network and I'd like them to connect into the open directory on our leopard server so they can use the Shared iCal calendars, addresses, etc.
    So my questions are A) Is it possible to connect in from outside the network and get access to the directory without having to have a seperate user account and use our VPN every time you want to connect? - if not is this the only way to do it (would you have to connect via the Mac VPN and then connect to the directory?)
    B) is it possible to do this "seamlessly" so that you don't have to change any settings, login details each time you switch between your local user from outside the network and your directory access. (so basically if you are in iCal if you have internet access it will connect you to the directory, without you doing anything extra?)
    Hope that makes sense, I can't seem to find the answers I need in the manuals, if I knew how this was meant to work I could probably have a fair go at figuring out how to actually do it (firewall changes etc)
    Thanks in advance for the help
    Martin

    So my questions are A) Is it possible to connect in from outside the network and get access to the directory without having to have a seperate user account and use our VPN every time you want to connect? - if not is this the only way to do it (would you have to connect via the Mac VPN and then connect to the directory?)
    If your OD server is visible from the internet -- i.e., it has a public address -- then you can do this without the VPN. However, it's not advisable to have a server exposed in that fashion.
    You would be better off doing this through the VPN:
    - Remote user connects to internet at hotel, for example.
    - Remote user initiates VPN connection.
    - Remote user now has access to iCal server and directory information.
    Explain to the users that this information is private to the company, and private company resources are only available through the VPN. Allowing access without the VPN would be similar to the company posting its Employee roster and meeting calendars on the face of the building where any person (or competitor) could see them.
    B) is it possible to do this "seamlessly" so that you don't have to change any settings, login details each time you switch between your local user from outside the network and your directory access. (so basically if you are in iCal if you have internet access it will connect you to the directory, without you doing anything extra?)
    It's just one extra step: Connect to VPN. You're still the same local user on the computer.
    If you're talking about laptop users needing directory access to authenticate when logging into their computers, well...That sounds like a whole other situation.
    Hopefully this helps.
    Bryan Vines

  • I need to link to a screen within a movie from outside the movie

    Hi,
    That last question was answered so quickly, I'll ask this
    next one right away:
    I need to link to a screen within a movie from outside the
    movie (so for example, from file1.cp, I need to open file 2, screen
    4).
    Am I able to do this in Captivate 1?
    Thanks,
    Kim

    I've just gotten a chance to check out these responses. About
    the Flash - no can do. Don't have it. And about breaking the file
    apart, that would get messy because I have several files already.
    OK. At least I know my options are limited to linking to page 1
    from outside, so I'll have to be creative.
    Thanks for the response.
    Kim

  • TS3276 How do I open an attachment from my email with macbook pro on aol?

    How do I open an attachment from my email with macbook pro on aol? It keeps flipping back?

    Wirth an iOS device you have to first go to the app that has the item you want to attach. When in that app you then select the email option for sharing.  You can't start from the Mail app.

  • How to trigger soft interrupt from outside the driver?

    Soft interrupt is triggered with ddi_trigger_softintr(ID) function, where ID is returned by ddi_add_softintr and makes no sense outside the driver context. Is it possible to delegate inrerrupt request to an entry point of other driver or even to make a request from a user thread without calling ioctl?

    Thanks Balu,
    I used following code to create a FacesContext object
    FacesContextImpl facesContext = new FacesContextImpl();
    and passed it to the validation service method, which adds validation messages to facesContext object.
    After calling the method, i retrieved the messages by calling facesContext .getMessages().
    -Mark

  • Invoke an awt event from outside the swing application

    Is it possible to invoke an awt event triggered from outside the swing app? I am trying to implement a use case where i have to open a new tab in an already running swing app when a user clicks on a browser link.

    I have a desktop application that was invoked via webstart. The java webstart process started when the user clicked on a link that downloaded the swing application and now it runs in the clients JVM. Each browser click downloades and launches the application that performs a certain function. Now lets say, the user clicks on another link, then i don't want another java application to be launched. I want the same application that executes the function in lets say a new tab.
    Its kind of like you click on a link that somebody sent you in an outlook email. When you click on it and if firefox is already running, the link opens up in a new tab on an already running firefox browser. If firefox was not running, it starts a new firefox process.
    Hope this makes sense

  • I need a document open password to open a attachment from a email

    i need a document open password to open a attachment from a email

    Ask the author of the file for it...

  • How can I use an American credit card to pay for a membership from outside the US?

    How can I use an American credit card to pay for a membership from outside the US? My payment page is set up for Japanese credit cards. I can't change to the US store, because the "Select a Store" page just jumps to the "Products" page.
    Has anyone else had this problem? Any help would be much appreciated!

    Hi Batt5721,
    Welcome to Adobe Forums.
    The address and the country on the Credit Card should match the billing address then only payment would be possible.
    Thanks
    Garima

  • How to get the number of community members from outside the community

    Hi everyone.
    I need to know if there is any way to get the number of community members from outside the community, I mean, not using the "What's happening" webpart. I want to build up a page with a Webpart that summarize my three most visited communities indicating
    number of members, three last messages in the newsfeed, and number of posts in blog, wikis, document libraries, etc.
    Do I need statistics to get this kind of information? Should I use Sharepoint Object model instead?
    Here is an example of what I need:
    - Community name
    - Number of members
    - Community activity (messages, docs uploaded to library, etc)
    - Number of posts in calendar, blog, wiki that belongs to community
    Thank you all!

    Hi Thuan.
    Thanks for your answer but it does not help me because these communities are Sharepoint Communities not external sites so I need to get that information using SP object model and BCS in this case is useless.
    EDIT
    I found the solution using the search objects but I was only able to get members, discussions and replies
    using (ClientContext clientContext = new ClientContext("URL_OF_ENTERPRISE_SEARCH_CENTER"))
    KeywordQuery keywordQuery = new KeywordQuery(clientContext);
    keywordQuery.QueryText = "The_Name_of_the_Community WebTemplate:COMMUNITY";
    SearchExecutor searchExecutor = new SearchExecutor(clientContext);
    ClientResult<ResultTableCollection> results = searchExecutor.ExecuteQuery(keywordQuery);
    clientContext.ExecuteQuery();
    System.Collections.Generic.IDictionary<string, object> ret = null;
    foreach (System.Collections.Generic.Dictionary<string, object> resultRow in results.Value[0].ResultRows)
    Console.WriteLine("{0}: {1} ({2})", resultRow["CommunityMembersCount"], resultRow["CommunityTopicsCount"], resultRow["CommunitiyRepliesCount"]);
    This is a Console Application.
    I hope someone helps

  • Premiere Pro CC's sequence lost. Is there a way to "search" for it from outside the project?

    I seem to have lost a sequence created in Premiere Pro CC. I can't find it anywhere inside the Project bin.
    We have so many same-name, older projects (between Auto-Save, different drives and so on) that looking inside each of them would take forever.
    But we do know the name of the sequence. I am wondering  if there is a way to "search" for a sequence name from outside the project?
    Thanks

    there is a way to "search" for a sequence name outside of the project,
    but it would be a pointless waste of time.
    sequences are only saved within the project file itself!!
    We have so many same-name, older projects (between Auto-Save, different drives and so on) that looking inside each of them would take forever.
    better get at it then!
    hahahahahahahaha!!!

  • Can not access CRM from outside the office network - Access denied You do not have sufficient access rights or privileges to perform this action.

    Hi,
    I can not access CRM from outside the office network - Access denied You do not have sufficient access rights or privileges to perform this action.  I can access CRM with same user id and password from our office inside the network.  I can get
    the page to give login details once I have login details I got below error. Please help me to solve this issue.  It was working before.
    Access denied You do not have sufficient access rights or privileges to perform this action. 
    Regards,
    Noushad
    [email protected]

    On Premise system Configured with AD FS server for claims-based authentication you need to update your host file with server url to access it from outside office network.
    Refer
    this on how to update host file.
    Regards, Saad

  • Calling Options Team from outside the UK

    I am away on business and I need to call BT Options Team urgently due to a flood in my office back home. All numbers are 0800 numbers or go through to call waiting numbers with no idea how long it will take to get through. Having waited 45 minutes listening to the 'in a queue message' I had to hang up. Anyone know the correct number to call from outside the UK and how one can get through or email the team since there appears to be no one there.

    Hi daylight,
    Welcome to the forum.
    The Customer Options Team deals with cancellations so I'm not too sure how they can help if your premises are flooded, the Faults team might be a better team to speak to?
    I'll PM you their number (when calling from overseas) though if your account is a BT Business account the number will be different so I'll PM both.
    For future reference the BT Business Forum is at http://btb.lithium.com/t5/Forums/ct-p/forums
    Hope you get this sorted, I can only imagine how stressful this would be. You can also email in if you want, we'll need your BT account details and forum username sent to the email address registered against my profile.
    Thanks,
    Stephanie
    Stephanie
    BTCare Community Manager
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post. If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • How can I buy subtitled movies from outside the US?

    how can I buy subtitled movies from outside the US?

    People here are users, you need to contact Apple Inc. by phone and see if you can resolve this problem.
    http://support.apple.com/kb/he57

Maybe you are looking for

  • Installing ora8.1.5 on suse 6.2

    I am trying to install oracle 8.1.5 on suse 6.2. I have copied the CD. Than I applied the patch from suse. Than I applied the patch from oracle. Than I applied the the script genclntsh. Still I get error in loading shared libraries: libclntsh.so.8.0:

  • Error : Access not possible using "null" objects reference

    Hello. i am working with a zbapi. i called a external email program in this bapi,everything is working fine over here. In webdynpro java they mapped my bapi and starting working from there. every functionality is working fine but regarding this email

  • Qty  not updated in MMBE report

    Dear Experts, We have define one material (project material) type defined as Qty update and Value update, when i pass the MIGO value is updating but the qty is not updated in MMBE report, where as qty is showing in MB51. why the qty is not updated in

  • Connectivity between SAP ECC system and SAP BI

    Connectivity between SAP ECC system and SAP BI Hi BI-experts! I would like to load e.g. transaction data from SAP ECC system into SAP BI system. The Loading process is hanging in processing step u201CSERVICE APIu201D. The process  in hanging in statu

  • Flash movie interactive

    Hello, I imported a Flash movie (created in 8, saved in 6 to work with Captivate). It's a graphic of an engine with a list of engine parts on the left. The student needs to drag the engine part name to the engine part in the graphic. My question is: