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?

Similar Messages

  • How to convert the TEXT file into an XML using plsql code

    Hi all ,
    I need to convert an TEXT file into an XML file how can i do it
    Below is my sample TEXT file .
    TDETL00000000020000000000000120131021115854ST2225SKU77598059          0023-000000010000
    I want the above to be converted into the below format
    <?xml version="1.0" encoding="UTF-8"?>
    <txt2xml>
      <!-- Processor splits text into lines -->
      <processor type="RegexDelimited">
      <regex>\n</regex>
            <!--
            This is used to specify that a message should be created per line in
            the incoming file;
            NOTE: this was designed to work with all the processors, however it
            only works correctly with 'RegexDelimited' processors (check the
            enclosing top processor type)
             -->
             <maxIterationsPerMsg>1</maxIterationsPerMsg>
      <!-- For lines beginning with FHEAD (File Header) -->
      <processor type="RegexMatch">
      <element>FHEAD</element>
      <regex>^FHEAD(.*)</regex>
      <processor type="RegexMatch">
      <element>OriginalLine</element>
      <regex>(.*)</regex>
      <consumeMatchedChars>false</consumeMatchedChars>
      </processor>
      <processor type="RegexMatch">
      <element>LineSeq,Type,Date</element>
      <regex>^(\d{10})(\w{4})(\d{14})$</regex>
      </processor>
      </processor>
      <!-- For lines beginning with TDETL (Transaction Details) -->
      <processor type="RegexMatch">
      <element>TDETL</element>
      <regex>^TDETL(.*)</regex>
      <processor type="RegexMatch">
      <element>OriginalLine</element>
      <regex>(.*)</regex>
      <consumeMatchedChars>false</consumeMatchedChars>
      </processor>
      <processor type="RegexMatch">
      <element>LineSeq,TransControlNumber,TransDate,LocationType,Location,ItemType,Item,UPCSupplement,InventoryStatus,AdjustReason,AdjustSign,AdjustQty</element>
      <regex>^(\d{10})(\d{14})(\d{14})(\w{2})(\d{4})(\w{3})([\w ]{13})([\w ]{5})(\d{2})(\d{2})([+-]{1})(\d{12})$</regex>
      </processor>
      </processor>
      <!-- For lines beginning with FTAIL (File Tail) -->
      <processor type="RegexMatch">
      <element>FTAIL</element>
      <regex>^FTAIL(.*)</regex>
      <processor type="RegexMatch">
      <element>OriginalLine</element>
      <regex>(.*)</regex>
      <consumeMatchedChars>false</consumeMatchedChars>
      </processor>
      <processor type="RegexMatch">
      <element>LineSeq,TransCount</element>
      <regex>^(\d{10})(\d{6})$</regex>
      </processor>
      </processor>
      </processor>
    </txt2xml>
    Thanks

    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 to create the log file in remote system using log4j.

    Hi,
    How to create the log file in remote system using log4j. please give me a sample code or related links.The below example i used for create the log file in remote system but it return the below exception.Is there any authandication parameter for accessing the remote path? Please help.
    public class Logging
    Logger log=null;
    FileAppender fileapp=null;
    public Logging(String classname)
    try
    log = Logger.getLogger(classname);
    String path=" [\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt|file://\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt]";
    fileapp = new FileAppender(new PatternLayout("%r [%t] %-5p %c %x - %m%n"),path, true);
    log.addAppender(fileapp);
    log.info("Logger initilized");
    }catch(Exception ex)
    ex.printStackTrace();
    java.io.FileNotFoundException: \\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt (The network path was not found)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    at org.apache.log4j.FileAppender.<init>(FileAppender.java:109)
    at annwyn.logger.BioCapLogger.<init>(Logging.java:23)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Please help.
    Thanks in advance.
    Saravanan.K

    Sorry path is missing for the above request.
    path="\\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt ";
    please help.
    Saravanan.K

  • How to append the declaration tags to generated xml using Xquery

    Hi,
      How to append the declaration tags to generated xml using Xquery.generated XML is like
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Here I want to append the <?xml version="1.0" encoding="ISO-8859-1"?> and the result xml should be
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Can anybody help to do this.
    Thanks
    Mani

    First assign this element to a temp variable
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Now in XQuery expression create a new variable
    <?xml version="1.0" encoding="ISO-8859-1"?>
    $temp

  • Welcome File in Web.xml

              I am having problems with my web.xml file.
              I have my welcome page <welcome-file> as my “home_page.jsp” which I want to be
              the default page on start-up. On this page is a link to “log on”. When you click
              on this you are taken to my (FORM) “Login.jsp”. After successful logon I want
              to go to the “Welcome.jsp”, instead I am returned to my “home_page.jsp”. Which
              puts me in a continuous loop. How after successful logon can I be directed to
              a page other than the <welcome-file> “home_page.jsp”
              My web.xml file looks like this;
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <welcome-file-list>
              <welcome-file>Welcome.jsp</welcome-file>
              </welcome-file-list>
              <login-config>
              <auth-method>FORM</auth-method>
              <realm-name>default</realm-name>
              <form-login-config>
                   <form-login-page>/Login.jsp</form-login-page>
                   <form-error-page>/LoginFailure.jsp</form-error-page>
              </form-login-config>
              </login-config>
              <security-role>
              <role-name>web-user</role-name>
              </security-role>
              <security-constraint>
              <web-resource-collection>
              <web-resource-name>Logged into NOTiFY</web-resource-name>
              <url-pattern>/Welcome.jsp</url-pattern>
              <http-method>GET</http-method>
              <http-method>POST</http-method>
              </web-resource-collection>
              <auth-constraint>
              <role-name>web-user</role-name>
              </auth-constraint>
              </security-constraint>
              </web-app>
              Thanks.
              

    It doesn't quite work that way. You should just direct the user directly to
              the Welcome.jsp page. If they're not already logged in, they'll be asked to
              log-in via the Login.jsp. The login mechanism knows to redirect them to the
              last page they wanted once they successfully log in. I think this is why you
              are being returned to the home_page.jsp, since there was no target
              restricted page requested.
              I have to admit - this mechanism doesn't lend itself to the portal-style
              login used on the web. It's geared more towards security and authorization
              for access to particular URL resources. You might need to tweak how your GUI
              looks to make this mechanism make sense.
              Alternatively, you could add some code to the home_page.jsp to redirect the
              user to a specific restricted page based on what is in their session. I
              would also suggest that the Welcome.jsp and home_page.jsp be the same page
              that just behaves differently based upon whether a user is logged in or not.
              "Roger Lee" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I am having problems with my web.xml file.
              >
              > I have my welcome page <welcome-file> as my "home_page.jsp" which I want
              to be
              > the default page on start-up. On this page is a link to "log on". When you
              click
              > on this you are taken to my (FORM) "Login.jsp". After successful logon I
              want
              > to go to the "Welcome.jsp", instead I am returned to my "home_page.jsp".
              Which
              > puts me in a continuous loop. How after successful logon can I be directed
              to
              > a page other than the <welcome-file> "home_page.jsp"
              >
              > My web.xml file looks like this;
              >
              > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
              2.2//EN"
              > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              >
              > <web-app>
              >
              > <welcome-file-list>
              > <welcome-file>Welcome.jsp</welcome-file>
              > </welcome-file-list>
              >
              > <login-config>
              > <auth-method>FORM</auth-method>
              > <realm-name>default</realm-name>
              > <form-login-config>
              > <form-login-page>/Login.jsp</form-login-page>
              > <form-error-page>/LoginFailure.jsp</form-error-page>
              > </form-login-config>
              > </login-config>
              >
              > <security-role>
              > <role-name>web-user</role-name>
              > </security-role>
              >
              > <security-constraint>
              > <web-resource-collection>
              > <web-resource-name>Logged into NOTiFY</web-resource-name>
              > <url-pattern>/Welcome.jsp</url-pattern>
              > <http-method>GET</http-method>
              > <http-method>POST</http-method>
              > </web-resource-collection>
              > <auth-constraint>
              > <role-name>web-user</role-name>
              > </auth-constraint>
              > </security-constraint>
              >
              > </web-app>
              >
              > Thanks.
              >
              

  • How to get the EXCEL file from web site (b2b) into SAP system?

    Hi Guys,
    I have a requirement of saving the excel file that has been send to SAP system from a B2B site.
    Currently there is a call to the SAP system from the B2B site via an RFC function ,this RFC functions gets the excel file as an input to the SAP system,i need to store this Excel file in the SAP  (as an excel file itself).
    How can i acheive this?
    Please suggest.
    Thanks ,
    Swati

    You can extract a date portion and  assign to the variable and then compare with GETDATE()
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to transfer the .pdf files to iphone 3G using Windows Xp without Wifi.

    Hi,
    I am unable to transfer the files (.pdf) to iphone 3G from my windows xp laptop.
    I tried all the possibilities given in Google. Basically I dont have Wifi connectivity nor any network. Could you please tell me how to sync the files without any network. Example; the way others do with Nokia phones.
    Please assist. Posts can be email to me at sacrashinkar (at) gmail (dot) com..
    regards,
    Sachin

    That's a lie. There's plenty of software out there that lets you transfer files without a network connection - iPhoneBrowser and iPhone Explorer are two examples of such.
    Incidentally, networking through USB is possible, albeit not often mentioned. The simplest way is to set up tethering, which will do most of the work for you. If that's not possible, then you'll have to do it manually (which is a real pain), BUT there are a few free utilities out there that are supposed to make the process much simpler (one I recently came across is usbgate.org, which is allegedly a one-click process).

  • How to mention the "dtd" file when loading xml file

    i am using the JAXP parser for parsing and loading my xml file.In the file i have mentioned the dtd like
    <!DOCTYPE screensmanagement SYSTEM "scrReg.dtd">
    But after doing some manipulations, when i save the file through JAXP parser at the same location from where i loaded, then "dtd header" is not saved with my xml File and when i again parse the xml file then parser does not find the "dtd" file coz it is not been saved with xml source.
    How can i get aroud this problem.
    Merry Chrismis

    when serializing the DOM, use this: transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, scrReg.dtd");
    Merry Chrasmas too ;-)

  • How to display the rdf file column in XML Publisher

    Hi
    I have used the formula bar and returned the value to diaplay in xml output .so that i can use in template.But i could not find the value which i returned in rdf.
    Can anybody suggest me do i need to change/modify in any other places to find my column/value in xml output.
    Thanks

    no need to do any specific changes.
    if you have a formulae column in RDF it will definitely show up in your xml output,
    see if you are doing any silly mistake like,
    RDF not saved peoperly,
    .RDF is not replaced with the updated version or something like that

  • How to get the cookie from a web service using Axis

    I used the AXIS wizard to consume a WSDL and create a bunch of boiler plate code. It works great in that I can talk to the web service and submit requests.
    The problem is that I need to retrieve the cookie from the login request and use it when making subsequent requests. I have been unable to find the cookie and would appreciate a point in the right direction.
    Currently I'm trying something like this
    String cookie = (String)((Stub)service)._getCall().getMessageContext().getProperty(HTTPConstants.HEADER_COOKIE);
    Thanks in advance.

    Answered on my own:
    Just have to use
    x_result = http_client->response->get_data( ).
    instead of
    x_result = http_client->response->to_xstring( ).
    Just don't knwo why the filesize is wrong also - but I can work with this image!

  • How to create the War file

    Can you help me , how to create the war file.
    I am using the tomcat 5.0 server, i have book folder in webapp.
    how i can create the war file? what is command?
    help me
    ramya

    using jar command u can create a war file
    jar -cmf myweb.war *.*<files to be included in war file>
    regd,
    ritu

  • How to configure the property file

    Is this the correct way of configuring the property file in web.xml.
    <servlet>
    <servlet-name>ControllerServlet</servlet-name>
    <servlet-class>com.test.prod.pds.Controller</servlet-class>
    <init-param>
    <param-name>LOGINID</param-name>
    <param-value>C:\bea\user_projects\domains\mydomain\applications\TestWebApp\WEB-INF\classes\loginid.properties</param-value>
    <description>Pds Group properties file</description>
    </init-param>
    </servlet>
    IT is giving an error "javax.servlet.ServletException: loginid.properties (The system cannot find the file specified)"

    Hi,
    Place that properties file in the application classpath Then it will work fine without any problems.
    Go through the follwing links,In that you will get usefull information on this.
    http://jtidy.sourceforge.net/multiproject/jtidyservlet/configuration.html
    http://www.utdallas.edu/~baughman/velocity4.html
    Regards
    Anilkumar kari

  • How to add the property file..ie(default.properties) to a webdynpro project

    Hi All,
    How to add the property file..ie(default.properties) to a webdynpro project.
    I urgently require the solution. Kindly get it for me.
    Regards
    DK

    Hi DK,
    this is described in the second Web Dynpro Java Tutorial
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/b1a3e990-0201-0010-aeb2-a2ef5bc3da8e">creating an Extended Web Dynpro Application</a>
    Regards, Bertram

  • How to change the date path of Web Server to my system time?

    Hi,
    I have downloaded a Countdown SWF file from the Internet. It is working fine with the Computers which have Internet Connection. But not working without Internet connection because of the following line of code in XML file:
    <PHPurl>http://www.flepstudio.org/utilita/CountDown/gettime.php</PHPurl>
    When I opened the webpage using the above code, it shows time in a typical digits:
    Monday, October 18, 2010 9:12:52 PM in my System -shows in Web browser like : time=1287425579
    How to modify the code so that I can use my System time to work with Countdown without Internet Connection.
    The following is the path from where I have downloaded the Countdown file:
    http://www.flepstudio.org/forum/flepstudio-utilities/2960-flash-cs3-countdown.html
    Please help me to run this countdown without internet access.
    Thanks.

    It appears all that php file does is return a time=value variable.  So you need to see where that time variable is implemented in the Flash file and assign it a value using the Date.getTime() method instead of having the PHP file get called into play.  Look in the help documents or Google if you do not know how to use the Date class.

  • How to stop the timing out of web Discoverer Plus

    I was working in Plus, and it drove me crazy that I would loose my work because I kept my session open and it would time out.How to stop the timing out of web Discoverer Plus?
    Thank you,
    Olga

    Please check Discoverer configuration guide which tells you which parameter to change in preference file(pref.txt).I think you change the value.

Maybe you are looking for