Specification of user's servlets

Hi,
I am working on tomcat4.1 and the servlets were also working fine.But in an attempt of doing some R&D I changed my server.xml.Now all the servlets in webapps/examples/ are working fine.But if I create a new directory below webapps like c:\jakart1.1\webapps\myapp and try to see my own servlets in the browser,I get the famous 404 error "resource not available".
THese are the directories I have:
c:\jakart1.1\webapps\myapp\images
c:\jakart1.1\webapps\myapp\jsp
c:\jakart1.1\webapps\myapp\root
c:\jakart1.1\webapps\myapp\servlets
c:\jakart1.1\webapps\myapp\WEB-INF
c:\jakart1.1\webapps\myapp\WEB-INF\classes
c:\jakart1.1\webapps\myapp\WEB-INF\jsp
c:\jakart1.1\webapps\myapp\WEB-INF\web.xml
Also in web.xml I have the following lines:
<servlet>
<servlet-name>
servletToJsp
</servlet-name>
<servlet-class>
servletToJsp
</servlet-class>
</servlet>
DO I need to also have /examples" in the path.
I need to know if there is something I need to change in server.xml.I have changed it to
<Context path="/myapp" docBase="myapp" debug="0"
reloadable="true" crossContext="true">
Is there anything else needed to be done?In any other file?I know the problem is in between the mapping of the url and the directory myapp.How do I specify for url to look for myapp directory.
Please help!!!!
Thanks

Begging your pardon, but by your own description of the solution to your problem, it sounds as if your configuration was exactly the problem - it had absolutely nothing to do with the servlet(s). 404 errors mean that the client request isn't mapping to an available server resource. That's a configuration problem with the server.
By your admission, your problem had nothing to do with servlets - it was a container configuration issue, and a "looking for the wrong URL" issue (which I should point out nobody in the forums could have detected - you didn't offer the URL you were trying to use). You didn't have the web.xml or the associated class files properly deployed. That's a configuration issue, albeit one which applies fairly generically to all containers.
Also - you say that 404 errors are common, and therefore belong in this forum. I disagree - as I pointed out above, 404 errors are container configuration errors, they are not servlet programming problems. Further, there are tons of servlet containers, and you seem to be making the assumption that Tomcat is the only one. As you mentioned yourself - "TO solve it we need to know the exact working of servlets in tomcat and the directory structure." Well, you're right, you do need to know those things. However, those are tomcat configuration issues, not servlet issues.
Finally - you mentioned that you had to have both the class and java files deployed to the container? Are you sure that you didn't just need the class files? I confess that I'm no Tomcat expert, but I've never encountered a container which required the original source files to be deployed along side the compiled class files...

Similar Messages

  • Is there a way to find out whether my imessages are being received by a specific iphone user or if there is a problem with their phone? Cannot get in touch with an out of state friend for several days.

    I'm looking for a way to check and see if a specific iPhone user is receiving my imessages or if there phone is not working properly.  I cannot get in touch with an out of state friend for several days and the only number I have is to their cell (iphone).  Thank you.

    YYou can only get a read receipt, not if they only received it.
    http://m.imore.com/how-turn-and-read-receipts-imessage

  • How to only synchronize one specific LDAP user group with SAP?

    Hi,
    Hopefully this is the correct forum to post this in. I want to have continuous one-way synchronization of users from my LDAP server to my SAP central system. I've started configure in SAP using transaction SM59 and LDAP. Can I somewhere set that only one specific LDAP user group shall be transferred to SAP (they do not need to be assigned to any specific group, profile, role in SAP) - or should this be done on the LDAP server side (or is it at all possible)?
    Correct me if I'm wrong, but the User Group field in the report RSLDAPSYNC_USER only concerns SAP user groups right? This would therefore not be sufficient since I want to select the users to synchronize based on user groups in the directory.
    Thanks, Oscar

    We've used a repository constant to specify the LDAP filter for reading users / groups from the LDAP target.
    E.g. LDAP_FILTER_USERS (&(objectCategory=person)(objectClass=user))
    Then we also have a constant for the LDAP_STARTING_POINT
    For our AD Group Initial Load we filter according to these settings:
    LDAP_FILTER_GROUPS = (objectclass=group)
    LDAP_STARTING_POINT_GROUPS = ou=IDMManagedGroups,ou=Groups,dc=cfstest,dc=le,dc=ac,dc=uk
    The above example only reads AD groups starting at the specified OU
    Then in a Job From LDAP Pass the LDAP URL looks like this:
    LDAP://%$rep.LDAP_HOST%:%$rep.LDAP_PORT%/%$rep.LDAP_STARTING_POINT_GROUPS%?*?SUB?%$rep.LDAP_FILTER_GROUPS%
    I hope this helps
    Paul

  • How to authenticate only specific AD users in ACS 5.1

    Hi All,
    Is it possible for ACS 5.1 to only allow specific AD users to authenticate the switches and routers?
    Currently What I have configured is onlyfor all AD users. I can't seem to find a way to be selective.
    Thanks
    Regards

    Hi Ryan,
    The way to control Active Directory access is via the Directory Groups tab under
    Users and Identity Stores --> External Identity Stores --> Active Directory.
    The way to permit TACACS+ mgmt access to your infrastructure devices is as follows:
    1. Make your network admins part of a specific AD group
    2. Add that AD group to the list of Directory Groups
    3. In the Access Policy, click the Customize button as Mauricio  suggested, and add "AD1:External Groups" to the selected critieria
    4. In the policy rule, you will now be able to select your specific AD group to match against.
    Additionally,  you may want to verify that the identity selection is set to only check  AD for the authentication portion, by default I think (if I'm not  mistaken) the identity check should be AD1 (Active Directory only), but  it's best to confirm that part as well.

  • Unable to login to specific apps users in R12.1.3

    Dear All,
    We have R12 application running on IBM AIX power on machines.
    Recently we have faced some hardware problem in the server and after replacement of hardware, we are facing this issue.
    "Login failed. Please verify your login information or contact the system administrator."
    The root cause of this issues is specific apps users status are inactive.
    Hence we are unable to change the password also.
    Kindly suggest us to overcome this problem.
    Thanks in Advance,
    Gunasekar K.

    We have tried to reset the password using sysadmin but when retyping password in forms shows as "Login failed. Please verify your login information".
    Was the change saved successfully to the database?
    We have tried to reset the users password using FNDCPASS also but its not showing any error message, even not able to login again.
    For both cases you should find more details about the error in the logs (error_log* and access_log* -- Enable debug as mentioned below).
    Using sysadmin, when we query the specific users information, it shows that status as "INACTIVE" and even these users are not end-dated.
    Are you sure the new password was saved successfully?
    I have crosschecked access.log and error.log, there is no information related error.
    Are there any errors in the database log file? Any invalid objects?
    Please enable debug as per (R12, 12.1 - How To Enable and Collect Debug for HTTP, OC4J and OPMN (Doc ID 422419.1)) and check the logs then.
    Thanks,
    Hussein

  • Delegate specific domain user to do add/remove hardware&software, join to domain feature only.

    Dear team;
    I want to Delegate specific domain user to do two things add/remove hardware/software, join to domain feature only without give him Local admin
    Best regards
    LAshkham

    Hi,
    Please understand that if you want make some specific domain users add/remove hardware/software on domain computers, you should grant these users the local admin right. We could grant the local
    admin right using Restricted Groups Policy Settings or Local Users and Groups GPP setting. For details, please refer to the following articles.
    Restricted Groups Policy Settings
    http://technet.microsoft.com/en-us/library/cc756802(v=ws.10).aspx
    How to use Group Policy Preferences to Secure Local Administrator Groups
    http://www.grouppolicy.biz/2010/01/how-to-use-group-policy-preferences-to-secure-local-administrator-groups/
    You also mentioned that you want to delegate the
    Join a computer to a domain task to these specific users. Regarding the request, we could delegate the task via Delegation of Control Wizard. For details, please refer to the following article.
    Delegation of Control Wizard
    http://technet.microsoft.com/en-us/library/dd145344.aspx
    Hope this helps.
    Best Regards,
    Andy Qi
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Andy Qi
    TechNet Community Support

  • Sharing playlists with specific spotify users (neither public nor collaboration)

    Hello. Hope someone can help me with this. I do not want my friends to sign up to Facebook. They have spotify.
    I do not want my playlists to be public. I want specific friends (who have spotify user accounts) to access my playlist because I allow them. I do not want them to "collaborate" and add to it.
    What are the steps to do this? Why is the UX so arcane inside spotify? Much appreciate any pointer. Thank you.

    Currently, the only thing you can do is share your private playlist.
    You have the ability to send it to individual people to view or you can post to your followers. 

  • Search for records in the event viewer after the last run (not the entire event log), remove duplicate - Output Logon type for a specific OU users

    Hi,
    The following code works perfectly for me and give me a list of users for a specific OU and their respective logon types :-
    $logFile = 'c:\test\test.txt'
    $_myOU = "OU=ABC,dc=contosso,DC=com"
    # LogonType as per technet
    $_logontype = @{
        2 = "Interactive" 
        3 = "Network"
        4 = "Batch"
        5 = "Service"
        7 = "Unlock"
        8 = "NetworkCleartext"
        9 = "NewCredentials"
        10 = "RemoteInteractive"
        11 = "CachedInteractive"
    Get-WinEvent -FilterXml "<QueryList><Query Id=""0"" Path=""Security""><Select Path=""Security"">*[System[(EventID=4624)]]</Select><Suppress Path=""Security"">*[EventData[Data[@Name=""SubjectLogonId""]=""0x0""
    or Data[@Name=""TargetDomainName""]=""NT AUTHORITY"" or Data[@Name=""TargetDomainName""]=""Window Manager""]]</Suppress></Query></QueryList>" -ComputerName
    "XYZ" | ForEach-Object {
        #TargetUserSid
        $_cur_OU = ([ADSI]"LDAP://<SID=$(($_.Properties[4]).Value.Value)>").distinguishedName
        If ( $_cur_OU -like "*$_myOU" ) {
            $_cur_OU
            #LogonType
            $_logontype[ [int] $_.Properties[8].Value ]
    #Time-created
    $_.TimeCreated
        $_.Properties[18].Value
    } >> $logFile
    I am able to pipe the results to a file however, I would like to convert it to CSV/HTML When i try "convertto-HTML"
    function it converts certain values . Also,
    a) I would like to remove duplicate entries when the script runs only for that execution. 
    b) When the script is run, we may be able to search for records after the last run and not search in the same
    records that we have looked into before.
    PLEASE HELP ! 

    If you just want to look for the new events since the last run, I suggest to record the EventRecordID of the last event you parsed and use it as a reference in your filter. For example:
    <QueryList>
      <Query Id="0" Path="Security">
        <Select Path="Security">*[System[(EventID=4624 and
    EventRecordID>46452302)]]</Select>
        <Suppress Path="Security">*[EventData[Data[@Name="SubjectLogonId"]="0x0" or Data[@Name="TargetDomainName"]="NT AUTHORITY" or Data[@Name="TargetDomainName"]="Window Manager"]]</Suppress>
      </Query>
    </QueryList>
    That's this logic that the Server Manager of Windows Serve 2012 is using to save time, CPU and bandwidth. The problem is how to get that number and provide it to your next run. You can store in a file and read it at the beginning. If not found, you
    can go through the all event list.
    Let's say you store it in a simple text file, ref.txt
    1234
    At the beginning just read it.
    Try {
    $_intMyRef = [int] (Get-Content .\ref.txt)
    Catch {
    Write-Host "The reference EventRecordID cannot be found." -ForegroundColor Red
    $_intMyRef = 0
    This is very lazy check. You can do a proper parsing etc... That's a quick dirty way. If I can read
    it and parse it as an integer, I use it. Else, I just set it to 0 meaning I'll collect all info.
    Then include it in your filter. You Get-WinEvent becomes:
    Get-WinEvent -FilterXml "<QueryList><Query Id=""0"" Path=""Security""><Select Path=""Security"">*[System[(EventID=4624 and EventRecordID&gt;$_intMyRef)]]</Select><Suppress Path=""Security"">*[EventData[Data[@Name=""SubjectLogonId""]=""0x0"" or Data[@Name=""TargetDomainName""]=""NT AUTHORITY"" or Data[@Name=""TargetDomainName""]=""Window Manager""]]</Suppress></Query></QueryList>"
    At the end of your script, store the last value you got into your ref.txt file. So you can for example get that info in the loop. Like:
    $Result += $LogonRecord
    $_intLastId = $Event.RecordId
    And at the end:
    Write-Output $_intLastId | Out-File .\ref.txt
    Then next time you run it, it is just scanning the delta. Note that I prefer this versus the date filter in case of the machine wasn't active for long or in case of time sync issue which can sometimes mess up with the date based filters.
    If you want to go for a date filtering, do it at the Get-WinEvent level, not in the Where-Object. If the query is local, it doesn't change much. But in remote system, it does the filter on the remote side therefore you're saving time and resources on your
    side. So for example for the last 30 days, and if you want to use the XMLFilter parameter, you can use:
    <QueryList>
    <Query Id="0" Path="Security">
    <Select Path="Security">*[System[TimeCreated[timediff(@SystemTime) &lt;= 2592000000]]]</Select>
    </Query>
    </QueryList>
    Then you can combine it, etc...
    PS, I used the confusing underscores because I like it ;)
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • How to pass the userid to a page and have the page display dynamic data specific to user?

    I am developing a web app and can create a user ID log in page.  The app has a login page, view data page, and a post data page.  I want the user to be able to login and view the data unique to them they have posted.  Also from the view data page is a link to a post data page where they can post more data to be viewed.
    I have 2 tables in the database: one for "people" with a column for email.  ID and email are primary key.  The other table is "datapost" with a column name for email.  Id is primary key and email is a foreign key that references the 'person' table.
    After the user logs in they should go to view data and see their data, the page is going to view data, but it is not pulling up their specific data.  Below is the code for the pages:
    Can anyone point me to a resource where I can view some example code?  ( I tried to paste what I had in this messagae but it wouldn't paste and pages are on server yet to view.)  I have read ALMOST ALL of the Adobe tutorials and tech notes but no answer.

    I am using PHP and MySQL.  I'm using sessions.
    PHP from the login page:
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
    $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) :
    $theValue;
      $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
          break;
      return $theValue;
    $colname_statuserlogin = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_statuserlogin = $_SESSION['MM_Username'];
    mysql_select_db($database_statprogram, $statprogram);
    $query_statuserlogin = sprintf("SELECT email, password FROM people WHERE
    email = %s", GetSQLValueString($colname_statuserlogin, "text"));
    $statuserlogin = mysql_query($query_statuserlogin, $statprogram) or
    die(mysql_error());
    $row_statuserlogin = mysql_fetch_assoc($statuserlogin);
    $totalRows_statuserlogin = mysql_num_rows($statuserlogin);
    $colname_statuserlogin = "-1";
    if (isset($_SERVER['email'])) {
      $colname_statuserlogin = $_SERVER['email'];
    mysql_select_db($database_statprogram, $statprogram);
    $query_statuserlogin = sprintf("SELECT email, password FROM people WHERE
    email = %s", GetSQLValueString($colname_statuserlogin, "text"));
    $statuserlogin = mysql_query($query_statuserlogin, $statprogram) or
    die(mysql_error());
    $row_statuserlogin = mysql_fetch_assoc($statuserlogin);
    mysql_select_db($database_statprogram, $statprogram);
    $query_statuserlogin = "SELECT * FROM datapost";
    $statuserlogin = mysql_query($query_statuserlogin, $statprogram) or
    die(mysql_error());
    $row_statuserlogin = mysql_fetch_assoc($statuserlogin);
    $totalRows_statuserlogin = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $totalRows_statuserlogin = $_SESSION['MM_Username'];
    $colname_statuserlogin = "-1";
    if (isset()) {
      $colname_statuserlogin = ;
    mysql_select_db($database_statprogram, $statprogram);
    $query_statuserlogin = sprintf("SELECT * FROM datapost WHERE email = %s",
    GetSQLValueString($colname_statuserlogin, "text"));
    $statuserlogin = mysql_query($query_statuserlogin, $statprogram) or
    die(mysql_error());
    $row_statuserlogin = mysql_fetch_assoc($statuserlogin);
    $query_statuserlogin = "SELECT email, password FROM people";
    $statuserlogin = mysql_query($query_statuserlogin, $statprogram) or
    die(mysql_error());
    $row_statuserlogin = mysql_fetch_assoc($statuserlogin);
    $totalRows_statuserlogin = mysql_num_rows($statuserlogin);
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['email'])) {
      $loginUsername=$_POST['email'];
      $password=$_POST['password'];
      $MM_fldUserAuthorization = "email";
      $MM_redirectLoginSuccess = "statfatviewdata.php";
      $MM_redirectLoginFailed = "statfatuserlogin.php";
      $MM_redirecttoReferrer = true;
      mysql_select_db($database_statprogram, $statprogram);
      $LoginRS__query=sprintf("SELECT email, password, email FROM people WHERE
    email=%s AND password=%s",
      GetSQLValueString($loginUsername, "text"), GetSQLValueString($password,
    "text"));
      $LoginRS = mysql_query($LoginRS__query, $statprogram) or
    die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
        $loginStrGroup  = mysql_result($LoginRS,0,'email');
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;
        if (isset($_SESSION['PrevUrl']) && true) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    PHP from the view data page:
    <?php
    //initialize the session
    if (!isset($_SESSION)) {
      session_start();
    // ** Logout the current user. **
    $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
    if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
      $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
      //to fully log out a visitor we need to clear the session varialbles
      $_SESSION['MM_Username'] = NULL;
      $_SESSION['MM_UserGroup'] = NULL;
      $_SESSION['PrevUrl'] = NULL;
      unset($_SESSION['MM_Username']);
      unset($_SESSION['MM_UserGroup']);
      unset($_SESSION['PrevUrl']);
      $logoutGoTo = "statfatthankyou.php";
      if ($logoutGoTo) {
        header("Location: $logoutGoTo");
        exit;
    ?>
    <?php
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "";
    $MM_donotCheckaccess = "true";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable
    MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session
    variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain
    users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their
    username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && true) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "statfatuserlogin.php";
    if (!((isset($_SESSION['MM_Username'])) &&
    (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'],
    $_SESSION['MM_UserGroup'])))) {
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0)
      $MM_referrer .= "?" . $QUERY_STRING;
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" .
    urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
    $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) :
    $theValue;
      $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
          break;
      return $theValue;
    }if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
    $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) :
    $theValue;
      $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
          break;
      return $theValue;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_statviewdata = 1;
    $pageNum_statviewdata = 0;
    if (isset($_GET['pageNum_statviewdata'])) {
      $pageNum_statviewdata = $_GET['pageNum_statviewdata'];
    $startRow_statviewdata = $pageNum_statviewdata * $maxRows_statviewdata;
    $colname_statviewdata = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_statviewdata = $_SESSION['MM_Username'];
    mysql_select_db($database_statprogram, $statprogram);
    $query_statviewdata = sprintf("SELECT * FROM datapost WHERE email = %s",
    GetSQLValueString($colname_statviewdata, "text"));
    $query_limit_statviewdata = sprintf("%s LIMIT %d, %d", $query_statviewdata,
    $startRow_statviewdata, $maxRows_statviewdata);
    $statviewdata = mysql_query($query_limit_statviewdata, $statprogram) or
    die(mysql_error());
    $row_statviewdata = mysql_fetch_assoc($statviewdata);
    if (isset($_GET['totalRows_statviewdata'])) {
      $totalRows_statviewdata = $_GET['totalRows_statviewdata'];
    } else {
      $all_statviewdata = mysql_query($query_statviewdata);
      $totalRows_statviewdata = mysql_num_rows($all_statviewdata);
    $totalPages_statviewdata =
    ceil($totalRows_statviewdata/$maxRows_statviewdata)-1;
    $pageNum_statviewdata = 0;
    if (isset($_GET['pageNum_statviewdata'])) {
      $pageNum_statviewdata = $_GET['pageNum_statviewdata'];
    $startRow_statviewdata = $pageNum_statviewdata * $maxRows_statviewdata;
    $maxRows_statfatstats = 10;
    $pageNum_statfatstats = 0;
    if (isset($_GET['pageNum_statfatstats'])) {
      $pageNum_statfatstats = $_GET['pageNum_statfatstats'];
    $startRow_statfatstats = $pageNum_statfatstats * $maxRows_statfatstats;
    $colname_statfatstats = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_statfatstats = $_SESSION['MM_Username'];
    mysql_select_db($database_statprogram, $statprogram);
    $query_statfatstats = sprintf("SELECT * FROM datapost WHERE email = %s",
    GetSQLValueString($colname_statfatstats, "text"));
    $query_limit_statfatstats = sprintf("%s LIMIT %d, %d", $query_statfatstats,
    $startRow_statfatstats, $maxRows_statfatstats);
    $statfatstats = mysql_query($query_limit_statfatstats, $statprogram) or
    die(mysql_error());
    $row_statfatstats = mysql_fetch_assoc($statfatstats);
    if (isset($_GET['totalRows_statfatstats'])) {
      $totalRows_statfatstats = $_GET['totalRows_statfatstats'];
    } else {
      $all_statfatstats = mysql_query($query_statfatstats);
      $totalRows_statfatstats = mysql_num_rows($all_statfatstats);
    $totalPages_statfatstats =
    ceil($totalRows_statfatstats/$maxRows_statfatstats)-1;
    $maxRows_stattotallost = 10;
    $pageNum_stattotallost = 0;
    if (isset($_GET['pageNum_stattotallost'])) {
      $pageNum_stattotallost = $_GET['pageNum_stattotallost'];
    $startRow_stattotallost = $pageNum_stattotallost * $maxRows_stattotallost;
    $colname_stattotallost = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_stattotallost = $_SESSION['MM_Username'];
    mysql_select_db($database_statprogram, $statprogram);
    $query_stattotallost = sprintf("SELECT totalincheslost, totalwtlost FROM
    datapost WHERE email = %s", GetSQLValueString($colname_stattotallost,
    "text"));
    $query_limit_stattotallost = sprintf("%s LIMIT %d, %d",
    $query_stattotallost, $startRow_stattotallost, $maxRows_stattotallost);
    $stattotallost = mysql_query($query_limit_stattotallost, $statprogram) or
    die(mysql_error());
    $row_stattotallost = mysql_fetch_assoc($stattotallost);
    if (isset($_GET['totalRows_stattotallost'])) {
      $totalRows_stattotallost = $_GET['totalRows_stattotallost'];
    } else {
      $all_stattotallost = mysql_query($query_stattotallost);
      $totalRows_stattotallost = mysql_num_rows($all_stattotallost);
    $totalPages_stattotallost =
    ceil($totalRows_stattotallost/$maxRows_stattotallost)-1;
    $queryString_statfatstats = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_statfatstats") == false &&
            stristr($param, "totalRows_statfatstats") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_statfatstats = "&" . htmlentities(implode("&",
    $newParams));
    $queryString_statfatstats = sprintf("&totalRows_statfatstats=%d%s",
    $totalRows_statfatstats, $queryString_statfatstats);
    ?>
    Thank you!

  • Apache + JK + Tomcat: Redirecting specific URL to a servlet

    Hi, everybody!
    I'm searching for a solution to my question for some time, but didn't find anything clear enough.
    So, my situation is:
    I have Apache 2.2 and Tomcat installed on my server. Apache is using JK Connector to send request to Tomcat.
    What do I need:
    I have a servlet that could be accessed through "http://mydomain.com/site/*". I can access, through this servlet, any of the site's sections. Like http://mydomain.com/site/news, http://mydomain.com/site/movies or http://mydomain.com/site/tech.
    I need to figure out a way of pointing one URL to each of these sections, but without changing the user URL. In other words, I have the domains www.mynews.com, www.mymovies.com and www.mytech.com, and would like that each one of these domains redirect to their respective servlet.
    So, is there a way of accomplish this task?
    Thank you,
    CaioToOn!

    Hi!
    I'm already mapping the final part of the URL. eg: "news", "tech".
    What I need is a way of mapping a domain to a sub-url, but avoiding changes on the user's browser url.
    I'm searching for a few days on the Tomcat manual, Apache manual and forums, but nothing like what I need 'til now. I'm still searching, but if someone there already know, I'll be very happy! I got kind of urgency.
    Thank you, again!
    CaioToOn!

  • Need Technical Specification on User Exits

    Hi all,
    can u send me a technical specification with coding on User exits. Hope u will send soon.
    Thanks in advance
    Venkat

    http://www.sappoint.com/abap/userexit.pdf
    Hope it helps.
    Regards.

  • How long is a thread in use when modem user hits servlet? (repost from misc group)

    I'm developing an application that will go out to many users on the
    internet. Most will be using modems and so my data center will have to
    trickle packets to them because of their low modem bandwidth. Each
    transaction is short lived, under 100ms, but I'm concerned that the
    execution thread in weblogic will be tied up for several seconds while the
    data served is tricked down over the modem.
    - Is the weblogic execution thread returned when a servlet call returns, or
    only when the stream back through the web server has been emptyied?
    - Will in fact calls to write to the output stream (or flushes at least) of
    the servlet block until the TCPIP stack returns with data sent OK - ie block
    until all the data is sent over the modem?
    - If I use buffered output streams with large enough buffers to hold all
    served data, and don't flush them before returning with the servlet call,
    what does weblogic do? Will weblogic hold the execution thread until it can
    empty the buffer, hence be delayed by the modem?
    - Does putting netscape enterprise server between weblogic and the client
    fix this - will enterprise server buffer the data?
    - Does setting keep alive in weblogic or enterprise server have any effect
    on this problem?
    Thanks.
    Mark Johnson
    Markj
    Mark Johnson.
    Encirq Corporation, San Francisco CA, (415)284-9800x116
    http://www.encirq.com/ [email protected]
    The information contained in this message is CONFIDENTIAL. It is intended
    only to be read by the individual or entity named above or their designee.
    If the reader of this message is not the intended recipient, you are on
    notice that any distribution of this message, in any form, is strictly
    prohibited. If you have received this message in error, please immediately
    notify the sender and/or Encirq Corporation by telephone at 415-284-9800 and
    delete or destroy any copy of this message.

    Thanks for your reply!!!
    jwenting wrote:
    no, your code is NOT correct.
    It doesn't "upload" anything, as I stated before.It is working perfectly fine if the destination folder is connected to the server machine (which is not the case now).
    >
    Look into multipart MIME requests, Jakarta Commons File Upload, and things like that to actually upload files to a server instead of insisting on reading them directly from the client's filesystem in your servlet and wondering why that doesn't work if the servlet container is running on a different computer from the client.I AM using Jakarta Commons File Upload. The problem is when I try to access the destination folder(which is in client machine), it can't find as it is searching for the corresponding folder in the server.
    >
    Unless and until you do that, you're wasting our time and your own.I thought someone could help me i giving me some pointers which I missed. Thanks again!!
    Edited by: AnishThomas on Mar 14, 2008 8:13 AM

  • Forwarding specific object to a servlet

    Hi!
    In my servlet, I want to 'attach' some data as an integer and a specific object I have created. The servletOne is located in a server, servletTwo in another one. I need to pass objects.
    I want to do something like that:
    int myInteger = 1;
    client myClient = new client();
    myClient.setName("carlos");
    request.getRequestDispatcher("servletTwo").forward(request, response);In this case, I want to passa an integer (myInteger) and client (myClient) object.
    How can I do that?
    Thanks in advanced,
    Carlos

    About cookies... I really prefer do it with session
    (if it is the only way to do that).Most sessions are implemented using Cookies behind the scenes. :)
    How can I share a session for 2 different context?I believe that is entirely up to the Servlet container you are using, as the servlet spec is silent on this issue (IIRC). Check your container documentation. But keep in mind that a Cookie might be the only feasable way to go.

  • Allow specific group/user to logon the spectic/group of computer

    Hello All,
    need suggestion, allow specific user/group of user to permit logon the specific/group of computers.

    Hi Parvez lslam,
    According to your description, you would like to allowspecific user/group of user to the specific/group of computers. Right?
    You can enable the following policy to determines which users can interactively log on to this computer:
    Computer Configuration > Policies > Window Settings > Security Settings > Local Policies > User Rights Assignment:
    Allow log on locally
    For your information, please refer to the following article to learn more about this policy:Allow log on locally
    You can enable the following policy to determines which users can not interactively log on to this computer:
    Computer Configuration > Policies > Window Settings > Security Settings > Local Policies > User Rights Assignment:
    Deny log on locally
    This security setting determines wgucg users are prevent from logging on at the computer. This policy setting supersedes the Allow log on locally policy setting if an account is subject to both policy. For your information,
    Deny log on locally.
    You can configure the users or group who are restricted to logon depending on your requirements. In addition, please pay attention to the scope of the policy. If you only to apply this setting to a specifis computer, you can configure this GPO to this computer
    or configure this computer's local group policy.
    Regards,
    Lamy Zhang

  • How to call a specific method in a servlet from another servlet

    Hi peeps, this post is kinda linked to my other thread but more direct !!
    I need to call a method from another servlet and retrieve info/objects from that method and manipulate them in the originating servlet .... how can I do it ?
    Assume the originating servlet is called Control and the servlet/method I want to access is DAO/login.
    I can create an object of the DAO class, say newDAO, and access the login method by newDAO.login(username, password). Then how do I get the returned info from the DAO ??
    Can I use the RequestDispatcher to INCLUDE the call to the DAO class method "login" ???
    Cheers
    Kevin

    Thanks for the reply.
    So if I have a method in my DAO class called login() and I want to call it from my control servlet, what would the syntax be ?
    getrequestdispatcher.include(newDAO.login())
    where newDAO is an instance of the class DAO, would that be correct ?? I'd simply pass the request object as a parameter in the login method and to retrieve the results of login() the requestdispatcher.include method will return whatever I set as an attribute to the request object, do I have that right ?!!!!
    Kevin

Maybe you are looking for