Wednesday, 24 March 2010

finished project

finished project

tutorials

JSP Tutorials

login jsp

 HANDLING (java)
 
bwork.action.*;
public class LoginAction extends ActionSupport
{
  private String userName;
  private String password;  
public String getPassword()
  {
    return password;
  }
  public String getUserName()
  {
    return userName;
  }
  public void setPassword(String password)
  {
    this.password = password;
  }
  public void setUserName(String userName)
  {
    this.userName = userName;
  }
    
  public String doExecute()
  {
    return SUCCESS;
  }
  public void doValidation()
  {
    if (userName == null || userName.length() < 1) addError("UserName", "Please enter username.");
    if (password == null || password.length() < 1) addError("Password", "Please enter password.");
  }
}
 
 PROCESSING (HTML/java)
 
actions>
  action name="LoginAction" alias="loginJSP">
    view name="input">login.jsp/view>
    view name="success">success.html/view>
  /action>
  action name="LoginAction" alias="loginVelocity">
    view name="input">login.vm/view>
    view name="success">success.html/view>
  /action>
/actions>
 
PUBLISHING (HTML)
 
 html>
  head>
    title>WebWork Velocity Example/title>
  /head>
  body>
  form action="loginVelocity.action" method="post">
    input type="text" name="userName" value="$!userName"/>
    input type="text" name="password" value="$!password"/>
    input type="submit" value="Submit"/>
  /form>
  #foreach ($error in $errors)
    $error
  #end
  /body>
/html>
  

Monday, 22 March 2010

security


The user will be directed to a login site to reach their personal pages.

Thursday, 18 March 2010

server hosts


The user will host their own videos and pictures from their computer whereas the server will host the users blogs mail and subscribers (fans)

ALL SERVER!! - fee 

design needs

  • messaging
    • reply
  • comments
    • post
  • network
    • people
      • photos
      • videos
      • text
 - log out

change background