SVNAnt does not work
September 3, 2009 · Posted in Uncategorized · Comment
If using SVNAnt, make sure subversion is installed on the system.
In case, there is a way to use SVNAnt without it please let me know.
Invoke a servlet from a servlet
September 3, 2009 · Posted in Uncategorized · Comment
There are couple of ways to do so:
- Send a HTTP request
To invoke a servlet that requires authentication, in addition to creating the URL object, you need to pass authentication cookies too.
URL url = new URL("http://blah");
URLConnection con = url.openConnection();
con.setRequestProperty("Cookie", request.getHeader("Cookie"));
con.connect();
- RequestDispatcher
- Send a redirect
