public String getURL(String classname, String params) throws IOException, SQLException {
		try {
			Class<? extends WebPage> clazz=Class.forName(classname).asSubclass(WebPage.class);
			return getURL(clazz, params);
		} catch(ClassNotFoundException err) {
			throw new IOException("Unable to load class: "+classname, err);
		}
	}
public String getURL ( String classname , String params ) throws IOException , SQLException { try { Class < ? extends WebPage > clazz = Class . forName ( classname ) . asSubclass ( WebPage . class ) ; return getURL ( clazz , params ) ; } catch ( ClassNotFoundException err ) { throw new IOException ( "Unable to load class: " + classname , err ) ; } }
Gets a relative URL given its classname and optional parameters.
Parameters should already be URL encoded but not XML encoded.