> Could you provide me an example using velocity or jsp (instead of
out.println)? I will include it in the tutorial

I have noticed that this is what you were looking for. This JSP is very
similar to hello.vm which is already in the Jetspeed package.

Ozgur

<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' 
        prefix='jetspeed' %>
<%@ page import="org.apache.jetspeed.util.URILookup" %>

<%
    if( request.getParameter("x_login") == null ) { %>

        <form method="get" action="<jetspeed:uriLookup type="Home" />">
        <p> Username:<input type="text" name="x_username" size="20"><br>
            Password:<input type="password" name="x_password"
size="20"><br>
            <input type="submit" name="x_login" value="Login">
        </p>
        </form>

    <% } else { %>

        <p> You have logged in as <%=
request.getParameter("x_username")%><br>
            and your password is <%=
request.getParameter("x_password")%>
        </p>
        <p> <a href="<jetspeed:uriLookup type="Home" />">
                Click here for the form</a>
        </p>
    <% } %>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to