Hello,
I extended the cloud taglib with an loginpage attribute.
With this login page, you can specify the page you want to use for your
login.
An example of how it can be used:
index.jsp:
<%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0"
prefix="mm"%>
<html>
<body>
<mm:cloud loginpage="login.jsp" />
</body>
</html>
login.jsp
<%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0"
prefix="mm"%>
<html>
<mm:import externid="reference" required="true" />
<form method="post" action="<mm:url page="$reference" />" >
<input type="hidden" name="command" value="login">
<input type="hidden" name="cloud" value="mmbase">
<input type="hidden" name="method" value="name/password">
<input type="text" name="username" value="">
<br />
<input type="password" name="password" value="">
<br />
<input type="submit" name="Login" value="login">
</form>
</html>
When i get no negative comments, i assume i can check it in.
--
Eduard Witteveen Systeem Ontwikkelaar
NOS Internet, Gateway C Kamer 107
+31(0)356772910 http://www.omroep.nl/
Sed quis custodiet ipsos custodes? : The sixth Satire from Juvenal