URL Retrieval

Hi Guys,
I know that there are quite a few posts on here and other sites for URL Retrieval however I am having a few problems and I was hoping someone on here could shed some light on the situation.
Basically what Im trying to do is to fetch prices from a suppliers page and parse them. The page is in PHP and protected. What I wanted to do was fetch the product names from this file and flush them to an SQL DB however when I seem to be getting some very odd results.
* URLRetriever.java
* Created on 20 December 2004, 09:08
package Development.components.URLRetriever;
import java.net.URL;
import java.io.*;
import java.util.*;
* @author  Administrator
public class URLRetriever
    URLAuthenticator IEDAuth;
    /** Creates a new instance of URLRetriever */
    public URLRetriever()
        IEDAuth = new URLAuthenticator("test","test");
        URLAuthenticator.setDefault ( IEDRuth ); 
        //set Authenticator for popup login
    }//End of CONSTRUCTOR
    public static void main(String args[])
        String tempURL = "http://www.suppliers.com/products/productList.php";
        String tempURLContent = "";
        URLRetriever uRT = new URLRetriever();
        System.out.println("Now fetching URL: "+tempURL+"\n\n\n");
        tempURLContent = uRT.getURL(tempURL);
        System.out.println(tempURLContent);
    }//End of Method Main
    public String getURL(String url)
        try
            URL u = new URL(url);
            BufferedReader br = new BufferedReader(new InputStreamReader(u.openConnection().getInputStream()));
            String input = "";
            String inline = null;
            while ((inline = br.readLine()) != null)
                input += inline + "\n";
            }//End of while
            br.close();
            return input;
        }//End of try
     catch (Exception e)
            return e.toString();
        }//End of catch
    }//End of getURL
}//End of CLASS URLRetrieverWhen I run the program for an unprotected URL it works beautifully but for my suppliers site it gives the following:
Now fetching URL: https://suppliers.com/products/productListlogin.php
<HTML>
<!-- Billy Glynn 12-02-03 -->
<META http-equiv="refresh" content="0; URL=https://suppliers.com/products/productListlogin.php">
<HTML>
I suspect its something to do with the fact that its https and also encoding possibly. Im lost as to where to start looking for clarification on these issues. Any help would be much appreciated.
Dave

Ok very very strange, that isnt working even when I
hardcode it in Java or manually enter it into my
browser.
https://www.suppliers.com/products/login.php?userName=
temp&pass=temp
Its https............. would that make a difference?I actually don't know. But I rather think that the script just takes a POST and ignores GET requests.

Similar Messages

  • URL retrieval from a JSP

    Hi,
              I've gotten everything working in our cluster except this. We have some
              JSP's that retrieve resources via a URL that points back to the cluster.
              i.e. the JSP retrieves an xml template from the server and then populates
              the nodes before returning it to the client. Here is a sample JSP
              <%@ page import="java.io.*" %>
              <%@ page import="java.net.*" %>
              <html>
              <head></head>
              <body>
              <%
              String fileURL = "http://"+request.getServerName() + ":" +
              request.getServerPort()+request.getContextPath()+
              "/xml_dataisland/posse_permissions.xml";
              java.net.URL defaultURL = new URL(fileURL);
              URLConnection connection = defaultURL.openConnection();
              if(connection == null){
              System.out.println("null connection in posse_menu.jsp");
              InputStream reply = connection.getInputStream();
              if(reply == null){
              System.out.println("null reply connection in posse_menu.jsp");
              BufferedReader from_server = new BufferedReader(new
              InputStreamReader(reply));
              String line = "";
              StringBuffer results = new StringBuffer();
              while(line != null)
              line = from_server.readLine();
              if(line != null)
              results.append(line);
              out.println(results);
              %>
              </body>
              </html>
              This is generating an exception:
              <Jan 10, 2003 10:38:37 AM MST> <Error> <HTTP> <101019>
              <[ServletContext(id=1213906002,name=posse,context-path=/posse)] Servlet
              faile
              d with IOException
              java.net.ConnectException: Tried all: '1' addresses, but could not connect
              over HTTP to server: '125.125.125.125', port: '64577'
              at weblogic.net.http.HttpClient.openServer(HttpClient.java:223)
              at weblogic.net.http.HttpClient.openServer(HttpClient.java:276)
              at weblogic.net.http.HttpClient.<init>(HttpClient.java:127)
              at weblogic.net.http.HttpClient.New(HttpClient.java:169)
              at
              weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:111)
              at
              weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:28
              1)
              at jsp_servlet.__test._jspService(__test.java:101)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
              tStubImpl.java:1058)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :401)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :445)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :306)
              at
              weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
              ebAppServletContext.java:5412)
              at
              weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
              r.java:744)
              at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:3086)
              at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :2544)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              >
              The 125.125.125.125 address is the ip of our load balancer (cisco css11503)
              and should just forward all traffic to one of the two cluster machines.
              Either 125.125.125.1 or 125.125.125.2. Is there something I'm missing here?
              It seems like this should work but I'm not following why it isn't.
              Cluster environment: 2 managed servers running WLS 7.0 sp1
              TIA,
              -Brett Schmoll
              ADP/SIS
              

    If I understand, "SELECT count(*) ..." always returns one row.
    So, just do
    String count="SELECT count(*) c from anticles";
    ResultSet rscount=stmt.executeQuery(count);
    int countInt = 0;
    if(rscount.next()){
      //get the count, an integer
    countInt = rscount.getInt("c");
    //print out the count. If there were errors, countInt is already set to 0.
    out.println(countInt);
    Hope this helps.

  • Specific action script for url retrieval

    I use Clickabilty's cmPublish for ad serving.  When creating Flash ads, it requests the following action scipt for clickthrough info:
         on (release) {
                    if (clickTAG.substring(0, 4) == "http") {
                     getURL (clickTAG, "_blank");
    Do I need to replace the clickTag info with the url?  What about the substring.  (I am new at Flash Ad creation).  Any help would be appreciated.

    Hi there,
    the clicktag is made so that publisers don't need to change the fla file all the time. The clicktag is a variable and can be given to the swf by doing example.swf?clicktag=http://www.grafia.fr for example. Normally it should be enough to put the actionscript you mentioned on a big button in the flash ad. The Clickabilty's cmPublish probably uses the example.swf?clicktag=http://www.grafia.fr for serving the ad.
    Greetings,
    Guido Braak
    My Websites: Agence web Bordeaux | La Roue Tourne | TV Soiree

  • Microsoft Websites using non-standard URL lengths to libraries causing firewall exceptions which prevent service usability

    Hi,
    Myself and
    other Microsoft customers have been experiencing a problem behind our corporate firewalls with accessing Microsoft services (Microsoft.com, most Microsoft Support pages, Microsoft Downloads, etc.). I previously had the same problem early August with SharePoint
    Online but that appears to have been corrected (at least for now).
    The symptom:
    Microsoft Webpage contents load but then the whole pages appear blank (in Chrome and IE 11). The body style is set to "visibility:hidden;".
    The cause:
    Many Microsoft websites use scripts/libraries from http://ots.optimize.webtrends.com and these particular URL's are extremely long and in a bizarre way. In this instance, it's sending Chrome and IE 11 webclients to a URL that is 3472 characters in length (that's
    over 3.3KB for just the URL) and the URL retrieves a JS function call that's 157 characters in length.
    Our corporate firewall is blocking HTTP GET requests to URL lengths greater than a particular length (to prevent infected web-clients from exploiting external web servers). I believe it's set to 2048 characters by default.
    The workaround:
    Set useragent string to IE 10 or lower. It doesn't serve pages that include such long URL lengths in these cases.
    Modify the style of the page in developer mode and set visibility:visible on the body. Works in IE or Chrome then.
    Convince IT to change our corporate firewall to ignore URL Path Length restrictions
    I'm convinced that this is a bug from Microsoft for many reasons: 
    Microsoft claims IE's maximum URL length is 2083 characters. See
    here.
    It's arguably poor form to be requiring kilobytes of data just to locate a resource(such as a .js file)
    It's wasting Microsoft's bandwidth. Using 3472 bytes to retrieve 157 bytes that run a function (in another .js file from MS) that sets the body style.
    It's preventing Microsoft customers that are using IE11 on Windows 7/8, who are behind firewalls that check URL Path Length's, from using Microsoft services.
    It does appear to serve content that is unique to the request but there's got to be a better way to accomplish whatever it is MS is actually trying to accomplish with the contents:
    WTOptimize.fireEvent(new WTEvent(WTEvent.CONTROL_PART, WTEvent.STATUS_SUCCESS, {control:"WT3VtgdmLPVOceeXKd8U15PFuYs7rn2UxwpN_67li21nuTEqahNZFhhiLz-KXk~"}));
    Is it trying to display the content on modern browsers only after the page has successfully loaded? I'm not sure, but that's what it's looking like to me.

    Hi,
    I do need more time to make test for your problem. Please be patient.
    Thanks for your understanding.
    Roger Lu
    TechNet Community Support

  • Reading image url from a different package.

    When I'm trying to read image from a jar with a package structure different from the reading class, the getResource(<image name>) returns the url as null.
    For ex: Say I have hello.gif in a jar under
    client/resources and also the ResourceHandler in a different package
    say client/utils it does not work.
    Code for ResourceHandler is as follows:
    public class ResourceHandler
    public ImageIcon getImage(String imageName)
    URL url = this.getClass().getResource(imageName);
    System.out.println("-- url retrieved "+url);
    return new ImageIcon(url);
    The url printed is null. But if I have the ResourceHandler in the package client/resources it works. I believe that the class loader tries to load it from the path relative to this class. Any idea why this behaviour. I would also like to know why just being in the classpath is not sufficient.
    --Jos Francis                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    It needs it because the location of resources (like an image) is independent of that of the java code (resources are not .class files).
    To look for resources strictly from the syst classpath, you can use the methods getSystemResource() and getSystemResources() . These methods use the system ClassLoader to locate resources.

  • I want to add event to the Icalendar threw caldav4j jar classes . Can I do that what would be the event request URL

    I want to add / retrieve event to the Icalendar threw caldav4j jar classes . Can I do that what would be the event request URL
    Retrieve Events :
    HttpClient http = new HttpClient();
        http.getState().setCredentials(new AuthScope("p06-caldav.icloud.com", 443,"https"), credentials);  
        http.getParams().setAuthenticationPreemptive(true);  
        HostConfiguration hostconfig = http.getHostConfiguration();
        hostconfig.setHost("p06-caldav.icloud.com");
        hostconfig.setHost("p06-caldav.icloud.com", 443, "https");
    CalendarCalDAVReportMethod method = factory1.createCalendarCalDAVReportMethod();
    method.setPath("/1809484432/calendars/");
      <C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav">
    <D:prop xmlns:D="DAV:">
    <D:getetag/>
    <D:allprop/>
    <C:calendar-data>
    <C:comp name="VCALENDAR">
    <C:comp name="VEVENT"/>
    </C:comp>
    </C:calendar-data>
    </D:prop>
    <C:filter>
    <C:comp-filter name="VCALENDAR"/>
    </C:filter>
    </C:calendar-query>
    But Iam getting bad request . Can any body help me out on this

    Still no luck...nor many helpful comments.
    THis is what the top of my iTunes U screen looks like when I am in my course. I cannot see anything on the right hand side to click on that takes me to an edit page.
    The following is taken from Penn State University related to drop boxes:
    None of the stuff they refer to is on my screen - neither this one or any others.
    Again, any help would be most appreciated.

  • SSTP problem on Windows Server 2008 r2, clients getting error 0x8007274C

    PROBLEM: Clients keep getting error 0x8007274C when attempting to connect to the VPN server using SSTP.
    SYMPTOMS:
    - L2TP connections works great
    --- L2TP connections generate RemoteAccess events in Event viewer, but none whatsoever for the failed SSTP attempts
    - Client CANNOT ACCESS
    https://vpn.mycompany.net/sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}
    - After several attempts to check and recheck RRAS Setup.  Added IIS Role (much later) just to prove that cert is valid.
    --- If server's RRAS service disabled, IIS enabled, client is able to browse to that VPN server, certificate checks out. 
    http://vpn.mycompany.net &
    https://vpn.mycompany.net.
    --- However, if RRAS service is running, IIS would not respond to either HTTP nor HTTPS traffic.
    --- SSTP won't work whether or not WWW service is running.
    - Port Scanner tests to the VPN Server reveals that port 80 & 443 are not open when RRAS service is running and IIS service stopped.
    --- But, when RRAS service is stopped and IIS is running, port 80 & 443 responds.
    --- Not sure whether 443 is [b]supposed to be open[/b] when only RRAS is running.
    ============================================================================
    CLIENT:
    ============================================================================
    - Vista SP1 (32-bit), Windows 7 (32-bit), Windows 7 x64 SP1
    - CRL entry is resolvable
    - vpn.mycompany.net certificate installed in Local Computer > Trusted Root CA
    - SSTP Client connecting to FQDN vpn.mycompany.net
    - Windows Firewall is DISABLED  (for testing purposes)
    - No Anti Virus nor Anti Malware protection running  (for testing purposes)
    - Can access other HTTPS sites
    ============================================================================
    SERVER (Windows 2008 Svr r2; Roles: DNS, AD, RRAS):
    ============================================================================
    - 2 NICS (1 bound to an internal IP, 1 bound to an external IP addr)
    -- External NIC bound to a valid ISP IP Address, with a FQDN vpn.mycompany.net
    - Windows Firewall Service on Server DISABLED
    - No other device in front of the external IP addr NIC
    - IPV6 on RRAS DISABLED
    - NO RRAS Inbound/Outbound filter at all
    - Windows Firewall Service disabled
    - Using external Certificate Authority
    - Certs bound to port 443 seem to match in registry key HKLM\...\SstpSvc\Parameters
    It seems that the VPN server is simply not accepting the SSTP traffic.  I don't think we've even gotten to certificate negotiation.
    Been trying for a few days now, have consulted many SSTP online resources (MS and others) before posting.
    Am stumped.  Any help would be greatly appreciated.
    ============================================================================
    SERVER CONFIGURATION CHECKLIST:
    ============================================================================
    SERVICE_NAME: remoteaccess
            TYPE               : 20  WIN32_SHARE_PROCESS 
            STATE              : 4  RUNNING
                                    (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
            WIN32_EXIT_CODE    : 0  (0x0)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0
    ============================================================================
    SERVICE_NAME: sstpsvc
            TYPE               : 20  WIN32_SHARE_PROCESS 
            STATE              : 4  RUNNING
                                    (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
            WIN32_EXIT_CODE    : 0  (0x0)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0
    ============================================================================
      TCP    0.0.0.0:443            0.0.0.0:0              LISTENING       4
      TCP    192.168.2.109:3268     192.168.2.116:45443    ESTABLISHED     500
      TCP    [::]:443               [::]:0                 LISTENING      
    4
      UDP    0.0.0.0:59443          *:*                                   
    1616
      UDP    0.0.0.0:60443          *:*                                   
    1616
      UDP    0.0.0.0:61443          *:*                                   
    1616
    ============================================================================
    SSL Certificate bindings:
        IP:port                 : 0.0.0.0:443
        Certificate Hash        : 4cbfd1fc43d4fea1cd9dce519a0c0901330a343d
        Application ID          : {ba195980-cd49-458b-9e23-c84ee0adcd75}
        Certificate Store Name  : MY
        Verify Client Certificate Revocation    : Enabled
        Verify Revocation Using Cached Client Certificate Only    : Disabled
        Usage Check    : Enabled
        Revocation Freshness Time : 0
        URL Retrieval Timeout   : 0
        Ctl Identifier          : 
        Ctl Store Name          : 
        DS Mapper Usage    : Disabled
        Negotiate Client Certificate    : Disabled
        IP:port                 : [::]:443
        Certificate Hash        : 4cbfd1fc43d4fea1cd9dce519a0c0901330a343d
        Application ID          : {ba195980-cd49-458b-9e23-c84ee0adcd75}
        Certificate Store Name  : MY
        Verify Client Certificate Revocation    : Enabled
        Verify Revocation Using Cached Client Certificate Only    : Disabled
        Usage Check    : Enabled
        Revocation Freshness Time : 0
        URL Retrieval Timeout   : 0
        Ctl Identifier          : 
        Ctl Store Name          : 
        DS Mapper Usage    : Disabled
        Negotiate Client Certificate    : Disabled
    ============================================================================
    Selected (some, not all) Info about Certificate bound to SSTP viewed through RRAS MMC:
    Version: V3
    Valid To: ‎Thursday, ‎August ‎30, ‎2012 6:59:59 PM
    Subject:
     CN = vpn.mycompany.net
     OU = nsProtect Secure Xpress
     OU = Domain Control Validated
    Enhanced Key Usage:
     Server Authentication (1.3.6.1.5.5.7.3.1)
     Client Authentication (1.3.6.1.5.5.7.3.2)
    CRL Distribution Points:
    [1]CRL Distribution Point
         Distribution Point Name:
              Full Name:
                   URL=http://crl.netsolssl.com/NetworkSolutionsDVServerCA.crl
    Thumbprint Algorithm: sha1
    Thumbprint: ‎4c bf d1 fc 43 d4 fe a1 cd 9d ce 51 9a 0c 09 01 33 0a 34 3d
    ============================================================================
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SstpSvc\Parameters]
    "ServiceDllUnloadOnStop"=dword:00000001
    "ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
      00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
      73,00,73,00,74,00,70,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00
    "ServerURI"="/sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}/"
    "ListenerPort"=dword:00000000
    "UseHttps"=dword:00000001
    "SHA1CertificateHash"=hex:4c,bf,d1,fc,43,d4,fe,a1,cd,9d,ce,51,9a,0c,09,01,33,\
      0a,34,3d
    "isHashConfiguredByAdmin"=dword:00000001
    "SHA256CertificateHash"=hex:ee,06,d8,78,2a,8c,95,d6,a1,40,d1,80,77,2c,e5,4c,f9,\
      83,a1,e4,94,60,82,28,3d,56,49,82,44,bc,1e,a9
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SstpSvc\Parameters\ConfigStore]
    "ListenerPort"=dword:000001bb
    "UseHttps"=dword:00000001
    "V4CertPlumbedBySstp"=dword:00000000
    "V6CertPlumbedBySstp"=dword:00000000
    ============================================================================
    SELECTED EVENT VIEWER ENTRIES AFTER RESTART OF RRAS + SUCCESSFUL ATTEMPT OF L2TP (BUT NO ENTRIES AT ALL FOR SSTP CONN ATTEMPTS):
    Level Date and Time Source Event ID Task Category
    Information 8/31/2011 11:36:42 AM Microsoft-Windows-Time-Service 37 None The time provider NtpClient is currently receiving valid time data from zeus.olympia.local (ntp.d|0.0.0.0:123->192.168.2.114:123).
    Information 8/31/2011 11:35:22 AM RemoteAccess 20275 None CoID={075CE235-832C-45FE-BE27-8B41BC765125}: The user with ip address 192.168.2.145 has disconnected
    Information 8/31/2011 11:35:22 AM RemoteAccess 20272 None CoID={075CE235-832C-45FE-BE27-8B41BC765125}: The user OLYMPIA\inul connected on port VPN2-15 on 8/31/2011 at 11:34 AM and disconnected on 8/31/2011 at 11:35 AM.  The user
    was active for 0 minutes 32 seconds.  17264 bytes were sent and 21956 bytes were received. The reason for disconnecting was user request. The tunnel used was WAN Miniport (L2TP). The quarantine state was 'not nap-capable'.
    Information 8/31/2011 11:34:57 AM Microsoft-Windows-Iphlpsvc 4200 None Isatap interface isatap.{6E06F030-7526-11D2-BAF4-00600815A4BD} with address fe80::5efe:192.168.2.144 has been brought up.
    Information 8/31/2011 11:34:51 AM Microsoft-Windows-UserPnp 20003 (7005) Driver Management has concluded the process to add Service tunnel for Device Instance ID ROOT\*ISATAP\0002 with the following status: 0.
    Information 8/31/2011 11:34:50 AM RemoteAccess 20274 None CoID={075CE235-832C-45FE-BE27-8B41BC765125}: The user OLYMPIA\inul connected on port VPN2-15 has been assigned address 192.168.2.145
    Information 8/31/2011 11:34:50 AM RemoteAccess 20250 None CoID={075CE235-832C-45FE-BE27-8B41BC765125}: The user OLYMPIA\inul has connected and has been successfully authenticated on port VPN2-15.
    Information 8/31/2011 11:34:49 AM RemoteAccess 20088 None The Remote Access Server acquired IP Address 192.168.2.144 to be used on the Server Adapter.
    Information 8/31/2011 11:30:26 AM Microsoft-Windows-HttpEvent 15007 None Reservation for namespace identified by URL prefix
    https://+:443/sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}/ was successfully added.
    Information 8/31/2011 11:30:26 AM Microsoft-Windows-HttpEvent 15008 None Reservation for namespace identified by URL prefix
    https://+:443/sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}/ was successfully deleted.
    Information 8/31/2011 11:30:26 AM Service Control Manager 7036 None The Application Layer Gateway Service service entered the running state.
    Information 8/31/2011 11:30:26 AM Service Control Manager 7036 None The Routing and Remote Access service entered the running state.
    Error 8/31/2011 11:30:26 AM RemoteAccess 20106 None "Unable to add the interface {BBF2BA88-DCC5-4D36-9256-E1C8AF602467} with the Router Manager for the IPV6 protocol. The following error occurred: Cannot complete this function.
    Error 8/31/2011 11:30:26 AM RemoteAccess 20106 None "Unable to add the interface {DF914ECC-AC6A-441E-A47C-57CE90C7F8B0} with the Router Manager for the IPV6 protocol. The following error occurred: Cannot complete this function.
    Information 8/31/2011 11:30:21 AM Service Control Manager 7036 None The Routing and Remote Access service entered the stopped state.
    Information 8/31/2011 11:30:20 AM Service Control Manager 7036 None The Application Layer Gateway Service service entered the stopped state.
    Information 8/31/2011 11:30:01 AM Microsoft-Windows-Eventlog 104 Log clear The System log file was cleared.
    ============================================================================
    ============================================================================

    Hi, I'm in the exact same situation and for once google is of no help. I have tried to get a simple connect through to my server (by using "telnet vpn.myserver.com 443") but it will only timeout. After deactivating the Windows firewall on the VPN box (which
    is a virtual machine on a Hyper-V R2 SP1) I can locally telnet the VPN box and even get the special url (https://vpn.myserver.com/sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}/) to work. But this only works on the VPN box itself, no other server or client is
    able to contact it. I have tried to connect from another server sitting next to the vpn box and in the same subnet (public IPs) but couldn't connect either. PPTP and L2TP connections are working but not SSTP. Another approach was to manually bind the http.sys
    to specific IPs. No change. I'm fresh out of ideas. Anyone? regards, ck

  • "File Not Found" when addCourse through iTunesU web service.

    I have problem to add Course to my institute's iTunesU site through Web Service.
    I was able to get the xml doc back through showTree operation and here is part of it:
    <Site>
    <Name>my institute's name</Name>
    <Handle>123</Handle>
    <AggregateFileSize>63057465318</AggregateFileSize>
    <Section> <Name>Your Classes</Name>
    <Handle>456</Handle>
    <AggregateFileSize>57423912007</AggregateFileSize>
    <Course>
    <Name>course 1</Name>
    <Handle>111</Handle>
    </Course>
    </Section>
    <Section>
    I was able to get the uploadURL back too. The URL to get the uploadURL request:
    https://deimos.apple.com/WebObjects/Core.woa/API/GetUploadURL/myInstitute.edu.45 6?type=XMLControlFile
    The uploadURL I got back looks like:
    https://deimos2.apple.com/WebObjects/Files.woa/Upload/myInstitute.edu.456/X_1371095208_1a.43c06fa3.467dc4f2/%5Banonymous1371095208%5D/0046e71254900a071aa9241221a469d98ff1ef6fa973544c45ef9 5260dac6c64f05b10aefc
    But when I use the uploadURL above and post the addCourse.xml:
    <ITunesUDocument>
    <AddCourse>
    <ParentHandle>456</ParentHandle>
    <Course>
    <Name>Jing Test iTunesU Web service Course</Name>
    <ShortName>Jing Test</ShortName>
    </Course>
    </AddCourse>
    </ITunesUDocument>
    The response I got
    <error>File Not Found</error> File Not Found
    I used myInstitute.edu.456 to get the uploadURL and set it to ParentHandle on addCourse.xml since 456 is the section handler in whoch I want to add the course.
    I tried to remove 456 from the myInstitute.edu to get the uploadURL and then use it to add course, got the same error.
    Is there something wrong with the URL I used to get the uploadURL?
    here is the code and the values pass to the methodI used to send addCourse request:
    url = uploadURl on above
    name="file"
    fileName="file.xml";
    data=addCourse xml on above
    contentType="text/xml"
    public String invokeAction(String url,
    String name,
    String fileName,
    String data,
    String contentType) throws MessagingException {
    // Send a request to iTunes U and record the response.
    StringBuffer response = null;
    System.out.println("xml doc: ---" + data);
    try {
    // Verify that the communication will be over SSL.
    if (!url.startsWith("https")) {
    throw new MalformedURLException("ITunesUFilePOST.invokeAction(): URL \""
    + url + "\" does not use HTTPS.");
    // Build the multipart data.
    MimeMultipart multipart = new MimeMultipart();
    MultipartFormBuilder.addMultipartFormBody(multipart,
    name,
    fileName,
    data,
    contentType);
    // Create a connection to the requested iTunes U URL.
    HttpURLConnection connection =
    (HttpURLConnection) new URL(url).openConnection();
    connection.setUseCaches(false);
    connection.setDoOutput(true);
    connection.setRequestMethod("POST");
    connection.setRequestProperty("Content-Type",
    "multipart/form-data; boundary="
    + MultipartFormBuilder.getMultipartBoundary(multipart));
    String multipartData = MultipartFormBuilder.getMultipartData(multipart);
    // Send the multipart data to iTunes U.
    connection.connect();
    OutputStream output = connection.getOutputStream();
    output.write(multipartData.getBytes("UTF-8"));
    output.flush();
    output.close();
    // Read iTunes U's response.
    response = new StringBuffer();
    InputStream input = connection.getInputStream();
    Reader reader = new InputStreamReader(input, "UTF-8");
    reader = new BufferedReader(reader);
    char[] buffer = new char[16 * 1024];
    for (int n = 0; n >= 0;) {
    n = reader.read(buffer, 0, buffer.length);
    if (n > 0) response.append(buffer, 0, n);
    // Clean up.
    input.close();
    connection.disconnect();
    } catch (UnsupportedEncodingException e) {
    // ITunes U requires UTF-8 and ASCII encoding support.
    throw new java.lang.AssertionError("ITunesUFilePOST.invokeAction(): UTF-8 encoding not supported!");
    } catch (IOException e) {
    // Report communication problems.
    throw new java.lang.AssertionError("ITunesUFilePOST.invokeAction(): I/O Exception " + e);
    // Return the response received from iTunes U.
    System.out.println("response from ITunesUFilePOST: " + response.toString());
    return response.toString();
    }

    I'm having a similar "File Not Found" error, but it's happening for any API request other than GetUploadURL. I'm sending a POST request to the GetUploadURL, and that part is working correctly, as I get a URL such as the following:
    https://deimos2.apple.com/WebObjects/Files.woa/Upload/wvu.edu/X_1372071795_4d9433be.4c3fdd3d.4c3fdd3e/%22Chris%20Scharf%22%20%3Ccbscharf%40mail.wvu.edu%3E%20%28cbscharf%29%20%5B3258 7%5D/0046eaaaf078cf5d6b60f18926106a50a5050cf8f9c91a7608074e6d2949a8759017969ece
    Then, I've tried using curl (within 90 seconds) to submit a simple XML document containing a ShowTree request:
    <?xml version="1.0" encoding="UTF-8"?>
    <ITunesUDocument>
    <ShowTree>
    <KeyGroup>most</KeyGroup>
    </ShowTree>
    </ITunesUDocument>
    The command executed is "curl -F file=test.xml URL" (where URL is the URL retrieved from GetUploadURL. But I simply get "<error>File Not Found</error>"
    I'm correctly sending credentials, since I'm getting upload URLs. And it's not an issue with the XML document, since it's not even getting to the server.

  • How To Load A Document From An Array ?

    Hi All
    If i have an xml file
    <WhitetimeDocuments>
         <documents>
              <id>WhitetimeIntro</id>
              <name>Introduction To White Time</name>
              <location>WT_Intro.txt</location>
         </documents>
         <documents>
              <id>WhitetimeHealing</id>
              <name>White Time As A Healing Modality</name>
              <location>WT_Healing.txt</location>
         </documents>
         <documents>
              <id>WhitetimeClassOutline</id>
              <name>Outline For White Time Classes</name>
              <location>WT_Class_Intro.txt</location>
         </documents>
         <documents>
              <id>WhitetimeFacts</id>
              <name>Facts About White Time</name>
              <location>WT_Facts.txt</location>
         </documents>
    </WhitetimeDocuments>
    How can i load the document into a textarea component based on a button click by the user ?
    I have the httpservice call and a seperate Button Component for each document choice, but how do i then load the document ?
    Also how can a generate a dynamic list of buttons, based on the labelField 'Name' instead of having a static list of Button components ?
    Many Many Thanks
    Whitetimer
    Many Thanks

    Document should be on the server at some www.baseaddress.com/WT_Intro.txt.
    Assuming your XML is also on the server...
    Make the call to load the XML, parse the XML and get the url for the text file.
    Also Here you can read the names and pus them into an array list
    arraycollection: {"Name":value};
    For each url retrieved from the xml make a new call to the server and loat the
    txt. On the response you should have the text. (It is better to make the calls
    chained one after each other, since the response come back asynchronously, e.g
    on the response of one call make another call...)
    The names retrieved already can be passed as a dataProvider to a button bar
    component.
    HTH,
    C

  • How to open a form on click of a button in infopath

    I have created an infopath form on a list. I need to create a button on the pape on click of which the last item created by the user should open. I mean the edit form of that list item should open. 
    How can we do this ?
    Thanks for your response in adv.
    Regards,
    prajK

    Hi,
    Per my understanding, you might want to add a button on a page, when clicking it, the last form which is created by the current user will open.
    As it might require to query the last form created by current user, custom code would be required.
    A solution is that, you can query the URL of the last form created by the current user using JavaScript Client Object Model, generate a button with the URL retrieved
    using JavaScript. Then when user open this page, the button will be created dynamically, user clicks it, the last form created by this user will open.
    More information about JavaScript Client Object Model:
    How to: Create, Update, and Delete List Items Using JavaScript
    http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx  
    Common Programming Tasks in the JavaScript Object Model
    http://msdn.microsoft.com/en-us/library/office/hh185015(v=office.14).aspx
    About how to create a button using JavaScript:
    http://stackoverflow.com/questions/7707074/creating-dynamic-button-with-click-event-in-javascript
    Thanks 
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Directaccess - IPHTTPS error 0x80190194, Server 2012R2 / Win 8.1

    I'm trying to setup directaccess for our network.  I already have a server in our edge network with the remote access role installed for the Web Application Proxy service, so I added the DirectAccess role service to that.  According to the documentation,
    if both are a single server implementation it is supported to run both of those on the same server. 
    I configured DirectAccess, and added a win8.1 client to the DA security group to test it.  I confirmed that on the internal network, the client is able to connect to the NLS and DA shows that it is connected to the local network.  However, when
    on an outside network, DA just says it's trying to connect, and never does.  I ran the log collection tool from the DA connection settings and found that the IPHTTPS connection shows an error code 0x80190194.  
    I've searched for info on this, but so far I'm not finding anything that seems to fit my situation.  The responses to others with this error seem to point to a certificate issue.  In my case, I'm using a wildcard certificate for our public domain
    name.  The cert is signed by a major public CA, so there shouldn't be any trust issues.  The external DNS name that DA should connect to is RAS.domain.com and the certificate is for *.domain.com 
    Any suggestions on what the problem could be, or what to look at next for troubleshooting the issue, would be appreciated. 
    Thanks!

    Thank you for the reply.  I ran netsh http show ssl, and the first entry returned is:
    SSL Certificate bindings:
        IP:port                      : 0.0.0.0:443
        Certificate Hash             : 1414baa1409b2c8ffd8c2d549f460db4bcf8130f
        Application ID               : {f955c070-e044-456c-ac00-e9e4275b3f04}
        Certificate Store Name       : MY
        Verify Client Certificate Revocation : Enabled
        Verify Revocation Using Cached Client Certificate Only : Disabled
        Usage Check                  : Enabled
        Revocation Freshness Time    : 0
        URL Retrieval Timeout        : 0
        Ctl Identifier               : (null)
        Ctl Store Name               : (null)
        DS Mapper Usage              : Disabled
        Negotiate Client Certificate : Disabled
    That is followed by several entries for addresses related to our Lync and ADFS servers, published through Web Application Proxy.  All of those have the same certificate hash listed, which makes sense since I am using the same wildcard certificate for
    WAP and DA.  
    I did find a post or two indicating that the DS Mapper Usage may need to be set to enabled, so I tried that last week but it didn't seem to make any difference. 

  • Properties does have getProperty method

    I have this code but the Properties does have the method getProperty()
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    public class TestCode {
        static final String PROPERTY_FILE="JDBC-ODBC Driver.properties";
        String driverName, url, user, password;
        /** Creates a new instance of TestCode */
        public void access() {
            try{
                /* Create an object of the Properties class and load properties. */
                Properties prop=new Properties();
                prop.load(new FileInputStream(PROPERTY_FILE));           
                driverName=prop.getProperty("driver");  // Retrieve driver information.           
                url=prop.getProperty("url");    // Retrieve JDBC URL.
                user=prop.getProperty("user");  // Retrieve user name.
                password=prop.getProperty("password");  // Retrieve password.
                /* Initialize and load a driver. */           
                Class.forName("driverName");
                /* Establish a connection with a database. */
                Connection con=DriverManager.getConnection(url,user,password);
                /* Create Statement object. */
                Statement stmt=con.createStatement();
                /* Executes a SQL query to retrieve a ResultSet. */
                ResultSet rs=stmt.executeQuery("SELECT * FROM Registered_Users_Information");
                /* Iterate through the ResultSet to display data. */
                while(rs.next()){
                    System.out.println(rs.getString("UserName"));
                    System.out.println(rs.getString("Password"));
                con.close();
            }catch(Exception ex){
                ex.printStackTrace();
        public static void main(String args[]){
            TestCode t=new TestCode();
            t.access();
    }Please show me the problem.
    Thanks.
    Nguyen_Tom

    I used this code but it does not exist. Has anyone
    tell me why or please five me an advise? The object
    prop does not has the method load.
    Properties prop=new Properties();
    prop.load(new FileInputStream(PROPERTY_FILE));Thanks a lot.
    Nguyen_TomRefer to the JDK spec since 1.0, Properties should have all the methods you said you didn't have.
    Did your program throw any error messages?? Could you show me?
    :D

  • Use "-Xmx128m" in a WebStart?

    we know you can use '-Xmx128m' in java or javaw application,but how do I use this para in a javaws(webstart) program?now my webstart program need more jvm memory but I found javaws cannot use this para,how can I do?

    Try -J-Xmx128m
    Here's the command line help message that reports the -J option.
    javaws -helpJava(TM) Web Start 1.6.0-rc
    Usage: javaws [run-options] <jnlp-file>
    javaws [control-options]
    where run-options include:
    -verbose display additional output
    -offline run the application in offline mode
    -system run the application from the system cache only
    -Xnosplash run without showing a splash screen
    -J <options> supply options to the vm <----------------------
    -wait start java process and wait for its exit
    control-options include:
    -viewer show the cache viewer in the java control panel
    -uninstall remove all applications from the cache
    -uninstall <jnlp-file> remove the application from the cache
    -import [import-options] <jnlp-file> import the application to the cache
    import-options include:
    -silent import silently (with no user interface)
    -system import application into the system cache
    -codebase <url> retrieve resources from the given codebase
    -shortcut install shortcuts as if user allowed prompt
    -association install associations as if user allowed prompt

  • How to properly setup LB probe for ADFS 3.0 servers

    We are facing a problem during ADFS 3.0 (Windows Server 2012 R2), because we do not find a suitable URL for hardware Load Balancer probe to test ADFS nodes.
    When tried with IE browser, the URL
    https://sts.adfs1.ad/adfs/ls/IdpInitiatedSignon.aspx properly results in ADFS login page but, when tried the same URL with HW LB probe, the probe gets no answer from ADFS server at all.
    We compared incoming traffic with network monitor in that ADFS server node (https temporary changed to http to see the traffic), a somewhat similar HTTP GET query did exist:
    GET /adfs/ls/IdpInitiatedSignon.aspx HTTP/1.1..Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*..Accept-Language: fi-FI..User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows
    NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)..Accept-Encoding: gzip, deflate..Host: sts.adfs1.ad
    .PV??ìà_¹«.ç..E..ð'@.ÿ.%Ƭ..ü¬..Lî¢.PL?Ëf\Mæ?...?Ä.......f;[.4..GET /adfs/ls/IdpInitiatedSignon.aspx HTTP/1.1..Connection: Close..Host: sts.adfs1.ad
    How to properly monitor the ADFS 3.0 server nodes?
    Br, Kari Oikkonen
    MCITP/2008
    Fujitsu Finland

    Please note that using dns name in the url opens the metadata OK, but using IP address fails, not opposite as you mentioned.
    The netsh http show sslcert lists the following:
    SSL Certificate bindings:
        Hostname:port                : sts.mydomain.com:443
        Certificate Hash             : 12b510eead093f8d29db950a42ecf4940c933533
        Application ID               : {5d89a20c-beab-4389-9447-324788eb944a}
        Certificate Store Name       : MY
        Verify Client Certificate Revocation : Enabled
        Verify Revocation Using Cached Client Certificate Only : Disabled
        Usage Check                  : Enabled
        Revocation Freshness Time    : 0
        URL Retrieval Timeout        : 0
        Ctl Identifier               : (null)
        Ctl Store Name               : AdfsTrustedDevices
        DS Mapper Usage              : Disabled
        Negotiate Client Certificate : Disabled
        Hostname:port                : localhost:443
        Certificate Hash             : 12b510eead093f8d29db950a42ecf4940c933533
        Application ID               : {5d89a20c-beab-4389-9447-324788eb944a}
        Certificate Store Name       : MY
        Verify Client Certificate Revocation : Enabled
        Verify Revocation Using Cached Client Certificate Only : Disabled
        Usage Check                  : Enabled
        Revocation Freshness Time    : 0
        URL Retrieval Timeout        : 0
        Ctl Identifier               : (null)
        Ctl Store Name               : AdfsTrustedDevices
        DS Mapper Usage              : Disabled
        Negotiate Client Certificate : Disabled
        Hostname:port                : sts.mydomain.com:49443
        Certificate Hash             : 12b510eead093f8d29db950a42ecf4940c933533
        Application ID               : {5d89a20c-beab-4389-9447-324788eb944a}
        Certificate Store Name       : MY
        Verify Client Certificate Revocation : Enabled
        Verify Revocation Using Cached Client Certificate Only : Disabled
        Usage Check                  : Enabled
        Revocation Freshness Time    : 0
        URL Retrieval Timeout        : 0
        Ctl Identifier               : (null)
        Ctl Store Name               : (null)
        DS Mapper Usage              : Disabled
        Negotiate Client Certificate : Enabled
    The netsh http show urlacl shows the following:
    URL Reservations:
        Reserved URL            :
    http://+:80/Temporary_Listen_Addresses/
            User: \Everyone
                Listen: Yes
                Delegate: No
                SDDL: D:(A;;GX;;;WD)
        Reserved URL            :
    https://+:5986/wsman/
            User: NT SERVICE\WinRM
                Listen: Yes
                Delegate: No
            User: NT SERVICE\Wecsvc
                Listen: Yes
                Delegate: No
                SDDL: D:(A;;GX;;;S-1-5-80-569256582-2953403351-2909559716-1301513147-412116970)(A;;GX;;;S-1-5-80-4059739203-877974739-1245631912-527174227-2996563517)
        Reserved URL            :
    http://+:5985/wsman/
            User: NT SERVICE\WinRM
                Listen: Yes
                Delegate: No
            User: NT SERVICE\Wecsvc
                Listen: Yes
                Delegate: No
                SDDL: D:(A;;GX;;;S-1-5-80-569256582-2953403351-2909559716-1301513147-412116970)(A;;GX;;;S-1-5-80-4059739203-877974739-1245631912-527174227-2996563517)
        Reserved URL            :
    http://+:47001/wsman/
            User: NT SERVICE\WinRM
                Listen: Yes
                Delegate: No
            User: NT SERVICE\Wecsvc
                Listen: Yes
                Delegate: No
                SDDL: D:(A;;GX;;;S-1-5-80-569256582-2953403351-2909559716-1301513147-412116970)(A;;GX;;;S-1-5-80-4059739203-877974739-1245631912-527174227-2996563517)
        Reserved URL            :
    http://*:2869/
            User: NT AUTHORITY\LOCAL SERVICE
                Listen: Yes
                Delegate: No
                SDDL: D:(A;;GX;;;LS)
        Reserved URL            :
    http://*:5357/
            User: BUILTIN\Users
                Listen: Yes
                Delegate: No
            User: NT AUTHORITY\LOCAL SERVICE
                Listen: Yes
                Delegate: No
                SDDL: D:(A;;GX;;;BU)(A;;GX;;;LS)
        Reserved URL            :
    https://*:5358/
            User: BUILTIN\Users
                Listen: Yes
                Delegate: No
            User: NT AUTHORITY\LOCAL SERVICE
                Listen: Yes
                Delegate: No
                SDDL: D:(A;;GX;;;BU)(A;;GX;;;LS)
        Reserved URL            :
    https://+:443/sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}/
            User: NT SERVICE\SstpSvc
                Listen: Yes
                Delegate: Yes
            User: BUILTIN\Administrators
                Listen: No
                Delegate: No
            User: NT AUTHORITY\SYSTEM
                Listen: Yes
                Delegate: Yes
                SDDL: D:(A;;GA;;;S-1-5-80-3435701886-799518250-3791383489-3228296122-2938884314)(A;;GR;;;BA)(A;;GA;;;SY)
        Reserved URL            :
    http://+:80/adfs/
            User: NT SERVICE\adfssrv
                Listen: Yes
                Delegate: Yes
                SDDL: D:(A;;GA;;;S-1-5-80-2246541699-21809830-3603976364-117610243-975697593)
        Reserved URL            :
    https://+:443/adfs/
            User: NT SERVICE\adfssrv
                Listen: Yes
                Delegate: Yes
                SDDL: D:(A;;GA;;;S-1-5-80-2246541699-21809830-3603976364-117610243-975697593)
        Reserved URL            :
    https://+:49443/adfs/
            User: NT SERVICE\adfssrv
                Listen: Yes
                Delegate: Yes
                SDDL: D:(A;;GA;;;S-1-5-80-2246541699-21809830-3603976364-117610243-975697593)
        Reserved URL            :
    https://+:443/FederationMetadata/2007-06/
            User: NT SERVICE\adfssrv
                Listen: Yes
                Delegate: Yes
                SDDL: D:(A;;GA;;;S-1-5-80-2246541699-21809830-3603976364-117610243-975697593)
    Any idea of how to build a probe rule with IP address?

  • Nested jsp:include includes wrong file

    Hi,
    I've encountered a somewhat strange problem that's upsetting me for more than 3 hours by now. I've searched on the Web, Usenet, Tomcat Bugzilla, and the java.sun.com forums, but still didn't find a solution.
    Let me explain my current JSP/servlet flow:
    A servlet retrieves an article from a database, puts the article data into a bean, sets that bean as request attribute and includes a JSP to display the content of this bean (your basic MVC pattern). This works fine.
    The page being included by the "retrieve" servlet is actually a layout page (index.jsp) including the JSP (article.jsp) which displays the bean data, so the servlet actually includes "index.jsp?c=article.jsp" (with the bean as request attribute).
    In that index.jsp, there's a jsp:include that should include the output from another MVC-style servlet/JSP-block: Servlet "poll" creates a PollBean from a database, puts that as attribute into the request and includes "polls/show.jsp".
    Here's a simplified representation of my page layout:
    +---------+---+       The outer box is the "index.jsp", which
    |         |   |      
    |         |   |       a) includes the servlet "retrieve"
    |    1    | 2 |          which in turn includes "article.jsp"
    |         |   |          at position 1 and
    |         |   |
    |         |   |       b) includes the servlet "poll"
    |         |   |          which in turn _should_ include "polls/show.jsp"
    |         |   |          at position 2
    +---------+---+Well now, my problem is: Somehow Tomcat manages it to include the "article.jsp" TWICE at position 1 AND 2, although the jsp:include at positon 2 reads (that's hardcoded):
    <jsp:include page="/poll?action=latest&limit=1" />
    And in the PollServlet (as you guess, mapped to "/poll") the file to be included is hardcoded to "polls/show.jsp".
    If there wouldn't be anything included at position 2, that would pretty clearly be an error with wrong relative paths used in the jsp:include at position 2. But what really scares me is that the "article.jsp" get's included at position 2 although some debugging statements show that the PollBean is actually in the request after the jsp:include at position 2 has been executed.
    I just don't get it why "article.jsp" is included twice, and although the poll servlet is called, the "polls/show.jsp" doesn't show up anywhere.
    I've tried to flush the "out"-JSPWriter of "index.jsp" at several different key locations in the code, even flushed() in the PollServlet after including "polls/show.jsp" but that didn't help.
    If you need some proof of this weird behavior, ask in this thread and I'll post the link the website where that happens.
    Thanks in advance,
    phil

    Try deleting all the compiled JSPs (usually in a
    directory called "work") then requesting the pageThat's what I did, too. I've gone through the whole make-Tomcat-start-all-over procedure:
    - reloaded via webapp manager: nope
    - stopped/started via webapp manager: nope
    - clear /work/ directory and restarted Tomcat: nope
    Didn't help anything.
    Have you debugged your PollServlet to see if it's
    returning/including the right (hard-coded) page?Mmh.. What should I debug there? There's not much to debug, if stuff is hard-coded like ...
    I just found the error in my code! duh I was just looking in Eclipse for a piece of code to post here when I saw my mistake:
    The CMS I'm currently adding the poll feature to is more flexible than I thought (and that although I wrote it myself!):
    The article-retrieve servlet is called by this URL:
    /retrieve?nextPage=article.jsp&id=12345And my poll servlet is called by
    /poll?action=latest&limit=1Normally this would include the "polls/show.jsp" from the PollServlet because the code in PollServlet reads:
    // Use nextPage from request or show by default
    nextPage = request.getParameter("nextPage");
    if(nextPage == null) nextPage = "polls/show.jsp";But when the PollServlet got called from the "index.jsp?c=retrive&nextPage=article.jsp&id=123" page, there actually was a "nextPage" param and it's value was "article.jsp". And because there was still an ArticleBean in the request (from the ArticleRetrieveServlet), this "article.jsp" included by the PollServlet displayed the article a second time.
    I fixed it by including my PollServlet's output with the "nextPage" parameter explicitly set:
    /poll?action=latest&limit=1&nextPage=polls/show.jsp
    The other way to test is to change your hard-coded
    page to some arbitrary HTML page so you know that at
    least it IS being included.That's something I didn't think about :)
    The other thing to test is to request this page
    (action) directly. So type
    /poll?action=latest&limit=1 into the browser and see
    what you get.Already did that, no problems.
    Sorry I can't be of more help... but I would bet the
    farm that it's not a problem with Tomcat.You're right. I'd really be shocked to have me find 2 bugs in Tomcat within the last to weeks (although the bug was already fixed in a newer version of Tomcat)
    Also... You may want to consider using Struts for your
    MVC if you can.Lots of people keep telling me that, but I'll want to do a general cleanup of the code first - maybe then I'll convert to Struts. After all I'm a freelancer and currently don't have time to learn Struts.
    Thanks for your help,
    phil

Maybe you are looking for

  • How do I add a music file to the playlist I made in iTunes for my iPhone4?

    Apple Tech suggested I make a Playlist for tunes I wanted to play on my iPhone 4, syncing the list to the iPhone 4. But I cannot figure out how to add tunes to this list I made once. I try to drag and drop from my iTunes library, directly on top of t

  • Problem in task after upgrade to 7.4

    Hi, after upgrade from 7.1 to 7.4 now in UWL detail in some task there is the label: "Before you make a decision, you can display the attachments and objects which have been attached to the user decision. You can also create your own attachments. If

  • Crystal Report XI Release 2 stuck in install loop

    Post Author: jerryk CA Forum: Upgrading and Licensing Hi, Since upgrading from Crystal Reports XI to release 2 (Windows XP pro), I have been stuck in an install loop.  Each time I launch Crystal Reports XI Release 2 from the start menu is says "insta

  • How do i view silverlight/moonlight content using firefox 6 for linux?

    In firefox 7.0.1 for linux the moonlight add-on is not compatible. Is there another way to view silverlight/moonlight/netflix content?

  • Retake the quiz questions that got wrong answers

    Hi, I psuedo-asked this before, but I'll ask it outright this time. In using Captivate 3, is there any way to make the user take the quiz a second time, but skip over the questions that they have gotten correct, requiring them to redo only the questi