|
jforum example source code file (LoginContent.jsp)
The jforum LoginContent.jsp source code
<%@ page import="com.ecyrd.jspwiki.*" %>
<%@ page import="com.ecyrd.jspwiki.auth.*" %>
<%@ page errorPage="/Error.jsp" %>
<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
<%!
public void jspInit()
{
WikiEngine wiki = WikiEngine.getInstance( getServletConfig() );
AuthenticationManager mgr = wiki.getAuthenticationManager();
if ( mgr.isContainerAuthenticated() )
{
postURL = "j_security_check";
}
else
{
postURL = "Login.jsp";
}
}
String postURL;
%>
<h3>Login
<div class="formcontainer">
<div class="instructions">
Welcome to <wiki:Variable var="applicationname" />. Please sign in
with your login name and password.
</div>
<div class="instructions">
<wiki:Messages div="error" prefix="Error: " />
</div>
<form id="login" action="<%=postURL%>"
method="POST" accept-charset="<wiki:ContentEncoding />" >
<!-- User name -->
<div class="block">
<label>Login
<input type="text" name="j_username" value="
Other jforum examples (source code examples)Here is a short list of links related to this jforum LoginContent.jsp source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.