Thread: [Cruce-commit] SF.net SVN: cruce:[141] JSP/trunk/Forum/WebContent
Status: Beta
Brought to you by:
caiusb
|
From: <ali...@us...> - 2010-05-14 12:01:00
|
Revision: 141
http://cruce.svn.sourceforge.net/cruce/?rev=141&view=rev
Author: alinposho
Date: 2010-05-14 12:00:51 +0000 (Fri, 14 May 2010)
Log Message:
-----------
Am adaugat fisierele pentru pagina principala si pagina unui thread. Pentru moment ele au doar codul autogenerat de eclipse.
Added Paths:
-----------
JSP/trunk/Forum/WebContent/Thread.jsp
JSP/trunk/Forum/WebContent/index.jsp
Added: JSP/trunk/Forum/WebContent/Thread.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/Thread.jsp (rev 0)
+++ JSP/trunk/Forum/WebContent/Thread.jsp 2010-05-14 12:00:51 UTC (rev 141)
@@ -0,0 +1,12 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+ pageEncoding="ISO-8859-1"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Insert title here</title>
+</head>
+<body>
+
+</body>
+</html>
\ No newline at end of file
Added: JSP/trunk/Forum/WebContent/index.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/index.jsp (rev 0)
+++ JSP/trunk/Forum/WebContent/index.jsp 2010-05-14 12:00:51 UTC (rev 141)
@@ -0,0 +1,12 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+ pageEncoding="ISO-8859-1"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Insert title here</title>
+</head>
+<body>
+
+</body>
+</html>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ali...@us...> - 2010-05-18 08:46:34
|
Revision: 153
http://cruce.svn.sourceforge.net/cruce/?rev=153&view=rev
Author: alinposho
Date: 2010-05-18 08:46:28 +0000 (Tue, 18 May 2010)
Log Message:
-----------
Modified Paths:
--------------
JSP/trunk/Forum/WebContent/commitRegister.jsp
JSP/trunk/Forum/WebContent/index.jsp
JSP/trunk/Forum/WebContent/register.jsp
Modified: JSP/trunk/Forum/WebContent/commitRegister.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/commitRegister.jsp 2010-05-18 08:38:40 UTC (rev 152)
+++ JSP/trunk/Forum/WebContent/commitRegister.jsp 2010-05-18 08:46:28 UTC (rev 153)
@@ -58,6 +58,9 @@
<form name="dummy2">
<input type="hidden" name="problem" value="<%out.print(problem);%>"
>
+ <p>
+ there was the following problem: <%out.print(problem);%>.
+ </p>
</form>
<jsp:forward page="register.jsp"></jsp:forward>
<%
Modified: JSP/trunk/Forum/WebContent/index.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/index.jsp 2010-05-18 08:38:40 UTC (rev 152)
+++ JSP/trunk/Forum/WebContent/index.jsp 2010-05-18 08:46:28 UTC (rev 153)
@@ -87,10 +87,10 @@
{
%>
- <div id="#rigthContent" align="right" >
- <form name="LoginForm" action="login.jsp" method="post">
+ <div id="#rigthContent" align="right" >
User name: <input type="text" name="username"><br>
Password: <input type="password" name="password"><br>
+ <form name="LoginForm" action="login.jsp" method="post">
<input type="submit" value="login">
<%
//Handling posible login problems
Modified: JSP/trunk/Forum/WebContent/register.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/register.jsp 2010-05-18 08:38:40 UTC (rev 152)
+++ JSP/trunk/Forum/WebContent/register.jsp 2010-05-18 08:46:28 UTC (rev 153)
@@ -30,7 +30,7 @@
<%
}
%>
- <form name="register" action="commitRegister.jsp" method="post">
+
<table align="center" width="80%">
<tr>
<td align="right">
@@ -67,10 +67,12 @@
<tr>
<td></td>
<td>
+ <form name="register" action="commitRegister.jsp" method="post">
<input type="submit" value="Submit" name="submit">
+ </form>
</td>
</tr>
</table>
- </form>
+
</body>
</html>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ali...@us...> - 2010-05-18 10:02:41
|
Revision: 154
http://cruce.svn.sourceforge.net/cruce/?rev=154&view=rev
Author: alinposho
Date: 2010-05-18 10:02:35 +0000 (Tue, 18 May 2010)
Log Message:
-----------
Acum merge sa dai register, dar daca introuduci campuri gresite sau un unsername care mai exista deja nu te anunta corect.
Modified Paths:
--------------
JSP/trunk/Forum/WebContent/index.jsp
JSP/trunk/Forum/WebContent/login.jsp
JSP/trunk/Forum/WebContent/register.jsp
Modified: JSP/trunk/Forum/WebContent/index.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/index.jsp 2010-05-18 08:46:28 UTC (rev 153)
+++ JSP/trunk/Forum/WebContent/index.jsp 2010-05-18 10:02:35 UTC (rev 154)
@@ -70,9 +70,9 @@
{
%>
<!-- The form for adding a new Thread -->
- <div id="leftContent" align="right">
+ <div id="leftContent" align="right">
+ Thread name: <INPUT TYPE="TEXT" NAME="ThreadName" value="">
<FORM NAME="AddThread" action="index.jsp" method="get">
- Thread name: <INPUT TYPE="TEXT" NAME="ThreadName" value="">
<INPUT TYPE="submit" VALUE="Add Thread">
</FORM>
</div>
@@ -87,10 +87,10 @@
{
%>
- <div id="#rigthContent" align="right" >
+ <div id="#rigthContent" align="right" >
+ <form name="Login" action="login.jsp" method="post">
User name: <input type="text" name="username"><br>
Password: <input type="password" name="password"><br>
- <form name="LoginForm" action="login.jsp" method="post">
<input type="submit" value="login">
<%
//Handling posible login problems
Modified: JSP/trunk/Forum/WebContent/login.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/login.jsp 2010-05-18 08:46:28 UTC (rev 153)
+++ JSP/trunk/Forum/WebContent/login.jsp 2010-05-18 10:02:35 UTC (rev 154)
@@ -44,29 +44,28 @@
%>
<!-- Forwarding problem -->
<form name="dummy2">
- <input type="hidden" name="problem" value="<%out.print(problem);%>"
- >
+ <input type="hidden" name="problem" value="<%out.print(problem);%>">
</form>
- <jsp:forward page="index.jsp"></jsp:forward>
<%
+ String redirectURL = "index.jsp";
+ response.sendRedirect(redirectURL);
}
else
{
//All OK
%>
+ <!-- Forwarding user name -->
+ <form name="dummy">
+ <input type="hidden" name="user"
+ value="<%out.print(userName);%>"
+ >
+ </form>
<p>
Congratulations <%out.print(userName);%>. You have been successfully logged in.
</p>
<form action="index.jsp" method="post">
<input type="submit" value="Back to main">
- </form>
- <!-- Forwarding user name -->
- <form name="dummy">
- <input type="hidden" name="user"
- value="<%request.getParameter("username");%>"
- >
- </form>
-
+ </form>
<%
}
%>
Modified: JSP/trunk/Forum/WebContent/register.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/register.jsp 2010-05-18 08:46:28 UTC (rev 153)
+++ JSP/trunk/Forum/WebContent/register.jsp 2010-05-18 10:02:35 UTC (rev 154)
@@ -30,7 +30,7 @@
<%
}
%>
-
+ <form name="register" action="commitRegister.jsp" method="post">
<table align="center" width="80%">
<tr>
<td align="right">
@@ -66,13 +66,11 @@
</tr>
<tr>
<td></td>
- <td>
- <form name="register" action="commitRegister.jsp" method="post">
- <input type="submit" value="Submit" name="submit">
- </form>
+ <td>
+ <input type="submit" value="Submit" name="submit">
</td>
</tr>
</table>
-
+ </form>
</body>
</html>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ali...@us...> - 2010-05-18 14:44:16
|
Revision: 157
http://cruce.svn.sourceforge.net/cruce/?rev=157&view=rev
Author: alinposho
Date: 2010-05-18 14:44:10 +0000 (Tue, 18 May 2010)
Log Message:
-----------
Pagina de register merger super. Chiar si informatiile sunt afisate corect!
Caius scoate fiserul: "classpath" de pe svn te rog.
Modified Paths:
--------------
JSP/trunk/Forum/WebContent/commitRegister.jsp
JSP/trunk/Forum/WebContent/register.jsp
Modified: JSP/trunk/Forum/WebContent/commitRegister.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/commitRegister.jsp 2010-05-18 10:57:43 UTC (rev 156)
+++ JSP/trunk/Forum/WebContent/commitRegister.jsp 2010-05-18 14:44:10 UTC (rev 157)
@@ -6,7 +6,7 @@
<%@page import="prc.bubulina.forum.businessLogic.Singleton"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>Insert title here</title>
+<title>Register</title>
</head>
<body>
@@ -47,36 +47,32 @@
{
problem = "null or empty email!";
}
+ else
+ {
+ if(userDAO.add(userName, password, email) == null)
+ {
+ %>
+ <script>
+ alert("Problem registering user! Please try again");
+ </script>
+ <%
+ problem = "Problem registering user! Please try again";
+ }
+ }
}
}
}
}
if(problem != null)
{
+ //saving problem string as a session variable
+ session.setAttribute("problem", problem);
%>
<!-- Forwarding problem -->
- <form name="dummy2">
- <input type="hidden" name="problem" value="<%out.print(problem);%>"
- >
- <p>
- there was the following problem: <%out.print(problem);%>.
- </p>
- </form>
+
<jsp:forward page="register.jsp"></jsp:forward>
<%
}
- if(userDAO.add(userName, password, email) == null)
- {
- %>
- <script type="text/javascript">
- alert("Problem registering user! Please try again");
- </script>
- <input type="hidden" name="problem" value="<% out.print(problem);%>"
- >
- <jsp:forward page="register.jsp"></jsp:forward>
- <%
-
- }
else
{
%>
@@ -84,15 +80,8 @@
Congratulations <%out.print(userName);%>. You have been successfully registered.
</p>
<form action="index.jsp" method="post">
- <input type="submit" value="Back to main">
- </form>
- <!-- Forwarding user name -->
- <form name="dummy">
- <input type="hidden" name="user"
- value="<%out.print(userName); %>"
- >
- </form>
-
+ <input type="submit" value="Back to main">
+ </form>
<%
}
Modified: JSP/trunk/Forum/WebContent/register.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/register.jsp 2010-05-18 10:57:43 UTC (rev 156)
+++ JSP/trunk/Forum/WebContent/register.jsp 2010-05-18 14:44:10 UTC (rev 157)
@@ -6,31 +6,25 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Register</title>
-<style type="text/css">
-
-
-td
-{
-
-}
-</style>
-
-
</head>
<body>
<%
- String problem = request.getParameter("problem");
+ String problem = (String)session.getAttribute("problem");
if(problem != null && (problem.isEmpty() == false)
&& (problem.equals("null")) == false)
{
%>
- <font color="red" size="14">
+ <p align="center">
+ <font color="red" size="3px">
There is the following problem: <%out.println(problem); %>
+ <br>
+ Please re-enter fields.
</font>
+ </p>
<%
}
%>
- <form name="register" action="commitRegister.jsp" method="post">
+ <form name="register" action="commitRegister.jsp" method="get">
<table align="center" width="80%">
<tr>
<td align="right">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ali...@us...> - 2010-05-18 15:14:54
|
Revision: 158
http://cruce.svn.sourceforge.net/cruce/?rev=158&view=rev
Author: alinposho
Date: 2010-05-18 15:14:48 +0000 (Tue, 18 May 2010)
Log Message:
-----------
Am pus css-ul din login intr-o pagina separata si l-am legat ca si css extern urmand sa fac acelasi lucru si pentru paginile: Thread si Topic
Modified Paths:
--------------
JSP/trunk/Forum/WebContent/commitRegister.jsp
JSP/trunk/Forum/WebContent/index.jsp
JSP/trunk/Forum/WebContent/login.jsp
Added Paths:
-----------
JSP/trunk/Forum/WebContent/pageStyle.css
Modified: JSP/trunk/Forum/WebContent/commitRegister.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/commitRegister.jsp 2010-05-18 14:44:10 UTC (rev 157)
+++ JSP/trunk/Forum/WebContent/commitRegister.jsp 2010-05-18 15:14:48 UTC (rev 158)
@@ -67,9 +67,7 @@
{
//saving problem string as a session variable
session.setAttribute("problem", problem);
- %>
- <!-- Forwarding problem -->
-
+ %>
<jsp:forward page="register.jsp"></jsp:forward>
<%
}
Modified: JSP/trunk/Forum/WebContent/index.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/index.jsp 2010-05-18 14:44:10 UTC (rev 157)
+++ JSP/trunk/Forum/WebContent/index.jsp 2010-05-18 15:14:48 UTC (rev 158)
@@ -10,77 +10,33 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Team Bubulina's Forum</title>
-<style type="text/css">
-table{
- border: 10px solid blue;
- border-collapse: collapse;
- align: center;
- width: 80%
-}
-th{
- align: center;
-}
-td{
- border: 3px solid blue;
- border-collapse: collapse;
- height: 40px;
-}
+<!-- Linking css -->
+<link rel="stylesheet" href="pageStyle.css" type="text/css">
-a:link {
- color: green;
-}
-
-h1 {
- font-weight: bold;
- text-align: center;
-}
-
-#leftContent {
- float: left;
- padding: 10px;
- width: 300px; /* ie5win fudge begins */
- voice-family: "\"}\"";
- voice-family:inherit;
- width: 270px;
- }
-html>body #leftContent {
- width: 270px; /* ie5win fudge ends */
- }
-#rigthContent {
- float: left;
- padding: 10px;
- width: 300px; /* ie5win fudge begins */
- voice-family: "\"}\"";
- voice-family:inherit;
- width: 270px;
- }
-html>body #rigthContent {
- width: 270px; /* ie5win fudge ends */
- }
-</style>
</head>
<body>
<%
//This form is to be dispayed only if the user is logged in
- String user = request.getParameter("user");
+ String user = (String)session.getAttribute("user");
if(user != null && !user.equalsIgnoreCase("null"))
- {
-%>
+ {//If the user has logged in
+ %>
<!-- The form for adding a new Thread -->
- <div id="leftContent" align="right">
- Thread name: <INPUT TYPE="TEXT" NAME="ThreadName" value="">
- <FORM NAME="AddThread" action="index.jsp" method="get">
- <INPUT TYPE="submit" VALUE="Add Thread">
+ <div id="leftContent" align="right">
+ <FORM NAME="AddThread" action="index.jsp" method="get">
+ Thread name: <INPUT TYPE="TEXT" NAME="ThreadName" value="">
+ <INPUT TYPE="submit" VALUE="Add Thread">
</FORM>
</div>
-
-<%
- //If the user has logged in
- %>
- <p> Hello <%out.print(user); %>!</p>
+ <div id="#rigthContent" align="right" >
+ <font size="4px">
+ Hello <%out.print(user); %>!
+ Welcome to our forum.
+ </font>
+ </div>
<%
}
else
@@ -91,20 +47,7 @@
<form name="Login" action="login.jsp" method="post">
User name: <input type="text" name="username"><br>
Password: <input type="password" name="password"><br>
- <input type="submit" value="login">
- <%
- //Handling posible login problems
- String problem = request.getParameter("problem");
- if(problem != null && (problem.isEmpty() == false)
- && (problem.equals("null")) == false)
- {
- %>
- <font color="red" size="14">
- There is the following problem: <%out.println(problem); %>
- </font>
- <%
- }
- %>
+ <input type="submit" value="login">
</form>
<form action="register.jsp" action=post>
<input type="submit" value="register">
Modified: JSP/trunk/Forum/WebContent/login.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/login.jsp 2010-05-18 14:44:10 UTC (rev 157)
+++ JSP/trunk/Forum/WebContent/login.jsp 2010-05-18 15:14:48 UTC (rev 158)
@@ -7,9 +7,10 @@
<%@page import="prc.bubulina.forum.dataclasses.*"%>
<html>
+
<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>Insert title here</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+ <title>login</title>
</head>
<body>
<%
@@ -42,30 +43,25 @@
if(problem != null)
{
%>
- <!-- Forwarding problem -->
- <form name="dummy2">
- <input type="hidden" name="problem" value="<%out.print(problem);%>">
- </form>
+ <p align="center">
+ There is the following problem: <%out.println(problem); %>.<br>
+ Please try signing in again.
+ <form action="index.jsp" method="post" >
+ <input align="top" type="submit" value="Back to main">
+ </form>
<%
- String redirectURL = "index.jsp";
- response.sendRedirect(redirectURL);
}
else
{
- //All OK
- %>
- <!-- Forwarding user name -->
- <form name="dummy">
- <input type="hidden" name="user"
- value="<%out.print(userName);%>"
- >
- </form>
- <p>
- Congratulations <%out.print(userName);%>. You have been successfully logged in.
- </p>
- <form action="index.jsp" method="post">
- <input type="submit" value="Back to main">
- </form>
+ //All OK
+ //Saving the new logged user in the cookies
+ session.setAttribute("user", userName);
+ %>
+ <p align="center">
+ Congratulations <%out.print(userName);%>. You have been successfully logged in.
+ <form action="index.jsp" method="post" >
+ <input align="top" type="submit" value="Back to main">
+ </form>
<%
}
%>
Added: JSP/trunk/Forum/WebContent/pageStyle.css
===================================================================
--- JSP/trunk/Forum/WebContent/pageStyle.css (rev 0)
+++ JSP/trunk/Forum/WebContent/pageStyle.css 2010-05-18 15:14:48 UTC (rev 158)
@@ -0,0 +1,48 @@
+@CHARSET "ISO-8859-1";
+table{
+ border: 10px solid blue;
+ border-collapse: collapse;
+ align: center;
+ width: 80%
+}
+
+th{
+ align: center;
+}
+td{
+ border: 3px solid blue;
+ border-collapse: collapse;
+ height: 40px;
+}
+
+a:link {
+ color: green;
+}
+
+h1 {
+ font-weight: bold;
+ text-align: center;
+}
+
+#leftContent {
+ float: left;
+ padding: 10px;
+ width: 300px; /* ie5win fudge begins */
+ voice-family: "\"}\"";
+ voice-family:inherit;
+ width: 270px;
+ }
+html>body #leftContent {
+ width: 270px; /* ie5win fudge ends */
+ }
+#rigthContent {
+ float: left;
+ padding: 10px;
+ width: 300px; /* ie5win fudge begins */
+ voice-family: "\"}\"";
+ voice-family:inherit;
+ width: 270px;
+ }
+html>body #rigthContent {
+ width: 270px; /* ie5win fudge ends */
+ }
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ali...@us...> - 2010-05-18 16:15:29
|
Revision: 159
http://cruce.svn.sourceforge.net/cruce/?rev=159&view=rev
Author: alinposho
Date: 2010-05-18 16:15:23 +0000 (Tue, 18 May 2010)
Log Message:
-----------
Something s very wrong with this Web designing. I can't take it any more!
Modified Paths:
--------------
JSP/trunk/Forum/WebContent/Thread.jsp
JSP/trunk/Forum/WebContent/index.jsp
Modified: JSP/trunk/Forum/WebContent/Thread.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/Thread.jsp 2010-05-18 15:14:48 UTC (rev 158)
+++ JSP/trunk/Forum/WebContent/Thread.jsp 2010-05-18 16:15:23 UTC (rev 159)
@@ -12,17 +12,69 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+
+<!-- Linking css -->
+<link rel="stylesheet" href="pageStyle.css" type="text/css">
+
<%
String sID = request.getParameter("id");
int id = Integer.parseInt(sID);
- ForumThread thread = Singleton.getInstance().getThreadDAO().get(id);;
+ ForumThread thread = Singleton.getInstance().getThreadDAO().get(id);
+ session.setAttribute("currentThreadID", Integer.toString(thread.thread_id));
%>
<title>Forum Bubulina: Thread - <% out.println(thread.name); %></title>
</head>
<body>
+
+<!-- The so called header of the forum where you can login/register and add topics if
+you are logged in of course -->
+<%
+ //This form is to be dispayed only if the user is logged in
+ String user = (String)session.getAttribute("user");
+ if(user != null && !user.equalsIgnoreCase("null"))
+ {//If the user has logged in
+ %>
+ <!-- The form for adding a new Thread -->
+ <div id="leftContent" align="right">
+ <FORM NAME="AddTopic" action="index.jsp" method="get">
+ Topic name: <INPUT TYPE="TEXT" NAME="TopicName" value="">
+ <INPUT TYPE="submit" VALUE="Add Topic">
+ </FORM>
+ </div>
+ <div id="#rigthContent" align="right" >
+ <font size="4px">
+ Hello <%out.print(user); %>!
+ Welcome to our forum.
+ </font>
+ </div>
+ <%
+ }
+ else
+ {
+ %>
+
+ <div id="#rigthContent" align="right" >
+ <form name="Login" action="login.jsp" method="post">
+ User name: <input type="text" name="username"><br>
+ Password: <input type="password" name="password"><br>
+ <input type="submit" value="login">
+ </form>
+ <%
+ //Setting the page to return to
+ session.setAttribute("pageToReturnTo", "Thread.jsp");
+ %>
+ <form action="register.jsp" action=post>
+ <input type="submit" value="register">
+ </form>
+ </div>
+<% }
+%>
+
+<!-- The actual table with topics -->
+
<div>
-<table>
- <caption align="top">Topics in this thread are:</caption>
+<table align = center>
+ <caption align="top">Topics in thread <%out.print(thread.name); %> are:</caption>
<tr>
<th>Topic name</th>
<th>Post count</th>
Modified: JSP/trunk/Forum/WebContent/index.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/index.jsp 2010-05-18 15:14:48 UTC (rev 158)
+++ JSP/trunk/Forum/WebContent/index.jsp 2010-05-18 16:15:23 UTC (rev 159)
@@ -11,13 +11,13 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Team Bubulina's Forum</title>
-
<!-- Linking css -->
<link rel="stylesheet" href="pageStyle.css" type="text/css">
</head>
<body>
-
+<!-- The so called header of the forum where you can login/register and add threads if
+you are logged in of course -->
<%
//This form is to be dispayed only if the user is logged in
String user = (String)session.getAttribute("user");
@@ -49,6 +49,10 @@
Password: <input type="password" name="password"><br>
<input type="submit" value="login">
</form>
+ <%
+ //Setting the page to return to
+ session.setAttribute("pageToReturnTo", "index.jsp");
+ %>
<form action="register.jsp" action=post>
<input type="submit" value="register">
</form>
@@ -57,7 +61,7 @@
%>
<!-- The actual table with threads -->
-
+<br>
<div>
<table align = center>
<caption align="top">The threads running on this forum are:<br></caption>
@@ -78,10 +82,10 @@
for (ForumThread thread : threads.getAllThreads()) {
%>
<tr>
- <td>
+ <td>
<a href=Thread.jsp?id=<%= thread.thread_id %>>
- <%
- out.print(thread.name);
+ <%
+ out.print(thread.name);
%>
</a>
</td>
@@ -97,12 +101,6 @@
</table>
</div>
-<!-- Forwarding user name -->
-<form name="dummy">
-<input type="hidden" name="user"
- value="<%request.getParameter("user"); %>"
- >
-</form>
<p>
</p>
</body>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ali...@us...> - 2010-05-25 10:02:56
|
Revision: 163
http://cruce.svn.sourceforge.net/cruce/?rev=163&view=rev
Author: alinposho
Date: 2010-05-25 10:02:49 +0000 (Tue, 25 May 2010)
Log Message:
-----------
Am adaugat si un buton de Home. Sper sa fie totul OK.
Va rog jucati-va si voi cu apicatia.
Modified Paths:
--------------
JSP/trunk/Forum/WebContent/Thread.jsp
JSP/trunk/Forum/WebContent/Topic.jsp
JSP/trunk/Forum/WebContent/index.jsp
Modified: JSP/trunk/Forum/WebContent/Thread.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/Thread.jsp 2010-05-25 09:40:59 UTC (rev 162)
+++ JSP/trunk/Forum/WebContent/Thread.jsp 2010-05-25 10:02:49 UTC (rev 163)
@@ -29,8 +29,25 @@
%>
<title>Forum Bubulina: Thread - <% out.println(thread.name); %></title>
</head>
+
+
+
+
<body>
+
+
+<!-- The home button -->
+<br>
+<div align="center">
+<form name="Home" action="index.jsp" method="post" >
+ <input type="submit" value="home" >
+</form>
+</div>
+
+
+
+
<!-- The so called header of the forum where you can login/register and add topics if
you are logged in of course -->
<%
@@ -85,6 +102,11 @@
<% }
%>
+
+
+
+
+
<!-- The actual table with topics -->
<div>
Modified: JSP/trunk/Forum/WebContent/Topic.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/Topic.jsp 2010-05-25 09:40:59 UTC (rev 162)
+++ JSP/trunk/Forum/WebContent/Topic.jsp 2010-05-25 10:02:49 UTC (rev 163)
@@ -35,6 +35,16 @@
<body>
+<!-- The home button -->
+<br>
+<div align="center">
+<form name="Home" action="index.jsp" method="post" >
+ <input type="submit" value="home" >
+</form>
+</div>
+
+
+
<!-- The so called header of the forum where you can login/register and add posts if
you are logged in of course -->
<%
Modified: JSP/trunk/Forum/WebContent/index.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/index.jsp 2010-05-25 09:40:59 UTC (rev 162)
+++ JSP/trunk/Forum/WebContent/index.jsp 2010-05-25 10:02:49 UTC (rev 163)
@@ -16,6 +16,17 @@
</head>
<body>
+
+<!-- The home button -->
+<br>
+<div align="center">
+<form name="Home" action="index.jsp" method="post" >
+ <input type="submit" value="home" >
+</form>
+</div>
+
+
+
<!-- The so called header of the forum where you can login/register and add threads if
you are logged in of course -->
<%
@@ -44,7 +55,7 @@
<%
//Setting the page to return to
session.setAttribute("pageToReturnTo", "index.jsp");
- %>
+ %>
</div>
<%
}
@@ -69,6 +80,8 @@
<% }
%>
+
+
<!-- The actual table with threads -->
<br>
<div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ali...@us...> - 2010-05-25 10:06:17
|
Revision: 164
http://cruce.svn.sourceforge.net/cruce/?rev=164&view=rev
Author: alinposho
Date: 2010-05-25 10:06:10 +0000 (Tue, 25 May 2010)
Log Message:
-----------
Mici modificari la alinierea butoanelor.
Modified Paths:
--------------
JSP/trunk/Forum/WebContent/commitRegister.jsp
JSP/trunk/Forum/WebContent/login.jsp
Modified: JSP/trunk/Forum/WebContent/commitRegister.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/commitRegister.jsp 2010-05-25 10:02:49 UTC (rev 163)
+++ JSP/trunk/Forum/WebContent/commitRegister.jsp 2010-05-25 10:06:10 UTC (rev 164)
@@ -74,12 +74,14 @@
else
{
%>
- <p>
+ <p align="center">
Congratulations <%out.print(userName);%>. You have been successfully registered.
</p>
+ <div align="center">
<form action="<%out.print((String)session.getAttribute("pageToReturnTo"));%>" method="post">
<input type="submit" value="Back to <%=(String)session.getAttribute("pageToReturnTo") %>">
- </form>
+ </form>
+ </div>
<%
}
Modified: JSP/trunk/Forum/WebContent/login.jsp
===================================================================
--- JSP/trunk/Forum/WebContent/login.jsp 2010-05-25 10:02:49 UTC (rev 163)
+++ JSP/trunk/Forum/WebContent/login.jsp 2010-05-25 10:06:10 UTC (rev 164)
@@ -43,14 +43,15 @@
if(problem != null)
{
%>
- <p align="center">
+ <div align="center">
There is the following problem: <%out.println(problem); %>.<br>
Please try signing in again.
<form action="<% out.print((String)session.getAttribute("pageToReturnTo")); %>"
method="post" >
<input align="top" type="submit"
value="Back to <% out.print((String)session.getAttribute("pageToReturnTo"));%>">
- </form>
+ </form>
+ </div>
<%
}
else
@@ -59,13 +60,14 @@
//Saving the new logged user in the cookies
session.setAttribute("user", userName);
%>
- <p align="center">
+ <div align="center">
Congratulations <%out.print(userName);%>. You have been successfully logged in.
<form action="<% out.print((String)session.getAttribute("pageToReturnTo")); %>"
method="post" >
<input align="top" type="submit"
value="Back to <% out.print((String)session.getAttribute("pageToReturnTo"));%>">
- </form>
+ </form>
+ </div>
<%
}
%>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|