Setting the welcome-file

i have a problem something like this...
i am setting my welcome-file im my web.xml to index.faces
but i got allways this error 404 that this site does not exist....
the stragne thing is that the massege says "/" could not found and not "index.faces" could mnot found:
HTTP Status 404 - /
type Status report
message /
description The requested resource (/) is not available.why is this happening?? i jhave index.faces file why it couldn't been found????
plz help
P.s.: if i set my welcome-file to onther xyz.html file...everything goes ok...

here's a sample of what I did to set my welcome file using tiles
edit struts-config and add these lines under <global-forwards>
<forward name="index" path="/.index.do" />index.do is defined under the action mappings and will be pointing to the definition name of the page i defined in tiles-def (.indexDef) as shown below:
then under the <action-mappings>
<action path="/index"
               type="org.apache.struts.actions.ForwardAction"
               parameter=".indexDef" /> in my tiles-def i have a base definition which all layouts extend and this is what .indexDef is:
<definition name=".indexDef" extends=".baseDef">
          <put name="title" value="..." />
          <put name="body" value="/WEB-INF/tiles/indexBody.jsp" />
     </definition> hope this helps. if you still can't do it, kindly post your struts-config, tiles-def files :D

Similar Messages

  • How to chage the welcome file in web.xml using creator?

    Hi guys,
    I want to set the welcome file in web.xml to index.html but every time I run my project in creator, creator replaces index.html by faces/index.jsp. I need the index.html to check if the browser enables cookies & javascript and then I redirect to index.jsp. If I change the web.xml in a common editor, build the war-file with ant and deploy the project with tomcat, everything is fine. but how can I change it in creator?
    thanks in advance

    Sorry, that doesn't make much sense.
    The XML you gave is a configuration file for txt2xml utility. It doesn't represent the output format.
    Are you a user of this utility?

  • How do I set the default file path for the Place command?

    I keep my graphics files for each document in a particular folder. Every time I open an existing InDesign document and place a new image I have to browse back to that location - even though all of the previous images in that document came from the same folder. InDesign does not remember the file path that was used previously in the document. This is very annoying.
    IS THERE A WAY TO SET THE DEFAULT FILE PATH, OR LOCATION, FOR IMAGE FILES?
    I have looked through the preferences, searched the forums and internet, but I have not found any reference to setting default paths. Is there a setting like the one in MS Word called "File Locations" on the Options toolbox?
    Thank you.

    Since you're working in ID on Windows, you can take advantage of a neat trick in Windows. Copy the file path out of the File Explorer address bar and paste it directly into the Place filename field. That will jump you directly to the desired volume. For example, let's say I want to place a graphic located at X:\PS Jobs\May PS\709672bp\Working Source Files\Links. I copy that entire path from the File Explorer address bar, go to InDesign, select File|Place, and press Control + V to paste that path into the filename field. I press the Open button and Shazam! I'm there instantly, without a bunch of navigation.
    You can do the same thing in the File|Save As and File|Export fields. Let's say you want export a PDF file from InDesign to the volume X:\PS Jobs\May PS\709672bp\Working PDF Files. First copy the desired file path from the File Explorer window. In InDesign, select File|Export, click anywhere in the filename field, and press the Home key to move the insertion point to the front of the filename. Press Control + V to paste that path in front of the filename, then add the backslash character (\). The filename will now look like this: X:\PS Jobs\May PS\709672bp\Working PDF Files\Filename.pdf. Press the Save button to bring up the Export Adobe PDF window. Select your desired PDF preset, press the Export button, and the PDF file will magically appear in the desired volume.
    This sounds really complicated, but it's not. In practice, it only takes a few seconds. I probably save an hour's worth of needless navigation every day with this technique.

  • Setting the UNIX file permissions after writing the file to a directory

    Hi Experts,
    Can we set the UNIX file permissions after writing the file to a directory using Receiver File Adpater in SAP PI 7.1 ?
    Thanks in Advance.
    Regards,
    Jyoti

    Hi
    you can use the option "Run Operatiing system Command after File Processing" in the file adapter.
    Thanks
    Rinku Gangwani

  • 8.1 EE can't find page and appends the welcome-file name to the url

    I have a problem where you enter a url that points to a static file in the xxxEar-WebModule_war directory. That is the "docroot" directory for the application. Somewhere along the line the welcome-file (index.html) is appended to the url. For example I enter http://server.com/app/file.xml and it gets changed to http://server.com/app/file.xml/index.html, which is not found.
    This was not a problem in 8.1 platform. Now that we upgraded to 8.1 enterprise it is a problem.
    All urls that are mapped to servlets work fine. I just can't seem to access static content.
    Thanks!

    select l.group#, f.member, l.sequence#, l.status, f.status
    from v$log l, v$logfile f
    where l.group#=f.group#
    order by 1;
    GROUP#
    MEMBER
    SEQUENCE# STATUS STATUS
    1
    D:\ORACLE\ORADATA\DBMAG98\LOG1.RDO
    41002 INACTIVE STALE
    2
    D:\ORACLE\ORADATA\DBMAG98\LOG2.RDO
    41003 INACTIVE
    GROUP#
    MEMBER
    SEQUENCE# STATUS STATUS
    3
    D:\ORACLE\ORADATA\DBMAG98\LOG3.RDO
    41004 CURRENT STALE
    sorry for inconvenient view

  • Set The Secured Files, Not allow printing and saving to another location

    Dear Sir / Madam,
    Please help...
    Possible to set the security permission for share files, not allow end users to printing and saving a PDF to another location.
    Thanks,
    Alex Tai

    Hi Alex,
    Possible to set the security permission for share files, not allow end users to printing and saving a PDF to another location.
    Based on my tests, users can save the document with only Read permission, which is by design. If you don’t want users to print files, please do not give the print permissions on printers.
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How can I auto export a PDF File using the "Smallest File Size" preset and set the Exported File Name based on information from an Imported PDF?

    Greetings all,
    I am trying to create a script to automate a PDF export process for my company for inDesign. I’m fairly new to inDesign itself and have no previous experience with javascript, although I did take C++ in high school and have found it helpful in putting this code together.
    We have an inDesign template file and then use the Multi-page PDF importer script to import PDF files. We then have to export two version of each file that we import, then delete the imported file and all of the pages to reset the template. This has to be done for nearly 1000 pdf files each month and is quite tedious. I’m working on automating the process as much as possible. I’ve managed to piece together code that will cleanup the file much quicker and am now trying to automate the PDF exports themselves.
    The files are sent to us as “TRUGLY#####_Client” and need to be exported as “POP#####_Client_Date-Range_North/South.pdf”
    For example, TRUGLY12345_Client needs to be exported as POP12345_Client_Mar01-Mar31_North and POP12345_Client_Mar01-Mar31_South.
    There are two templates built into the template file for the north and south file that are toggled easily via layer visibility switches. I need to get a code that can ideally read the #s from the imported Trugly file as well as the Client and input those into variables to use when exporting. The date range is found in the same place in the top right of each pdf file. I am not sure if this can be read somehow or if it will have to be input manually. I can put North or South into the file name based on which template layer is visible.
    I am not sure how to go about doing this. I did find the following code for exporting to PDF with preset but it requires me to select a preset and then type the full file name. How can I set it to automatically use the “Smallest File Size” preset without prompting me to choose and then automatically input some or preferably all of the file name automatically? (If the entire filename is possible then I don’t even want a prompt to appear so it will be fully automated!)
    PDF Export Code (Originally from here: Simple PDF Export with Preset selection | IndiSnip [InDesign® Snippets]):
    var myPresets = app.pdfExportPresets.everyItem().name;
    myPresets.unshift("- Select Preset -");
    var myWin = new Window('dialog', 'PDF Export Presets');
    myWin.orientation = 'row';
    with(myWin){
        myWin.sText = add('statictext', undefined, 'Select PDF Export preset:');
        myWin.myPDFExport = add('dropdownlist',undefined,undefined,{items:myPresets});
        myWin.myPDFExport.selection = 0;
        myWin.btnOK = add('button', undefined, 'OK');
    myWin.center();
    var myWindow = myWin.show();
    if(myWindow == true && myWin.myPDFExport.selection.index != 0){
        var myPreset = app.pdfExportPresets.item(String(myWin.myPDFExport.selection));
        myFile = File(File.saveDialog("Save file with preset: " + myPreset.name,"PDF files: *.pdf"));
        if(myFile != null){
            app.activeDocument.exportFile(ExportFormat.PDF_TYPE, myFile, false, myPreset);
        }else{
            alert("No File selected");
    }else{
        alert("No PDF Preset selected");
    So far my code does the following:
    1) Runs the Multi-Page PDF Import Script
    2) Runs PDF Export Script Above
    3) Toggles the Template
    4) Runs #2 Again
    5) Deletes the imported PDF and all pages and toggles template again.
    It’s close and much better than the original process which was almost 100% manual but I’d like to remove the Preset prompt from the PDF script and have it automatically select the “Smallest File Size” preset. and then if there’s a way to have it auto-fill in the file name so no user input is required at all other than selecting each file to import. (If there’s a way to setup a batch action for the multi-import script that would be even better!)
    Thanks in advance and if there’s anything else I can provide that would help please let me know! Even a nudge in the right direction will be a big help!

    If you hold down the option key, it will typically show the location. Or you can often hit option-return on the file and it will reveal the file in the Finder, instead of opening it.
    Final option is to open it, and just option-click the filename in the toolbar of Preview and it should show you the location.
    It's probably an attachment to an email you've received. If you have Mail set to cache emails and their attachments it'll be stashed in a subdirectory of ~/Library/Mail. Which is fine.

  • How do you dynamically set the flat file name

    Within my process flow I call a mapping. Within this mapping I have a flat file operator (which creates and writes to a .csv file). All working great.
    From this process flow I want to be able to pass a parameter to the mapping (which I can do), and use the value of this parameter as the file name of the .csv file. But I can’t seem to be able to dynamically set the ‘Default physical file name’ to this parameter value within the mapping.
    Does anyone have any ideas?
    Thanks
    Ansel

    Hi Ansel
    Check out the blog entry here;
    http://blogs.oracle.com/warehousebuilder/newsItems/viewFullItem$154
    You can use an expression.
    Cheers
    David

  • How do you set the default file manager in kde?

    I'd like to set dolphin as the default file manager in KDE, how would I go about doing that?  I have an installed working copy of dolphin on my comp right now.

    pressh wrote:
    associate dolphin as default for directories in control center.
    kde components -> file associations -> inode -> directory
    Thanks, but for some reason when I go in there and change it as a user, it doesn't save the setting, and it doesn't work.  However, when I do the same thing as root it works, but of course, it only works for root then.
    pressh wrote:
    grizz wrote:but, it's several months waiting
    and dolphin is nice
    actually i think konqueror is more powerfull in kde3. However, the dolphin version in kde4 trunk is shaping up nice and looks promising.
    Dolphin is a little bit less cluttered, and seems to be faster too.  Most of the features in konquerer I never use.

  • How to set the default file name for upload

    Hi All,
    I have the following BSP app for a file upload of a csv file. I want the page when displayed show the default file name to be loaded as c:\db1\currentPM.csv
    What changes do I need to make to get the default file name in the BSP app.
    Thanks
    Karen
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content id               = "content"
                   design           = "classicdesign2002design2003"
                   controlRendering = "sap"
                   rtlAutoSwitch    = "true" >
      <htmlb:page title="File Upload " >
        <htmlb:form method       = "post"
                    encodingType = "multipart/form-data">
              <htmlb:textView text   = "File:"
                              design = "STANDARD" />
              <htmlb:fileUpload id          = "uploadID"
                                onUpload    = "UploadFile"
                                upload_text ="Upload"/>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    On Input Processing
    event handler for checking and processing user input and
    for defining navigation
    DATA: EVENT TYPE REF TO IF_HTMLB_DATA,
          DATA TYPE REF TO CL_HTMLB_FILEUPLOAD,
          LV_OUTPUT_LENGTH TYPE I,
          LV_TEXT_BUFFER TYPE STRING,
          FILE_NAME TYPE STRING,
          FILE_PATH TYPE STRING ,
          INTERN TYPE TABLE OF  ZALSMEX_TABLINE.
    DATA: LT_BINARY_TAB TYPE TABLE OF SDOKCNTBIN .
    TYPES: BEGIN OF TY_TAB,
           FIELD1(2) TYPE C,
           FIELD2(2) TYPE C,
           FIELD3(2) TYPE C,
           FIELD4(2) TYPE C,
           FIELD5(2) TYPE C,
           END OF TY_TAB.
    DATA:  WA_TAB TYPE TY_TAB,
           IT_TAB TYPE TABLE OF TY_TAB.
    TYPES: BEGIN OF TY_LINE,
              LINE(255) TYPE C,
           END OF TY_LINE.
    DATA:  WA_LINE TYPE TY_LINE,
           IT_LINE TYPE TABLE OF TY_LINE.
    EVENT = CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
    IF EVENT IS NOT INITIAL AND EVENT->EVENT_NAME = HTMLB_EVENTS=>FILEUPLOAD.
      DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = RUNTIME->SERVER->REQUEST NAME = 'fileUpload' ID = 'uploadID' ).
      FILE_NAME = DATA->FILE_NAME.
      FILE_PATH = FILE_NAME.
      IF DATA IS NOT INITIAL.
        CALL FUNCTION'SCMS_XSTRING_TO_BINARY'
         EXPORTING BUFFER = DATA->FILE_CONTENT
         IMPORTING OUTPUT_LENGTH = LV_OUTPUT_LENGTH
         TABLES BINARY_TAB = LT_BINARY_TAB .
        CALL FUNCTION'SCMS_BINARY_TO_STRING'
        EXPORTING INPUT_LENGTH = LV_OUTPUT_LENGTH
         IMPORTING TEXT_BUFFER = LV_TEXT_BUFFER
         TABLES
         BINARY_TAB = LT_BINARY_TAB.
        IF SY-SUBRC = 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        SPLIT LV_TEXT_BUFFER AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE IT_LINE.
        IF SY-SUBRC = 0.
          LOOP AT IT_LINE INTO WA_LINE.
           SPLIT WA_LINE AT CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB
            split wa_line at ','
            INTO WA_TAB-FIELD1 WA_TAB-FIELD2 WA_TAB-FIELD3 WA_TAB-FIELD4 WA_TAB-FIELD5.
            append wa_tab to it_tab.
          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDIF.

    Also, I missed another point.
    In the folder c:\dbdata I have a number of CSV files on the user frontend. I would like the BSP application to get the list of files in the folder and process them one after the other. How can I get the list of files on the folder in the user PC and how to process them one after the other.
    I want the form to display only the default folder and once I press on upload it must process all files and display the status of processing on the same page.
    Please kindly share ideas how I can implement this app.
    Thanks
    Karen

  • Photo elements wants to open last used dir location. When it doesn't exist or cannot access, it fails to open.  How do you set the default file location?

    Upset!!!
    Photo elements wants to open at the last used folder location. When it does not exist or unable to open that location. It FAILS to OPEN.
    Does not seem to be a way to set a default location or to change the location.
    VERY ANNOYING.
    How do you tell photo elements to always go to a set location rather than the last used location?
    Thank you

    Hi,
    I did a test as you suggested - open an image on a removable drive, close the editor and took the removable offline. When I next went to the editor, it opened OK.
    From the screen shot in message #5 above, I think that the fault is with SolidWorks. I am not familiar with that product but it seems to be a form of asset management and it can't open its database - is that on the removable?
    Normally, the editor does not open any files when it loads except for it program files and any addins. Could SolidWorks be an addin?
    See if this works to reset the preferences.
    Create a desktop shortcut for this file
    "C:\Program Files (x86)\Adobe\Photoshop Elements 10\PhotoshopElementsEditor.exe"
    Hold down the Ctrl, Shift & Alt keys when you double click on the shortcut. Keep the keys held down and eventually a message box will pop up asking if you want to reset the preferences - you do.
    Brian

  • PowerShell Script for Setting the Welcome Page View of a document set

    Hi,
    We are using document set in the document library and we have created the separate view in the document set and it will show only particular metadata columns. We need to change from default view to another view. For this, we need to write the power shell
    script and update the document set welcome page view link in the document set template. Please let me know how we can get this.
    Thanks,
    Mylsamy

    Hey Mylsamy,
    welcome page view is stored in $contenttype.XmlDocuments. Here is how you can change the view using powershell:
    $web = Get-SPWeb "WEBURL"
    $list = $web.Lists["LISTNAME"]
    $contenttype = $list.ContentTypes["CONTENTYPENAME"]
    $viewid = $list.Views["VIEWNAME"].Id
    $xmldocs = $contenttype.XmlDocuments
    foreach($xmldoc in $xmldocs)
    if($xmldoc.Contains("WelcomePageView"))
    Write-Host "XML contains WPV"
    $newview = [XML] @"
    <wpv:WelcomePageView xmlns:wpv="http://schemas.microsoft.com/office/documentsets/welcomepageview" ViewId="$viewid" />
    $xmldocs.Delete("http://schemas.microsoft.com/office/documentsets/welcomepageview")
    $xmldocs.Add($newview)
    break;
    $contenttype.Update($updateChildren, $false)
    Write-Host "Welcome Page View updated at " $list.Title
    Regards,
    Alexander 

  • Interactive Form Element 7.1:  How can I set the default file name?

    I am using Interactive Form Element with 7.1 to display a pdf.  When one clicks the save button in Adobe's toolbar, the dialog defaults the file name to "F.pdf".  Is there a way to default this to a different value?

    Making customisation from the default profile is generally considered poor practice and quite often doesn't work out as planned. (If you're interested in some more information on this, [http://mockbox.net/windows-7/227-customise-windows-7-default-profile.html see here] see here)
    This article should help you with developing and deploying your customised Firefox 4 installation (without touching the Windows 7 default user profile):
    http://mockbox.net/configmgr-sccm/174-install-and-configure-firefox-silently.html

  • How to set the default file transfer location for ...

    With the latest update from skype for Windows Desktop Skype version 6.22.81.104. I am unable to find the settings for Default file transfer location, Let me know how can i manage those settings.
    Solved!
    Go to Solution.

    http://community.skype.com/t5/Windows-desktop-client/Got-a-problem-when-download-some-files-from-Sky...

  • I would like to programatically make settings on the SCXI 1520 Strain Gauge module. From MAX, I see that you can set the Gain, Fil

    ter cutoff freq, Voltage Exc, and Bridge Config. And from the LabVIEW help for AI Parameter, that these correspond to parameters 13,14, 17 and ?. Bridge Configuration is not listed. Which parameter is used to set this? Is there an example VI available?

    Hi Frank -
    Looks like Michael's post from 2001 is no longer current.  Let's update the list of resources available for this module.
    You can find the user manual for anything at ni.com/manuals.  The manual for the SCXI-1520 is currently here.
    If you're programming in LabVIEW, you can find example programs for this device in the Example Finder.  (Click Help » Find Examples to open it.)  I recommending filtering by your hardware.  To do so, click the Hardware list in the bottom-left of the window and select "Add device".  After adding the SCXI-1520, select it from the list and check the Limit results to hardware box.  This will filter our examples down to the ones that work with your device.  They'll probably all be in the "Hardware Input and Output » Analog Measurements » Strain" folder.
    You can also search Support for the 1520 to see KnowledgeBase articles on it.
    And you can search the Developer Zone for additional example programs or whitepapers/app notes on this device.
    David Staab, CLA
    Staff Systems Engineer
    National Instruments

Maybe you are looking for

  • Drop calls at our home in The Villages, Fl

    Recently relocated from one home to another in the Villages, Fl and seems our cell phone get drop calls and people saying they can't hear us...if we go outside it doesn't seem to happen as often..I called Verizon and they recently told me to hit ###

  • What should I do I can't download itunes

    I am trying to download any one of the itunes software or whatever it's called and it takes me to the thank you for downloading screen but nothig downloads what should i do to fix this?????

  • Client Side Operating System Commands

    Hello, I need to invoke client side operating system commands or batch executables (e.g. test.bat) with the help of Java stored procedures and PL/SQL written in database server. My database is Oracle 10g and installed on UNIX platform, and I am tryin

  • The text in my toolbars is too big?

    The text on the toolbars at the top of the screen are too big. It causes the toolbar to take up too much space. Is there anyway to shrink the text?

  • Need help on flex3- Click events

    Hello, I have created a loosly coupled presentation layer using c# and flex. The previous project was in visual studio. It was tightly coupled layer. The present application is loosly coupled. I have chosen flex as a presentation layer,c# as a busine