Assigning logical name to welcome file

Hi,
I created adf-fusion web application and url is something like
http://127.0.0.1:7101/OppeViewController-context-root/faces/pages/org/test/pages/welcome.jspx
Can it be given some more logical name just like in struts so that user doesn't know the actual location of my jspx file
something like
http://www.myDomin.com/login.action
Edited by: 899404 on Mar 10, 2012 7:05 AM

Hi,
trying creating the servlet that redirects the user to loginpage,and you can also assign some 'FANCY' url pattern to servlet
following code can help..
public class Login extends HttpServlet {
    public void doGet(HttpServletRequest request,
                      HttpServletResponse response) throws ServletException,
                                                           IOException {
            response.sendRedirect(getServletContext().getContextPath() +
                                  "/faces/login.jspx&" +
                                  request.getQueryString());
  }

Similar Messages

  • Assign the name of a file and its extension when using DESTYPE=MAIL

    Hello,
    I've developed a report running Oracle Reports 10g that is being emailed to a user. I would like to specify the name of the file and it's extension that is attached. Are there variables or parameters in Oracle Reports that I can use to accomplish this?
    It looks like by default that the file name is using the Name value found in the Property Inspector for the report. I have not been able to find a way to re-assign this value with a value from either the input or select values in the data model.
    Will Oracle Reports 10g allow me to define the name of the file and the extension?
    Any help or direction would be greatly appreciated.
    Thanks in advance
    Jesse
    Message was edited by:
    Sutherland

    Thank you for the quick reply and information. I almost thought you had solved my problem until I found out that distribution and bursting do not support delimited and spreadsheet output. One of the two files I need to email has a desformat of SPREADSHEET.
    Is there any other way to manipulate the file name and extension when using destype of MAIL?

  • Side effect of SQl server upgrade from 2008 R2 to Server 2012, logical name of log file changed for one database

    I came to know that name has changed when I tried to shrink the file. Here is the error message I got:
    Shrink failed for LogFile "Tfs_TESTTFS_Log'. (Microsoft.SqlServer.Smo)
    Additonal information
    An exception occured while executing a Transact-SQL statement or batch.
    (Microsoft.SqlServer.COnnectionInfo)
    Could not locate file 'Tfs_TESTTFS_Log' for database 'Tfs_TESTTFS' in sys.database_files. The file 
    either does not exist, or was dropped. (Microsoft Sql Server, Error: 8995)
    This is test environment upgrade and I checked on production environment which is still on SQL 2008R2, shrink works fine.
    Please help.

    I did in place Upgrade.
    Before Upgrade
    Logical Names
    Database Name: Tfs_TESTTFS
    Database Log: Tfs_TESTTFS_Log
    After Upgrade
    Logical Names
    Database Name: Tfs_TESTTFS
    Database Log: TfsVersionControl_Log
    Thx

  • Logical name to physical file mapping

    We want to have logical URLs for images (or other file types). We do not
    want to expose physical location where the files are stored to the user.
    Other web servers have APIs for this (NSAPI and MSAPI have provision for
    this). I was wonderinf if someone knows how to achieve this with weblogic
    (as web server).
    Thanks,
    -Ajay

    How does this work? You can specify a given resource type and it will
    locate it in the directory tree automatically?
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "Ajay Nandanwar" <[email protected]> wrote in message
    news:3998ddb0$[email protected]..
    >
    We want to have logical URLs for images (or other file types). We do not
    want to expose physical location where the files are stored to the user.
    Other web servers have APIs for this (NSAPI and MSAPI have provision for
    this). I was wonderinf if someone knows how to achieve this with weblogic
    (as web server).
    Thanks,
    -Ajay

  • Assign new name to root file using root properties

    Hello There, 
    I ve, 
    Current File name = Test1.tdms
    which has Properties such as :
         1. Lab = 123
         2. Load = Heavy
         3. Machine = 5
         4.Method = Fast
         5.Run = 2
    my required New File name = concatenate of specified root properties spaced with underscore followed by the extension.tdms
    i.e 
    New File name = concatenate [Data.Root.Properties("Lab"),Data.Root.Properties(​"Load"),Data.Root.Properties("Machine"),Data.Root.​Properties("Method"),Data.Root.Properties("Run")] each property seperated by "_"
    New File name = 123_Heavy_5_Fast_2.tdms
    I need to perform this for multiple tdms files.
    I ve attached a sample file
    Please guide me thru this scripting process
    Attachments:
    Test1.tdms ‏1 KB

    Thanks Sam,
    This is how I approached it, let me know if you have any better way to do it. (refer attachement Test1.tdms from previous post)
    dim a,b,c,d,e, newname
    a=Data.Root.Properties("Lab").Value
    b=Data.Root.Properties("Load").Value
    c=Data.Root.Properties("Machine").Value
    d=Data.Root.Properties("Method").Value
    e=Data.Root.Properties("Run").Value
    newname=a+"_"+b+"_"+c+"_"+d+"_"+e
    Call DataFileSave(newname,"TDMS")
    Ques 1 : When I use 'DataFileRename' it provides this error ---- >  Operating system error :"-2"
    Ques2 : I would like to keep certain length of my current file name and replace the rest with customized name
    eg: current name = LR1634240_U4_Double_Loop_12_C_150331_154739.tdms
           newname = newname + _150331_154739.tdms
           The first part of the name is customized based on the above aproach
           The value of second part after '+' is unique to the file but the format of the second part is common for all other files.
    How to perform this action.
    Thanks
    Arun

  • Can you assign field values as the file name

    When filling fillable pdf forms I would like to assign the name of the file (automate a Save As) to field values. 

    Place a regular button on the form and write the below code in the click event of button:
    app.execMenuItem("SaveAs");
    Thanks,
    Vipin

  • Why is the name of java file is same as public class?

    hello friends
    why we need to assign same name to .java file as the name of public class in .java file? while its not necessary for the class having no modifier?

    This question has been asked several times. Serch the forum.
    x

  • Servlet as a welcome file: is it a myth?

    Hello
    There are many articles on the web that espouse that Servets 2.4 allow for a servlet to be specified as a welcome file thusly (taken from OnJava.com):
    First, register the servlet in web.xml.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi=
    "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=
    "http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
    <servlet>
    <servlet-name>MyServlet</servlet-name.
    <servlet-class>com.jspservletcookbook.MyServlet</servlet-class>
    </servlet>
    <!-- optionally map the 'MyServlet' servlet to a URL pattern -->
    <servlet-mapping>
    <servlet-name>MyServlet</servlet-name>
    <url-pattern>/myservlet</url-pattern>
    </servlet-mapping>
    <!-- rest of web.xml ... -->
    Then create a welcome-file element in web.xml that specifies the registered servlet name.
    <welcome-file-list>
    <welcome-file>MyServlet</welcome-file>
    <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    Make sure to use the servlet name in the welcome-file element without a forward slash (/) preceding it.
    Poppycock I say. At least it's not working for me with either Tomcat 5 or Tomcat 5.5. Has anyone out there ever seen this work on Tomcat?

    It most certainly is possible now, but wasn't until rather late in TC 5.0.xx series I believe (5.0.18 or so?). You can chack the change logs to id exactly when...
    But the reason it isn't working for you is you have to match the value in your <welcome-file> to the URL in the servlet's <url-pattern> servlet mapping. So your web XML should look like this:
    <servlet>
      <servlet-name>MyServlet</servlet-name.
      <servlet-class>com.jspservletcookbook.MyServlet</servlet-class>
    </servlet>
    <servlet-mapping>
      <servlet-name>MyServlet</servlet-name>
      <url-pattern>/myservlet</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
      <welcome-file>myservlet</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>Your porblem was case. Your url-pattern had lower case, but the welcome-file had upper case letters like the servlet name.
    Here is an example app that I tested and worked:
    //The servlet:
    package net.thelukes.steven;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class WelcomeServlet extends HttpServlet {
         public void doGet(HttpServletRequest request, HttpServletResponse response)
           throws ServletException, IOException {
              PrintWriter out = response.getWriter();
              out.println("Hello World");
              out.flush();
              out.close();
    //the web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4"
             xmlns="http://java.sun.com/xml/ns/j2ee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
                                 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
         <display-name>WTPTest</display-name>
         <servlet>
              <servlet-name>Welcome</servlet-name>
              <servlet-class>net.thelukes.steven.WelcomeServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>Welcome</servlet-name>
              <url-pattern>/welcome</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>welcome</welcome-file>
         </welcome-file-list>
    </web-app>
    //The address I typed (the web app is names WTPTest
    http://localhost:8080/WTPTest
    //The HTML Output
    Hello World

  • Information about file Id, Logical file name and Physical file name

    Hi All,
    I am testing one program. Selection screen has 3 parameters, File Id, Logical File Name and Physical file name. In Physical File name, i am giving complete file name with path. But it is giving error. Please tell me, what is File id and what all information i need to enter for logical file name and physical file name.
    Thanks
    Puneet Aggarwal

    hi,
    try using this for filename.
    parameters : p_file like rlgrap-filename.
    Thanks,
    Gaurav

  • Logical file names and Physical file names

    Hi Guys...
         Can you let me know what is the difference between Logical file names and Physical file names?
    Regards,
    Rohit

    Using Logical Files in ABAP Programs http://help.sap.com/saphelp_nw04/helpdata/en/9f/db95e635c111d1829f0000e829fbfe/content.htm
    Creating and Defining Logical Filenames
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3df8358411d1829f0000e829fbfe/content.htm

  • Physical path and Logical name in File adapter

    Hi All-
    I am using a file adapter, in which i need to specify the physical path or logical path.
    In dev environment my file adapter's input path is /c01/interface/dev/input, but in my test environment it is /u01/interface/test/input.
    So everytime I have to change the path and deploy it in two different environment.
    I am using unix environment, is there any way i can use some environmental variable $INPUT_DIR and use it in logical name so that in logical name i can use as $INPUT_DIR/input, where in dev $INPUT_DIR will be /c01/interface/dev and in test environment it is /u01/interface/test.
    I have tried this but there is still some probelm, I want to know is the approach I am using is correct? or is there any other solution for it?
    Regards,
    Sreejit

    Hi,
    1. physical name: use a specific directory (e.g. /u01/....
    2. logical name: use a LogicalDirectory like "InputFileDir" and rewrite this inside the bpel.xml
    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CACDEBBH
    and
    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/appx_deploydesc.htm#CHDBDIIF
    But what about creating a softlink like this on your testsystem:
    ln -s /u01 /c01

  • Logical File name of Transaction File

    Hi All,
    I am using FILE_NAME_GET function module to get the Physical file name based on logical file name.
    But here i am not getting total file name, i maintained Physical File name as ZDM\INTB18\<PARAM_1>.
    Transaction File is stored in application server and it's name is ZDM\INTB18\RMCB18_DATETIME.
    Could you please anybody suggest how to get total file name.
    Thanks,
    Rami Reddy.

    Hi Rami,
    Have you utilised the Parameter WITH_FILE_EXTENSION in the function ... e.g.
    Example
    logical file name: MONTHLY_SALES_FILE
    physical file name: VALUES<PARAM_1>
    logical path: SALES_DATA_PATH
      physical path (Windows): C:\SALES\<FILENAME>
    Get file name for WINDOWS platform, with file name extension
    CALL                                                                                FUNCTION                                                                                'FILE_GET_NAME'
       EXPORTING
          LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
          WITH_FILE_EXTENSION = 'X'
       IMPORTING
          FILE_NAME = FILE
          FILE_FORMAT = FORMAT.
    Result:
    FILE = C:\SALES\VALUES.WK1
    FORMAT = WK1
    Rgds, Derrick

  • Using File Adapter with Logical Name

    I am creating a file adapter with Logical name. Apart from giving the Logical name is there any other configuration that I am suppose to do on the Web Logic before I start using it?
    Thanks in Advance.

    After configuring the file adapter, all you need to do is , give the path as a value for the logical name which you have created earlier. That you can do on the file adapter property inspector. There is no need to do anything on the server level. Lemme know
    Thanks,
    N

  • Usage of logical name, logical path name, physical name of a file

    Hi all,
    I have to write to a file on the application server. I had been given the logical name, logical path name and physical name. Suggest how to use these parameters and get the path where to store the file.
    Thanks & Regards,
    Kasinath.

    Open Dataset
      catch system-exceptions DATASET_CANT_OPEN = 8.
        open dataset UNIX_FILE for output in text mode encoding default.
      endcatch.
    Write to Dataset
      loop at IT_STR into IS_STR.
        catch system-exceptions DATASET_NOT_OPEN = 0  .
          transfer IS_STR-STR to UNIX_FILE.
        endcatch.
      endloop.
      if SY-SUBRC eq 0.
        message S138(ZSM) with 'Data Downloaded to Unix File'.
      endif.
    Close Dataset
      close dataset UNIX_FILE.
    Regards
    - Gopi

  • Get Logical file name from Physical file name

    Hi everybody,
    Please how can i get Logical file name from Physical file name ?
    Thanks & Regards
    Hassan

    Hi,
    What i want is to get Logical file name from Physical file name, and not the opposite (get Physical file name from Logical file name).
    Thanks & Regards,
    Hassan

Maybe you are looking for