HttpSession Re-validation challenge

Hi All,
I have 2 ears deployed on a server. ear1 access the other for some services and ear2 can be accessed independently too. Session timeout...invalidates the session on ear 1 even when user is continuously hitting the ear2. All I want is to somehow reset the timeout clock in session on ear 1 by doing anything... like issuing a dummy request to the ear1 for example so that session doesn't timeout. But how do I issue a request to ear1 from ear2? I am using a ServletFilter implemented in ear2 to access the session object of ear1. I use ServletContext to share the session object accross ears..see the code below. Any quick help is greatly appreciated. Thanks a lot!
public class AuthorizationFilter implements Filter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
ServletContext ear1Ctx = config.getServletContext().getContext("/EAR1");
ServletContext ear2Ctx = config.getServletContext().getContext("/EAR2");
Map sessionMap = (Map) ear1Ctx.getAttribute("sessionMap");
if(sessionMap != null)
session = (HttpSession)sessionMap.get(sessionID);
Edited by: neel26 on Aug 12, 2008 3:46 PM
Edited by: neel26 on Aug 12, 2008 3:48 PM

Hi,,,,,,
There is No Performance Issue...... Possible reasons could be.....
(1)- As MARA is the Master Table for Materials.....
(2)- It could be the requirement of the Program......
Thanks
Saurabh

Similar Messages

  • Validation Challenge - PHP code?

    Hi,
    I was helped out with this piece of code that pops up a message when someone clicks on my form submit button but having validated the rest of my site it is the only error that prevents 100% validation.
    The site is www.sub-6.com/contact.php
    <div id="confirmation"<?php echo (isset($success))?" style=\"display:block\"":""; ?>"><?php echo (isset($success) && $success)?"We've got your enquiry and will be back to you soon!":"Sorry - there was a problem with sending the email, please try again."; ?></div>
    I'd really appreciate some assistance in resolving.
    Many thanks
    Regards
    Rob

    rob_hawk wrote:
    Hi,
    I was helped out with this piece of code that pops up a message when someone clicks on my form submit button but having validated the rest of my site it is the only error that prevents 100% validation.
    The site is www.sub-6.com/contact.php
    <div id="confirmation"<?php echo (isset($success))?" style=\"display:block\"":""; ?>"><?php echo (isset($success) && $success)?"We've got your enquiry and will be back to you soon!":"Sorry - there was a problem with sending the email, please try again."; ?></div>
    I'd really appreciate some assistance in resolving.
    Many thanks
    Regards
    Rob
    Well the double quote is certainly not correct.
    What happens if you change to this:
    <div id="confirmation"><?php echo (isset($success))?" style=\"display:block\"":""; ?>
    <?php echo (isset($success) && $success)?"We've got your enquiry and will be back to you soon!":"Sorry - there was a problem with sending the email, please try again."; ?></div>

  • HTTPSession Validation

    Which is the better way to do session validation? Also, is one way better than the other because of Netscape vs. IE or anything like that?
    Method 1:
    public boolean validateSession()
    session_ = req_.getSession(false);
    if(session_ == null)
    return false;
    else
    return true;
    Method 2:
    public boolean validateSession()
    session_ = req_.getSession(true);
    if( !session_.isNew() )
    return true;
    else
    return false;
    }

    The second option creates a new session if one doesn't exist, whereas the first option doesn't. So the "better" option is the one that does what you want. And browsers have nothing to do with it.

  • Driver not valid for HP Pavilion dv6t

    Need to update my Intel HD Graphic driver.
    Tried HP and Intel and both are stating that the driver being installed is not validated for this computer. Please obtain the appropriate driver from the computer manufacture. Set up will exit.
    Can anyone help? TY

    @ls1313 ,
    Hello and thank you for posting on the HP support forums.  Here is the link to the only supported drivers for your notebook.
    HP Pavilion dv6t-3000 CTO Entertainment Notebook PC
    I hope this helps.
    Have a great day and thank you for posting.
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    D5GR
    I work on behalf of HP

  • FDM & ERPI to FDMEE - Upgrade approach/challenges ?

    Hello,
    We are in FDM/ERPI 11.1.2.2.300 (used for loading data from EBS and file systems into HFM 11.1.2.2.300) and planning to upgrade (within the existing environment [in-place upgrade]) to 11.1.2.3. As we see that FDM/ERPI are integrated together as FDMEE in 11.1.2.3, we had big grey area on how FDMEE would function in contrast to disparate FDM/ERPI.
    We needed inputs from veterans or anyone who had experienced the upgrade to answer the follwing queries.
    Queries:
    [1] We have come to know that FDM and ERPI are integrated together as FDMEE in 11.1.2.3.
         [a] Since we have FDM and ERPI as separate components in 11.1.2.2.300, how should FDM and ERPI components be upgraded to FDMEE ? Any specific steps / approach that need to be followed ?
         [b] Are there any known issues / challenges involved in upgrading from disparate FDM & ERPI to FDMEE ?
         [c] How would ERPI artifacts (of 11.1.2.2.300) function in FDMEE - Are there any specific migration or any manual set-up required post-upgrade (to 11.1.2.3) to have ERPI artifacts (like source system, period mapping, location, import formats, data load mapping etc)      functioning in FDMEE ?
         [d] Similarly how would FDM artifacts (from 11.1.2.2.300) function in FDMEE ? Are there any specific migration or manual set-up required post-upgrade (to 11.1.2.3) to have FDM artifacts (like mapping, validation rules etc) functioning in FDMEE ?
    [2] Since only ODI 11.1.1.7 is compatible with 11.1.2.3 (from Compatability matrix), how do we upgrade ODI from 11.1.1.6 to 11.1.1.7 ? Are there any patch available to upgrade or should we uninstall ODI 11.1.1.6 and install ODI 11.1.1.7 ?
    Any insightful response will be helpful for us as it would help us to gain clarity/confidence and comfort in upgrading to 11.1.2.3.
    Regards,
    Sathish

    hello Sathish
    As you are upgrading from 11.1.2.2.300 to EPM 11.1.2.3 (within the existing environment [in-place upgrade]) , it's called Applying maintenance release EPM 11.1.2.3 on EPM 11.1.2.2
    [a] when you apply maintenance release , FDM 11.1.2.2 gets upgraded to FDM 11.1.2.3 ,
         and ERPi gets upgraded to FDMEE 11.1.2.3
    [b] i have not faced any issue while upgrading FDM
    [c] please check epm_install.pdf for EPM 11.1.2.3 for upgradation  task for FDM and FDMEE  (see page 257 / 258)
    regards,
    -DM

  • Validity Periods: Netprice on EKKO, where to find the correct netprice?

    <b>Background</b>
    We are extracting open PO data from tables EKKO, EKPO and EKBE to send the data to an external system for further processing. The extraction is done by BODI (Business Objects Data Integrator), an ETL tool that generates ABAP. Current solution is used for 9 SAP systems. Changes in SAP or using non-standard tables is not possible. Performance is always a challenge.
    <b>Description</b>
    For EKKO and EKPO standard information is extracted.
    From EKBE only outstanding quantity and amount per goods receipt is extracted.  For the calculation is not a join or look-up used, but a group by, for performance. This data is grouped and summed on EKBE.LFBNR which is filled for VGABE = ‘1’ as EKBE.BELNR, the material document.  Values are negative or positive based on the debit/credit indicator (EKBE.SHKZG).
    In this extraction EKKO.NETPR is used to recalculate not fully invoiced entries in EKBE, since it is possible to enter a partial quantity and the full value.
    However, EKKO.NETPR contains only the price for the current validity period. When EKKO.MEPRF = ‘5’ multiple validity periods are possible.
    <b>Possibilities</b>
    1)     Recalculate the NETPR based on the goods receipt in EKBE
    2)     For recalculation of open items we need the NETPR of the corresponding validity period
    3)     Get the correct (open) quantity and value
    <b>1)</b>
    Last options was tried but gave an unacceptable performance drop, because for every VGABE =  ‘2’ where EKKO.MEPRF = ‘5’, a look-up had to be done to VGABE = ‘1’  to calculate the new NETPR. This option has been tried in several ways, but no performing solution was found.
    <b>2)</b>
    We know that on the Condition Records the NETPR is listed per validity period. However our problem is that we do not know how to reach the listing and further how to use it. Combining the correct validity period with every invoice receipt does not seem to be a permant way.
    <b>3) a</b>
    We think that somewhere in the financial area the quantities and values should be present, however a link to FI is completely unclear.
    <b>3) b</b>
    Also on the Condition Records is the correct quantity and value present, but here is the link also not clear. My best bet is on this.
    The big question is, does someone have knowledge about this, hints, tips to look for certain links between tables?

    Hi,
    Please get the valid condition ( based on date ) from A016 (MK & LPA). With the appropriate KNUMH read the Condition header. You can access the different condition items viz., PB00, RA00 etc., for the values from table KONP. Further if you have Value scales / Quantity scales, you can read the data from KONM, KONW.
    An additional tips: in KONP, if you have a condition like RA00 - Rebate, the value will be multiplied by 10 and saven in database to accomodate the discount to the third decimal.
    I could not completely understand your requirements like nature of development ( Is it a Report / SAP Script ??) you are working etc., so that I could help you precisely.
    Hope this helps,
    Best Regards, Murugesh AS
    Message was edited by:
            Murugesh Arcot

  • Data recovery question / challenge...

    Please email me if you have any advice: [email protected] / challenge:Is there a tool by hyperion or anyone else, that will recover data from a valid index file & page file? As an administrator you can only export cubes through the server process, which is great when the server process is not locked up. Assuming that the Essbase server is not involved, a data recovery tool is needed. Hyperion must know how it reads and writes data to the index and page file, therefore, have they or can they create a tool to do so when the server process is not available. I am sure I am not the only one who would benefit from a data recovery utility such as this.Problem Source:I have an Essbase server that freezes after going through the startup sequence. The server process starts fine (I can run ports, dump, etc), then as soon as I start ANY application the server process is locked up. (no recovering free space it appears to start the app fine, just locked up) support says something is corrupted. (I agree) 1 strange behavior is that client timed out messages are not thrown. Clients just sit locked up when connecting. This implies that the server is "alive" just stuck on or thinking really hard about something. Either way, it's not responsive from them on, as no client threads are spawned.

    Don't know of a utility that does what you are looking to do. Do you have a valid tape backup of your directory structure? have you tried restoring back to when the server was working?Something to try, no guarantees it will work, your problem might be a corrupt security file. Go into the essbase directory, find a file called essbase.sec and rename it to essbase.old. then find a file called essbase.bak and rename it to essbase.sec. Restart your server and see if it solves your problem.Hope this helps.

  • The enrollment server did not provision a valid identity certificate

    I'm working on rolling my own MDM service, and I'm trying to combine the SCEP and MDM payloads as the MDM protocol document from Apple suggests. I created my own SCEP web service in C# .Net and I know that the device can get a valid certificate when I just send the SCEP payload. However when I also include an MDM payload that points to the SCEP payload's UUID via the IdentityCertificateUUID key, I get the following error, "The enrollment server did not provision a valid identity certificate." This configuration is the one that is sent after the user chooses to install the initial enrollment configuration (step 1 of phase 2 in this diagram).
    The device doesn't appear to even make an attempt at connecting to my server, and thanks to server side logging I know that it never reaches my SCEP web service page. This seems to indicate that there's something wrong with the certificate I use to sign the payload. I've separately tried signing it with my SSL certificate (from a pre trusted root authority), my customer MDM push certificate (chained from our vendor cert), and my self-signed root certificate authority certificate (created via makecert.exe) that the SCEP service uses to issue new certificates (i.e. device identity certificates).
    I've looked at the output from the iPCU (iPhone Configuration Utility) when I create a profile with both the MDM and SCEP payloads, and it isn't a valid profile (I've even tried copying it nearly wholesale). However when I install the profile via the iPCU the error doesn't come up and it begins the SCEP enrollment process without issue.
    A side note - using a preexisting MDM vendor is not an option here.
    Below is the profile I'm using:
    <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
          <plist version="1.0">
            <dict>
              <key>PayloadContent</key>
              <array>
                <dict>
                  <key>PayloadContent</key>
                  <dict>
                    <key>Challenge</key>
                    <string>this is a challenge</string>
                    <key>Key Type</key>
                    <string>RSA</string>
                    <key>Key Usage</key>
                    <integer>5</integer>
                    <key>Keysize</key>
                    <integer>1024</integer>
                    <key>Name</key>
                    <string>mycompany</string>
                    <key>Retries</key>
                    <integer>3</integer>
                    <key>RetryDelay</key>
                    <integer>0</integer>
                    <key>Subject</key>
                    <array><array><array>
                      <string>CN</string>
                      <string>mycompany</string>
                    </array></array></array>
                    <key>URL</key>
                    <string>https://mysite.com/scep.aspx</string>
                  </dict>
                  <key>PayloadDescription</key>
                  <string>Configures SCEP</string>
                  <key>PayloadDisplayName</key>
                  <string>SCEP (mycompany)</string>
                  <key>PayloadIdentifier</key>
                  <string>com.mycompany.mdm.scep1</string>
                  <key>PayloadOrganization</key>
                  <string></string>
                  <key>PayloadType</key>
                  <string>com.apple.security.scep</string>
                  <key>PayloadUUID</key>
                  <string>57225d3d-0758-4d23-8093-e4d8c9bbd47c</string>
                  <key>PayloadVersion</key>
                  <integer>1</integer>
                </dict>
                <dict>
                  <key>AccessRights</key>
                  <integer>3</integer>
                  <key>CheckInURL</key>
                  <string>mysite.com/checkin.aspx</string>
                  <key>CheckOutWhenRemoved</key>
                  <false/>
                  <key>IdentityCertificateUUID</key>
                  <string>57225d3d-0758-4d23-8093-e4d8c9bbd47c</string>
                  <key>PayloadDescription</key>
                  <string>Configures MobileDeviceManagement.</string>
                  <key>PayloadIdentifier</key>
                  <string>com.mycompany.mdm.mdm2</string>
                  <key>PayloadOrganization</key>
                  <string></string>
                  <key>PayloadType</key>
                  <string>com.apple.mdm</string>
                  <key>PayloadUUID</key>
                  <string>ed0ae41d-1aa7-4721-9fe9-139c1072132c</string>
                  <key>PayloadVersion</key>
                  <integer>1</integer>
                  <key>ServerURL</key>
                  <string>https://mysite.com/checkin.aspx</string>
                  <key>SignMessage</key>
                  <false/>
                  <key>Topic</key>
                  <string>com.apple.mgmt.mypushsubject</string>
                  <key>UseDevelopmentAPNS</key>
                  <true/>
                </dict>
              </array>
              <key>PayloadDescription</key>
              <string>Profile description.</string>
              <key>PayloadDisplayName</key>
              <string>Test Profile</string>
              <key>PayloadIdentifier</key>
              <string>com.mycompany.mdm</string>
              <key>PayloadOrganization</key>
              <string>mycompany</string>
              <key>PayloadRemovalDisallowed</key>
              <false/>
              <key>PayloadType</key>
              <string>Configuration</string>
              <key>PayloadUUID</key>
              <string>13321058-4037-478c-9b1e-ef6f810065cb</string>
              <key>PayloadVersion</key>
              <integer>1</integer>
            </dict>
          </plist>

    I got in touch with Apple about this.
    Apparently you want to send the combined MDM & SCEP payload in step 2 of phase 3 of the diagram I linked in my question, which is the profile that's sent after OTA enrollment.  According to Apple you need two separate certificates (which means two SCEP enrollments) - one for OTA enrollment, and one for MDM enrollment.

  • Validation Script for Dates and General Event Questions

    I have just started using Javascript, and am now using some objects and methods etc. that I did not even know about. It's progressing rather well, now I need to know some Livecycle Designer Basics that I can't seem to answer from my searches.
    Here's what I am trying to do in English:
    I want users to choose a date that they will miss at our Farmers Market. I have the date field on the form - works well.
    I want to validate the entry for:
    The date must be today or in the future
    AND
    The date must be before the closing date
    AND
    The date must be a Saturday
    Here's some script I've written and placed in the Validation Event (I have actually written more for testing out that the results are coming out properly):
    ----- form1.#subform[0].Missdate::validate - (JavaScript, client) ----------------------------------
    var entereddate = this.rawValue;// The date vendor will not attend as entered on the form
    var dentry = new Date(entereddate.slice(0,4),[entereddate.slice(5,7)-1],entereddate.slice(8,10),0,0,0); // month starts at 0!
    var closingdate = "October 04,2008" // closing date of the market
    var today = Date();// today
    (dentry.getDay() = 6);// and attempt to validate that the day = Saturday - nothing happens!
    But now -
    How do I actually validate this - my last statement seems to be ignored. How to I force a 'false' being returned? In Formcalc I simply put a camparison statement here and if it resulted in 'False' validation failed and if it resulted in 'True' it passed - What's the JS equivalent? Or are the variables giving me troubles?
    Maybe I'm putting this in the wrong Event? If so which one should I place it in.
    I want to force the user to enter the correct data - how do I code this - and put in a custom message refering to this. I may even get fancy and ask the user if the next Saturday is what they meant if they enter the incorrect one (this will be a real challenge!)
    I think I'm lacking some basic knowledge here that other posts have assumed. Please refer me to any help pages as well - although I've done extensive searching on this and have not really found a good explanation of Validation - only specific pages that are not basic or general enough for my understanding. Thank!

    In the validation script you have to allow the field's length to be 0, or
    it will not be possible to clear it...

  • Validator Cleaned existing formbean or generated new one

    Hi buddies,
    I'd like to use struts validator in my project. It seems working but cleaning existing formbean or generating new formbean.
    The case is: after listing all customers, user can choose edit or delete one of them. Supposed (and it works correctly before I applied validator in) the Action will find the client and populate the appropriate field value into form bean, and the form bean is to be forward to edit jsp page. But now, in the fields on the edit jsp page are blank, just like create new record.
    it took me 2 days, and cannot fix the problem. Please gave me some ideas. Your any input is appreciated.
    [u]struts-config.xml[/u]
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
    <struts-config>
         <data-sources />
         <form-beans>
              <form-bean name="customerListForm"
                   type="com.articy.struts.form.CustomerListForm" />
              <form-bean name="customerEditForm"
                   type="com.articy.struts.form.CustomerEditForm" />
              <form-bean name="loginForm"
                   type="com.articy.struts.form.LoginForm" />
         </form-beans>
         <global-exceptions />
         <global-forwards>
              <forward name="welcome" path="/default.do" redirect="true" />
              <forward name="Logon" path="/security/login.jsp"
                   redirect="true" />
         </global-forwards>
         <action-mappings>
              <action forward="/jsp/index.jsp" path="/default" unknown="true" />
              <action attribute="customerListForm"
                   input="/jsp/customerList.jsp" name="customerListForm"
                   path="/customerList" scope="request"
                   type="com.articy.struts.action.CustomerListAction">
                   <forward name="listCustomer" path="/jsp/customerList.jsp" />
              </action>
              <action attribute="customerEditForm"
                   input="/jsp/customerEdit.jsp" name="customerEditForm" parameter="do"
                   path="/customerEdit" scope="request"
                   type="com.articy.struts.action.CustomerEditAction">
                   <forward name="addCustomer" path="/jsp/customerAdd.jsp" />
                   <forward name="listCustomers" path="/customerList.do"
                        redirect="true" />
                   <forward name="editCustomer" path="/jsp/customerEdit.jsp" />
              </action>
              <action attribute="loginForm" input="/security/login.jsp"
                   name="loginForm" path="/login" scope="request"
                   type="com.articy.struts.action.LoginAction">
                   <forward name="loginSuccess"
                        path="/security/loginSucess.jsp" />
                   <forward name="loginFailure"
                        path="/security/loginFailure.jsp" redirect="true" />
              </action>
              <action path="/logout"
                   type="com.articy.struts.action.LogoutAction">
                   <forward name="Success" path="/security/logoutSuccess.jsp"
                        redirect="true" />
              </action>
              <action attribute="loginForm" name="loginForm"
                   path="/prepareLogin" scope="request"
                   type="com.articy.struts.action.PrepareLoginAction">
                   <forward name="logon" path="/security/login.jsp" />
              </action>
         </action-mappings>
         <controller
              processorClass="org.apache.struts.tiles.TilesRequestProcessor" />
         <message-resources
              parameter="com.articy.struts.ApplicationResources" />
         <plug-in className="org.apache.struts.tiles.TilesPlugin">
              <set-property property="definitions-config"
                   value="/WEB-INF/tiles-defs.xml" />
              <set-property property="definitions-parser-validate"
                   value="true" />
              <set-property property="moduleAware" value="true" />
         </plug-in>
         <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
              <set-property property="pathnames"
                   value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
              <set-property property="stopOnFirstError" value="true" />
         </plug-in>
    </struts-config>
    validation.xml
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE form-validation PUBLIC
              "-//Apache Software Foundation//DTD Commons Validator Rules Configuration
    1.1.3//EN"
              "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
    <form-validation>
      <global>
        <constant>
          <constant-name>phone</constant-name>
          <constant-value>^\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$</constant-value>
        </constant>
        <constant>
          <constant-name>zip</constant-name>
          <constant-value>^\d{5}\d*$</constant-value>
        </constant>
      </global>
      <!-- ========================= Default Formset ========================= -->
      <formset>
        <constant>
          <constant-name>zip</constant-name>
          <constant-value>^\d{5}(-\d{4})?$</constant-value>
        </constant>
        <form name="customerForm">
          <field property="lastname" depends="required,mask,minlength">
            <arg0 key="customereditform.lastname.displayname" position="0"/>
            <arg1 name="minlength" key="${var:minlength}" resource="false"
    position="1"/>
            <var>
              <var-name>mask</var-name>
              <var-value>^\w+$</var-value>
            </var>
            <var>
              <var-name>minlength</var-name>
              <var-value>5</var-value>
            </var>
          </field>
          <field property="name" depends="required,mask,maxlength">
            <msg name="mask" key="customereditform.name.maskmsg" />
            <arg0 key="customereditform.name.displayname" position="0" />
            <arg1 name="maxlength" key="${var:maxlength}" resource="false"
    position="1"/>
             <var>
              <var-name>mask</var-name>
              <var-value>^[a-zA-Z]*$</var-value>
            </var>
            <var>
              <var-name>maxlength</var-name>
              <var-value>30</var-value>
            </var>
          </field>
        </form>
      </formset>
    </form-validation>
    customerEditAction.java
    package com.articy.struts.action;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.actions.DispatchAction;
    import www.articy.wdb.bl.LibraryManager;
    import com.articy.struts.form.CustomerEditForm;
    public class CustomerEditAction extends DispatchAction {
         public ActionForward editCustomer(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response) {
              System.out.println("editCustomer");
              CustomerEditForm customerEditForm = (CustomerEditForm) form;
               * Arthur Niu get id of the customer from request
              Integer id = Integer.valueOf(request.getParameter("id"));
              // get business logic
              LibraryManager vvmManager = new LibraryManager();
              customerEditForm.setCustomer(vvmManager.getCustomerByPrimaryKey(id));
              return mapping.findForward("editCustomer");
         public ActionForward deleteCustomer(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response) {
              System.out.println("deleteCustomer");
              CustomerEditForm customerEditForm = (CustomerEditForm) form;
               * Arthur Niu get id of the customer from request
              Integer id = Integer.valueOf(request.getParameter("id"));
              // get business logic
              LibraryManager vvmManager = new LibraryManager();
              vvmManager.removeCustomerByPrimaryKey(id);
              return mapping.findForward("listCustomers");
         public ActionForward addCustomer(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response) {
              System.out.println("addCustomer");
              CustomerEditForm customerEditForm = (CustomerEditForm) form;
              return mapping.findForward("addCustomer");
         public ActionForward saveCustomer(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response) {
              CustomerEditForm customerEditForm = (CustomerEditForm) form;
              if (isCancelled(request)) {
                   removeFormBean(mapping, request);
                   return (mapping.findForward("listCustomers"));
              // get business logic
              LibraryManager vvmManager = new LibraryManager();
              vvmManager.saveCustomer(customerEditForm.getCustomer());
              return mapping.findForward("listCustomers");
         protected void removeFormBean(ActionMapping mapping,
                   HttpServletRequest request) {
              // Remove the obsolete form bean
              if (mapping.getAttribute() != null) {
                   if ("request".equals(mapping.getScope())) {
                        request.removeAttribute(mapping.getAttribute());
                   } else {
                        HttpSession session = request.getSession();
                        session.removeAttribute(mapping.getAttribute());
    customerEditForm.java
    package com.articy.struts.form;
    import java.io.Serializable;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.validator.ValidatorForm;
    import www.articy.wdb.Customer;
    public class CustomerEditForm extends ValidatorForm implements Serializable {
         private static final long serialVersionUID = 1L;
         private Customer customer;
         public Customer getCustomer() {
              return customer;
         public void setCustomer(Customer customer) {
              this.customer = customer;
         public boolean equals(Object rhs) {
              return customer.equals(rhs);
         public Integer getId() {
              return customer.getId();
         public void setId(Integer id) {
              customer.setId(id);
         public String getName() {
              return customer.getName();
         public void setName(String name) {
              customer.setName(name);
         public String getLastname() {
              return customer.getLastname();
         public void setLastname(String lastname) {
              customer.setLastname(lastname);
         public Integer getAge() {
              return customer.getAge();
         public void setAge(Integer age) {
              customer.setAge(age);
         public Boolean getActive() {
              return customer.getActive();
         public void setActive(Boolean active) {
              customer.setActive(active);
         public java.sql.Date getBod() {
              return customer.getBod();
         public void setBod(java.sql.Date bod) {
              customer.setBod(bod);
         public java.sql.Timestamp getLogontime() {
              return customer.getLogontime();
              public void setLogontime(java.sql.Timestamp logontime) {
              customer.setLogontime(logontime);
         public String toString() {
              return customer.toString();
         public void reset(ActionMapping mapping, HttpServletRequest request) {
              customer = new Customer();
    customerList.jsp
    <%@ page language="java" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
    <html>
    <head>
    <title>JSP for customerListForm form</title> </head> <body> <table border="1"> <tbody>
    <%-- set the header --%>
    <logic:present name="customerListForm" property="customers">
    <tr>
    <td>Id</td>
    <td>Name</td>
    <td>Lastname</td>
    <td>Age</td>
    <td>Active</td>
    <td>Bod</td>
    </tr>
    <%-- start with an iterate over the collection customer --%> <logic:iterate name="customerListForm" property="customers" id="customer"> <tr>
    <%-- customer information --%>
    <td><bean:write name="customer" property="id" /></td>
    <td><bean:write name="customer" property="name" /></td>
    <td><bean:write name="customer" property="lastname" /></td>
    <td><bean:write name="customer" property="age" /></td>
    <td><bean:write name="customer" property="active" /></td>
    <td><bean:write name="customer" property="bod" /></td>
    <%-- edit and delete link for each customer --%> <td><html:link action="customerEdit.do?do=editCustomer"
    paramName="customer"
    paramProperty="id"
    paramId="id">Edit</html:link>
    </td>
    <td><html:link action="customerEdit.do?do=deleteCustomer"
    paramName="customer"
    paramProperty="id"
    paramId="id">Delete</html:link>
    </td>
    </tr>
    </logic:iterate>
    <%-- end interate --%>
    </logic:present>
    <%-- if customers cannot be found display a text --%> <logic:notPresent name="customerListForm" property="customers"> <tr> <td colspan="5">No customer found.</td> </tr> </logic:notPresent>
    </tbody>
    </table>
    <br>
    <%-- add and back to menu button --%>
    <html:button property="add"
    onclick="location.href='customerEdit.do?do=addCustomer'">Add a new customer </html:button>   <html:button property="back"
    onclick="location.href='default.do'">Back to menu </html:button> </body> </html>
    customerEdit.jsp
    <%@ page language="java" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
    <html>
    <head>
    <title>JSP for customerEditForm form</title> </head> <body>
    <logic:messagesPresent>
       <bean:message key="errors.header"/>
       <ul>
       <html:messages id="error">
          <li><bean:write name="error"/></li>
       </html:messages>
       </ul><hr />
    </logic:messagesPresent>
    <html:form action="customerEdit"  method="post">
    <html:hidden property="id"/> <html:hidden property="do" value="saveCustomer"/>
    Id: <html:text property="id"/><br/>
    Name: <html:text property="name"/><br/>
    Lastname: <html:text property="lastname"/><br/>
    Age: <html:text property="age"/><br/>
    Active: <html:text property="active"/><br/>
    Bod: <html:text property="bod"/><br/>
          <html:submit property="submit" onclick="bCancel=false;">
             <bean:message key="button.save"/>
          </html:submit>
    <html:cancel/>
    </html:form>
    </body>
    </html>

    anybody can help?

  • OracleAS 9.0.4 Clustering and HttpSession

    Does OracleAS 9.0.4 Clustering replicate HttpSession state between cluster nodes or just stateful session bean state?
    Thanks
    Bill

    "Checking operating system version: must be 5200 Failed <<<<"
    So don't install this version on AIX 5.3. AS 9.0.4 has been desupported. Please don't get yourself into the hell of installing it and especially not on AIX.
    Install 10.1.2.0.2, and not before you have read the certification notes on MetaLink and taken every step you need to install on this challenging platform!

  • Mobile App Challenge 6/17/2013 - 7/01/2013

    MOBILE CHALLENGE CONTEST INFORMATION
    This Contest opens on February 11th, 2013 with a new challenge every two weeks until July 31st  2013.
    What is a stream cipher?
    A.     Cipher that encrypts a byte at a time
    B.     Cipher that encrypts a block at a time.
    C.    Stream is not a valid type of cipher
    D.    Cipher that encrypts one bit at a time
    CONTEST RULES: How to Enter
    MOBILE CHALLENGE CONTEST INFORMATION
    Step 1: Download and register on the Cisco Technical Support Mobile App on your mobile device. If you are already a registered member of the    Cisco Technical Support Mobile App, please skip Step 1 and go to Step 2.
    Step 2: To participate in this challenge, Login and go to Browse Communities    under Support Community. Then find Online Tools and Resources >   Cisco  Technical Support Mobile Apps > Mobile Challenge MM/DD/YYYY.    All  challenges will be named Mobile Challenge followed by the start   date.
    Step 3: Post your response to the challenge question using the mobile app by the end date.
    Note:  To post your response, click on Reply from the Action menu. On   iOS, the  Action menu is available from the Action button on the top   right of the  page and on Android the Action overflow in the Action bar   displays the  Reply option.
    The winner will be announced on 6/14/2013.
    JUDGING CRITERIA.
    All  entries marked with correct answers, received during the Mobile    Challenge Period above will be entered into a bi-weekly random drawing    where the winner will be selected by a representative of Sponsor from    among all eligible entries received.  The drawing will be held at the    end of each contest period during the challenge Period.
    The Sponsor’s decision will be final in all matters.  Odds of winning depend on the total number of eligible entries received by the Sponsor.
    For full rules and eligibility please visit the official
    contest rules page.

    Hello
    I has to look his up - Answer D
    Wikipedia states:
    In cryptography
    , a *stream cipher* is a symmetric key
     cipher
     where plaintext digits are combined with apseudorandom
     cipher digit stream (keystream
    ). In a stream cipher each plaintext
     digit
     is encrypted one at a time with the corresponding digit of the keystream, to give a digit of the ciphertext stream. An alternative name is a *state cipher*, as the encryption of each digit is dependent on the current state. In practice, a digit is typically a bit
     and the combining operation an exclusive-or
     (xor).
    Res
    Paul

  • Validation, Task Flow, Servlet, Pop-up, and a Managed Bean

    Hi,
    We're trying to display a PDF in a pop-up by calling a Servlet within a JSF page by using a task flow in JDeveloper 11g R2.
    The relevant JSF snippet:
    <af:inlineFrame id="if1" shortDesc="Report" source="/pdfservlet" styleClass="AFStretchWidth"></af:inlineFrame>The /pdfservlet points to a Servlet with a doGet method as follows:
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      response.reset();
      OutputStream out = response.getOutputStream();
      FacesContext context = this.getFacesContext(request, response);
      OracleReportBean bean =
        context.getApplication().evaluateExpressionGet(context, "#{reportBean}", OracleReportBean.class);
      bean.run(context, out);
      removeFacesContext();
      out.close();
    }The Servlet attempts to get the FacesContext, but we've encountered the following exception:
    Caused By: javax.faces.FacesException: Cant instantiate class: oracle.adfinternal.view.faces.component.AdfViewRoot.We removed the following lines from the getFacesContext() method:
    UIViewRoot view = facesContext.getApplication().getViewHandler().createView(facesContext, "");
    facesContext.setViewRoot(view);This avoids the exception above, however... We're trying to get the parameters from the form that was submitted. Here is an example element from the form:
    <h:inputHidden value="MyMedicationList_Report" id="system_REPORT_RESOURCE"/>When the Servlet calls the Managed Bean to retrieve the value, it uses:
    Map<String, String[]> requestParameters = getRequestParameters();
    Parameters p = getParameters();
    for( String key : requestParameters.keySet() ) {
      for( String value : requestParameters.get( key ) ) {
        int i = key.indexOf( ':' );
        if( i >= 0 ) {
          key = key.substring( i + 1 );
        p.put( key, value );
    }Where getRequestParameters() attempts to get the external context to retrieve the request parameter values map:
    return getExternalContext().getRequestParameterValuesMap();The map comes up empty.
    I've tried following http://www.oracle.com/technetwork/developer-tools/adf/learnmore/oct2010-otn-harvest-183714.pdf by setting the web.xml to:
      <!-- JspFilter must be configured before adfBindings. -->
      <filter-mapping>
        <filter-name>JpsFilter</filter-name>
        <servlet-name>PDFServlet</servlet-name>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
        <dispatcher>REQUEST</dispatcher>
      </filter-mapping>
      <filter-mapping>
        <filter-name>adfBindings</filter-name>
        <servlet-name>PDFServlet</servlet-name>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>REQUEST</dispatcher>
      </filter-mapping>And set the data bindings to:
      <pageMap>
        <page path="/pdfservlet" usageId="ca_bcpra_promis_reporting_view_PDFServletPageDef"/>
      </pageMap>
      <pageDefinitionUsages>
        <page id="ca_bcpra_promis_reporting_view_PDFServletPageDef" path="ca.bcpra.promis.reporting.view.PDFServletPageDef"/>
      </pageDefinitionUsages>The Servlet executes, calls the instantiated managed bean, but cannot read the request parameters.
    The button used to launch the task flow in a dialog is:
    <af:commandButton text="Run Report" id="submitReport" useWindow="true"
                      windowEmbedStyle="inlineDocument" windowModalityType="applicationModal" windowHeight="500"
                      windowWidth="700" action="runReport"/>By using a task flow, the user inputs are validated before the pop-up is opened. We want to keep that behaviour. The PDF opens and then returns with a NullPointerException:
    http://pastebin.com/raw.php?i=PaM64jL4
    The Servlet, through the managed bean, makes a request to the report server to pass parameters and generate a PDF. The PDF is streamed back to the browser via the Servlet.
    What other approaches can we take to:
    1. Send user and system parameters.
    2. Generate a PDF on a remote server.
    3. Stream the PDF back to the user in a pop-up.
    Thank you.

    It is not a static PDF. The PDF is generated, dynamically, on the report server using the parameters from multiple forms on the page.
    We've leveraged the HttpSession getSessionMap() object for now. When combined with a Method Task Flow, we can transfer the data (and FacesContext) to the report Servlet. For example, the following code exposes objects that the Servlet needs through the session:
      public void initReport(String reportName) {
        FacesContext context = FacesContext.getCurrentInstance();
        ExternalContext ec = context.getExternalContext();
        OracleReportBean bean =
          context.getApplication().evaluateExpressionGet(context, "#{reportBean}", OracleReportBean.class);
        bean.setFacesContext(context);
        ec.getSessionMap().put("reportBean", bean);
        ec.getSessionMap().put(Parameters.PARAM_REPORT_RESOURCE, reportName);
      }This means the Servlet can use the object:
      protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.reset();
        // Find the bean from the session.
        OracleReportBean bean = (OracleReportBean)request.getSession().getAttribute("reportBean");
        OutputStream out = response.getOutputStream();
        bean.run(out);
        out.close();
      }This allows the bean to generate reports.

  • Problem in struts validator

    hai
    I have a problem while using the struts validator in my program.
    It gives the error as:
    HTTP Status 404 - Servlet action is not available
    type Status report
    message Servlet action is not available
    description The requested resource (Servlet action is not available) is not available.
    The program is given below
    File : one.jsp
    <html:form action="/test" method="post">
    <table width="309">
    <tr>
    <td width="149"><div align="right">User Name: </div></td>
    <td width="148"><html:text property="username" value=""/></td>
    </tr>
    <tr>
    <td><div align="right">PassWord: </div></td>
    <td><html:password property="password" value="" /> </td>
    </tr>
         <tr>
    <td><div align="right">Number: </div></td>
    <td><html:password property="number" value="" /> </td>
    </tr>
    <tr>
    <td><div align="right"></div></td>
    <td><html:submit /> </td>
    </tr>
    </table>
    </html:form>
    web.xml file is ordineary file which contains the tag which is necessary for the struts.
    File : struts-config.xml
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <global-forwards>
    <forward name="database" path="/database"/>
    </global-forwards>
    <form-beans>
    <form-bean name="form1" type="struts1.bean1">
    </form-bean>      
    </form-beans>
    <action-mappings>
    <action path="/test" name="form1" type="struts1.one" input="one.jsp" validate="true" scope="request" >
         <forward name="success" path="/two.jsp"/>
    </action>
    </action-mappings>
    <message-resources parameter="ApplicationResources" />
    <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
         <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
    </plug-in>
    </struts-config>
    File validator.xml
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
    "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">
    <form-validation>
    <formset>
    <!-- Form for Validation example -->
    <form name="form1">
    <field property="username" depends="required">
    <arg0 key="test.string"/>
    </field>
    <field property="password" depends="required">
    <arg0 key="test.password"/>
    </field>
    <field property="number" depends="required">
    <arg0 key="test.number"/>
    </field>
    </form>
    </formset>
    </form-validation>
    File validator-rules.xml
    The validator-rules.xml file is default validator-rules.xml file.
    Iam using the two java file for ActionForm and Action
    ActionForm file
    package struts1;
    import org.apache.struts.validator.ValidatorForm;
    public class bean1 extends ValidatorForm
    private String username=null;
    private String password=null;
    private int number=0;
    public void setUsername(String username)
    this.username=username;
    public String getUsername()
    return username;
    public void setPassword(String password)
    this.password=password;
    public String getPassword()
    return password;
    public void setNumber(int number)
    this.number=number;
    public int getNumber()
    return number;
    Action class:
    package struts1;
    import struts1.bean1;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.DynaActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.validator.ValidatorActionForm;
    import org.apache.struts.validator.ValidatorForm;
    import java.io.IOException;
    import javax.servlet.ServletException;
    public class one extends Action
    public ActionForward execute(ActionMapping mapping,ActionForm form1,HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException
    String uname=null;
    String pword=null;
    String target=new String("success");
    int num=0;
    HttpSession session=request.getSession(true);
    try
    if(form1 !=null)
    bean1 form=(bean1) form1;
    uname=form.getUsername();
    pword=form.getPassword();
    num=form.getNumber();
    session.setAttribute("uname",uname);
    session.setAttribute("word",pword);
    session.setAttribute("num",""+num);
    catch(Exception e)
    return mapping.findForward(target);
    In two.jsp file Iam just getting the session value and displaying the result.
    The Action and ActionForm are used inside the struts1 file which is placed inside the classes folder.
    The Two file is also compiled successful.
    When executing the one.jsp file is displayed but when clicking the submit button it giving the error as servlet action is not available.
    So Iam try to change some coding in the Action Class
    In the execute method I changed ValidatorForm instead of ActionForm.
    but it giving the same error.
    The same error is displayed when Iam trying the DynaValidatorForm
    instead of struts bean class i.e ActionForm.
    If any one knows what is the problem in the program please give some instrutction to correct the error or give some simple example program for practice.
    Regards
    A.K. Raj

    Add the Validator as the 6th argument and it should work fine.
    Amy
    <validator name="required"
    classname="org.apache.struts.validator.FieldChecks"
    method="validateRequired"
    methodParams="java.lang.Object,
    org.apache.commons.validator.ValidatorAction,
    org.apache.commons.validator.Field,
    org.apache.struts.action.ActionMessages,
    org.apache.commons.validator.Validator,
    javax.servlet.http.HttpServletRequest"
    msg="errors.required"/>

  • [Competition] International Project CARS Challenge

    It's time for another PlayStation Plus International Challenge!
    Prepare to race the clock and your fellow challengers, the ultimate test of speed and skill with Project CARS!
    Your opponents will be:
       German forum
     Polish forum
     Spanish forum
     French forum
        Italian forum
        Russian forum
        English forum
        Portuguese forum
        Greek forum
        Dutch forum
    - What you need to know:
    For this challenge, we will provide a total of 6 custom tracks over the course of 6 weeks. There will also be a prize for the fastest time within our community in each track! That's right - we will offer 6 prizes, one for each of our most skilled drivers.
    On top of that, at the end of the 6 tracks, we will add up everyone's points and the top 16 with the highest score will be qualified for the European Grand Final for a multiplayer race to determine the Project CARS European Champion! Make sure to participate in each of our tracks for the best chance at earning a place in the final. 
    The champion will earn their place in our special European Champions Leaderboard:
    http://community.eu.playstation.com/t5/PS-Plus/European-Champions-Leaderboard/td-p/23310093 
    More information about the qualification rules:
    If there are multiple players tied for the 16th position, the tie-breakers will be as follows in this order:
    - Tie-breaker 1: Highest number of tracks ran in the competition
    - Tie-breaker 2: We will add the times from each participant for each of their tracks, and the fastest time wins
    - Tie-breaker 3: If multiple players still have the same time among the 6 tracks, we will randomly pick the qualified player(s)
    - How many points will you win at the end of a track?
    For each track we will be awarding points for each placement, as illustrated below:
    1st place - 27 points
    2nd place - 22 points
    3rd place - 18 points
    4th place - 15 points
    5th place - 13 points
    6th place - 12 points
    7th place - 11 points
    8th place - 10 points
    9th place - 9 points
    10th place - 8 points
    11th place - 7 points
    12th place - 6 points
    13th place - 5 points
    14th place - 4 points
    15th place - 3 points
    16th place - 2 points
    17th place and onwards - 1 point
    This leaderboard will be the European leaderboard - players from all over Europe will be directly competing with you!
    - How do I participate?
    For each of our custom tracks, you will be required to play the track in Time Trial Mode, and post a screenshot of your best lap time. We will organise challengers into a leaderboard over the course of the week the track is running, so you can keep an eye on your competitors' times. Please note that you can submit a screenshot/time as many times as you like, as we will only take into account your best time.
    The elements we will be looking at are in red. Please note that we expect this specific type of screenshot, and other screenshots may be disregarded. Please also note that we will be looking at the "Lap" time, not the "Best Lap", as we want to see who does best within the time awarded.
    Taking a Screenshot with your PS4:
    After you have passed the finish line and you are satisfied with your lap time, press the options button to display your scoreboard, as in the example below. Then, press the 'Share' button on your Dualshock 4 controller, and upload the screenshot to social media or download it onto a USB stick. After retrieving the screenshot, post it on the forum and we'll add your name to the leaderboard!
    European Points Leaderboard
    Our first track:
    Mode: Time Trial
    Track Name: Dubai GP
    Car Type: Open Wheel
    Car Model: Formula B
    Track 1, Dubai GP Leaderboard - 13th of July - 20th of July
    Prize - MotoGP 15 (PS4)
    UK Winner - 
    The first track is now over! Here is our second track:
    Mode: Time Trial
    Track Name: Imola
    Car Type: GT
    Car Model: Pagani Zonda R
    Track 2, Imola Leaderboard - 20th of July - 27th of July
    Prizes - Full Auto 2: Battlelines (PS3), MX vs. ATV: Untamed (PS3) & Cars: Mater-national Championship (PS3)
    UK Winner - 
    The second track is now over! Here is our third track:
    Mode: Time Trial
    Track Name: Le Mans, 24h
    Car Type: Prototype
    Car Model: Audi R18 TDI
    Track 3, Le Mans 24h Leaderboard - 27th of July - 3rd of August
    Prize - Le Tour de France (PS4)
    UK Winner - 
    The third track is now over! Here is our fourth track:
    Mode: Time Trial
    Track Name: Brno
    Car Type: Touring
    Car Model: Renault Clio Cup
    Track 4, Brno Leaderboard - 3rd of August - 10th of August
    Prize - MX vs. ATV Supercross (PS3), NASCAR 09 (PS3), Juiced 2: Hot Import Nights (PS3)
    UK Winner - 
    The fourth track is now over! Here is our fifth track:
    Mode: Time Trial
    Track Name: Road America
    Car Type: Road
    Car Model: McLaren 12C
    Track 5, Road America Leaderboard - 10th of August - 17th of August
    Prize - Motorcycle Club (PS4)
    UK Winner - 
    The fifth track is now over! Here is our sixth and final track:
    Mode: Time Trial
    Track Name: Azure Circuit
    Car Type: Open Wheel
    Car Model: Formula A
    Track 6, Azure Circuit Leaderboard - 17th of August - 24th of August
    Prize - Voucher Code for Project CARS DLC
    I have read and understood the Terms & Conditions
    Personal data collected via this competition will be dealt with in accordance with our privacy policy: http://legaldoc.dl.playstation.net/ps3-eula/psn/e/e_privacy_en.html

    InsaneBirch wrote:
    - How do I participate?
    For each of our custom tracks, you will be required to play the track in Time Trial Mode, and post a screenshot of your best lap time. We will organise challengers into a leaderboard over the course of the week the track is running, so you can keep an eye on your competitors' times. Please note that you can submit a screenshot/time as many times as you like, as we will only take into account your best time.
    Section 7 of the "Specific Rules for “International Project CARS Challenge” Competition" states that "Each Entrant may only submit one (1) entry per Weekly Track and will only be eligible to win one (1) Prize per Weekly Track (as defined below)"
    Can you confirm which is correct?
    Also, there will be tracks where passing over the white line (deemed the 'track') will not invalidate lap times. As there is no way to verify whether one has abused the track 'limits', can we assume the laps submitted are correct as far as the game sees it?
    I have set a very competitve time but do not want to comment without confirmation of my first point above.
     You can post as many attempts as you wish. Only 1 of those (You're fastest) will count as the 1 valid entry.
    There is no way to tell if a driver has exceeded track limits, without a video. Which isn't required in the stated competition rules. Therefore, what the game deems the track, will count as as a valid time.

Maybe you are looking for