cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Smith" <msm...@windebt.com>
Subject error: Type expected??
Date Thu, 26 Oct 2000 22:37:05 GMT
	I've got the following template:
<xsl:template name="checklogin">
	<xsp:logic>
		String username = getUsername(request);
		String password = getPassword(request);
		boolean validuser = false;
		if (username != null &amp;&amp; password != null)
			validuser = isUserValid(username, password, response);
		if (validuser)
		{
			<xsp:content><logged-in /></xsp:content>
		}
	</xsp:logic>
</xsl:template>

	I call it with <xsl:call-template name="checklogin" />.  I was using this
before without any problem, but I juggled around some of my xsl and now I'm
getting an error:
java.lang.Exception: XSP Java Compiler: Compilation failed for
_protected.java
133: Type expected.
		if (username != null && password != null)
		^
1 error

	I don't understand.  Is there some way to view _protect.java?

Thanks,
Matt


Mime
View raw message