Storing output file created by web application in specific folder

Hi Friends,
I am creating a text file through my web Application which is on JBoss and I have to read this file in the JSP to print the out put.
My problem is, the text file has been created in JBoss/bin, I want it to be created in my project folder.
Can some one please guide me in specifying the path to place the file.
Thanks in advance.
Preeti

I want to add one more sentence to my previous message:
I can do this by specifying absolute path but I want to specify this path in my web.xml. which tags should I add to web.xml ?
Thanks,
Preeti

Similar Messages

  • How to create and save a file in flex web application ?

    Hi,
          I want to create and save a file form flex web application. Is it possible ?
    I have done some googling and found that its only possible through file referece, which needs some serverside implementation be called.
    Is it not possible with file reference to create and save file directly ?
    Can any one suggest how to over come this.
    Thanks in advance.

    Alex,
    code written with the Flex Builder 3 libraries will certainly run in Flash Player 10. However, what you need is not so much the capabilities of FP10 but the library functionalities of the Flex 4 package. And I think that Flex 4 code will only run in FP10 and not 9 (but haven't tested this as at work we have not yet been permitted to upgrade, so there is not a lot of point going for Flex 4!).
    Richard

  • Error in Creating New Web Application SharePoint 2013

    Everything was working fine but today when i try to create  a new web application i am getting the following error.It's happening whenever i am trying to create a new web application.
    The directory C:\inetpub\wwwroot\wss\VirtualDirectories\26060 is already being used by another IIS Web Site.  Choose a different root directory for your new Web application. 
    But this port 26060 was not being used before and if i try to create new web application again then the error message occurs with the port number of the new web application. 
    Please help.

    Hi HelloFragrance,
    Are you using a host header when creating these web apps? If so have you tried creating without a host header? Also are you logged in with the Server with the Admin account? Check this out: (taken from Jeremy Taylor's
    blog)
    " 1. Ensure you have a proper dns name / entry in the hosts file of your server for the new url you are wanting to create.
    2. Ensure you have typed in the ‘host header’ typed in when creating the new web application.
    3. If this doesnt work, open IIS Manager – Start>run> inetmgr> and verify the home directory – it could be located on a different drive."
    Also have you tried creating through Powershell and see if you run into the same issue or not?
    http://technet.microsoft.com/en-us/library/ff607931(v=office.15).aspx
    Hope this helps!
    Thanks!
    BlueSky2010
    Please help and appreciate others by using forum features: "Propose As Answer", "Vote As Helpful" and
    "Mark As Answer"

  • Runtime error and unable to create new web application

    Hi
    when i create new web application i faced this error Runtime error and unable to create new web application.
    in this farm we have
    2 wfe servers
    2 application servers.
    adil

    Adil,
    There could be many reason like IIS issue, Space issue, Permission issue, SQL issue which is not possible us to guess rather
    you need to jump in the SharePoint log(Program Files\Common files\Microsoft Shared\Web Server Extensions\14\LOGS) and find out the specific error log its throwing after which trouble shoot can be start.
    You can refer few similar threads here -
    Link
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • File Class in Web Applications

    Hallo, i am creating a web Application but i need to know the fullpath of a file. I see that in the web based application i can call that FileReference class but with this class i can only get the name of a file and not the fullname. I can do this with the File Class which is avaible in Air Applications. How can i do it with my FlashPlayer application??....
    Thanks for all
    Max

    You can't get that with FileReference on the web (Security reasons). It was
    possible to get it with an HTML form and Javascript but I am not sure Firefox 3
    is still delivering the full path. Also not sure it works in all the browsers.
    C

  • Opening a PPT file from a Web Application

    Hi,
    I want to open a PPT file from my web application.
    I have provided an hyperlink of the complete path of the file. Once the user clicks on this hyperlink the PPT shall open.
    Kindly help me out with this.
    Thanks.

    Sounds like you're done. What happens when the user clicks the link?

  • Storing .jsp files in the web-inf directory

    Has anyone ever heard about storing JSP files in the web-inf directory instead of the web app root directory.
    Apparently it improves security.
    If this is so, how is the user suppose to access the jsp file since I thought that users were not able to access what is stored in the web-inf directory.
    Any thoughts
    Thanks
    Nat

    I didn't tyr this but I think it is possible. You can do it using <servlet-mapping/> as you do with any other servlet.
    For example include lines below, in web.xml of web-inf,
    <servlet>
    <servlet-name>ReportRouter</servlet-name>
    <jsp-file>/web-inf/jsp/ReportRouter.jsp</jsp-file>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>ReportRouter</servlet-name>
    <url-pattern>/myrouter</url-pattern>
    </servlet-mapping>
    This may work. Don't you think so?
    Sudha

  • How to install a war file as a Web Application Bundle (WAB) in CQ 5.5?

    How to install a war file as a Web Application Bundle (WAB) using CQSE and embedded OSGi Felix container? OSGi R4.2 specification specified Web application bundles which allows deploying war files as WABs insie OSGi containers. How do we do this in Felix container embedded in CQ 5.5?

    i m sorry, i intentionally wanted to post it in EJB forum, mistakenly i posted it in Servlets forum, anyways, if anyone of u know the ans, plz share it with me too.
    Thanx
    Nisha

  • Can any body tell where i have to place the mdb file in the web application

    Hi
    I am doing a web application in NetBeans 5.0 and using MSAccess (*.mdb ) file as a backend, so now where i have to place this mdb file in this web application in NetBeans. and tell me the code how to connect to that mdb file.
    The mdb file name is "db.mdb" and i am using a jsp page through which a servlet will be communicated. in servlet i am not able to connect to this mdb file.
    Reply asap.
    Sasi .

    DrClap wrote:
    duffymo wrote:
    Then I'd put it in my CLASSPATH. Maybe WEB-INF/classes.I'm not sure that I like the idea of the database being inside the web application's context. When you deploy a new version of the application, wouldn't that be a problem? My answer to "Where do I place the MDB in the web application" would be "Anywhere but there".DrClap, I'm embarrassed to read this, because you're only too correct. Thanks for the correction.
    When you think about it, your advice makes a great deal more sense. Any database BUT Access would be on a separate server (e.g., Oracle, MySQL, SQL Server, etc.) Why wouldn't that be a good idea for Access, too?
    On the other hand if it's a read-only database that would be different.You're too gracious to leave me this out. I throw myself on the mercy of the court for being a dumb ass. 8)
    %

  • Powershell script for creating SSL web application

    Hello,
    I am trying to create SSL web application in Sharepoint 2010 using power shell and I am using the below script.
    $WebApp = New-SPWebApplication -ErrorAction SilentlyContinue -Name $WebApplicationName -url $WebApplicationUrl -port $WebApplicationPort
    -ApplicationPool $AppPool.Name -ApplicationPoolAccount $AppPoolManagedAccount.Username -AuthenticationProvider $AuthProvider -DatabaseName
    $ContentDatabaseName
    -SecureSocketsLayer
    The web application gets created and when I try to create a site collection and access it, the page is inaccessible.
    So I tried to bind the url to a new certificate from inetmgr and site collection still doesnt show up.
    I tried manually through central admin and everything worked well including the binding to SSL.
    Is there anything wrong with script, if yes what more do I need to add into this?
    Thanks.

    The issue is solved, the problem was that the parameter -URL shouldn't be any random url but it should be
    https://yourservername/ and then configure the binding to a self-signed certificate.
    So John I think the command rather should be
    New-SPWebApplication -Name "Contoso Internet Site" -URL "https://yourservername"  -Port 80 -ApplicationPool "ContosoAppPool"                                                           
     than                                                                                                                                                         
    New-SPWebApplication -Name "Contoso Internet Site" -URL "https://www.contoso.com"  -Port 80 -ApplicationPool "ContosoAppPool"

  • Run a .sh file via a web application

    Hi,
    How can I run a .sh file via a web application? I want to start and stop a service in linux via a web app.

    a service in linux In Unix (including Linux) they are called rather daemons.
    Anyway, usually appropriate (root) privileges are needed to start/stop a dameon and a web application should not run as root.
    So be prepared that ome "sudo" magic might be needed.

  • Configure Log File for each web application deployed in weblogic server usi

    Hi All,
    How do I configure Log4J to log separately for each web application? i.e. Assuming, I have a web application "AWeb" and a web application "BWeb". I need a log file to be created for AWeb Separately and BWeb Separately. i.e. All the log information for "AWeb" web application will be stored in AWeb.log and all the "BWeb" web application will be stored in BWeb.log
    Do you have any sample code and configuration details for the above-mentioned requirement?
    Thanks in Advance,
    C R Baradwaj

    You do not need to do anything strange, just use log4j the usual way with the exception that you do not need to init log4j (this is not necesary when using a log4j.xml.)
    A minimal sample of a log4j.xml is
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
    <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
    <layout class="org.apache.log4j.SimpleLayout"/>
    </appender>
    <root>
    <priority value ="debug" />
    <appender-ref ref="ConsoleAppender"/>
    </root>
    </log4j:configuration>
    You just have to be sure that you have different log4j.xml in your classpath for different web applications.
    Regards,
    LG

  • How to use multiple configuration files in a web Application

    Hi,
    I am using JDev 11 TP3,JBoss4.2.1,Trindad 1.2.4.
    In my project I have to use a set of (Login) pages over several other projects.
    So I stored those pages (& backing beans) at an external location.
    Now while editing the deployment profile of the web application I included the login pages from external location using "Contributors".
    This way I was able to bring all the resources in the war. But the Faces-config.xml which contains the managed-bean registration of the login pages does not get included.
    1. Either I could change the name of the external faces-config and register it in the current project by includeing it. OR
    2. I could mention the managed-bean info in the current project's faces-config.
    I want to use option 1.
    How may I do it??

    Hi,
    if you package the managed beans in JAR files and add the faces-config.xml in the META-INF directory of it then it automatically registers at runtime
    Frank

  • Tomcat 5.X and creating a Web Application

    To all,
    I've tried to add a new web application to the Tomcat 5.0.X (It is a bundled download with NetBeans, since I can't use Struts directly from the NetBeans IDE, I'm just using the Tomcat to act as the Web App Server)
    My procedures are like this:
    1) create a folder (eg. Struts_Trial) under the Catalina_Home\webapps
    2) add an index.jsp (no xml config files are added by now)
    3) re-start the Tomcat
    4) try to access the web app in a browser (eg. http://localhost:8080/Struts_Trial/index.jsp)
    5) it fails and list out "404 requested resource is not available"
    I remember that adding a new web app is really that simple, but now it seems to be a bit different and I can't figure it out what's wrong or missing (except missing the xml config files)
    From Jason (Kusanaghk)

    If you:
    1) create a folder (eg. Struts_Trial) under the Catalina_Home\webapps
    2) add an index.jsp
    You then need to add a folder called WEB-INF in webapps/Struts_Trial/
    In here put a file called web.xml that looks like:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
      <display-name>Test</display-name>
      <description>
         Test
      </description>
      <welcome-file-list>
        <welcome-file/>
      </welcome-file-list> 
    </web-app>Now restart tomcat and you should be able to access the page by going to:
    http://localhost:8080/Struts_Trial/index.jsp
    (if you are running tomcat on port 8080)

  • Create a  Web application by NetBeans

    after I creat a samply WEb application under NetBean , how can I move it to Tomcat and when I start my tomcat I can see my WEB APPLICATION?
    tHANK YOU

    HJava wrote:
    under net bean , I click deploy a project and get war file , I copy the war file to tomcat /webapps restart the tomcat, I can see the project on localhost/Hello/index.jsp
    but under tomcat/webapps the war file did not get extracts,
    is suppose like that?So it's working, but not extracting the WAR file? I don't think that's the default setting, but you can configure Tomcat to work that way, if I remember correctly.

Maybe you are looking for

  • Macbook air stream on tv via apple tv

    Hello, I have an apple macbook air and apple tv. Does anybody know how to stream the view of the macbook to my tv via apple tv. With ipad and iphone this is possible. Thanks a lot in advance

  • Adobe Acrobat XI Pro on cloned PCs

    We have this problem: We installed Acrobat XI Pro on our master-pc using the serial-number of our volume-license and started it, everything seemed to be ok, then we cloned the pc, changed the the IP-address and hostname on the new, cloned pc. All the

  • String properties

    String cat = name.substring(0, name.lastIndexOf('\\')); String cat1 = cat.substring(cat.lastIndexOf('\\')+1)); Can anyone explain to be the difference between the 2? thanks.

  • Business rules and validation at view level?

    Hello, I was hoping to be able to do attribute validation at view level but I could not find this option and I would need to help to determine how to achieve this. I have a view based on several entities. That view include a updatable entity and othe

  • Create database link not working..

    sir, i have created a database link using the following statement. create database link orcl.vishnu.com; but when i tried to insert the data it i get ora-02019 connect description for remote database not found.. on both the database i have the same l