[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Some questions
- To: uu@total-knowledge.com
- Subject: Some questions
- From: "Alexey Parshin" <alexeyp@gmail.com>
- Date: Sat, 25 Aug 2007 10:45:47 +1000
- Delivered-to: mailing list uu@total-knowledge.com
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=V6XWGcUs8jyMudNeguVBQ+9SFen9HHShF549/CJY41eNnJH+F2vokX6ahuXxEgUpbexY4rCMQC8cj+uifjM+dbq+I7JdC/KdYpsalxmVi3cAyfuW1mfkb5urQxTey6Yrm2otsdAaz1GSOa2jXYroAHqHF2M3Jge8CL0BZPByRA8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=e3d4LktR4b16JqlrfICFItjDUrUtDf4JAEu1UADxGp3n/f0qtGrMb2c4ypPxNVXWpmnIXtnMMHJ2bw/onKMVwwKxgO3D4vipe4eVDhWM1h5N3ohOjiT4AcC5LBRSFzMeLXBQ9bqOyP5UR4fGy71I0pGA8h9wCWovnNdvpzVG/X4=
- Mailing-list: contact uu-help@total-knowledge.com; run by ezmlm
1) The .csp files contain a lot of bad HTML, like:
<font face=Courier size=2><A HREF="" 1 (359 points)</A></font><br>
<font face=Courier size=2><A HREF=""
StudentView.html">Student 2 (412 points)</A></font><br>
<font face=Courier size=2><A HREF="" 3 (87 points)</A></font><br>
<font face=Courier size=2><A HREF=""
StudentView.html">Student 4 (210 points)</A></font><br>
This, IMHO, should be define through stylesheets. Is it a practical reason for such design?
2) The fragment below uses several types of "<%". What's the reason for not using just "<%" (besides import)? Is there a documentation on these tags?
<%@ page import="libui/UuServlet.h"%>
<%# using namespace std; %>
<%! typedef shared_ptr<CUserSession> user_t; %>
<%
user_t user;
....
HttpSession* session =
request.getSession(false);
if (session && session->hasAttribute("user_session")) {
user = static_pointer_cast<CUserSession>((session->getAttribute("user_session")));
isLoggedIn = true;
}
%>
3) The request has methods like hasAttribute(), getAttribute(), etc.. Is there a way to remove an attribute, or I just set it to NULL?
--
Alexey Parshin,
http://www.sptk.net