<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Stuff Scan &#187; Java</title>
	<atom:link href="http://www.webstuffscan.com/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webstuffscan.com</link>
	<description>Scanning the Web for the good stuff</description>
	<lastBuildDate>Tue, 13 Apr 2010 19:37:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Jakarta HttpClient to tunnel through NTLM Proxy</title>
		<link>http://www.webstuffscan.com/2006/12/19/using-jakarta-httpclient-to-tunnel-through-ntlm-proxy/</link>
		<comments>http://www.webstuffscan.com/2006/12/19/using-jakarta-httpclient-to-tunnel-through-ntlm-proxy/#comments</comments>
		<pubDate>Tue, 19 Dec 2006 09:11:03 +0000</pubDate>
		<dc:creator>webstuffscan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.webstuffscan.com/2006/12/19/using-jakarta-httpclient-to-tunnel-through-ntlm-proxy/</guid>
		<description><![CDATA[Following code in Java illustrates how Jakarta HttpClient package can be used to tunnel through NTLM proxy. This is handy if you want to download a page periodically and then serve it from your local web server. For this code to compile packages needed are httpclient 3.0, logging 1.0.5 and codec 1.3 (Later versions are [...]]]></description>
			<content:encoded><![CDATA[<p><img id="image181" height=40 alt="Using Jakarta HttpClient for downloading files in Java" src="http://www.webstuffscan.com/wp-content/uploads/2006/12/jakarta-httpclient-and-ntlm.jpg" align="left"/>Following code in Java illustrates how Jakarta HttpClient package can be used to tunnel through NTLM proxy. This is handy if you want to download a page periodically and then serve it from your local web server. For this code to compile packages needed are <a href="http://jakarta.apache.org/commons/" target="_blank">httpclient 3.0, logging 1.0.5 and codec 1.3</a> (Later versions are also fine). All the jars for these packages must be in classpath while running the code below. </p>
<pre>
<code>
import java.io.*;
import java.net.Socket;
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.auth.AuthScope;
import org.apache.commons.httpclient.methods.GetMethod;
 
public class NTLMFetch
{
  public static void main(String[] args) throws Exception 
  {
    // Enable proxy to host logging
    System.setProperty("org.apache.commons.logging.Log", 
               "org.apache.commons.logging.impl.SimpleLog");
    System.setProperty("org.apache.commons.logging.simplelog.
                       showdatetime", "true");
    System.setProperty("org.apache.commons.logging.simplelog.
                        log.httpclient.wire.header", "debug");
    System.setProperty("org.apache.commons.logging.simplelog.
                        log.org.apache.commons.httpclient", "debug");
 
    // Update this to the actual URL
    String url = "http://mysite.com/index.html"; 
    HttpClient client = new HttpClient();
    HttpMethod method = new GetMethod(url);
    HostConfiguration hostConfig= client.getHostConfiguration();
    // Update this to point to NTLM enabled proxy
    hostConfig.setProxy("192.168.0.0", 80); 

    // Authenticate using NTLM
    client.getState().setProxyCredentials(AuthScope.ANY,
          new NTCredentials("userid","password","",""));

    int statusCode = client.executeMethod(method);
    System.out.println("Stat=" +HttpStatus.getStatusText(statusCode));
    String strOutput = method.getResponseBodyAsString();

    // Write the output to a local file
    PrintWriter writer = new PrintWriter(new FileWriter("c:/down.html"));
    writer.println(strOutput);
    writer.close();
  }
}
</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webstuffscan.com/2006/12/19/using-jakarta-httpclient-to-tunnel-through-ntlm-proxy/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WebSphere Application Studio Developer (WSAD) Tips</title>
		<link>http://www.webstuffscan.com/2006/12/12/websphere-application-studio-developer-wsad-tips/</link>
		<comments>http://www.webstuffscan.com/2006/12/12/websphere-application-studio-developer-wsad-tips/#comments</comments>
		<pubDate>Tue, 12 Dec 2006 05:30:07 +0000</pubDate>
		<dc:creator>webstuffscan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.webstuffscan.com/2006/12/12/websphere-application-studio-developer-wsad-tips/</guid>
		<description><![CDATA[WSAD from IBM is one of the best tools available out there for enterprise Java development. It is a perfect IDE where everything in Java (EJB, servlets, JSP, webservices etc.) can be developed with ease. Here are some WSAD tips which my fellow programmers find quite useful.
How do I change the workspace in WSAD?
Normally when [...]]]></description>
			<content:encoded><![CDATA[<p><img id="image124" title="WebSphere (WSAD)" alt="WebSphere (WSAD)" src="http://www.webstuffscan.com/wp-content/uploads/2006/12/wsad.jpg" align="left" />WSAD from IBM is one of the best tools available out there for enterprise Java development. It is a perfect IDE where everything in Java (EJB, servlets, JSP, webservices etc.) can be developed with ease. Here are some WSAD tips which my fellow programmers find quite useful.</p>
<p><strong>How do I change the workspace in WSAD?</strong><br />
Normally when you start WSAD, you get an option to change workspace. If you had checked the &#8220;Do not show this dialog&#8221; option, you will not get get this option again. To enable workspace selection again,<br />
Right click on WSAD shortcut and insert <strong>-setworkspace</strong> in the target field of the shortcut. In my case it is &#8220;D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\wsappdev.exe&#8221; -setworkspace</p>
<p><strong>Why is VSS plugin not working in WSAD?<br />
</strong>To enable VSS plugin with WSAD 5.1 modify &#8220;wsappdev.ini&#8221; in WSAD working directory and comment <strong>VMArgs=-Xj9</strong>, for example #VMArgs=-Xj9</p>
<p><strong>Why is my JDBC settings not working in WSAD?<br />
</strong>You need to add classes12.zip to the classpath of the JDBC provider.</p>
<p><strong>Can I install WSAD 5.1.2 on Windows 2003?</strong><br />
Yes you can! But you need enable?Ç compatibility mode for the installer. Right click on the installer and then select properties->compatibility->compatibility mode for windows 2000.</p>
<p><strong>Which shortcut keys you use in WSAD?<br />
</strong></p>
<table width="300" border="1">
<tr>
<td style="width: 100px"><strong>Key</strong></td>
<td style="width: 200px"><strong>Shortcut</strong></td>
</tr>
<tr>
<td style="width: 100px"><strong>F4</strong></td>
<td style="width: 200px">Open hierarchy (context sensitive)</td>
</tr>
<tr>
<td style="width: 100px"><strong>F3</strong></td>
<td style="width: 200px">Goto selection source</td>
</tr>
<tr>
<td style="width: 100px"><strong>Ctrl+Space</strong></td>
<td style="width: 200px">Content Assist</td>
</tr>
<tr>
<td style="width: 100px"><strong>Ctrl+Shift+Space</strong></td>
<td style="width: 200px">Parameter Hints</td>
</tr>
<tr>
<td style="width: 100px"><strong>Ctrl+1</strong></td>
<td style="width: 200px">Quick Fix Errors</td>
</tr>
<tr>
<td style="width: 100px"><strong>Ctrl+Shift+P</strong></td>
<td style="width: 200px">Match Bracket</td>
</tr>
<tr>
<td style="width: 100px"><strong>Ctrl+F3</strong></td>
<td style="width: 200px">In place outline (context sensitive)</td>
</tr>
<tr>
<td style="width: 100px"><strong>Ctrl+Shift+T</strong></td>
<td style="width: 200px">Find a Type</td>
</tr>
<tr>
<td style="width: 100px"><strong>Ctril+Shift+F</strong></td>
<td style="width: 200px">Format Source</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.webstuffscan.com/2006/12/12/websphere-application-studio-developer-wsad-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.223 seconds -->
